@yourdash/uikit 0.0.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (578) hide show
  1. package/README.md +2 -0
  2. package/components/box/box.module.scss +21 -0
  3. package/components/box/box.tsx +22 -0
  4. package/components/button/button.module.scss +47 -0
  5. package/components/button/button.tsx +23 -0
  6. package/components/buttonLink/buttonLink.module.scss +47 -0
  7. package/components/buttonLink/buttonLink.tsx +26 -0
  8. package/components/card/card.module.scss +78 -0
  9. package/components/card/card.tsx +61 -0
  10. package/components/contextMenu/contextMenu.tsx +55 -0
  11. package/components/contextMenu/contextMenuRoot.module.scss +31 -0
  12. package/components/contextMenu/contextMenuRoot.tsx +83 -0
  13. package/components/contextMenu/contextMenuRootContext.tsx +22 -0
  14. package/components/flex/flex.module.scss +19 -0
  15. package/components/flex/flex.tsx +13 -0
  16. package/components/heading/heading.module.scss +41 -0
  17. package/components/heading/heading.tsx +27 -0
  18. package/components/icon/icon.module.scss +26 -0
  19. package/components/icon/icon.tsx +30 -0
  20. package/components/icon/iconDictionary.ts +573 -0
  21. package/components/icon/icons/accessibility-16.svg +9 -0
  22. package/components/icon/icons/accessibility-inset-16.svg +9 -0
  23. package/components/icon/icons/alert-16.svg +9 -0
  24. package/components/icon/icons/alert-24.svg +10 -0
  25. package/components/icon/icons/alert-fill-12.svg +9 -0
  26. package/components/icon/icons/app-launcher-16.svg +11 -0
  27. package/components/icon/icons/apps-16.svg +9 -0
  28. package/components/icon/icons/archive-16.svg +9 -0
  29. package/components/icon/icons/archive-24.svg +12 -0
  30. package/components/icon/icons/arrow-both-16.svg +9 -0
  31. package/components/icon/icons/arrow-both-24.svg +6 -0
  32. package/components/icon/icons/arrow-down-16.svg +9 -0
  33. package/components/icon/icons/arrow-down-24.svg +9 -0
  34. package/components/icon/icons/arrow-down-left-24.svg +9 -0
  35. package/components/icon/icons/arrow-down-right-24.svg +9 -0
  36. package/components/icon/icons/arrow-left-16.svg +9 -0
  37. package/components/icon/icons/arrow-left-24.svg +9 -0
  38. package/components/icon/icons/arrow-right-16.svg +9 -0
  39. package/components/icon/icons/arrow-right-24.svg +9 -0
  40. package/components/icon/icons/arrow-switch-16.svg +6 -0
  41. package/components/icon/icons/arrow-switch-24.svg +6 -0
  42. package/components/icon/icons/arrow-up-16.svg +9 -0
  43. package/components/icon/icons/arrow-up-24.svg +9 -0
  44. package/components/icon/icons/arrow-up-left-24.svg +9 -0
  45. package/components/icon/icons/arrow-up-right-24.svg +9 -0
  46. package/components/icon/icons/beaker-16.svg +9 -0
  47. package/components/icon/icons/beaker-24.svg +9 -0
  48. package/components/icon/icons/bell-16.svg +10 -0
  49. package/components/icon/icons/bell-24.svg +9 -0
  50. package/components/icon/icons/bell-fill-16.svg +6 -0
  51. package/components/icon/icons/bell-fill-24.svg +9 -0
  52. package/components/icon/icons/bell-slash-16.svg +9 -0
  53. package/components/icon/icons/bell-slash-24.svg +11 -0
  54. package/components/icon/icons/blocked-16.svg +9 -0
  55. package/components/icon/icons/blocked-24.svg +9 -0
  56. package/components/icon/icons/bold-16.svg +9 -0
  57. package/components/icon/icons/bold-24.svg +9 -0
  58. package/components/icon/icons/book-16.svg +9 -0
  59. package/components/icon/icons/book-24.svg +9 -0
  60. package/components/icon/icons/bookmark-16.svg +9 -0
  61. package/components/icon/icons/bookmark-24.svg +9 -0
  62. package/components/icon/icons/bookmark-fill-24.svg +9 -0
  63. package/components/icon/icons/bookmark-slash-16.svg +9 -0
  64. package/components/icon/icons/bookmark-slash-24.svg +10 -0
  65. package/components/icon/icons/bookmark-slash-fill-24.svg +9 -0
  66. package/components/icon/icons/briefcase-16.svg +9 -0
  67. package/components/icon/icons/briefcase-24.svg +9 -0
  68. package/components/icon/icons/broadcast-16.svg +9 -0
  69. package/components/icon/icons/broadcast-24.svg +6 -0
  70. package/components/icon/icons/browser-16.svg +9 -0
  71. package/components/icon/icons/browser-24.svg +9 -0
  72. package/components/icon/icons/bug-16.svg +9 -0
  73. package/components/icon/icons/bug-24.svg +9 -0
  74. package/components/icon/icons/cache-16.svg +11 -0
  75. package/components/icon/icons/calendar-16.svg +9 -0
  76. package/components/icon/icons/calendar-24.svg +9 -0
  77. package/components/icon/icons/check-16.svg +9 -0
  78. package/components/icon/icons/check-24.svg +9 -0
  79. package/components/icon/icons/check-circle-16.svg +9 -0
  80. package/components/icon/icons/check-circle-24.svg +10 -0
  81. package/components/icon/icons/check-circle-fill-12.svg +9 -0
  82. package/components/icon/icons/check-circle-fill-16.svg +9 -0
  83. package/components/icon/icons/check-circle-fill-24.svg +9 -0
  84. package/components/icon/icons/checkbox-16.svg +9 -0
  85. package/components/icon/icons/checkbox-24.svg +10 -0
  86. package/components/icon/icons/checklist-16.svg +9 -0
  87. package/components/icon/icons/checklist-24.svg +6 -0
  88. package/components/icon/icons/chevron-down-16.svg +9 -0
  89. package/components/icon/icons/chevron-down-24.svg +9 -0
  90. package/components/icon/icons/chevron-left-16.svg +9 -0
  91. package/components/icon/icons/chevron-left-24.svg +9 -0
  92. package/components/icon/icons/chevron-right-16.svg +9 -0
  93. package/components/icon/icons/chevron-right-24.svg +9 -0
  94. package/components/icon/icons/chevron-up-16.svg +9 -0
  95. package/components/icon/icons/chevron-up-24.svg +9 -0
  96. package/components/icon/icons/circle-16.svg +8 -0
  97. package/components/icon/icons/circle-24.svg +9 -0
  98. package/components/icon/icons/circle-slash-16.svg +9 -0
  99. package/components/icon/icons/circle-slash-24.svg +9 -0
  100. package/components/icon/icons/clock-16.svg +9 -0
  101. package/components/icon/icons/clock-24.svg +10 -0
  102. package/components/icon/icons/cloud-16.svg +9 -0
  103. package/components/icon/icons/cloud-24.svg +9 -0
  104. package/components/icon/icons/cloud-offline-16.svg +11 -0
  105. package/components/icon/icons/cloud-offline-24.svg +11 -0
  106. package/components/icon/icons/code-16.svg +9 -0
  107. package/components/icon/icons/code-24.svg +9 -0
  108. package/components/icon/icons/code-of-conduct-16.svg +9 -0
  109. package/components/icon/icons/code-of-conduct-24.svg +9 -0
  110. package/components/icon/icons/code-review-16.svg +9 -0
  111. package/components/icon/icons/code-review-24.svg +11 -0
  112. package/components/icon/icons/code-square-16.svg +9 -0
  113. package/components/icon/icons/code-square-24.svg +11 -0
  114. package/components/icon/icons/codescan-16.svg +11 -0
  115. package/components/icon/icons/codescan-24.svg +11 -0
  116. package/components/icon/icons/codescan-checkmark-16.svg +10 -0
  117. package/components/icon/icons/codescan-checkmark-24.svg +10 -0
  118. package/components/icon/icons/codespaces-16.svg +11 -0
  119. package/components/icon/icons/codespaces-24.svg +11 -0
  120. package/components/icon/icons/columns-16.svg +9 -0
  121. package/components/icon/icons/columns-24.svg +9 -0
  122. package/components/icon/icons/command-palette-16.svg +6 -0
  123. package/components/icon/icons/command-palette-24.svg +6 -0
  124. package/components/icon/icons/comment-16.svg +9 -0
  125. package/components/icon/icons/comment-24.svg +9 -0
  126. package/components/icon/icons/comment-discussion-16.svg +9 -0
  127. package/components/icon/icons/comment-discussion-24.svg +11 -0
  128. package/components/icon/icons/commit-24.svg +10 -0
  129. package/components/icon/icons/container-16.svg +9 -0
  130. package/components/icon/icons/container-24.svg +9 -0
  131. package/components/icon/icons/copilot-16.svg +10 -0
  132. package/components/icon/icons/copilot-24.svg +10 -0
  133. package/components/icon/icons/copilot-48.svg +10 -0
  134. package/components/icon/icons/copilot-96.svg +10 -0
  135. package/components/icon/icons/copilot-error-16.svg +9 -0
  136. package/components/icon/icons/copilot-warning-16.svg +11 -0
  137. package/components/icon/icons/copy-16.svg +11 -0
  138. package/components/icon/icons/copy-24.svg +11 -0
  139. package/components/icon/icons/cpu-16.svg +9 -0
  140. package/components/icon/icons/cpu-24.svg +11 -0
  141. package/components/icon/icons/credit-card-16.svg +10 -0
  142. package/components/icon/icons/credit-card-24.svg +10 -0
  143. package/components/icon/icons/cross-reference-16.svg +9 -0
  144. package/components/icon/icons/cross-reference-24.svg +6 -0
  145. package/components/icon/icons/dash-16.svg +8 -0
  146. package/components/icon/icons/dash-24.svg +8 -0
  147. package/components/icon/icons/database-16.svg +9 -0
  148. package/components/icon/icons/database-24.svg +9 -0
  149. package/components/icon/icons/dependabot-16.svg +10 -0
  150. package/components/icon/icons/dependabot-24.svg +10 -0
  151. package/components/icon/icons/desktop-download-16.svg +6 -0
  152. package/components/icon/icons/desktop-download-24.svg +11 -0
  153. package/components/icon/icons/device-camera-16.svg +9 -0
  154. package/components/icon/icons/device-camera-video-16.svg +9 -0
  155. package/components/icon/icons/device-camera-video-24.svg +9 -0
  156. package/components/icon/icons/device-desktop-16.svg +9 -0
  157. package/components/icon/icons/device-desktop-24.svg +9 -0
  158. package/components/icon/icons/device-mobile-16.svg +9 -0
  159. package/components/icon/icons/device-mobile-24.svg +10 -0
  160. package/components/icon/icons/diamond-16.svg +9 -0
  161. package/components/icon/icons/diamond-24.svg +9 -0
  162. package/components/icon/icons/diff-16.svg +9 -0
  163. package/components/icon/icons/diff-24.svg +9 -0
  164. package/components/icon/icons/diff-added-16.svg +9 -0
  165. package/components/icon/icons/diff-ignored-16.svg +9 -0
  166. package/components/icon/icons/diff-modified-16.svg +9 -0
  167. package/components/icon/icons/diff-removed-16.svg +9 -0
  168. package/components/icon/icons/diff-renamed-16.svg +9 -0
  169. package/components/icon/icons/dot-16.svg +8 -0
  170. package/components/icon/icons/dot-24.svg +8 -0
  171. package/components/icon/icons/dot-fill-16.svg +8 -0
  172. package/components/icon/icons/dot-fill-24.svg +6 -0
  173. package/components/icon/icons/download-16.svg +9 -0
  174. package/components/icon/icons/download-24.svg +6 -0
  175. package/components/icon/icons/duplicate-16.svg +12 -0
  176. package/components/icon/icons/duplicate-24.svg +12 -0
  177. package/components/icon/icons/ellipsis-16.svg +9 -0
  178. package/components/icon/icons/ewsgit.svg +14 -0
  179. package/components/icon/icons/eye-16.svg +9 -0
  180. package/components/icon/icons/eye-24.svg +10 -0
  181. package/components/icon/icons/eye-closed-16.svg +9 -0
  182. package/components/icon/icons/eye-closed-24.svg +11 -0
  183. package/components/icon/icons/feed-discussion-16.svg +9 -0
  184. package/components/icon/icons/feed-forked-16.svg +9 -0
  185. package/components/icon/icons/feed-heart-16.svg +9 -0
  186. package/components/icon/icons/feed-merged-16.svg +9 -0
  187. package/components/icon/icons/feed-person-16.svg +9 -0
  188. package/components/icon/icons/feed-repo-16.svg +9 -0
  189. package/components/icon/icons/feed-rocket-16.svg +9 -0
  190. package/components/icon/icons/feed-star-16.svg +9 -0
  191. package/components/icon/icons/feed-tag-16.svg +10 -0
  192. package/components/icon/icons/feed-trophy-16.svg +10 -0
  193. package/components/icon/icons/file-16.svg +9 -0
  194. package/components/icon/icons/file-24.svg +9 -0
  195. package/components/icon/icons/file-added-16.svg +9 -0
  196. package/components/icon/icons/file-badge-16.svg +11 -0
  197. package/components/icon/icons/file-binary-16.svg +9 -0
  198. package/components/icon/icons/file-binary-24.svg +12 -0
  199. package/components/icon/icons/file-code-16.svg +9 -0
  200. package/components/icon/icons/file-code-24.svg +11 -0
  201. package/components/icon/icons/file-diff-16.svg +9 -0
  202. package/components/icon/icons/file-diff-24.svg +11 -0
  203. package/components/icon/icons/file-directory-16.svg +9 -0
  204. package/components/icon/icons/file-directory-24.svg +9 -0
  205. package/components/icon/icons/file-directory-fill-16.svg +6 -0
  206. package/components/icon/icons/file-directory-fill-24.svg +9 -0
  207. package/components/icon/icons/file-directory-open-fill-16.svg +6 -0
  208. package/components/icon/icons/file-media-24.svg +9 -0
  209. package/components/icon/icons/file-moved-16.svg +6 -0
  210. package/components/icon/icons/file-removed-16.svg +9 -0
  211. package/components/icon/icons/file-submodule-16.svg +9 -0
  212. package/components/icon/icons/file-submodule-24.svg +9 -0
  213. package/components/icon/icons/file-symlink-file-16.svg +9 -0
  214. package/components/icon/icons/file-symlink-file-24.svg +9 -0
  215. package/components/icon/icons/file-zip-16.svg +9 -0
  216. package/components/icon/icons/file-zip-24.svg +13 -0
  217. package/components/icon/icons/filter-16.svg +9 -0
  218. package/components/icon/icons/filter-24.svg +6 -0
  219. package/components/icon/icons/flame-16.svg +9 -0
  220. package/components/icon/icons/flame-24.svg +9 -0
  221. package/components/icon/icons/fold-16.svg +6 -0
  222. package/components/icon/icons/fold-24.svg +13 -0
  223. package/components/icon/icons/fold-down-16.svg +6 -0
  224. package/components/icon/icons/fold-down-24.svg +11 -0
  225. package/components/icon/icons/fold-up-16.svg +6 -0
  226. package/components/icon/icons/fold-up-24.svg +11 -0
  227. package/components/icon/icons/gear-16.svg +9 -0
  228. package/components/icon/icons/gear-24.svg +10 -0
  229. package/components/icon/icons/gift-16.svg +9 -0
  230. package/components/icon/icons/gift-24.svg +9 -0
  231. package/components/icon/icons/git-branch-16.svg +9 -0
  232. package/components/icon/icons/git-branch-24.svg +12 -0
  233. package/components/icon/icons/git-commit-16.svg +9 -0
  234. package/components/icon/icons/git-commit-24.svg +9 -0
  235. package/components/icon/icons/git-compare-16.svg +9 -0
  236. package/components/icon/icons/git-compare-24.svg +12 -0
  237. package/components/icon/icons/git-merge-16.svg +9 -0
  238. package/components/icon/icons/git-merge-24.svg +11 -0
  239. package/components/icon/icons/git-merge-queue-16.svg +11 -0
  240. package/components/icon/icons/git-pull-request-16.svg +9 -0
  241. package/components/icon/icons/git-pull-request-24.svg +11 -0
  242. package/components/icon/icons/git-pull-request-closed-16.svg +9 -0
  243. package/components/icon/icons/git-pull-request-closed-24.svg +11 -0
  244. package/components/icon/icons/git-pull-request-draft-16.svg +10 -0
  245. package/components/icon/icons/git-pull-request-draft-24.svg +10 -0
  246. package/components/icon/icons/globe-16.svg +9 -0
  247. package/components/icon/icons/globe-24.svg +9 -0
  248. package/components/icon/icons/grabber-16.svg +9 -0
  249. package/components/icon/icons/grabber-24.svg +9 -0
  250. package/components/icon/icons/graph-16.svg +9 -0
  251. package/components/icon/icons/graph-24.svg +6 -0
  252. package/components/icon/icons/hash-16.svg +9 -0
  253. package/components/icon/icons/hash-24.svg +9 -0
  254. package/components/icon/icons/heading-16.svg +9 -0
  255. package/components/icon/icons/heading-24.svg +9 -0
  256. package/components/icon/icons/heart-16.svg +9 -0
  257. package/components/icon/icons/heart-24.svg +9 -0
  258. package/components/icon/icons/heart-fill-16.svg +9 -0
  259. package/components/icon/icons/heart-fill-24.svg +6 -0
  260. package/components/icon/icons/history-16.svg +9 -0
  261. package/components/icon/icons/history-24.svg +6 -0
  262. package/components/icon/icons/home-16.svg +6 -0
  263. package/components/icon/icons/home-24.svg +9 -0
  264. package/components/icon/icons/home-fill-24.svg +6 -0
  265. package/components/icon/icons/horizontal-rule-16.svg +8 -0
  266. package/components/icon/icons/horizontal-rule-24.svg +8 -0
  267. package/components/icon/icons/hourglass-16.svg +9 -0
  268. package/components/icon/icons/hourglass-24.svg +9 -0
  269. package/components/icon/icons/hubot-16.svg +9 -0
  270. package/components/icon/icons/hubot-24.svg +11 -0
  271. package/components/icon/icons/id-badge-16.svg +11 -0
  272. package/components/icon/icons/image-16.svg +9 -0
  273. package/components/icon/icons/image-24.svg +9 -0
  274. package/components/icon/icons/inbox-16.svg +9 -0
  275. package/components/icon/icons/inbox-24.svg +9 -0
  276. package/components/icon/icons/infinity-16.svg +9 -0
  277. package/components/icon/icons/infinity-24.svg +9 -0
  278. package/components/icon/icons/info-16.svg +9 -0
  279. package/components/icon/icons/info-24.svg +11 -0
  280. package/components/icon/icons/issue-closed-16.svg +9 -0
  281. package/components/icon/icons/issue-closed-24.svg +10 -0
  282. package/components/icon/icons/issue-draft-16.svg +9 -0
  283. package/components/icon/icons/issue-draft-24.svg +9 -0
  284. package/components/icon/icons/issue-opened-16.svg +9 -0
  285. package/components/icon/icons/issue-opened-24.svg +9 -0
  286. package/components/icon/icons/issue-reopened-16.svg +6 -0
  287. package/components/icon/icons/issue-reopened-24.svg +6 -0
  288. package/components/icon/icons/italic-16.svg +9 -0
  289. package/components/icon/icons/italic-24.svg +9 -0
  290. package/components/icon/icons/iterations-16.svg +6 -0
  291. package/components/icon/icons/iterations-24.svg +6 -0
  292. package/components/icon/icons/kebab-horizontal-16.svg +6 -0
  293. package/components/icon/icons/kebab-horizontal-24.svg +8 -0
  294. package/components/icon/icons/key-16.svg +9 -0
  295. package/components/icon/icons/key-24.svg +10 -0
  296. package/components/icon/icons/key-asterisk-16.svg +11 -0
  297. package/components/icon/icons/law-16.svg +9 -0
  298. package/components/icon/icons/law-24.svg +9 -0
  299. package/components/icon/icons/light-bulb-16.svg +9 -0
  300. package/components/icon/icons/light-bulb-24.svg +9 -0
  301. package/components/icon/icons/link-16.svg +9 -0
  302. package/components/icon/icons/link-24.svg +6 -0
  303. package/components/icon/icons/link-external-16.svg +9 -0
  304. package/components/icon/icons/link-external-24.svg +6 -0
  305. package/components/icon/icons/list-ordered-16.svg +9 -0
  306. package/components/icon/icons/list-ordered-24.svg +6 -0
  307. package/components/icon/icons/list-unordered-16.svg +9 -0
  308. package/components/icon/icons/list-unordered-24.svg +9 -0
  309. package/components/icon/icons/location-16.svg +9 -0
  310. package/components/icon/icons/location-24.svg +10 -0
  311. package/components/icon/icons/lock-16.svg +9 -0
  312. package/components/icon/icons/lock-24.svg +9 -0
  313. package/components/icon/icons/log-16.svg +10 -0
  314. package/components/icon/icons/login.svg +9 -0
  315. package/components/icon/icons/logo-gist-16.svg +9 -0
  316. package/components/icon/icons/logo-github-16.svg +9 -0
  317. package/components/icon/icons/logout.svg +9 -0
  318. package/components/icon/icons/mail-16.svg +9 -0
  319. package/components/icon/icons/mail-24.svg +9 -0
  320. package/components/icon/icons/mark-github-16.svg +9 -0
  321. package/components/icon/icons/markdown-16.svg +9 -0
  322. package/components/icon/icons/megaphone-16.svg +14 -0
  323. package/components/icon/icons/megaphone-24.svg +9 -0
  324. package/components/icon/icons/mention-16.svg +9 -0
  325. package/components/icon/icons/mention-24.svg +9 -0
  326. package/components/icon/icons/meter-16.svg +9 -0
  327. package/components/icon/icons/milestone-16.svg +9 -0
  328. package/components/icon/icons/milestone-24.svg +9 -0
  329. package/components/icon/icons/mirror-16.svg +9 -0
  330. package/components/icon/icons/mirror-24.svg +9 -0
  331. package/components/icon/icons/moon-16.svg +9 -0
  332. package/components/icon/icons/moon-24.svg +9 -0
  333. package/components/icon/icons/mortar-board-16.svg +9 -0
  334. package/components/icon/icons/mortar-board-24.svg +9 -0
  335. package/components/icon/icons/multi-select-16.svg +10 -0
  336. package/components/icon/icons/multi-select-24.svg +10 -0
  337. package/components/icon/icons/mute-16.svg +9 -0
  338. package/components/icon/icons/mute-24.svg +11 -0
  339. package/components/icon/icons/no-entry-16.svg +9 -0
  340. package/components/icon/icons/no-entry-24.svg +9 -0
  341. package/components/icon/icons/no-entry-fill-12.svg +8 -0
  342. package/components/icon/icons/north-star-16.svg +6 -0
  343. package/components/icon/icons/north-star-24.svg +6 -0
  344. package/components/icon/icons/note-16.svg +9 -0
  345. package/components/icon/icons/note-24.svg +11 -0
  346. package/components/icon/icons/number-16.svg +9 -0
  347. package/components/icon/icons/number-24.svg +9 -0
  348. package/components/icon/icons/organization-16.svg +9 -0
  349. package/components/icon/icons/organization-24.svg +11 -0
  350. package/components/icon/icons/package-16.svg +9 -0
  351. package/components/icon/icons/package-24.svg +9 -0
  352. package/components/icon/icons/package-dependencies-16.svg +9 -0
  353. package/components/icon/icons/package-dependencies-24.svg +11 -0
  354. package/components/icon/icons/package-dependents-16.svg +9 -0
  355. package/components/icon/icons/package-dependents-24.svg +11 -0
  356. package/components/icon/icons/paintbrush-16.svg +9 -0
  357. package/components/icon/icons/paper-airplane-16.svg +9 -0
  358. package/components/icon/icons/paper-airplane-24.svg +9 -0
  359. package/components/icon/icons/paperclip-16.svg +9 -0
  360. package/components/icon/icons/paperclip-24.svg +9 -0
  361. package/components/icon/icons/paste-16.svg +9 -0
  362. package/components/icon/icons/paste-24.svg +11 -0
  363. package/components/icon/icons/pencil-16.svg +9 -0
  364. package/components/icon/icons/pencil-24.svg +9 -0
  365. package/components/icon/icons/people-16.svg +9 -0
  366. package/components/icon/icons/people-24.svg +11 -0
  367. package/components/icon/icons/person-16.svg +9 -0
  368. package/components/icon/icons/person-24.svg +9 -0
  369. package/components/icon/icons/person-add-16.svg +9 -0
  370. package/components/icon/icons/person-add-24.svg +9 -0
  371. package/components/icon/icons/person-fill-16.svg +6 -0
  372. package/components/icon/icons/person-fill-24.svg +6 -0
  373. package/components/icon/icons/pin-16.svg +9 -0
  374. package/components/icon/icons/pin-24.svg +9 -0
  375. package/components/icon/icons/play-16.svg +9 -0
  376. package/components/icon/icons/play-24.svg +10 -0
  377. package/components/icon/icons/plug-16.svg +9 -0
  378. package/components/icon/icons/plug-24.svg +9 -0
  379. package/components/icon/icons/plus-16.svg +9 -0
  380. package/components/icon/icons/plus-24.svg +9 -0
  381. package/components/icon/icons/plus-circle-16.svg +9 -0
  382. package/components/icon/icons/plus-circle-24.svg +10 -0
  383. package/components/icon/icons/project-16.svg +9 -0
  384. package/components/icon/icons/project-24.svg +11 -0
  385. package/components/icon/icons/pulse-16.svg +9 -0
  386. package/components/icon/icons/pulse-24.svg +9 -0
  387. package/components/icon/icons/question-16.svg +9 -0
  388. package/components/icon/icons/question-24.svg +11 -0
  389. package/components/icon/icons/quote-16.svg +9 -0
  390. package/components/icon/icons/quote-24.svg +9 -0
  391. package/components/icon/icons/reply-16.svg +9 -0
  392. package/components/icon/icons/reply-24.svg +6 -0
  393. package/components/icon/icons/repo-16.svg +9 -0
  394. package/components/icon/icons/repo-24.svg +10 -0
  395. package/components/icon/icons/repo-clone-16.svg +9 -0
  396. package/components/icon/icons/repo-deleted-16.svg +6 -0
  397. package/components/icon/icons/repo-forked-16.svg +9 -0
  398. package/components/icon/icons/repo-forked-24.svg +12 -0
  399. package/components/icon/icons/repo-locked-16.svg +11 -0
  400. package/components/icon/icons/repo-locked-24.svg +11 -0
  401. package/components/icon/icons/repo-pull-16.svg +9 -0
  402. package/components/icon/icons/repo-push-16.svg +9 -0
  403. package/components/icon/icons/repo-push-24.svg +6 -0
  404. package/components/icon/icons/repo-template-16.svg +9 -0
  405. package/components/icon/icons/repo-template-24.svg +6 -0
  406. package/components/icon/icons/report-16.svg +9 -0
  407. package/components/icon/icons/report-24.svg +9 -0
  408. package/components/icon/icons/rocket-16.svg +9 -0
  409. package/components/icon/icons/rocket-24.svg +9 -0
  410. package/components/icon/icons/rows-16.svg +9 -0
  411. package/components/icon/icons/rows-24.svg +9 -0
  412. package/components/icon/icons/rss-16.svg +9 -0
  413. package/components/icon/icons/rss-24.svg +9 -0
  414. package/components/icon/icons/ruby-16.svg +9 -0
  415. package/components/icon/icons/ruby-24.svg +9 -0
  416. package/components/icon/icons/screen-full-16.svg +9 -0
  417. package/components/icon/icons/screen-full-24.svg +9 -0
  418. package/components/icon/icons/screen-normal-16.svg +9 -0
  419. package/components/icon/icons/screen-normal-24.svg +9 -0
  420. package/components/icon/icons/search-16.svg +9 -0
  421. package/components/icon/icons/search-24.svg +9 -0
  422. package/components/icon/icons/server-16.svg +9 -0
  423. package/components/icon/icons/server-24.svg +11 -0
  424. package/components/icon/icons/server-error.svg +8 -0
  425. package/components/icon/icons/share-16.svg +9 -0
  426. package/components/icon/icons/share-24.svg +9 -0
  427. package/components/icon/icons/share-android-16.svg +9 -0
  428. package/components/icon/icons/share-android-24.svg +9 -0
  429. package/components/icon/icons/shield-16.svg +9 -0
  430. package/components/icon/icons/shield-24.svg +10 -0
  431. package/components/icon/icons/shield-check-16.svg +9 -0
  432. package/components/icon/icons/shield-check-24.svg +10 -0
  433. package/components/icon/icons/shield-lock-16.svg +9 -0
  434. package/components/icon/icons/shield-lock-24.svg +9 -0
  435. package/components/icon/icons/shield-slash-16.svg +11 -0
  436. package/components/icon/icons/shield-x-16.svg +9 -0
  437. package/components/icon/icons/shield-x-24.svg +11 -0
  438. package/components/icon/icons/sidebar-collapse-16.svg +10 -0
  439. package/components/icon/icons/sidebar-collapse-24.svg +10 -0
  440. package/components/icon/icons/sidebar-expand-16.svg +10 -0
  441. package/components/icon/icons/sidebar-expand-24.svg +10 -0
  442. package/components/icon/icons/sign-in-16.svg +9 -0
  443. package/components/icon/icons/sign-in-24.svg +9 -0
  444. package/components/icon/icons/sign-out-16.svg +9 -0
  445. package/components/icon/icons/sign-out-24.svg +9 -0
  446. package/components/icon/icons/single-select-16.svg +10 -0
  447. package/components/icon/icons/single-select-24.svg +10 -0
  448. package/components/icon/icons/skip-16.svg +9 -0
  449. package/components/icon/icons/skip-24.svg +10 -0
  450. package/components/icon/icons/sliders-16.svg +6 -0
  451. package/components/icon/icons/smiley-16.svg +9 -0
  452. package/components/icon/icons/smiley-24.svg +12 -0
  453. package/components/icon/icons/sort-asc-16.svg +9 -0
  454. package/components/icon/icons/sort-asc-24.svg +6 -0
  455. package/components/icon/icons/sort-desc-16.svg +10 -0
  456. package/components/icon/icons/sort-desc-24.svg +6 -0
  457. package/components/icon/icons/square-16.svg +9 -0
  458. package/components/icon/icons/square-24.svg +9 -0
  459. package/components/icon/icons/square-fill-16.svg +9 -0
  460. package/components/icon/icons/square-fill-24.svg +9 -0
  461. package/components/icon/icons/squirrel-16.svg +9 -0
  462. package/components/icon/icons/squirrel-24.svg +6 -0
  463. package/components/icon/icons/stack-16.svg +9 -0
  464. package/components/icon/icons/stack-24.svg +13 -0
  465. package/components/icon/icons/star-16.svg +9 -0
  466. package/components/icon/icons/star-24.svg +9 -0
  467. package/components/icon/icons/star-fill-16.svg +9 -0
  468. package/components/icon/icons/star-fill-24.svg +9 -0
  469. package/components/icon/icons/stop-16.svg +9 -0
  470. package/components/icon/icons/stop-24.svg +10 -0
  471. package/components/icon/icons/stopwatch-16.svg +9 -0
  472. package/components/icon/icons/stopwatch-24.svg +9 -0
  473. package/components/icon/icons/store.svg +10 -0
  474. package/components/icon/icons/strikethrough-16.svg +9 -0
  475. package/components/icon/icons/strikethrough-24.svg +9 -0
  476. package/components/icon/icons/sun-16.svg +9 -0
  477. package/components/icon/icons/sun-24.svg +9 -0
  478. package/components/icon/icons/sync-16.svg +9 -0
  479. package/components/icon/icons/sync-24.svg +6 -0
  480. package/components/icon/icons/tab-24.svg +6 -0
  481. package/components/icon/icons/tab-external-16.svg +6 -0
  482. package/components/icon/icons/table-16.svg +9 -0
  483. package/components/icon/icons/table-24.svg +9 -0
  484. package/components/icon/icons/tag-16.svg +9 -0
  485. package/components/icon/icons/tag-24.svg +10 -0
  486. package/components/icon/icons/tasklist-16.svg +9 -0
  487. package/components/icon/icons/tasklist-24.svg +10 -0
  488. package/components/icon/icons/telescope-16.svg +9 -0
  489. package/components/icon/icons/telescope-24.svg +11 -0
  490. package/components/icon/icons/telescope-fill-16.svg +9 -0
  491. package/components/icon/icons/telescope-fill-24.svg +11 -0
  492. package/components/icon/icons/terminal-16.svg +9 -0
  493. package/components/icon/icons/terminal-24.svg +11 -0
  494. package/components/icon/icons/three-bars-16.svg +9 -0
  495. package/components/icon/icons/thumbsdown-16.svg +9 -0
  496. package/components/icon/icons/thumbsdown-24.svg +9 -0
  497. package/components/icon/icons/thumbsup-16.svg +9 -0
  498. package/components/icon/icons/thumbsup-24.svg +9 -0
  499. package/components/icon/icons/tools-16.svg +9 -0
  500. package/components/icon/icons/tools-24.svg +9 -0
  501. package/components/icon/icons/trash-16.svg +9 -0
  502. package/components/icon/icons/trash-24.svg +13 -0
  503. package/components/icon/icons/triangle-down-16.svg +6 -0
  504. package/components/icon/icons/triangle-down-24.svg +6 -0
  505. package/components/icon/icons/triangle-left-16.svg +6 -0
  506. package/components/icon/icons/triangle-left-24.svg +6 -0
  507. package/components/icon/icons/triangle-right-16.svg +6 -0
  508. package/components/icon/icons/triangle-right-24.svg +6 -0
  509. package/components/icon/icons/triangle-up-16.svg +6 -0
  510. package/components/icon/icons/triangle-up-24.svg +6 -0
  511. package/components/icon/icons/trophy-16.svg +9 -0
  512. package/components/icon/icons/trophy-24.svg +9 -0
  513. package/components/icon/icons/typography-16.svg +9 -0
  514. package/components/icon/icons/typography-24.svg +9 -0
  515. package/components/icon/icons/unfold-16.svg +6 -0
  516. package/components/icon/icons/unfold-24.svg +12 -0
  517. package/components/icon/icons/unlock-16.svg +9 -0
  518. package/components/icon/icons/unlock-24.svg +9 -0
  519. package/components/icon/icons/unmute-16.svg +9 -0
  520. package/components/icon/icons/unmute-24.svg +11 -0
  521. package/components/icon/icons/unverified-16.svg +9 -0
  522. package/components/icon/icons/unverified-24.svg +11 -0
  523. package/components/icon/icons/upload-16.svg +9 -0
  524. package/components/icon/icons/upload-24.svg +9 -0
  525. package/components/icon/icons/verified-16.svg +9 -0
  526. package/components/icon/icons/verified-24.svg +10 -0
  527. package/components/icon/icons/versions-16.svg +9 -0
  528. package/components/icon/icons/versions-24.svg +9 -0
  529. package/components/icon/icons/video-16.svg +10 -0
  530. package/components/icon/icons/video-24.svg +10 -0
  531. package/components/icon/icons/webhook-16.svg +6 -0
  532. package/components/icon/icons/workflow-16.svg +9 -0
  533. package/components/icon/icons/workflow-24.svg +9 -0
  534. package/components/icon/icons/x-16.svg +9 -0
  535. package/components/icon/icons/x-24.svg +9 -0
  536. package/components/icon/icons/x-circle-16.svg +9 -0
  537. package/components/icon/icons/x-circle-24.svg +11 -0
  538. package/components/icon/icons/x-circle-fill-12.svg +9 -0
  539. package/components/icon/icons/x-circle-fill-16.svg +9 -0
  540. package/components/icon/icons/x-circle-fill-24.svg +9 -0
  541. package/components/icon/icons/yourdash.svg +64 -0
  542. package/components/icon/icons/zap-16.svg +9 -0
  543. package/components/icon/icons/zap-24.svg +9 -0
  544. package/components/iconButton/iconButton.module.scss +40 -0
  545. package/components/iconButton/iconButton.tsx +34 -0
  546. package/components/image/image.module.scss +10 -0
  547. package/components/image/image.tsx +28 -0
  548. package/components/link/link.module.scss +32 -0
  549. package/components/link/link.tsx +21 -0
  550. package/components/redirect/redirect.tsx +17 -0
  551. package/components/separator/separator.module.scss +28 -0
  552. package/components/separator/separator.tsx +14 -0
  553. package/components/spinner/spinner.module.scss +93 -0
  554. package/components/spinner/spinner.tsx +31 -0
  555. package/components/subtext/subtext.module.scss +17 -0
  556. package/components/subtext/subtext.tsx +14 -0
  557. package/components/text/text.module.scss +13 -0
  558. package/components/text/text.tsx +14 -0
  559. package/components/textButton/textButton.module.scss +30 -0
  560. package/components/textButton/textButton.tsx +22 -0
  561. package/components/textInput/textInput.module.scss +52 -0
  562. package/components/textInput/textInput.tsx +54 -0
  563. package/components/toast/toast.module.scss +31 -0
  564. package/components/toast/toast.tsx +65 -0
  565. package/components/toast/toastContext.ts +14 -0
  566. package/core/decrementLevel.tsx +13 -0
  567. package/core/incrementLevel.tsx +13 -0
  568. package/core/level.tsx +27 -0
  569. package/core/root.tsx +32 -0
  570. package/core/toast.ts +17 -0
  571. package/package.json +46 -6
  572. package/theme/defaultTheme.module.scss +349 -0
  573. package/theme/themeValues.scss +46 -0
  574. package/tsconfig.json +20 -0
  575. package/views/panAndZoom/panAndZoom.tsx +114 -0
  576. package/.idea/modules.xml +0 -8
  577. package/.idea/uikit.iml +0 -12
  578. package/.idea/vcs.xml +0 -12
@@ -0,0 +1,65 @@
1
+ /*
2
+ * Copyright ©2024 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 clippy from "@yourdash/shared/web/helpers/clippy.js";
7
+ import { FC, useState } from "react";
8
+ import Card from "../card/card.js";
9
+ import { UKIcon } from "../icon/iconDictionary.js";
10
+ import IconButton from "../iconButton/iconButton.js";
11
+ import Text from "../text/text.js";
12
+ import ToastContext from "./toastContext.js";
13
+ import React from "react";
14
+ import styles from "./toast.module.scss";
15
+
16
+ const Toast: FC<{ children: React.ReactNode | React.ReactNode[] }> = ({ children }) => {
17
+ const [toasts, setToasts] = useState<
18
+ { type: "success" | "error" | "warning" | "info"; content: string; persist?: boolean; timestamp: number }[]
19
+ >([]);
20
+
21
+ return (
22
+ <>
23
+ <ToastContext.Provider
24
+ value={{
25
+ showToast: (data: { type: "success" | "error" | "warning" | "info"; content: string; persist?: boolean }) => {
26
+ const timestamp = Date.now();
27
+
28
+ setToasts([...toasts, { ...data, timestamp: timestamp }]);
29
+
30
+ if (!data.persist) {
31
+ setTimeout(() => {
32
+ setToasts(toasts.filter((t) => t.timestamp !== timestamp));
33
+ }, 5000);
34
+ }
35
+ },
36
+ }}
37
+ >
38
+ <div className={styles.container}>
39
+ {toasts.map((t) => {
40
+ return (
41
+ <Card
42
+ key={t.timestamp}
43
+ actions={
44
+ t.persist ? (
45
+ <IconButton
46
+ accessibleLabel={"Close toast"}
47
+ icon={UKIcon.X}
48
+ onClick={() => setToasts(toasts.filter((x) => x.timestamp !== t.timestamp))}
49
+ />
50
+ ) : null
51
+ }
52
+ containerClassName={clippy(styles.component, t.type && styles[t.type])}
53
+ >
54
+ <Text text={t.content} />
55
+ </Card>
56
+ );
57
+ })}
58
+ </div>
59
+ {children}
60
+ </ToastContext.Provider>
61
+ </>
62
+ );
63
+ };
64
+
65
+ export default Toast;
@@ -0,0 +1,14 @@
1
+ /*
2
+ * Copyright ©2024 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 React from "react";
7
+
8
+ const ToastContext = React.createContext({
9
+ showToast: (data: { type: "success" | "error" | "warning" | "info"; content: string; persist?: boolean }) => {
10
+ /* empty */
11
+ },
12
+ });
13
+
14
+ export default ToastContext;
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Copyright ©2024 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 LevelContext, { useLevel } from "./level";
7
+ import { FC } from "react";
8
+
9
+ const DecrementLevel: FC<{ children: React.ReactNode | React.ReactNode[] }> = (props) => {
10
+ return <LevelContext.Provider value={useLevel() - 1}>{props.children}</LevelContext.Provider>;
11
+ };
12
+
13
+ export default DecrementLevel;
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Copyright ©2024 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 LevelContext, { useLevel } from "./level";
7
+ import { FC } from "react";
8
+
9
+ const IncrementLevel: FC<{ children: React.ReactNode | React.ReactNode[] }> = (props) => {
10
+ return <LevelContext.Provider value={useLevel() + 1}>{props.children}</LevelContext.Provider>;
11
+ };
12
+
13
+ export default IncrementLevel;
package/core/level.tsx ADDED
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Copyright ©2024 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 { createContext, useContext } from "react";
7
+ import styles from "./../theme/defaultTheme.module.scss";
8
+
9
+ const LevelContext = createContext(0);
10
+ export default LevelContext;
11
+
12
+ export const useLevel = () => useContext(LevelContext);
13
+
14
+ export const useLevelClass = (level: number): string => {
15
+ switch (level) {
16
+ case 0:
17
+ return styles.level0;
18
+ case 1:
19
+ return styles.level1;
20
+ case 2:
21
+ return styles.level2;
22
+ case 3:
23
+ return styles.level3;
24
+ default:
25
+ return styles.level0;
26
+ }
27
+ };
package/core/root.tsx ADDED
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright ©2024 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 clippy from "@yourdash/shared/web/helpers/clippy.js";
7
+ import isMobileDevice from "@yourdash/shared/web/helpers/isPhone.js";
8
+ import ContextMenuRoot from "../components/contextMenu/contextMenuRoot.js";
9
+ import Toast from "../components/toast/toast.js";
10
+ import LevelContext from "./level.js";
11
+ import styles from "./../theme/defaultTheme.module.scss";
12
+ import React, { FC, useEffect, useState } from "react";
13
+
14
+ const UIKitRoot: FC<{ children: React.ReactNode | React.ReactNode[] }> = (props) => {
15
+ const [isMobile, setIsMobile] = useState<boolean>(false);
16
+
17
+ useEffect(() => {
18
+ setIsMobile(isMobileDevice());
19
+ }, []);
20
+
21
+ return (
22
+ <div className={clippy(styles.theme, styles.level0, isMobile && styles.mobile)}>
23
+ <ContextMenuRoot>
24
+ <Toast>
25
+ <LevelContext.Provider value={0}>{props.children}</LevelContext.Provider>
26
+ </Toast>
27
+ </ContextMenuRoot>
28
+ </div>
29
+ );
30
+ };
31
+
32
+ export default UIKitRoot;
package/core/toast.ts ADDED
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright ©2024 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 React from "react";
7
+ import ToastContext from "../components/toast/toastContext.js";
8
+
9
+ export default function useToast() {
10
+ const toastCtx = React.useContext(ToastContext);
11
+
12
+ return {
13
+ create(data: { type: "success" | "error" | "warning" | "info"; content: string; persist?: boolean }) {
14
+ toastCtx.showToast(data);
15
+ },
16
+ };
17
+ }
package/package.json CHANGED
@@ -1,9 +1,49 @@
1
1
  {
2
2
  "name": "@yourdash/uikit",
3
- "version": "0.0.1",
4
- "description": "The YourDash UI Framework",
5
- "main": "index.js",
6
- "repository": "https://github.com/yourdash-app/yourdash",
7
- "author": "Ewsgit",
8
- "license": "MIT"
3
+ "version": "1.0.0",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "engines": {
7
+ "node": ">=21.0.0"
8
+ },
9
+ "dependencies": {
10
+ "@loadable/component": "^5.15.3",
11
+ "@remix-run/router": "^1.15.3",
12
+ "@tailwindcss/container-queries": "^0.1.1",
13
+ "@types/express": "^4.17.21",
14
+ "@types/loadable__component": "^5.13.7",
15
+ "@types/minimist": "^1.2.2",
16
+ "@types/node": "^20.1.4",
17
+ "@types/path-browserify": "^1.0.0",
18
+ "@types/react": "^18.2.21",
19
+ "@types/react-dom": "^18.2.7",
20
+ "@typescript-eslint/eslint-plugin": "^5.59.11",
21
+ "@typescript-eslint/parser": "^5.59.11",
22
+ "@vitejs/plugin-react-swc": "^3.3.2",
23
+ "animate.css": "^4.1.1",
24
+ "autoprefixer": "^10.4.15",
25
+ "clsx": "^2.0.0",
26
+ "concurrently": "^8.2.2",
27
+ "cross-env": "^7.0.3",
28
+ "es-abstract": "^1.22.1",
29
+ "eslint": "^8.47.0",
30
+ "minimist": "^1.2.8",
31
+ "path": "^0.12.7",
32
+ "path-browserify": "^1.0.1",
33
+ "path-to-regexp": "^6.2.1",
34
+ "postcss": "^8.4.27",
35
+ "react": "^18.3.1",
36
+ "react-dom": "^18.2.0",
37
+ "react-router": "^6.15.0",
38
+ "react-router-dom": "^6.15.0",
39
+ "sass": "^1.65.1",
40
+ "socket.io-client": "^4.6.1",
41
+ "type-fest": "^4.14.0",
42
+ "typescript": "^5.0.4",
43
+ "vite": "^4.4.9",
44
+ "vite-plugin-dynamic-import": "^1.5.0",
45
+ "web-tree-sitter": "^0.20.8",
46
+ "xml2js": "^0.6.2",
47
+ "yarn": "^1.22.19"
48
+ }
9
49
  }
@@ -0,0 +1,349 @@
1
+ /*!
2
+ * Copyright ©2024 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 "./themeValues";
7
+
8
+ .theme {
9
+ #{$theme}-author: "Ewsgit";
10
+ #{$theme}-name: "YourDash Classic Dark";
11
+ #{$theme}-version: "0.0.1";
12
+
13
+ background: var(#{$theme+$background});
14
+ height: 100%;
15
+ overflow-x: hidden;
16
+ overflow-y: auto;
17
+ }
18
+
19
+ .level0 {
20
+ color: var(#{$theme+$color});
21
+
22
+ #{$theme+$color}: #ffffff;
23
+ #{$theme+$subcolor}: #bbbbbb;
24
+ #{$theme+$background}: #222222;
25
+ #{$theme+$accent}: #768ce7;
26
+ #{$theme+$border}: 0.125rem solid #444444;
27
+ #{$theme+$radius}: 1rem;
28
+ #{$theme+$padding}: 1rem;
29
+ #{$theme+$gap}: 0.5rem;
30
+ #{$theme+$transition}: all 200ms ease-in-out;
31
+ #{$theme+$separator+$size}: 0.125rem;
32
+ #{$theme+$separator+$color}: #444444;
33
+
34
+ // heading
35
+ #{$theme+$heading+$h1+$weight}: 900;
36
+ #{$theme+$heading+$h1+$size}: 3rem;
37
+ #{$theme+$heading+$h2+$weight}: 700;
38
+ #{$theme+$heading+$h2+$size}: 2rem;
39
+ #{$theme+$heading+$h3+$weight}: 600;
40
+ #{$theme+$heading+$h3+$size}: 1.5rem;
41
+ #{$theme+$heading+$h4+$weight}: 500;
42
+ #{$theme+$heading+$h4+$size}: 1.25rem;
43
+ #{$theme+$heading+$h5+$weight}: 500;
44
+ #{$theme+$heading+$h5+$size}: 1rem;
45
+ #{$theme+$heading+$h6+$weight}: 500;
46
+ #{$theme+$heading+$h6+$size}: 0.875rem;
47
+
48
+ // input
49
+ #{$theme+$input+$color}: #ffffff;
50
+ #{$theme+$input+$background}: #222222;
51
+ #{$theme+$input+$border}: 0.125rem solid #444444;
52
+ #{$theme+$input+$radius}: 0.5rem;
53
+ #{$theme+$input+$height}: 2rem;
54
+ #{$theme+$input+$padding+$horizontal}: 0.5rem;
55
+ #{$theme+$input+$transition}: all 0.2s ease-in-out;
56
+ // focus
57
+ #{$theme}#{$input}#{$focus}#{$color}: #ffffff;
58
+ #{$theme}#{$input}#{$focus}#{$background}: #333333;
59
+ #{$theme}#{$input}#{$focus}#{$border}: 0.125rem solid #555555;
60
+
61
+ // button
62
+ #{$theme}#{$button}#{$color}: #ffffff;
63
+ #{$theme}#{$button}#{$background}: #444444;
64
+ #{$theme}#{$button}#{$border}: 0.125rem solid #555555;
65
+ #{$theme}#{$button}#{$font}#{$size}: 0.9rem;
66
+ #{$theme}#{$button}#{$font}#{$weight}: 400;
67
+ #{$theme}#{$button}#{$radius}: 0.5rem;
68
+ #{$theme}#{$button}#{$padding}#{$horizontal}: 0.5rem;
69
+ #{$theme}#{$button}#{$transition}: all 0.2s ease-in-out;
70
+ // hover
71
+ #{$theme}#{$button}#{$hover}#{$color}: #ffffff;
72
+ #{$theme}#{$button}#{$hover}#{$background}: #555555;
73
+ #{$theme}#{$button}#{$hover}#{$border}: 0.125rem solid #666666;
74
+ #{$theme}#{$button}#{$hover}#{$radius}: 0.5rem;
75
+ #{$theme}#{$button}#{$hover}#{$transition}: all 50ms ease-in-out;
76
+ // active
77
+ #{$theme}#{$button}#{$active}#{$color}: #000000;
78
+ #{$theme}#{$button}#{$active}#{$background}: #666666;
79
+ #{$theme}#{$button}#{$active}#{$border}: 0.125rem solid #777777;
80
+ #{$theme}#{$button}#{$active}#{$radius}: 0.5rem;
81
+ #{$theme}#{$button}#{$active}#{$transition}: all 50ms ease-in-out;
82
+
83
+ // text button
84
+ #{$theme+$textbutton+$font+$weight}: 700;
85
+
86
+ // font
87
+ #{$theme}#{$font}#{$family}: Inter;
88
+ #{$theme}#{$font}#{$size}: 0.9rem;
89
+ #{$theme}#{$font}#{$weight}: 400;
90
+
91
+ // header
92
+ #{$theme}#{$header}#{$color}: #ffffff;
93
+ #{$theme}#{$header}#{$font}#{$family}: Inter;
94
+ #{$theme}#{$header}#{$font}#{$size}: 1.2rem;
95
+ #{$theme}#{$header}#{$font}#{$weight}: 700;
96
+ #{$theme}#{$header}#{$padding}#{$vertical}: 1rem;
97
+ #{$theme}#{$header}#{$padding}#{$horizontal}: 0.5rem;
98
+ }
99
+
100
+ .level1 {
101
+ color: var(#{$theme+$color});
102
+
103
+ #{$theme}#{$color}: #ffffff;
104
+ #{$theme}#{$background}: #333333;
105
+ #{$theme}#{$border}: 0.125rem solid #555555;
106
+ #{$theme}#{$accent}: #768ce7;
107
+ #{$theme}#{$radius}: 0.5rem;
108
+ #{$theme}#{$font}#{$family}: Inter;
109
+ #{$theme}#{$font}#{$radius}: 0.9rem;
110
+ #{$theme}#{$font}#{$weight}: 400;
111
+ #{$theme}#{$padding}: 0.75rem;
112
+ #{$theme}#{$gap}: 0.5rem;
113
+ #{$theme}#{$transition}: all 200ms ease-in-out;
114
+ #{$theme}#{$separator}#{$size}: 0.125rem;
115
+ #{$theme}#{$separator}#{$color}: #555555;
116
+
117
+ // heading
118
+ #{$theme}#{$heading}#{$h1}#{$weight}: 800;
119
+ #{$theme}#{$heading}#{$h1}#{$size}: 3rem;
120
+ #{$theme}#{$heading}#{$h2}#{$weight}: 700;
121
+ #{$theme}#{$heading}#{$h2}#{$size}: 2.5rem;
122
+ #{$theme}#{$heading}#{$h3}#{$weight}: 600;
123
+ #{$theme}#{$heading}#{$h3}#{$size}: 2rem;
124
+ #{$theme}#{$heading}#{$h4}#{$weight}: 500;
125
+ #{$theme}#{$heading}#{$h4}#{$size}: 1.5rem;
126
+ #{$theme}#{$heading}#{$h5}#{$weight}: 500;
127
+ #{$theme}#{$heading}#{$h5}#{$size}: 1rem;
128
+ #{$theme}#{$heading}#{$h6}#{$weight}: 500;
129
+ #{$theme}#{$heading}#{$h6}#{$size}: 0.875rem;
130
+
131
+ // input
132
+ #{$theme}#{$input}#{$color}: #ffffff;
133
+ #{$theme}#{$input}#{$background}: #222222;
134
+ #{$theme}#{$input}#{$border}: 0.125rem solid #444444;
135
+ #{$theme}#{$input}#{$radius}: 0.5rem;
136
+ #{$theme}#{$input}#{$height}: 2rem;
137
+ #{$theme}#{$input}#{$padding}#{$horizontal}: 0.5rem;
138
+ #{$theme}#{$input}#{$transition}: all 0.2s ease-in-out;
139
+ // focus
140
+ #{$theme}#{$input}#{$focus}#{$color}: #ffffff;
141
+ #{$theme}#{$input}#{$focus}#{$background}: #333333;
142
+ #{$theme}#{$input}#{$focus}#{$border}: 0.125rem solid #555555;
143
+
144
+ // button
145
+ #{$theme}#{$button}#{$color}: #ffffff;
146
+ #{$theme}#{$button}#{$background}: #444444;
147
+ #{$theme}#{$button}#{$border}: 0.125rem solid #444444;
148
+ #{$theme}#{$button}#{$font}#{$size}: 0.9rem;
149
+ #{$theme}#{$button}#{$font}#{$weight}: 400;
150
+ #{$theme}#{$button}#{$radius}: 0.5rem;
151
+ #{$theme}#{$button}#{$padding}#{$horizontal}: 0.5rem;
152
+ #{$theme}#{$button}#{$transition}: all 0.2s ease-in-out;
153
+ // hover
154
+ #{$theme}#{$button}#{$hover}#{$color}: #ffffff;
155
+ #{$theme}#{$button}#{$hover}#{$background}: #555555;
156
+ #{$theme}#{$button}#{$hover}#{$border}: 0.125rem solid #555555;
157
+ #{$theme}#{$button}#{$hover}#{$radius}: 0.5rem;
158
+ #{$theme}#{$button}#{$hover}#{$transition}: all 50ms ease-in-out;
159
+ // active
160
+ #{$theme}#{$button}#{$active}#{$color}: #000000;
161
+ #{$theme}#{$button}#{$active}#{$background}: #666666;
162
+ #{$theme}#{$button}#{$active}#{$border}: 0.125rem solid #555555;
163
+ #{$theme}#{$button}#{$active}#{$radius}: 0.5rem;
164
+
165
+ // header
166
+ #{$theme}#{$header}#{$color}: #ffffff;
167
+ #{$theme}#{$header}#{$font}#{$family}: Inter;
168
+ #{$theme}#{$header}#{$font}#{$size}: 1.2rem;
169
+ #{$theme}#{$header}#{$font}#{$weight}: 700;
170
+ #{$theme}#{$header}#{$padding}#{$vertical}: 0.5rem;
171
+ #{$theme}#{$header}#{$padding}#{$horizontal}: 0.25rem;
172
+ }
173
+
174
+ .level2 {
175
+ color: var(#{$theme+$color});
176
+
177
+ #{$theme}#{$color}: #ffffff;
178
+ #{$theme}#{$background}: #444444;
179
+ #{$theme}#{$border}: 0.125rem solid #555555;
180
+ #{$theme}#{$accent}: #768ce7;
181
+ #{$theme}#{$radius}: 0.25rem;
182
+ #{$theme}#{$padding}: 0.5rem;
183
+ #{$theme}#{$gap}: 0.75rem;
184
+ #{$theme}#{$transition}: all 200ms ease-in-out;
185
+ #{$theme}#{$separator}#{$size}: 0.125rem;
186
+ #{$theme}#{$separator}#{$color}: #555555;
187
+
188
+ // heading
189
+ #{$theme}#{$heading}#{$h1}#{$weight}: 900;
190
+ #{$theme}#{$heading}#{$h1}#{$size}: 3rem;
191
+ #{$theme}#{$heading}#{$h2}#{$weight}: 700;
192
+ #{$theme}#{$heading}#{$h2}#{$size}: 2rem;
193
+ #{$theme}#{$heading}#{$h3}#{$weight}: 600;
194
+ #{$theme}#{$heading}#{$h3}#{$size}: 1.5rem;
195
+ #{$theme}#{$heading}#{$h4}#{$weight}: 500;
196
+ #{$theme}#{$heading}#{$h4}#{$size}: 1.25rem;
197
+ #{$theme}#{$heading}#{$h5}#{$weight}: 500;
198
+ #{$theme}#{$heading}#{$h5}#{$size}: 1rem;
199
+ #{$theme}#{$heading}#{$h6}#{$weight}: 500;
200
+ #{$theme}#{$heading}#{$h6}#{$size}: 0.875rem;
201
+
202
+ // text button
203
+ #{$theme+$textbutton+$font+$weight}: 700;
204
+
205
+ // font
206
+ #{$theme}#{$font}#{$family}: Inter;
207
+ #{$theme}#{$font}#{$size}: 0.9rem;
208
+ #{$theme}#{$font}#{$weight}: 400;
209
+
210
+ // input
211
+ #{$theme}#{$input}#{$color}: #ffffff;
212
+ #{$theme}#{$input}#{$background}: #222222;
213
+ #{$theme}#{$input}#{$border}: 0.125rem solid #444444;
214
+ #{$theme}#{$input}#{$radius}: 0.5rem;
215
+ #{$theme}#{$input}#{$height}: 2rem;
216
+ #{$theme}#{$input}#{$padding}#{$horizontal}: 0.5rem;
217
+ #{$theme}#{$input}#{$transition}: all 0.2s ease-in-out;
218
+ // focus
219
+ #{$theme}#{$input}#{$focus}#{$color}: #ffffff;
220
+ #{$theme}#{$input}#{$focus}#{$background}: #333333;
221
+ #{$theme}#{$input}#{$focus}#{$border}: 0.125rem solid #555555;
222
+
223
+ // button
224
+ #{$theme}#{$button}#{$color}: #ffffff;
225
+ #{$theme}#{$button}#{$background}: #555555;
226
+ #{$theme}#{$button}#{$border}: 0.125rem solid #555555;
227
+ #{$theme}#{$button}#{$font}#{$family}: Inter;
228
+ #{$theme}#{$button}#{$font}#{$size}: 0.9rem;
229
+ #{$theme}#{$button}#{$font}#{$weight}: 400;
230
+ #{$theme}#{$button}#{$radius}: 0.25rem;
231
+ #{$theme}#{$button}#{$padding}#{$horizontal}: 0.5rem;
232
+ #{$theme}#{$button}#{$transition}: all 0.2s ease-in-out;
233
+ // hover
234
+ #{$theme}#{$button}#{$hover}#{$color}: #ffffff;
235
+ #{$theme}#{$button}#{$hover}#{$background}: #666666;
236
+ #{$theme}#{$button}#{$hover}#{$border}: 0.125rem solid #666666;
237
+ #{$theme}#{$button}#{$hover}#{$radius}: 0.25rem;
238
+ #{$theme}#{$button}#{$hover}#{$transition}: all 50ms ease-in-out;
239
+ // active
240
+ #{$theme}#{$button}#{$active}#{$color}: #000000;
241
+ #{$theme}#{$button}#{$active}#{$background}bg: #666666;
242
+ #{$theme}#{$button}#{$active}#{$border}: 0.125rem solid #666666;
243
+ #{$theme}#{$button}#{$active}#{$radius}: 0.25rem;
244
+
245
+ // header
246
+ #{$theme}#{$header}#{$color}: #ffffff;
247
+ #{$theme}#{$header}#{$font}#{$family}: Inter;
248
+ #{$theme}#{$header}#{$font}#{$size}: 1.2rem;
249
+ #{$theme}#{$header}#{$font}#{$weight}: 700;
250
+ #{$theme}#{$header}#{$padding}#{$vertical}: 0.5rem;
251
+ #{$theme}#{$header}#{$padding}#{$horizontal}: 0.25rem;
252
+ }
253
+
254
+ .level3 {
255
+ color: var(#{$theme+$color});
256
+
257
+ #{$theme}#{$color}: #ffffff;
258
+ #{$theme}#{$background}: #555555;
259
+ #{$theme}#{$border}: 0.125rem solid #666666;
260
+ #{$theme}#{$accent}: #768ce7;
261
+ #{$theme}#{$radius}: 0.125rem;
262
+ #{$theme}#{$padding}: 0.5rem;
263
+ #{$theme}#{$gap}: 1rem;
264
+ #{$theme}#{$transition}: all 200ms ease-in-out;
265
+ #{$theme}#{$separator}#{$size}: 0.125rem;
266
+ #{$theme}#{$separator}#{$color}: #555555;
267
+
268
+ // heading
269
+ #{$theme}#{$heading}#{$h1}#{$weight}: 900;
270
+ #{$theme}#{$heading}#{$h1}#{$size}: 3rem;
271
+ #{$theme}#{$heading}#{$h2}#{$weight}: 700;
272
+ #{$theme}#{$heading}#{$h2}#{$size}: 2rem;
273
+ #{$theme}#{$heading}#{$h3}#{$weight}: 600;
274
+ #{$theme}#{$heading}#{$h3}#{$size}: 1.5rem;
275
+ #{$theme}#{$heading}#{$h4}#{$weight}: 500;
276
+ #{$theme}#{$heading}#{$h4}#{$size}: 1.25rem;
277
+ #{$theme}#{$heading}#{$h5}#{$weight}: 500;
278
+ #{$theme}#{$heading}#{$h5}#{$size}: 1rem;
279
+ #{$theme}#{$heading}#{$h6}#{$weight}: 500;
280
+ #{$theme}#{$heading}#{$h6}#{$size}: 0.875rem;
281
+
282
+ // text button
283
+ #{$theme+$textbutton+$font+$weight}: 700;
284
+
285
+ // font
286
+ #{$theme}#{$family}: Inter;
287
+ #{$theme}#{$size}: 0.9rem;
288
+ #{$theme}#{$weight}: 400;
289
+
290
+ // input
291
+ #{$theme}#{$input}#{$color}: #ffffff;
292
+ #{$theme}#{$input}#{$background}: #222222;
293
+ #{$theme}#{$input}#{$border}: 0.125rem solid #444444;
294
+ #{$theme}#{$input}#{$radius}: 0.5rem;
295
+ #{$theme}#{$input}#{$height}: 2rem;
296
+ #{$theme}#{$input}#{$padding}#{$horizontal}: 0.5rem;
297
+ #{$theme}#{$input}#{$transition}: all 0.2s ease-in-out;
298
+ // focus
299
+ #{$theme}#{$input}#{$focus}#{$color}: #ffffff;
300
+ #{$theme}#{$input}#{$focus}#{$background}: #333333;
301
+ #{$theme}#{$input}#{$focus}#{$border}: 0.125rem solid #555555;
302
+
303
+ // button
304
+ #{$theme}#{$button}#{$color}: #ffffff;
305
+ #{$theme}#{$button}#{$background}: #666666;
306
+ #{$theme}#{$button}#{$border}: 0.125rem solid #666666;
307
+ #{$theme}#{$button}#{$font}#{$family}: Inter;
308
+ #{$theme}#{$button}#{$font}#{$size}: 0.9rem;
309
+ #{$theme}#{$button}#{$font}#{$weight}: 400;
310
+ #{$theme}#{$button}#{$radius}: 0.25rem;
311
+ #{$theme}#{$button}#{$padding}#{$horizontal}: 0.5rem;
312
+ // hover
313
+ #{$theme}#{$button}#{$hover}#{$color}: #ffffff;
314
+ #{$theme}#{$button}#{$hover}#{$background}: #777777;
315
+ #{$theme}#{$button}#{$hover}#{$border}: 0.125rem solid #777777;
316
+ #{$theme}#{$button}#{$hover}#{$radius}: 0.25rem;
317
+ #{$theme}#{$button}#{$hover}#{$transition}: all 50ms ease-in-out;
318
+ // active
319
+ #{$theme}#{$button}#{$active}#{$color}: #000000;
320
+ #{$theme}#{$button}#{$active}#{$background}: #777777;
321
+ #{$theme}#{$button}#{$active}#{$border}: 0.125rem solid #777777;
322
+ #{$theme}#{$button}#{$active}#{$radius}: 0.25rem;
323
+
324
+ // header
325
+ #{$theme}#{$header}#{$color}: #ffffff;
326
+ #{$theme}#{$header}#{$font}#{$family}: Inter;
327
+ #{$theme}#{$header}#{$font}#{$size}: 1.2rem;
328
+ #{$theme}#{$header}#{$font}#{$weight}: 700;
329
+ #{$theme}#{$header}#{$padding}#{$vertical}: 0.5rem;
330
+ #{$theme}#{$header}#{$padding}#{$horizontal}: 0.25rem;
331
+ }
332
+
333
+ .mobile {
334
+ .level0 {
335
+ #{$theme+$input+$height}: 2.5rem;
336
+ }
337
+
338
+ .level1 {
339
+ #{$theme+$input+$height}: 2.5rem;
340
+ }
341
+
342
+ .level2 {
343
+ #{$theme+$input+$height}: 2.5rem;
344
+ }
345
+
346
+ .level3 {
347
+ #{$theme+$input+$height}: 2.5rem;
348
+ }
349
+ }
@@ -0,0 +1,46 @@
1
+ /*!
2
+ * Copyright ©2024 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
+ $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: "trn";
19
+ $font: "fnt";
20
+ $size: "siz";
21
+ $weight: "wgt";
22
+ $family: "fam";
23
+ $vertical: "vrt";
24
+ $horizontal: "hrt";
25
+ $header: "hed";
26
+ $separator: "sep";
27
+ $height: "hei";
28
+ $heading: "hed";
29
+ $input: "inp";
30
+ $focus: "foc";
31
+ $textbutton: "txb";
32
+ $h1: "he1";
33
+ $h2: "he2";
34
+ $h3: "he3";
35
+ $h4: "he4";
36
+ $h5: "he5";
37
+ $h6: "he6";
38
+
39
+ $sizeMobile: 440px;
40
+ $sizeLargeMobile: 560px;
41
+ $sizeTablet: 768px;
42
+ $sizeLargeTablet: 960px;
43
+ $sizeSmallDesktop: 1200px;
44
+ $sizeMediumDesktop: 1440px;
45
+ $sizeLargeDesktop: 1920px;
46
+ $sizeWideDesktop: 2560px;
package/tsconfig.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "compilerOptions": {
3
+ "strict": true,
4
+ "target": "ESNext",
5
+ "module": "ESNext",
6
+ "moduleResolution": "node",
7
+ "allowSyntheticDefaultImports": true,
8
+ "esModuleInterop": true,
9
+ "jsx": "preserve",
10
+ "jsxImportSource": "react",
11
+ "types": ["vite/client"],
12
+ "noEmit": true,
13
+ "isolatedModules": true,
14
+ },
15
+ "include": [
16
+ "./**/*",
17
+ "../applications/**/frontend/**/*",
18
+ "../shared/**/*"
19
+ ]
20
+ }