yuyeon 0.0.0 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (386) hide show
  1. package/dist/style.css +1 -0
  2. package/dist/yuyeon.mjs +3607 -0
  3. package/dist/yuyeon.umd.js +1 -0
  4. package/lib/components/app/YApp.mjs +30 -0
  5. package/lib/components/app/YApp.mjs.map +1 -0
  6. package/lib/components/app/YApp.scss +14 -0
  7. package/lib/components/app/index.mjs +2 -0
  8. package/lib/components/app/index.mjs.map +1 -0
  9. package/lib/components/bench/YBench.mjs +44 -0
  10. package/lib/components/bench/YBench.mjs.map +1 -0
  11. package/lib/components/bench/index.mjs +2 -0
  12. package/lib/components/bench/index.mjs.map +1 -0
  13. package/lib/components/button/YButton.mjs +138 -0
  14. package/lib/components/button/YButton.mjs.map +1 -0
  15. package/{src/components/button/y-btn.scss → lib/components/button/YButton.scss} +67 -29
  16. package/lib/components/button/index.mjs +2 -0
  17. package/lib/components/button/index.mjs.map +1 -0
  18. package/lib/components/card/YCard.mjs +18 -0
  19. package/lib/components/card/YCard.mjs.map +1 -0
  20. package/lib/components/card/YCardBody.mjs +10 -0
  21. package/lib/components/card/YCardBody.mjs.map +1 -0
  22. package/lib/components/card/YCardFooter.mjs +10 -0
  23. package/lib/components/card/YCardFooter.mjs.map +1 -0
  24. package/lib/components/card/YCardHeader.mjs +10 -0
  25. package/lib/components/card/YCardHeader.mjs.map +1 -0
  26. package/lib/components/card/index.mjs +6 -0
  27. package/lib/components/card/index.mjs.map +1 -0
  28. package/lib/components/checkbox/YCheckbox.mjs +154 -0
  29. package/lib/components/checkbox/YCheckbox.mjs.map +1 -0
  30. package/lib/components/checkbox/YInputCheckbox.mjs +113 -0
  31. package/lib/components/checkbox/YInputCheckbox.mjs.map +1 -0
  32. package/{src/components/checkbox/y-input-checkbox.scss → lib/components/checkbox/YInputCheckbox.scss} +19 -19
  33. package/lib/components/checkbox/index.mjs +5 -0
  34. package/lib/components/checkbox/index.mjs.map +1 -0
  35. package/{src/components/chip/y-chip.vue → lib/components/chip/YChip.mjs} +26 -27
  36. package/lib/components/chip/YChip.mjs.map +1 -0
  37. package/{src/components/chip/y-chip.scss → lib/components/chip/YChip.scss} +0 -4
  38. package/lib/components/chip/index.mjs +3 -0
  39. package/lib/components/chip/index.mjs.map +1 -0
  40. package/lib/components/dialog/YDialog.mjs +97 -0
  41. package/lib/components/dialog/YDialog.mjs.map +1 -0
  42. package/lib/components/dialog/index.mjs +2 -0
  43. package/lib/components/dialog/index.mjs.map +1 -0
  44. package/lib/components/field-input/YFieldInput.mjs +218 -0
  45. package/lib/components/field-input/YFieldInput.mjs.map +1 -0
  46. package/{src/components/field-input/y-field-input.scss → lib/components/field-input/YFieldInput.scss} +2 -4
  47. package/lib/components/field-input/index.mjs +2 -0
  48. package/lib/components/field-input/index.mjs.map +1 -0
  49. package/lib/components/form/YForm.mjs +79 -0
  50. package/lib/components/form/YForm.mjs.map +1 -0
  51. package/lib/components/form/index.mjs +4 -0
  52. package/lib/components/form/index.mjs.map +1 -0
  53. package/lib/components/icons/YIconCheckbox.mjs +21 -0
  54. package/lib/components/icons/YIconCheckbox.mjs.map +1 -0
  55. package/lib/components/icons/YIconClear.mjs +16 -0
  56. package/lib/components/icons/YIconClear.mjs.map +1 -0
  57. package/lib/components/icons/YIconExpand.mjs +20 -0
  58. package/lib/components/icons/YIconExpand.mjs.map +1 -0
  59. package/lib/components/icons/index.mjs +4 -0
  60. package/lib/components/icons/index.mjs.map +1 -0
  61. package/lib/components/index.mjs +24 -0
  62. package/lib/components/index.mjs.map +1 -0
  63. package/lib/components/input/YInput.mjs +346 -0
  64. package/lib/components/input/YInput.mjs.map +1 -0
  65. package/{src/components/input/y-input.scss → lib/components/input/YInput.scss} +12 -4
  66. package/lib/components/input/index.mjs +2 -0
  67. package/lib/components/input/index.mjs.map +1 -0
  68. package/lib/components/input/index.scss +2 -0
  69. package/lib/components/layer/YLayer.mjs +193 -0
  70. package/lib/components/layer/YLayer.mjs.map +1 -0
  71. package/lib/components/layer/index.mjs +2 -0
  72. package/lib/components/layer/index.mjs.map +1 -0
  73. package/lib/components/layer/scroll-strategies.mjs +132 -0
  74. package/lib/components/layer/scroll-strategies.mjs.map +1 -0
  75. package/lib/components/list/YList.mjs +16 -0
  76. package/lib/components/list/YList.mjs.map +1 -0
  77. package/lib/components/list/YList.scss +3 -0
  78. package/lib/components/list/YListItem.mjs +37 -0
  79. package/lib/components/list/YListItem.mjs.map +1 -0
  80. package/lib/components/list/YListItem.scss +59 -0
  81. package/lib/components/list/index.mjs +3 -0
  82. package/lib/components/list/index.mjs.map +1 -0
  83. package/lib/components/loading/YSpinnerRing.mjs +25 -0
  84. package/lib/components/loading/YSpinnerRing.mjs.map +1 -0
  85. package/{src/components/ring-spinner/y-ring-spinner.scss → lib/components/loading/YSpinnerRing.scss} +3 -3
  86. package/lib/components/loading/index.mjs +2 -0
  87. package/lib/components/loading/index.mjs.map +1 -0
  88. package/lib/components/menu/YMenu.mjs +239 -0
  89. package/lib/components/menu/YMenu.mjs.map +1 -0
  90. package/lib/components/menu/YMenu.scss +7 -0
  91. package/lib/components/menu/index.mjs +2 -0
  92. package/lib/components/menu/index.mjs.map +1 -0
  93. package/lib/components/navigation/YNavigation.mjs +17 -0
  94. package/lib/components/navigation/YNavigation.mjs.map +1 -0
  95. package/lib/components/navigation/index.mjs +2 -0
  96. package/lib/components/navigation/index.mjs.map +1 -0
  97. package/lib/components/pagination/YPagination.mjs +61 -0
  98. package/lib/components/pagination/YPagination.mjs.map +1 -0
  99. package/lib/components/pagination/YPagination.scss +5 -0
  100. package/lib/components/pagination/index.mjs +2 -0
  101. package/lib/components/pagination/index.mjs.map +1 -0
  102. package/lib/components/panel/YDividePanel.mjs +89 -0
  103. package/lib/components/panel/YDividePanel.mjs.map +1 -0
  104. package/lib/components/panel/YDividePanel.scss +43 -0
  105. package/lib/components/panel/index.mjs +2 -0
  106. package/lib/components/panel/index.mjs.map +1 -0
  107. package/lib/components/plate/YPlate.mjs +27 -0
  108. package/lib/components/plate/YPlate.mjs.map +1 -0
  109. package/lib/components/plate/YPlate.scss +9 -0
  110. package/lib/components/plate/index.mjs +2 -0
  111. package/lib/components/plate/index.mjs.map +1 -0
  112. package/lib/components/progress-bar/YProgressBar.mjs +110 -0
  113. package/lib/components/progress-bar/YProgressBar.mjs.map +1 -0
  114. package/lib/components/progress-bar/YProgressBar.scss +40 -0
  115. package/lib/components/progress-bar/index.mjs +2 -0
  116. package/lib/components/progress-bar/index.mjs.map +1 -0
  117. package/lib/components/snackbar/YSnackbar.mjs +187 -0
  118. package/lib/components/snackbar/YSnackbar.mjs.map +1 -0
  119. package/lib/components/snackbar/YSnackbar.scss +38 -0
  120. package/lib/components/snackbar/index.mjs +2 -0
  121. package/lib/components/snackbar/index.mjs.map +1 -0
  122. package/lib/components/switch/YSwitch.mjs +228 -0
  123. package/lib/components/switch/YSwitch.mjs.map +1 -0
  124. package/{src/components/switch/y-switch.scss → lib/components/switch/YSwitch.scss} +18 -26
  125. package/lib/components/switch/index.mjs +2 -0
  126. package/lib/components/switch/index.mjs.map +1 -0
  127. package/lib/components/table/YDataTable.mjs +46 -0
  128. package/lib/components/table/YDataTable.mjs.map +1 -0
  129. package/lib/components/table/YDataTableBody.mjs +12 -0
  130. package/lib/components/table/YDataTableBody.mjs.map +1 -0
  131. package/lib/components/table/YDataTableCell.mjs +55 -0
  132. package/lib/components/table/YDataTableCell.mjs.map +1 -0
  133. package/lib/components/table/YDataTableControl.mjs +37 -0
  134. package/lib/components/table/YDataTableControl.mjs.map +1 -0
  135. package/lib/components/table/YDataTableControl.scss +6 -0
  136. package/lib/components/table/YDataTableHead.mjs +12 -0
  137. package/lib/components/table/YDataTableHead.mjs.map +1 -0
  138. package/lib/components/table/YDataTableLayer.mjs +14 -0
  139. package/lib/components/table/YDataTableLayer.mjs.map +1 -0
  140. package/lib/components/table/YDataTableRow.mjs +12 -0
  141. package/lib/components/table/YDataTableRow.mjs.map +1 -0
  142. package/lib/components/table/YDataTableServer.mjs +54 -0
  143. package/lib/components/table/YDataTableServer.mjs.map +1 -0
  144. package/lib/components/table/YTable.mjs +53 -0
  145. package/lib/components/table/YTable.mjs.map +1 -0
  146. package/lib/components/table/YTable.scss +61 -0
  147. package/lib/components/table/index.mjs +4 -0
  148. package/lib/components/table/index.mjs.map +1 -0
  149. package/lib/components/table/pagination.mjs +21 -0
  150. package/lib/components/table/pagination.mjs.map +1 -0
  151. package/lib/components/text-highlighter/YTextHighlighter.mjs +94 -0
  152. package/lib/components/text-highlighter/YTextHighlighter.mjs.map +1 -0
  153. package/lib/components/text-highlighter/index.mjs +3 -0
  154. package/lib/components/text-highlighter/index.mjs.map +1 -0
  155. package/lib/components/tooltip/YTooltip.mjs +209 -0
  156. package/lib/components/tooltip/YTooltip.mjs.map +1 -0
  157. package/lib/components/tooltip/YTooltip.scss +19 -0
  158. package/lib/components/tooltip/index.mjs +2 -0
  159. package/lib/components/tooltip/index.mjs.map +1 -0
  160. package/lib/components/transitions/expand-transition.mjs +88 -0
  161. package/lib/components/transitions/expand-transition.mjs.map +1 -0
  162. package/lib/components/transitions/index.mjs +4 -0
  163. package/lib/components/transitions/index.mjs.map +1 -0
  164. package/lib/components/tree-view/YTreeView.mjs +92 -0
  165. package/lib/components/tree-view/YTreeView.mjs.map +1 -0
  166. package/lib/components/tree-view/YTreeView.scss +46 -0
  167. package/lib/components/tree-view/YTreeViewNode.mjs +122 -0
  168. package/lib/components/tree-view/YTreeViewNode.mjs.map +1 -0
  169. package/lib/components/tree-view/index.mjs +3 -0
  170. package/lib/components/tree-view/index.mjs.map +1 -0
  171. package/lib/composables/collections.mjs +2 -0
  172. package/lib/composables/collections.mjs.map +1 -0
  173. package/lib/composables/communication.mjs +46 -0
  174. package/lib/composables/communication.mjs.map +1 -0
  175. package/lib/composables/component.mjs +8 -0
  176. package/lib/composables/component.mjs.map +1 -0
  177. package/{src/composables/layer-group.ts → lib/composables/layer-group.mjs} +8 -10
  178. package/lib/composables/layer-group.mjs.map +1 -0
  179. package/lib/composables/layout.mjs +13 -0
  180. package/lib/composables/layout.mjs.map +1 -0
  181. package/lib/composables/levitation.mjs +135 -0
  182. package/lib/composables/levitation.mjs.map +1 -0
  183. package/{src/composables/progress.ts → lib/composables/progress.mjs} +6 -5
  184. package/lib/composables/progress.mjs.map +1 -0
  185. package/lib/composables/resize-observer.mjs +34 -0
  186. package/lib/composables/resize-observer.mjs.map +1 -0
  187. package/lib/composables/scope.mjs +27 -0
  188. package/lib/composables/scope.mjs.map +1 -0
  189. package/lib/composables/theme/index.mjs +49 -0
  190. package/lib/composables/theme/index.mjs.map +1 -0
  191. package/lib/composables/theme/setting.mjs +46 -0
  192. package/lib/composables/theme/setting.mjs.map +1 -0
  193. package/lib/composables/timing.mjs +77 -0
  194. package/lib/composables/timing.mjs.map +1 -0
  195. package/lib/composables/transition.mjs +50 -0
  196. package/lib/composables/transition.mjs.map +1 -0
  197. package/lib/directives/complement-click/index.mjs +78 -0
  198. package/lib/directives/complement-click/index.mjs.map +1 -0
  199. package/{src/directives/plate-wave/index.ts → lib/directives/plate-wave/index.mjs} +25 -42
  200. package/lib/directives/plate-wave/index.mjs.map +1 -0
  201. package/{src → lib}/directives/plate-wave/plate-wave.scss +1 -1
  202. package/lib/directives/theme-class.mjs +24 -0
  203. package/lib/directives/theme-class.mjs.map +1 -0
  204. package/lib/etc/index.mjs +6 -0
  205. package/lib/etc/index.mjs.map +1 -0
  206. package/lib/index.mjs +55 -0
  207. package/lib/index.mjs.map +1 -0
  208. package/{src/mixins/di.ts → lib/mixins/di.mjs} +7 -8
  209. package/lib/mixins/di.mjs.map +1 -0
  210. package/{src/mixins/rebind-attrs.ts → lib/mixins/rebind-attrs.mjs} +9 -8
  211. package/lib/mixins/rebind-attrs.mjs.map +1 -0
  212. package/{src/styles/palette.scss → lib/styles/_palette.scss} +0 -4
  213. package/lib/styles/base.scss +95 -0
  214. package/lib/styles/settings/_variables.scss +14 -0
  215. package/lib/styles/settings/provided.scss +35 -0
  216. package/lib/styles/theme/dark.scss +21 -0
  217. package/{src → lib}/styles/theme/index.scss +0 -3
  218. package/lib/styles/theme/light.scss +21 -0
  219. package/lib/util/FrameScheduler.mjs +29 -0
  220. package/lib/util/FrameScheduler.mjs.map +1 -0
  221. package/lib/util/Rect.mjs +27 -0
  222. package/lib/util/Rect.mjs.map +1 -0
  223. package/lib/util/common.mjs +66 -0
  224. package/lib/util/common.mjs.map +1 -0
  225. package/lib/util/dom.mjs +8 -0
  226. package/lib/util/dom.mjs.map +1 -0
  227. package/lib/util/scroll.mjs +28 -0
  228. package/lib/util/scroll.mjs.map +1 -0
  229. package/lib/util/string.mjs +33 -0
  230. package/lib/util/string.mjs.map +1 -0
  231. package/lib/util/ui.mjs +83 -0
  232. package/lib/util/ui.mjs.map +1 -0
  233. package/lib/util/validation.mjs +5 -0
  234. package/lib/util/validation.mjs.map +1 -0
  235. package/lib/util/vue-component.mjs +64 -0
  236. package/lib/util/vue-component.mjs.map +1 -0
  237. package/package.json +62 -22
  238. package/types/components/app/YApp.d.ts +7 -0
  239. package/types/components/app/index.d.ts +1 -0
  240. package/types/components/button/YButton.d.ts +122 -0
  241. package/types/components/button/index.d.ts +1 -0
  242. package/types/components/card/YCard.d.ts +11 -0
  243. package/types/components/card/YCardBody.d.ts +2 -0
  244. package/types/components/card/YCardFooter.d.ts +2 -0
  245. package/types/components/card/YCardHeader.d.ts +2 -0
  246. package/types/components/card/index.d.ts +5 -0
  247. package/types/components/checkbox/YCheckbox.d.ts +46 -0
  248. package/types/components/checkbox/YInputCheckbox.d.ts +42 -0
  249. package/types/components/checkbox/index.d.ts +4 -0
  250. package/types/components/chip/YChip.d.ts +34 -0
  251. package/types/components/chip/index.d.ts +2 -0
  252. package/types/components/dialog/YDialog.d.ts +120 -0
  253. package/types/components/dialog/index.d.ts +1 -0
  254. package/types/components/field-input/YFieldInput.d.ts +118 -0
  255. package/types/components/field-input/index.d.ts +1 -0
  256. package/types/components/form/YForm.d.ts +32 -0
  257. package/types/components/form/index.d.ts +3 -0
  258. package/types/components/icons/YIconCheckbox.d.ts +1 -0
  259. package/types/components/icons/YIconClear.d.ts +1 -0
  260. package/types/components/icons/YIconExpand.d.ts +1 -0
  261. package/types/components/icons/index.d.ts +3 -0
  262. package/types/components/index.d.ts +23 -0
  263. package/types/components/input/YInput.d.ts +166 -0
  264. package/types/components/input/index.d.ts +1 -0
  265. package/types/components/layer/YLayer.d.ts +99 -0
  266. package/types/components/layer/index.d.ts +1 -0
  267. package/types/components/list/YList.d.ts +2 -0
  268. package/types/components/list/YListItem.d.ts +28 -0
  269. package/types/components/list/index.d.ts +2 -0
  270. package/types/components/loading/YSpinnerRing.d.ts +1 -0
  271. package/types/components/loading/index.d.ts +1 -0
  272. package/types/components/menu/YMenu.d.ts +236 -0
  273. package/types/components/menu/index.d.ts +1 -0
  274. package/types/components/pagination/YPagination.d.ts +106 -0
  275. package/types/components/pagination/index.d.ts +1 -0
  276. package/types/components/panel/YDividePanel.d.ts +3 -0
  277. package/types/components/panel/index.d.ts +1 -0
  278. package/types/components/plate/YPlate.d.ts +10 -0
  279. package/types/components/plate/index.d.ts +1 -0
  280. package/types/components/progress-bar/YProgressBar.d.ts +59 -0
  281. package/types/components/progress-bar/index.d.ts +1 -0
  282. package/types/components/snackbar/YSnackbar.d.ts +77 -0
  283. package/types/components/snackbar/index.d.ts +1 -0
  284. package/types/components/switch/YSwitch.d.ts +106 -0
  285. package/types/components/switch/index.d.ts +1 -0
  286. package/types/components/table/YDataTable.d.ts +63 -0
  287. package/types/components/table/YDataTableBody.d.ts +2 -0
  288. package/types/components/table/YDataTableControl.d.ts +2 -0
  289. package/types/components/table/YDataTableHead.d.ts +2 -0
  290. package/types/components/table/YDataTableLayer.d.ts +2 -0
  291. package/types/components/table/YDataTableServer.d.ts +82 -0
  292. package/types/components/table/YTable.d.ts +32 -0
  293. package/types/components/table/index.d.ts +3 -0
  294. package/types/components/table/pagination.d.ts +38 -0
  295. package/types/components/tooltip/YTooltip.d.ts +188 -0
  296. package/types/components/tooltip/index.d.ts +1 -0
  297. package/types/components/transitions/expand-transition.d.ts +16 -0
  298. package/types/components/transitions/index.d.ts +32 -0
  299. package/types/components/tree-view/YTreeView.d.ts +37 -0
  300. package/types/components/tree-view/YTreeViewNode.d.ts +51 -0
  301. package/types/components/tree-view/index.d.ts +2 -0
  302. package/types/composables/communication.d.ts +1 -0
  303. package/types/composables/component.d.ts +2 -0
  304. package/types/composables/layer-group.d.ts +5 -0
  305. package/types/composables/progress.d.ts +3 -0
  306. package/types/composables/resize-observer.d.ts +14 -0
  307. package/types/composables/scope.d.ts +2 -0
  308. package/types/composables/theme/index.d.ts +15 -0
  309. package/types/composables/theme/setting.d.ts +12 -0
  310. package/types/composables/timing.d.ts +15 -0
  311. package/types/composables/transition.d.ts +21 -0
  312. package/types/directives/complement-click/index.d.ts +25 -0
  313. package/types/directives/plate-wave/index.d.ts +13 -0
  314. package/types/directives/theme-class.d.ts +3 -0
  315. package/types/etc/index.d.ts +1 -0
  316. package/types/globals.d.ts +11 -0
  317. package/types/index.d.ts +9 -0
  318. package/types/mixins/di.d.ts +2 -0
  319. package/types/mixins/rebind-attrs.d.ts +5 -0
  320. package/types/shims.d.ts +71 -0
  321. package/types/util/common.d.ts +8 -0
  322. package/types/util/dom.d.ts +1 -0
  323. package/types/util/string.d.ts +3 -0
  324. package/types/util/ui.d.ts +9 -0
  325. package/types/util/vue-component.d.ts +33 -0
  326. package/types/vite-env.d.ts +1 -0
  327. package/src/components/button/index.ts +0 -3
  328. package/src/components/button/y-btn.ts +0 -104
  329. package/src/components/card/index.ts +0 -6
  330. package/src/components/card/y-card-body.ts +0 -8
  331. package/src/components/card/y-card-footer.ts +0 -8
  332. package/src/components/card/y-card-header.ts +0 -8
  333. package/src/components/card/y-card.ts +0 -16
  334. package/src/components/checkbox/IconCheckbox.vue +0 -24
  335. package/src/components/checkbox/YCheckbox.vue +0 -113
  336. package/src/components/checkbox/YInputCheckbox.vue +0 -108
  337. package/src/components/checkbox/index.ts +0 -8
  338. package/src/components/chip/index.ts +0 -3
  339. package/src/components/dialog/index.ts +0 -3
  340. package/src/components/dialog/y-dialog.vue +0 -46
  341. package/src/components/field-input/index.scss +0 -5
  342. package/src/components/field-input/index.ts +0 -11
  343. package/src/components/field-input/y-field-input.ts +0 -214
  344. package/src/components/form/index.ts +0 -9
  345. package/src/components/form/y-form.ts +0 -93
  346. package/src/components/icons/icon-clearable.ts +0 -6
  347. package/src/components/index.ts +0 -17
  348. package/src/components/input/index.scss +0 -5
  349. package/src/components/input/index.ts +0 -9
  350. package/src/components/input/y-input.ts +0 -368
  351. package/src/components/layer/index.ts +0 -3
  352. package/src/components/layer/y-layer.vue +0 -146
  353. package/src/components/lottie-player.ts +0 -41
  354. package/src/components/progress-bar/index.ts +0 -3
  355. package/src/components/progress-bar/y-progress-bar.vue +0 -144
  356. package/src/components/ring-spinner/y-ring-spinner.vue +0 -31
  357. package/src/components/switch/YSwitch.vue +0 -217
  358. package/src/components/switch/index.scss +0 -5
  359. package/src/components/switch/index.ts +0 -11
  360. package/src/components/text-highlighter/index.scss +0 -5
  361. package/src/components/text-highlighter/index.ts +0 -3
  362. package/src/components/text-highlighter/y-text-highlighter.ts +0 -89
  363. package/src/composables/lazy.ts +0 -30
  364. package/src/composables/theme.ts +0 -25
  365. package/src/directives/complement-click/index.ts +0 -123
  366. package/src/directives/theme-class.ts +0 -14
  367. package/src/file-extension.d.ts +0 -14
  368. package/src/index.ts +0 -21
  369. package/src/styles/base.scss +0 -28
  370. package/src/styles/theme/dark.scss +0 -35
  371. package/src/styles/theme/light.scss +0 -32
  372. package/src/util/common.ts +0 -59
  373. package/src/util/date-time.ts +0 -41
  374. package/src/util/dom.ts +0 -6
  375. package/src/util/string.ts +0 -9
  376. package/src/util/ui.ts +0 -39
  377. package/src/util/validation.ts +0 -9
  378. package/src/util/vue-component.ts +0 -18
  379. /package/{src/components/card/y-card.scss → lib/components/card/YCard.scss} +0 -0
  380. /package/{src/components/checkbox/y-checkbox.scss → lib/components/checkbox/YCheckbox.scss} +0 -0
  381. /package/{src/components/dialog/y-dialog.scss → lib/components/dialog/YDialog.scss} +0 -0
  382. /package/{src/components/layer/y-layer.scss → lib/components/layer/YLayer.scss} +0 -0
  383. /package/{src/components/text-highlighter/y-text-highlighter.scss → lib/components/text-highlighter/YTextHighlighter.scss} +0 -0
  384. /package/{src/styles/variables.scss → lib/styles/_variables.scss} +0 -0
  385. /package/{src → lib}/styles/util/helper.scss +0 -0
  386. /package/{src → lib}/styles/util/theme.scss +0 -0
@@ -1,31 +0,0 @@
1
- <template>
2
- <svg
3
- class="y-ring-spinner"
4
- width="48"
5
- height="48"
6
- viewBox="0 0 48 48"
7
- xmlns="http://www.w3.org/2000/svg"
8
- >
9
- <circle
10
- class="y-ring-spinner__circle"
11
- cx="24"
12
- cy="24"
13
- r="18"
14
- stroke-width="4"
15
- stroke-dasharray="113.097"
16
- stroke-dashoffset="113.097"
17
- />
18
- </svg>
19
- </template>
20
-
21
- <script lang="ts">
22
- import { defineComponent } from 'vue';
23
-
24
- import './y-ring-spinner.scss';
25
-
26
- const NAME = 'y-ring-spinner';
27
-
28
- export default defineComponent({
29
- name: NAME,
30
- });
31
- </script>
@@ -1,217 +0,0 @@
1
- <!--
2
- - Created by yeonyu at 2021-09-23
3
- -->
4
-
5
- <template>
6
- <div class="y-switch" :class="classes">
7
- <div class="y-switch__slot">
8
- <div
9
- class="y-switch__input"
10
- @click.capture="onClick"
11
- @keydown="onKeydown"
12
- >
13
- <input
14
- :id="inputId"
15
- :aria-checked="innerValue"
16
- type="checkbox"
17
- role="switch"
18
- @focus="onFocus"
19
- @blur="onBlur"
20
- @change="onChange"
21
- :disabled="disabled"
22
- :checked="innerValue"
23
- ref="checkbox"
24
- />
25
- <div class="y-switch__track" :style="trackStyles">
26
- <div v-if="stateLabel" class="y-switch__state">
27
- <span class="y-switch__state-label y-switch__state-label--on">
28
- {{ labelOn }}
29
- </span>
30
- <span class="y-switch__state-label y-switch__state-label--off">
31
- {{ labelOff }}
32
- </span>
33
- </div>
34
- </div>
35
- <div class="y-switch__thumb">
36
- <div v-if="loading" class="y-switch__spinner"></div>
37
- </div>
38
- </div>
39
- <label :for="inputId" class="y-switch__label">
40
- <slot name="label"></slot>
41
- <input hidden />
42
- </label>
43
- </div>
44
- </div>
45
- </template>
46
-
47
- <script lang="ts">
48
- import { defineComponent, PropType } from 'vue';
49
-
50
- let uidCounter = 0;
51
-
52
- export default defineComponent({
53
- name: 'YSwitch',
54
- model: {
55
- prop: 'input',
56
- event: 'change',
57
- },
58
- props: {
59
- input: {
60
- type: [Boolean, Array] as PropType<boolean | any[]>,
61
- default: false,
62
- },
63
- value: {
64
- type: [String, Number, Object] as PropType<any>,
65
- },
66
- max: {
67
- type: Number,
68
- },
69
- loading: {
70
- type: Boolean,
71
- },
72
- disabled: {
73
- type: Boolean,
74
- },
75
- stickOut: {
76
- type: Boolean,
77
- },
78
- stateLabel: {
79
- type: Boolean,
80
- },
81
- color: {
82
- type: String,
83
- },
84
- labelOn: {
85
- type: String,
86
- default: 'ON',
87
- },
88
- labelOff: {
89
- type: String,
90
- default: 'OFF',
91
- },
92
- },
93
- data() {
94
- return {
95
- innerValue: false,
96
- counterId: '',
97
- focused: false,
98
- };
99
- },
100
- created() {
101
- const iid = uidCounter.toString();
102
- uidCounter += 1;
103
- this.counterId = iid;
104
- if (Array.isArray(this.input)) {
105
- this.inputByValue();
106
- } else {
107
- this.innerValue = this.input;
108
- }
109
- },
110
- computed: {
111
- isMultipleInput() {
112
- return Array.isArray(this.input);
113
- },
114
- multipleInputIndex() {
115
- if (!Array.isArray(this.input)) {
116
- return -1;
117
- }
118
- return this.input.findIndex((inp) => {
119
- return inp === this.value;
120
- });
121
- },
122
- inputId() {
123
- const id = this.counterId;
124
- return `y-switch--${id}`;
125
- },
126
- trackStyles() {
127
- return {
128
- backgroundColor: this.color,
129
- };
130
- },
131
- classes() {
132
- return {
133
- 'y-switch--disabled': this.disabled,
134
- 'y-switch--loading': this.loading,
135
- 'y-switch--active': this.innerValue,
136
- 'y-switch--stick-out': this.stickOut,
137
- 'y-switch--focused': this.focused,
138
- };
139
- },
140
- },
141
- methods: {
142
- inputByValue() {
143
- if (Array.isArray(this.input)) {
144
- const found = this.input.find((inp: any) => {
145
- return inp === this.value;
146
- });
147
-
148
- if (found !== undefined) {
149
- this.innerValue = true;
150
- } else {
151
- this.innerValue = false;
152
- }
153
- }
154
- },
155
- changeMultipleInput(checked: boolean) {
156
- if (Array.isArray(this.input)) {
157
- const multipleInput = this.input.slice();
158
- if (
159
- checked &&
160
- this.max !== undefined &&
161
- multipleInput.length >= this.max
162
- ) {
163
- this.$emit('overmax');
164
- this.nextChange(false, multipleInput);
165
- return;
166
- }
167
- if (checked && this.multipleInputIndex < 0) {
168
- multipleInput.push(this.value);
169
- } else if (this.multipleInputIndex > -1) {
170
- multipleInput.splice(this.multipleInputIndex, 1);
171
- }
172
- this.$emit('change', multipleInput);
173
- }
174
- },
175
- nextChange(checked: boolean, value: any) {
176
- this.$nextTick(() => {
177
- this.innerValue = checked;
178
- });
179
- },
180
- onClick($event: Event) {
181
- if (this.disabled || this.loading) return;
182
- this.changeInput(!this.innerValue, $event);
183
- },
184
- onFocus() {
185
- this.focused = true;
186
- },
187
- onBlur() {
188
- this.focused = false;
189
- },
190
- onKeydown($event: KeyboardEvent) {
191
- // nothing
192
- },
193
- onChange($event: Event) {
194
- const $checkbox = $event.target as HTMLInputElement;
195
- const { checked } = $checkbox;
196
- this.changeInput(checked, $event);
197
- },
198
- changeInput(checked: boolean, event?: Event) {
199
- this.innerValue = checked;
200
- if (this.isMultipleInput) {
201
- this.changeMultipleInput(checked);
202
- } else {
203
- this.$emit('change', checked);
204
- }
205
- },
206
- },
207
- watch: {
208
- input() {
209
- this.inputByValue();
210
- },
211
- },
212
- });
213
- </script>
214
-
215
- <style lang="scss">
216
- @import 'index';
217
- </style>
@@ -1,5 +0,0 @@
1
- /*!
2
- * Created by yeonyu 2022.
3
- */
4
-
5
- @import 'y-switch';
@@ -1,11 +0,0 @@
1
- /*
2
- * Created by yeonyu at 2021-09-30
3
- */
4
-
5
- import YSwitch from './YSwitch.vue';
6
-
7
- export { YSwitch };
8
-
9
- export default {
10
- YSwitch,
11
- };
@@ -1,5 +0,0 @@
1
- /*!
2
- * Created by yeonyu 2022.
3
- */
4
-
5
- @import 'packages/yuyeon/src/components/text-highlighter/y-text-highlighter';
@@ -1,3 +0,0 @@
1
- import YTextHighlighter from './y-text-highlighter';
2
-
3
- export { YTextHighlighter };
@@ -1,89 +0,0 @@
1
- import { VNode, defineComponent, h } from 'vue';
2
- // style
3
- import './index.scss';
4
-
5
- export default defineComponent({
6
- name: 'y-text-highlighter',
7
- props: {
8
- text: {
9
- type: String,
10
- },
11
- keyword: {
12
- type: String,
13
- },
14
- color: {
15
- type: String,
16
- },
17
- sensitive: {
18
- type: Boolean,
19
- },
20
- },
21
- computed: {
22
- splitText(): { text: string; isKeyword: boolean }[] {
23
- const { keyword, text } = this;
24
- if (keyword && text) {
25
- const split: { text: string; isKeyword: boolean }[] = [];
26
- let stack = text;
27
- const keyExp = new RegExp(keyword, this.sensitive ? '' : 'i');
28
- while (stack.length > 0) {
29
- const index = stack.search(keyExp);
30
- if (index < 0) {
31
- split.push({ text: stack, isKeyword: false });
32
- stack = '';
33
- } else if (index < 1) {
34
- split.push({
35
- text: stack.substring(0, keyword.length),
36
- isKeyword: true,
37
- });
38
- stack = stack.substring(keyword.length, stack.length);
39
- } else {
40
- split.push({ text: stack.substring(0, index), isKeyword: false });
41
- split.push({
42
- text: stack.substring(index, index + keyword.length),
43
- isKeyword: true,
44
- });
45
- stack = stack.substring(index + keyword.length, stack.length);
46
- }
47
- }
48
- return split;
49
- }
50
- return [{ text: this.text || '', isKeyword: false }];
51
- },
52
- },
53
- methods: {
54
- createItem(text: string): VNode {
55
- return h(
56
- 'span',
57
- {
58
- staticClass: 'y-text-highlighter__item',
59
- },
60
- [text],
61
- );
62
- },
63
- createHighlightKeywordItem(text: string): VNode {
64
- return h(
65
- 'span',
66
- {
67
- staticClass: 'y-text-highlighter__item',
68
- class: 'y-text-highlighter__item--highlight',
69
- style: {
70
- backgroundColor: this.color,
71
- },
72
- },
73
- [text],
74
- );
75
- },
76
- createSplitTexts(): VNode[] {
77
- return this.splitText.map((splitItem) => {
78
- if (splitItem.isKeyword) {
79
- return this.createHighlightKeywordItem(splitItem.text);
80
- }
81
- return this.createItem(splitItem.text);
82
- });
83
- },
84
- },
85
- render(): VNode {
86
- const children = this.createSplitTexts();
87
- return h('span', { staticClass: 'y-text-highlighter' }, children);
88
- },
89
- });
@@ -1,30 +0,0 @@
1
- import { computed, Ref, ref, watch } from "vue";
2
-
3
- export function useLazy(eager: boolean, updated: Ref<any>) {
4
- const tick = ref(false);
5
- const tack = ref();
6
- tack.value = updated.value;
7
- const lazyValue = computed(() => {
8
- if (eager) return updated.value;
9
- return tack.value;
10
- });
11
- watch(updated, () => {
12
- if (!tick.value) {
13
- tack.value = updated.value;
14
- }
15
- if (!eager) {
16
- tick.value = true
17
- }
18
- });
19
- function onAfterUpdate() {
20
- tack.value = updated.value;
21
- if (!eager) {
22
- tick.value = false;
23
- }
24
- }
25
- return {
26
- entered: tick,
27
- lazyValue,
28
- onAfterUpdate,
29
- }
30
- }
@@ -1,25 +0,0 @@
1
- import { App } from 'vue';
2
-
3
- export const Y_THEME_PREFIX = 'y-theme';
4
-
5
- const defaultThemeTemplates: any = {
6
- light: {
7
- dark: false,
8
- palette: {
9
- background: '#ffffff',
10
- 'font-color': '#323232',
11
- },
12
- variables: {
13
- //
14
- },
15
- },
16
- };
17
-
18
- export function bindTheme(options: any) {
19
- function install(app: App) {
20
- //
21
- }
22
- return {
23
- install,
24
- };
25
- }
@@ -1,123 +0,0 @@
1
- import { DirectiveBinding } from 'vue';
2
- import { documentRoot } from '../../util/dom';
3
-
4
- interface ComplementClickDirectiveElementImplanted {
5
- onClick: EventListener;
6
- onMousedown: EventListener;
7
- }
8
-
9
- declare global {
10
- interface Element {
11
- _complementClick?: Record<
12
- number,
13
- ComplementClickDirectiveElementImplanted | undefined
14
- > & { lastMousedownWasOutside: boolean };
15
- }
16
- }
17
-
18
- export interface ComplementClickBindingOptions {
19
- handler: (mouseEvent: MouseEvent) => void;
20
- determine?: (event: Event) => boolean;
21
- include?: () => HTMLElement[];
22
- }
23
-
24
- export interface ComplementClickBinding extends DirectiveBinding {
25
- value: ((mouseEvent: MouseEvent) => void) | ComplementClickBindingOptions;
26
- }
27
-
28
- function defaultDetermine() {
29
- return true;
30
- }
31
-
32
- function directive(
33
- mouseEvent: MouseEvent,
34
- element: HTMLElement,
35
- binding: ComplementClickBinding,
36
- ) {
37
- const { value } = binding;
38
- const handler = typeof value === 'function' ? value : value.handler;
39
- element._complementClick!.lastMousedownWasOutside &&
40
- checkEvent(mouseEvent, element, binding) &&
41
- setTimeout(() => {
42
- determine(mouseEvent, binding) && handler && handler(mouseEvent);
43
- }, 0);
44
- }
45
-
46
- function checkEvent(
47
- mouseEvent: MouseEvent,
48
- element: HTMLElement,
49
- binding: ComplementClickBinding,
50
- ): boolean {
51
- if (!mouseEvent || determine(mouseEvent, binding) === false) {
52
- return false;
53
- }
54
- const root = documentRoot(element);
55
- if (typeof ShadowRoot !== 'undefined' && root instanceof ShadowRoot && root.host === mouseEvent.target) {
56
- return false;
57
- }
58
- const elements = ((typeof binding.value === 'object' && binding.value.include) || (() => []))();
59
- elements.push(element);
60
- return !elements.some((el) => el?.contains(mouseEvent.target as Node));
61
- }
62
-
63
- function determine(
64
- event: MouseEvent,
65
- binding: ComplementClickBinding,
66
- ): boolean {
67
- const { value } = binding;
68
- const determineFn =
69
- (typeof value === 'object' && value.determine) || defaultDetermine;
70
- return determineFn && determineFn?.(event);
71
- }
72
-
73
- function implant(
74
- element: HTMLElement,
75
- callback: (app: HTMLDocument | ShadowRoot | null) => void,
76
- ) {
77
- const root = documentRoot(element);
78
- callback(document);
79
- if (typeof ShadowRoot !== 'undefined' && root instanceof ShadowRoot) {
80
- callback(root);
81
- }
82
- }
83
-
84
- export const ComplementClick = {
85
- mounted(element: HTMLElement, binding: ComplementClickBinding) {
86
- const onClick = (event: Event) =>
87
- directive(event as MouseEvent, element, binding);
88
- const onMousedown = (event: Event) => {
89
- element._complementClick!.lastMousedownWasOutside = checkEvent(
90
- event as MouseEvent,
91
- element,
92
- binding,
93
- );
94
- };
95
- implant(element, (app) => {
96
- app?.addEventListener('click', onClick, true);
97
- app?.addEventListener('mousedown', onMousedown, true);
98
- });
99
- if (!element._complementClick) {
100
- element._complementClick = {
101
- lastMousedownWasOutside: true,
102
- };
103
- }
104
- const _uid = binding.instance!.$.uid;
105
- element._complementClick[_uid] = {
106
- onClick,
107
- onMousedown,
108
- };
109
- },
110
- unmounted(element: HTMLElement, binding: ComplementClickBinding) {
111
- if (!element._complementClick) return;
112
- const _uid = binding.instance!.$.uid;
113
- implant(element, (app) => {
114
- const old = element._complementClick?.[_uid];
115
- if (old) {
116
- const { onClick, onMousedown } = old;
117
- app?.removeEventListener('click', onClick, true);
118
- app?.removeEventListener('mousedown', onMousedown, true);
119
- }
120
- });
121
- delete element._complementClick[_uid];
122
- },
123
- };
@@ -1,14 +0,0 @@
1
- import { FunctionDirective } from 'vue';
2
-
3
- const bindThemeClass: FunctionDirective = (el, binding) => {
4
- const themeName = binding.value;
5
- const themeClass = `theme--${themeName}`;
6
- el.classList.forEach((classToken: string) => {
7
- if (classToken.startsWith('theme--') && classToken !== themeClass) {
8
- el.classList.remove(classToken);
9
- }
10
- });
11
- el.classList.add(themeClass);
12
- };
13
-
14
- export default bindThemeClass;
@@ -1,14 +0,0 @@
1
- declare module '*.svg' {
2
- const content: string;
3
- export default content;
4
- }
5
-
6
- declare module '*.png' {
7
- const value: string;
8
- export default value;
9
- }
10
-
11
- declare module '*.json' {
12
- const value: any;
13
- export default value;
14
- }
package/src/index.ts DELETED
@@ -1,21 +0,0 @@
1
- import { App } from 'vue';
2
- import * as components from '@/components';
3
- import { bindTheme } from '@/composables/theme';
4
-
5
- export function init(options: any) {
6
- const themeModule = bindTheme(options?.theme);
7
-
8
- const install = (app: App) => {
9
- themeModule.install(app);
10
-
11
- Object.keys(components).forEach((componentName) => {
12
- const comp = components[componentName as keyof typeof components];
13
- app.component(componentName, comp);
14
- });
15
- };
16
-
17
- return {
18
- install,
19
- theme: themeModule,
20
- };
21
- }
@@ -1,28 +0,0 @@
1
- :root {
2
- box-sizing: border-box;
3
- }
4
-
5
- .fade {
6
- &-enter-active, &-leave-cative {
7
- transition: opacity 240ms cubic-bezier(.2,.28,.21,1);
8
- }
9
-
10
- &-fade-enter-from, &-leave-to {
11
- opacity: 0;
12
- }
13
- }
14
-
15
- .slide-fade-enter-active, .slide-fade-leave-active {
16
- transition: transform 240ms cubic-bezier(.23,.3,.07,.97), opacity 240ms linear;
17
- }
18
-
19
- .slide-fade-enter-from,
20
- .slide-fade-leave-to {
21
- transform: translateY(20px) rotate3d(1, 0, 0, -30deg);
22
- opacity: 0;
23
- }
24
-
25
- .title {
26
- font-size: 20px;
27
- font-weight: bold;
28
- }
@@ -1,35 +0,0 @@
1
- /*!
2
- * Created by yeonyu 2022.
3
- */
4
- @use 'sass:map';
5
- @use '../palette';
6
- @use '../util/helper';
7
-
8
- // yui/app theme
9
- $theme--dark: () !default;
10
- $theme--dark: map.deep-merge(
11
- map.deep-merge(
12
- (
13
- 'input': (
14
- 'fill': palette.$basic-gray-200,
15
- ),
16
- 'fieldInput': (
17
- 'clear': palette.$basic-gray-400,
18
- ),
19
- 'select': (
20
- 'selected': palette.$basic-black,
21
- 'selected-background': palette.$basic-gray-700,
22
- ),
23
- ),
24
- //app
25
- (
26
- 'simpleSearch': (
27
- 'placeholder': palette.$basic-gray-400,
28
- 'prepend': palette.$basic-gray-700,
29
- 'border': palette.$basic-gray-700,
30
- 'hasValueBorder': palette.$basic-gray-400,
31
- ),
32
- )
33
- ),
34
- $theme--dark
35
- );
@@ -1,32 +0,0 @@
1
- @use 'sass:map';
2
- @use '../palette';
3
- @use '../util/helper';
4
-
5
- // yui theme
6
- $theme--light: () !default;
7
- $theme--light: map.deep-merge(
8
- map.deep-merge(
9
- (
10
- 'input': (
11
- 'fill': palette.$basic-gray-200,
12
- ),
13
- 'fieldInput': (
14
- 'clear': palette.$basic-gray-400,
15
- ),
16
- 'select': (
17
- 'selected': palette.$basic-black,
18
- 'selected-background': palette.$basic-gray-700,
19
- ),
20
- ),
21
- //app
22
- (
23
- 'simpleSearch': (
24
- 'placeholder': palette.$basic-gray-400,
25
- 'prepend': palette.$basic-gray-700,
26
- 'border': palette.$basic-gray-700,
27
- 'hasValueBorder': palette.$basic-gray-400,
28
- ),
29
- )
30
- ),
31
- $theme--light
32
- );