yuyeon 0.0.0 → 0.0.2

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,24 +0,0 @@
1
- <template>
2
- <svg
3
- class="icon-checkbox"
4
- xmlns="http://www.w3.org/2000/svg"
5
- width="24"
6
- height="24"
7
- >
8
- <path
9
- class="icon-checkbox__border-path"
10
- d="M 15.525 21.825 H 8.325 C 4.851 21.825 2.025 18.999 2.025 15.525 V 8.325 C 2.025 4.851 4.851 2.025 8.325 2.025 H 15.525 C 18.999 2.025 21.825 4.851 21.825 8.325 V 15.525 C 21.825 18.999 18.999 21.825 15.525 21.825 Z"
11
- />
12
- <path
13
- class="icon-checkbox__checkmark-path"
14
- fill="none"
15
- d="M5.73,11.91 11.1,16.28 17.79,7.59"
16
- ></path>
17
- </svg>
18
- </template>
19
-
20
- <script>
21
- export default {
22
- name: 'IconCheckbox',
23
- };
24
- </script>
@@ -1,113 +0,0 @@
1
- <!--
2
- - Created by yeonyu at 2021-09-23
3
- -->
4
-
5
- <template>
6
- <div class="y-checkbox" :class="classes">
7
- <slot name="prepend"></slot>
8
- <div class="y-checkbox__slot">
9
- <y-input-checkbox
10
- @click.stop="onClick"
11
- :id="counterId"
12
- :value="innerValue"
13
- :icon="computedIcon"
14
- @focus="onFocus"
15
- @blur="onBlur"
16
- :color="color"
17
- :disabled="disabled"
18
- :readonly="readonly"
19
- >
20
- <template v-if="$slots.icon" #icon="{ checked }">
21
- <slot name="icon" :checked="checked"></slot>
22
- </template>
23
- </y-input-checkbox>
24
- <label @click.stop="" class="y-checkbox__label" :for="inputId">
25
- <slot name="label">{{ label }}</slot>
26
- </label>
27
- </div>
28
- <slot name="append"></slot>
29
- </div>
30
- </template>
31
-
32
- <script lang="ts">
33
- import { defineComponent, PropType } from 'vue';
34
- import YInputCheckbox from './YInputCheckbox.vue';
35
-
36
- import './y-checkbox.scss';
37
-
38
- export default defineComponent({
39
- name: 'y-checkbox',
40
- components: { YInputCheckbox },
41
- created() {
42
- this.counterId = this.$yeonyui.getComponentCounter().toString();
43
- this.innerValue = this.inputValue;
44
- },
45
- model: {
46
- prop: 'inputValue',
47
- event: 'change',
48
- },
49
- props: {
50
- label: String as PropType<string>,
51
- reverse: Boolean as PropType<boolean>,
52
- icon: {
53
- type: [Object, String] as PropType<
54
- { checked?: string; unchecked?: string } | string
55
- >,
56
- },
57
- color: {
58
- type: String as PropType<string>,
59
- default: () => 'primary',
60
- },
61
- disabled: Boolean as PropType<boolean>,
62
- readonly: Boolean as PropType<boolean>,
63
- },
64
- data() {
65
- return {
66
- innerValue: false,
67
- focused: false,
68
- counterId: '',
69
- };
70
- },
71
- computed: {
72
- classes(): Record<string, boolean> {
73
- const { reverse, focused, disabled, readonly } = this;
74
- return {
75
- 'y-checkbox--reverse': reverse,
76
- 'y-checkbox--focused': focused,
77
- 'y-checkbox--disabled': disabled,
78
- 'y-checkbox--readonly': readonly,
79
- };
80
- },
81
- computedIcon(): string | undefined {
82
- if (typeof this.icon === 'string') {
83
- return this.icon;
84
- }
85
- return undefined;
86
- },
87
- inputId() {
88
- const id = this.counterId;
89
- return `input-${id}`;
90
- },
91
- },
92
- methods: {
93
- onFocus(e: FocusEvent) {
94
- this.focused = true;
95
- this.$emit('focus', e);
96
- },
97
- onBlur(e: FocusEvent) {
98
- this.focused = false;
99
- this.$emit('blur', e);
100
- },
101
- onClick(e: MouseEvent) {
102
- if (this.disabled || this.readonly) return;
103
- this.innerValue = !this.innerValue;
104
- this.$emit('change', this.innerValue, e);
105
- },
106
- },
107
- watch: {
108
- inputValue(neo: boolean) {
109
- this.innerValue = neo;
110
- },
111
- },
112
- });
113
- </script>
@@ -1,108 +0,0 @@
1
- <!--
2
- - Created by yeonyu at 2021-09-23
3
- -->
4
-
5
- <template>
6
- <div @click="onClick" class="y-input y-input--checkbox" :class="classes">
7
- <input
8
- :id="inputId"
9
- :aria-checked="checked"
10
- role="checkbox"
11
- type="checkbox"
12
- :checked="checked"
13
- @focus="onFocus"
14
- @blur="onBlur"
15
- :disabled="disabled"
16
- :readonly="readonly"
17
- />
18
- <slot name="icon" :checked="checked">
19
- <component :is="iconComponent" v-if="iconComponent"></component>
20
- <icon-checkbox v-else></icon-checkbox>
21
- </slot>
22
- </div>
23
- </template>
24
-
25
- <script lang="ts">
26
- import { defineComponent, PropType } from 'vue';
27
- import IconCheckbox from './IconCheckbox.vue';
28
-
29
- import './y-input-checkbox.scss';
30
-
31
- export default defineComponent({
32
- name: 'y-input-checkbox',
33
- components: { IconCheckbox },
34
- props: {
35
- id: String as PropType<string>,
36
- value: Boolean as PropType<boolean>,
37
- icon: String as PropType<string>,
38
- color: {
39
- type: String as PropType<string>,
40
- default: () => 'primary',
41
- },
42
- disabled: Boolean as PropType<boolean>,
43
- readonly: Boolean as PropType<boolean>,
44
- },
45
- data() {
46
- return {
47
- counterId: '',
48
- checked: false,
49
- focused: false,
50
- };
51
- },
52
- computed: {
53
- coloredClass() {
54
- if (this.color.startsWith('#')) {
55
- return undefined;
56
- }
57
- return `color--${this.color}`;
58
- },
59
- classes() {
60
- const ret: Record<string, boolean> = {
61
- 'y-input--active': this.checked,
62
- 'y-input--focused': this.focused,
63
- };
64
- if (this.coloredClass) {
65
- ret[this.coloredClass] = true;
66
- }
67
- return ret;
68
- },
69
- inputId() {
70
- let id = this.counterId;
71
- if (this.id) {
72
- id = this.id;
73
- }
74
- return `input-${id}`;
75
- },
76
- iconComponent() {
77
- if (this.icon) {
78
- if (this.$yeonyui.icons[this.icon]) {
79
- return this.$yeonyui.icons[this.icon];
80
- }
81
- }
82
- return null;
83
- },
84
- },
85
- methods: {
86
- onFocus(e: FocusEvent) {
87
- this.focused = true;
88
- this.$emit('focus', e);
89
- },
90
- onBlur(e: FocusEvent) {
91
- this.focused = false;
92
- this.$emit('blur', e);
93
- },
94
- onClick(event: MouseEvent) {
95
- this.$emit('click', event);
96
- },
97
- },
98
- watch: {
99
- value(neo: boolean) {
100
- this.checked = neo;
101
- },
102
- },
103
- created() {
104
- this.checked = this.value;
105
- this.counterId = this.$yeonyui.getComponentCounter().toString();
106
- },
107
- });
108
- </script>
@@ -1,8 +0,0 @@
1
- /*
2
- * Created by yeonyu at 2021-09-30
3
- */
4
-
5
- import YInputCheckbox from './YInputCheckbox.vue';
6
- import YCheckbox from './YCheckbox.vue';
7
-
8
- export { YCheckbox, YInputCheckbox };
@@ -1,3 +0,0 @@
1
- import YChip from './y-chip.vue';
2
-
3
- export { YChip };
@@ -1,3 +0,0 @@
1
- import YDialog from './y-dialog.vue';
2
-
3
- export { YDialog };
@@ -1,46 +0,0 @@
1
- <template>
2
- <y-layer v-model="active" content-tag-dialog scrim>
3
- <slot name="activator"></slot>
4
- <slot></slot>
5
- </y-layer>
6
- </template>
7
-
8
- <script lang="ts">
9
- import { computed, defineComponent, PropType, provide } from 'vue';
10
- import { YLayer } from '../layer';
11
- import { YCard } from '../card';
12
-
13
- import './y-dialog.scss';
14
-
15
- export default defineComponent({
16
- name: 'YDialog',
17
- components: {
18
- YLayer,
19
- YCard,
20
- },
21
- props: {
22
- modelValue: {
23
- type: Boolean as PropType<boolean>,
24
- },
25
- },
26
- emits: {
27
- 'update:modelValue': (value: boolean) => true,
28
- },
29
- setup(props: any, { emit }) {
30
- const active = computed({
31
- get: () => {
32
- return props.modelValue;
33
- },
34
- set: (v: boolean) => {
35
- emit('update:modelValue', v);
36
- },
37
- });
38
-
39
- provide('poly', 'y-dialog');
40
-
41
- return {
42
- active,
43
- };
44
- },
45
- });
46
- </script>
@@ -1,5 +0,0 @@
1
- /*!
2
- * Created by yeonyu 2022.
3
- */
4
-
5
- @import 'y-field-input';
@@ -1,11 +0,0 @@
1
- /*
2
- * Created by yeonyu 2022.
3
- */
4
-
5
- import YFieldInput from './y-field-input';
6
-
7
- export { YFieldInput };
8
-
9
- export default {
10
- YFieldInput,
11
- };
@@ -1,214 +0,0 @@
1
- /*
2
- * Created by yeonyu 2022.
3
- */
4
-
5
- import { YInput } from '../input';
6
- import { VNode, defineComponent, h } from 'vue';
7
-
8
- import './index.scss';
9
- import { getSlot } from '../../util/vue-component';
10
- import IconClearable from '../icons/icon-clearable';
11
-
12
- const NAME = 'y-field-input';
13
-
14
- export default defineComponent({
15
- extends: YInput,
16
- name: NAME,
17
- inheritAttrs: false,
18
- props: {
19
- clearable: Boolean,
20
- inputAlign: String,
21
- displayText: [String, Function],
22
- whenInputValid: [Boolean, Number],
23
- tabindex: {
24
- type: String,
25
- default: '0',
26
- },
27
- },
28
- mounted() {
29
- this.displayValue = this.inValue as string;
30
- },
31
- data() {
32
- return {
33
- displayValue: '' as string,
34
- };
35
- },
36
- computed: {
37
- fieldInputClasses(): Record<string, any> {
38
- return {
39
- ...this.classes,
40
- [NAME]: true,
41
- };
42
- },
43
- inputType(): string {
44
- const attr = (this.$attrs.type as string) || 'text';
45
- return attr;
46
- },
47
- },
48
- methods: {
49
- getClasses() {
50
- return {
51
- ...YInput.methods?.getClasses(),
52
- ...this.fieldInputClasses,
53
- };
54
- },
55
- createInput(): VNode {
56
- const { readonly, placeholder, disabled } = this;
57
- return h('input', {
58
- '.value': this.displayValue,
59
- '.id': this.attrId,
60
- '.type': this.inputType,
61
- readonly: readonly || this.loading || this.formLoading,
62
- '.placeholder': placeholder,
63
- '.disabled': disabled,
64
- '^tabindex': this.tabindex || '0',
65
- autocomplete: this.$attrs.autocomplete,
66
- maxlength: this.$attrs.maxlength,
67
- onInput: this.onInput,
68
- onFocus: this.onFocus,
69
- onBlur: this.onBlur,
70
- onChange: this.onChange,
71
- onKeydown: this.onKeydown,
72
- onKeyup: this.onKeyup,
73
- style: {
74
- textAlign: this.inputAlign,
75
- },
76
- ref: 'input',
77
- });
78
- },
79
- createDefaultChildren(): (VNode | undefined)[] {
80
- return [
81
- YInput.methods!.createLabel.call(this),
82
- this.createInput.call(this),
83
- ];
84
- },
85
- createDefault(): VNode {
86
- return h(
87
- 'div',
88
- {
89
- class: `${NAME}__field`,
90
- 'data-id': this.attrId,
91
- ref: 'field',
92
- },
93
- this.createDefaultChildren(),
94
- );
95
- },
96
- createClearAppend(): VNode {
97
- return h('div', { class: 'y-input__append y-input__append--clear' }, [
98
- h(
99
- 'button',
100
- {
101
- class: `${NAME}__clear`,
102
- onClick: this.onClickClear,
103
- onKeydown: this.onKeydownClear,
104
- '^tabindex': '2',
105
- },
106
- [h(IconClearable)],
107
- ),
108
- ]);
109
- },
110
- createAppend(): VNode[] {
111
- const appends = [];
112
- if (this.clearable && this.inValue) {
113
- appends.push(this.createClearAppend());
114
- }
115
- const slot = getSlot(this, 'append');
116
- if (slot) {
117
- appends.push(h('div', { class: 'y-input__append' }, slot));
118
- }
119
- return appends;
120
- },
121
- //
122
- onClick(event: MouseEvent) {
123
- (this.$refs.input as HTMLElement).focus();
124
- this.$emit('click', event);
125
- },
126
- onFocus(event: FocusEvent) {
127
- if (this) {
128
- this.isFocused = true;
129
- this.displayValue = this.inValue as string;
130
- this.$emit('focus', event);
131
- }
132
- },
133
- onBlur(event: FocusEvent) {
134
- this.isFocused = false;
135
- this.invokeValidators();
136
- this.$emit('blur', event);
137
- this.changeDisplay();
138
- },
139
- onInput(event: InputEvent) {
140
- const target = event.target as HTMLInputElement | null;
141
- this.inValue = target?.value;
142
- this.displayValue = target?.value as string;
143
- if (this.whenInputValid) {
144
- this.invokeValidators();
145
- }
146
- this.$emit('update:modelValue', this.inValue);
147
- },
148
- onChange(event: Event) {
149
- YInput.methods?.onChange.call(this, event);
150
- this.$emit('change', this.inValue);
151
- },
152
- onKeydown(event: KeyboardEvent) {
153
- this.$emit('keydown', event);
154
- },
155
- onKeyup(event: KeyboardEvent) {
156
- this.$emit('keyup', event);
157
- },
158
- //
159
- clear() {
160
- this.inValue = '';
161
- this.$emit('update:modelValue', this.inValue);
162
- },
163
- onClickClear(event: MouseEvent) {
164
- this.clear();
165
- },
166
- onKeydownClear(event: KeyboardEvent) {
167
- if (event.code === 'Space' || event.code === 'Enter') {
168
- this.clear();
169
- }
170
- },
171
- //
172
- /**
173
- * @public
174
- */
175
- focus() {
176
- (this.$refs.input as HTMLInputElement).focus();
177
- },
178
- /**
179
- * @public
180
- */
181
- select() {
182
- (this.$refs.input as HTMLInputElement).select();
183
- },
184
- //
185
- changeDisplay() {
186
- const { displayText } = this;
187
- if (displayText !== undefined) {
188
- let text = this.inValue;
189
- if (typeof displayText === 'string') {
190
- text = displayText;
191
- }
192
- if (displayText && typeof displayText === 'function') {
193
- text = (displayText as any).call(this, text);
194
- }
195
- this.$nextTick(() => {
196
- this.displayValue = text as string;
197
- });
198
- }
199
- },
200
- },
201
- watch: {
202
- modelValue(neo: any) {
203
- this.inValue = neo;
204
- this.displayValue = neo;
205
- },
206
- inValue(neo: string) {
207
- if (!this.isFocused) {
208
- this.changeDisplay();
209
- } else {
210
- this.displayValue = neo;
211
- }
212
- },
213
- },
214
- });
@@ -1,9 +0,0 @@
1
- /*
2
- * Created by yeonyu 2022.
3
- */
4
-
5
- import YForm from './y-form';
6
-
7
- export { YForm };
8
-
9
- export default YForm;
@@ -1,93 +0,0 @@
1
- /*
2
- * Created by yeonyu 2022.
3
- */
4
-
5
- import {
6
- defineComponent,
7
- PropType,
8
- VNode,
9
- h,
10
- ComponentPublicInstance,
11
- withKeys,
12
- } from 'vue';
13
- //
14
- import RebindAttrs from '../../mixins/rebind-attrs';
15
-
16
- const NAME = 'y-form';
17
- const rootTags = ['form', 'div', 'section', 'article'];
18
-
19
- export default defineComponent({
20
- name: NAME,
21
- inheritAttrs: false,
22
- mixins: [RebindAttrs],
23
- provide() {
24
- return {
25
- form$: this,
26
- };
27
- },
28
- props: {
29
- tag: {
30
- type: String as PropType<string>,
31
- default: 'form',
32
- validator(value: string) {
33
- return rootTags.includes(value);
34
- },
35
- },
36
- loading: Boolean,
37
- },
38
- data() {
39
- return {
40
- inputs: {} as Record<string, ComponentPublicInstance>,
41
- formData: {} as any,
42
- };
43
- },
44
- methods: {
45
- register(component: any) {
46
- const { iid, name } = component;
47
- // TODO: vue3 에서 $on 제거됨에 따라 트리거 따로 만들어야 함
48
- this.inputs[iid] = component;
49
- },
50
- unregister(component: any) {
51
- delete this.inputs[component.iid];
52
- },
53
- validate(): boolean {
54
- let flag = true;
55
- Object.values(this.inputs).forEach((input: any) => {
56
- const valid = input?.invokeValidators.call(input);
57
- flag = flag && valid;
58
- });
59
- return flag;
60
- },
61
- },
62
- computed: {
63
- attrs() {
64
- return {
65
- ...this.attrs_$,
66
- };
67
- },
68
- },
69
- render(): VNode {
70
- const { tag }: any = this;
71
- // this.attrs_$
72
- return h(
73
- tag,
74
- {
75
- class: NAME,
76
- '.novalidate': true,
77
- onSubmit: (e: Event) => {
78
- e.preventDefault();
79
- this.$emit('submit', e, this.formData);
80
- },
81
- onKeydown: withKeys(
82
- (e: Event) => {
83
- e.preventDefault();
84
- e.stopImmediatePropagation();
85
- this.$emit('keydown.enter', e);
86
- },
87
- ['enter'],
88
- ),
89
- },
90
- this.$slots.default?.(),
91
- );
92
- },
93
- });
@@ -1,6 +0,0 @@
1
- import { defineComponent, h, VNode } from 'vue';
2
-
3
- export default defineComponent({
4
- name: 'icon-clearable',
5
- template: `<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m8 1.5c-3.5839 0-6.5 2.9161-6.5 6.5 0 3.5839 2.9161 6.5 6.5 6.5 3.5839 0 6.5-2.9161 6.5-6.5 0-3.5839-2.9161-6.5-6.5-6.5zm-2 4a.5.5 0 01.35352.14648l1.6465 1.6465 1.6465-1.6465a.5.5 0 01.35352-.14648.5.5 0 01.35352.14648.5.5 0 010 .70703l-1.6465 1.6465 1.6465 1.6465a.5.5 0 010 .70703.5.5 0 01-.70703 0l-1.6465-1.6465-1.6465 1.6465a.5.5 0 01-.70703 0 .5.5 0 010-.70703l1.6465-1.6465-1.6465-1.6465a.5.5 0 010-.70703.5.5 0 01.35352-.14648z" fill="currentColor" stroke-miterlimit="10" /></svg>`,
6
- });
@@ -1,17 +0,0 @@
1
- export * from './button';
2
- export * from './input';
3
- export * from './field-input';
4
- export * from './form';
5
- export * from './progress-bar';
6
- export * from './card';
7
- export * from './chip';
8
- export * from './layer';
9
- export * from './dialog';
10
-
11
- import YLottiePlayer from './lottie-player';
12
- import YRingSpinner from './ring-spinner/y-ring-spinner.vue';
13
-
14
- export {
15
- YRingSpinner,
16
- YLottiePlayer,
17
- };
@@ -1,5 +0,0 @@
1
- /*!
2
- * Created by yeonyu 2022.
3
- */
4
-
5
- @import 'y-input';
@@ -1,9 +0,0 @@
1
- /*
2
- * Created by yeonyu 2022.
3
- */
4
-
5
- import YInput from './y-input';
6
-
7
- export { YInput };
8
-
9
- export default YInput;