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
@@ -0,0 +1,17 @@
1
+ import { createVNode as _createVNode } from "vue";
2
+ import { defineComponent, getCurrentInstance } from "vue";
3
+ import { YBench } from "../bench/YBench.mjs";
4
+ export const YNavigation = defineComponent({
5
+ name: 'YNavigation',
6
+ components: {
7
+ YBench
8
+ },
9
+ setup(props, _ref) {
10
+ let {
11
+ slots
12
+ } = _ref;
13
+ const vm = getCurrentInstance();
14
+ return _createVNode(YBench, null, null);
15
+ }
16
+ });
17
+ //# sourceMappingURL=YNavigation.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"YNavigation.mjs","names":["defineComponent","getCurrentInstance","YBench","YNavigation","name","components","setup","props","_ref","slots","vm","_createVNode"],"sources":["../../../src/components/navigation/YNavigation.tsx"],"sourcesContent":["import { defineComponent, getCurrentInstance } from \"vue\";\r\nimport { YBench } from \"../bench/YBench\";\r\n\r\nexport const YNavigation = defineComponent({\r\n name: 'YNavigation',\r\n components: {\r\n YBench,\r\n },\r\n setup(props, { slots }) {\r\n const vm = getCurrentInstance();\r\n return (\r\n <YBench>\r\n\r\n </YBench>\r\n )\r\n }\r\n});\r\n\r\n"],"mappings":";AAAA,SAASA,eAAe,EAAEC,kBAAkB,QAAQ,KAAK;AAAC,SACjDC,MAAM;AAEf,OAAO,MAAMC,WAAW,GAAGH,eAAe,CAAC;EACzCI,IAAI,EAAE,aAAa;EACnBC,UAAU,EAAE;IACVH;EACF,CAAC;EACDI,KAAKA,CAACC,KAAK,EAAAC,IAAA,EAAa;IAAA,IAAX;MAAEC;IAAM,CAAC,GAAAD,IAAA;IACpB,MAAME,EAAE,GAAGT,kBAAkB,CAAC,CAAC;IAC/B,OAAAU,YAAA,CAAAT,MAAA;EAKF;AACF,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./YNavigation.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../src/components/navigation/index.ts"],"sourcesContent":["export * from './YNavigation';\n"],"mappings":""}
@@ -0,0 +1,61 @@
1
+ import { createVNode as _createVNode } from "vue";
2
+ import { computed, defineComponent } from 'vue';
3
+ import { useModelDuplex } from "../../composables/communication.mjs";
4
+ import { useRender } from "../../composables/component.mjs";
5
+ import { useResizeObserver } from "../../composables/resize-observer.mjs";
6
+ import { propsFactory } from "../../util/vue-component.mjs";
7
+ import "./YPagination.scss";
8
+ export const pressYPaginationProps = propsFactory({
9
+ start: {
10
+ type: [Number, String],
11
+ default: 1
12
+ },
13
+ modelValue: {
14
+ type: Number,
15
+ default: props => props.start
16
+ },
17
+ disabled: Boolean,
18
+ length: {
19
+ type: [Number, String],
20
+ default: 1,
21
+ validator: val => val % 1 === 0
22
+ },
23
+ totalVisible: [Number, String],
24
+ showEndButton: Boolean
25
+ }, 'y-pagination');
26
+ export const YPagination = defineComponent({
27
+ name: 'YPagination',
28
+ props: {
29
+ ...pressYPaginationProps()
30
+ },
31
+ emits: {
32
+ 'update:modelValue': value => true,
33
+ first: value => true,
34
+ last: value => true,
35
+ prev: value => true,
36
+ next: value => true
37
+ },
38
+ setup(props, _ref) {
39
+ let {
40
+ slots
41
+ } = _ref;
42
+ const page = useModelDuplex(props);
43
+ const length = computed(() => parseInt(props.length, 10));
44
+ const start = computed(() => parseInt(props.start, 10));
45
+ const {
46
+ resizeObservedRef
47
+ } = useResizeObserver(entries => {
48
+ if (1 > entries.length) return;
49
+ });
50
+ useRender(() => {
51
+ return _createVNode("div", {
52
+ "class": ['y-pagination'],
53
+ "role": 'navigation',
54
+ "ref": resizeObservedRef
55
+ }, [_createVNode("ul", {
56
+ "class": ['y-pagination__list']
57
+ }, [_createVNode("li", null, null)])]);
58
+ });
59
+ }
60
+ });
61
+ //# sourceMappingURL=YPagination.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"YPagination.mjs","names":["computed","defineComponent","useModelDuplex","useRender","useResizeObserver","propsFactory","pressYPaginationProps","start","type","Number","String","default","modelValue","props","disabled","Boolean","length","validator","val","totalVisible","showEndButton","YPagination","name","emits","value","first","last","prev","next","setup","_ref","slots","page","parseInt","resizeObservedRef","entries","_createVNode"],"sources":["../../../src/components/pagination/YPagination.tsx"],"sourcesContent":["import { computed, defineComponent } from 'vue';\n\nimport { useModelDuplex } from '../../composables/communication';\nimport { useRender } from '../../composables/component';\nimport { useResizeObserver } from '../../composables/resize-observer';\nimport { propsFactory } from '../../util/vue-component';\n\nimport './YPagination.scss';\n\nexport const pressYPaginationProps = propsFactory(\n {\n start: {\n type: [Number, String],\n default: 1,\n },\n modelValue: {\n type: Number,\n default: (props: any) => props.start as number,\n },\n disabled: Boolean,\n length: {\n type: [Number, String],\n default: 1,\n validator: (val: number) => val % 1 === 0,\n },\n totalVisible: [Number, String],\n showEndButton: Boolean,\n },\n 'y-pagination',\n);\n\nexport const YPagination = defineComponent({\n name: 'YPagination',\n props: {\n ...pressYPaginationProps(),\n },\n emits: {\n 'update:modelValue': (value: number) => true,\n first: (value: number) => true,\n last: (value: number) => true,\n prev: (value: number) => true,\n next: (value: number) => true,\n },\n setup(props, { slots }) {\n const page = useModelDuplex(props);\n\n const length = computed(() => parseInt(props.length as string, 10));\n const start = computed(() => parseInt(props.start as string, 10));\n\n const { resizeObservedRef } = useResizeObserver((entries) => {\n if (1 > entries.length) return;\n });\n useRender(() => {\n return (\n <div\n class={['y-pagination']}\n role={'navigation'}\n ref={resizeObservedRef}\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C;IAElC,MAAMG,MAAM,GAAGhB,QAAQ,CAAC,MAAMiC,QAAQ,CAACpB,KAAK,CAACG,MAAM,EAAY,EAAE,CAAC,CAAC;IACnE,MAAMT,KAAK,GAAGP,QAAQ,CAAC,MAAMiC,QAAQ,CAACpB,KAAK,CAACN,KAAK,EAAY,EAAE,CAAC,CAAC;IAEjE,MAAM;MAAE2B;IAAkB,CAAC,GAAG9B,iBAAiB,CAAE+B,OAAO,IAAK;MAC3D,IAAI,CAAC,GAAGA,OAAO,CAACnB,MAAM,EAAE;IAC1B,CAAC,CAAC;IACFb,SAAS,CAAC,MAAM;MACd,OAAAiC,YAAA;QAAA,SAEW,CAAC,cAAc,CAAC;QAAA,QACjB,YAAY;QAAA,OACbF;MAAiB,IAAAE,YAAA;QAAA,SAEX,CAAC,oBAAoB;MAAC,IAAAA,YAAA;IAKvC,CAAC,CAAC;EACJ;AACF,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ .y-pagination {
2
+ li {
3
+ list-style: none;
4
+ }
5
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./YPagination.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../src/components/pagination/index.ts"],"sourcesContent":["export * from './YPagination';\r\n"],"mappings":""}
@@ -0,0 +1,89 @@
1
+ import { createVNode as _createVNode, Fragment as _Fragment } from "vue";
2
+ import { computed, defineComponent, ref, watch } from 'vue';
3
+ import { useRender } from "../../composables/component.mjs";
4
+ import "./YDividePanel.scss";
5
+ export const YDividePanel = defineComponent({
6
+ setup(props, _ref) {
7
+ let {
8
+ slots
9
+ } = _ref;
10
+ const contentRate = ref(50);
11
+ const isResizing = ref(false);
12
+ const secondarySlot = ref();
13
+ const activeSecondary = ref(false);
14
+ const rootRef = ref();
15
+ watch(secondarySlot, neo => {
16
+ activeSecondary.value = !!neo;
17
+ });
18
+ const topStyles = computed(() => {
19
+ let inset = '0 0';
20
+ if (activeSecondary.value) {
21
+ inset = `0 0 ${100 - contentRate.value}% 0`;
22
+ }
23
+ return {
24
+ position: 'absolute',
25
+ inset
26
+ };
27
+ });
28
+ const classes = computed(() => {
29
+ return {
30
+ 'y-divide-panel': true,
31
+ 'y-divide-panel--resizing': isResizing.value
32
+ };
33
+ });
34
+ function moveListener(event) {
35
+ const mouseEvent = event;
36
+ const containerRect = rootRef.value.getBoundingClientRect();
37
+ requestAnimationFrame(() => {
38
+ contentRate.value = Math.min(Math.max(10, (mouseEvent.clientY - containerRect.y) / containerRect.height * 100), 90);
39
+ });
40
+ }
41
+ function cancelEvent() {
42
+ isResizing.value = false;
43
+ rootRef.value.removeEventListener('mousemove', moveListener);
44
+ rootRef.value.removeEventListener('mouseup', upListener);
45
+ rootRef.value.removeEventListener('mouseleave', leaveListener);
46
+ }
47
+ function upListener(event) {
48
+ cancelEvent();
49
+ }
50
+ function leaveListener(event) {
51
+ cancelEvent();
52
+ }
53
+ function onMousedown(event) {
54
+ event.preventDefault();
55
+ isResizing.value = true;
56
+ rootRef.value.addEventListener('mousemove', moveListener);
57
+ rootRef.value.addEventListener('mouseup', upListener);
58
+ rootRef.value.addEventListener('mouseleave', leaveListener);
59
+ }
60
+ useRender(() => {
61
+ return _createVNode(_Fragment, null, [_createVNode("div", {
62
+ "class": classes.value,
63
+ "ref": rootRef
64
+ }, [_createVNode("div", {
65
+ "class": 'y-divide-panel__top-container',
66
+ "style": topStyles.value
67
+ }, [slots.default?.()]), secondarySlot.value = slots.secondary && _createVNode(_Fragment, null, [_createVNode("div", {
68
+ "class": "y-divide-panel__divider",
69
+ "style": {
70
+ position: 'absolute',
71
+ inset: `${contentRate.value}% 0 0 0`
72
+ },
73
+ "onMousedown": onMousedown
74
+ }, [_createVNode("div", {
75
+ "class": "y-divide-panel__divider-line"
76
+ }, null)]), _createVNode("div", {
77
+ "class": 'y-divide-panel__secondary-container',
78
+ "style": {
79
+ position: 'absolute',
80
+ inset: `${contentRate.value}% 0 0 0`
81
+ }
82
+ }, [slots.secondary?.()])])])]);
83
+ });
84
+ return {
85
+ activeSecondary
86
+ };
87
+ }
88
+ });
89
+ //# sourceMappingURL=YDividePanel.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"YDividePanel.mjs","names":["computed","defineComponent","ref","watch","useRender","YDividePanel","setup","props","_ref","slots","contentRate","isResizing","secondarySlot","activeSecondary","rootRef","neo","value","topStyles","inset","position","classes","moveListener","event","mouseEvent","containerRect","getBoundingClientRect","requestAnimationFrame","Math","min","max","clientY","y","height","cancelEvent","removeEventListener","upListener","leaveListener","onMousedown","preventDefault","addEventListener","_createVNode","_Fragment","default","secondary"],"sources":["../../../src/components/panel/YDividePanel.tsx"],"sourcesContent":["import {\n CSSProperties,\n computed,\n defineComponent,\n ref,\n toRef,\n watch,\n} from 'vue';\n\nimport { useRender } from '../../composables/component';\n\nimport './YDividePanel.scss';\n\nexport const YDividePanel = defineComponent({\n setup(props, { slots }) {\n const contentRate = ref(50);\n const isResizing = ref(false);\n const secondarySlot = ref();\n const activeSecondary = ref(false);\n const rootRef = ref();\n\n watch(secondarySlot, (neo) => {\n activeSecondary.value = !!neo;\n });\n\n const topStyles = computed<CSSProperties>(() => {\n let inset = '0 0';\n if (activeSecondary.value) {\n inset = `0 0 ${100 - contentRate.value}% 0`;\n }\n return {\n position: 'absolute',\n inset,\n };\n });\n\n const classes = computed(() => {\n return {\n 'y-divide-panel': true,\n 'y-divide-panel--resizing': isResizing.value,\n };\n });\n\n function moveListener(event: Event) {\n const mouseEvent = event as MouseEvent;\n const containerRect = rootRef.value.getBoundingClientRect();\n requestAnimationFrame(() => {\n contentRate.value = Math.min(\n Math.max(\n 10,\n ((mouseEvent.clientY - containerRect.y) / containerRect.height) *\n 100,\n ),\n 90,\n );\n });\n }\n\n function cancelEvent() {\n isResizing.value = false;\n rootRef.value.removeEventListener('mousemove', moveListener);\n rootRef.value.removeEventListener('mouseup', upListener);\n rootRef.value.removeEventListener('mouseleave', leaveListener);\n }\n\n function upListener(event: Event) {\n cancelEvent();\n }\n\n function leaveListener(event: Event) {\n cancelEvent();\n }\n\n function onMousedown(event: MouseEvent) {\n event.preventDefault();\n isResizing.value = true;\n rootRef.value.addEventListener('mousemove', moveListener);\n rootRef.value.addEventListener('mouseup', upListener);\n rootRef.value.addEventListener('mouseleave', leaveListener);\n }\n\n useRender(() => {\n return (\n <>\n <div class={classes.value} ref={rootRef}>\n <div\n class={'y-divide-panel__top-container'}\n style={topStyles.value}\n >\n {slots.default?.()}\n </div>\n {\n (secondarySlot.value = slots.secondary && (\n <>\n <div\n class=\"y-divide-panel__divider\"\n style={{\n position: 'absolute',\n inset: `${contentRate.value}% 0 0 0`,\n }}\n onMousedown={onMousedown}\n >\n <div class=\"y-divide-panel__divider-line\"></div>\n </div>\n <div\n class={'y-divide-panel__secondary-container'}\n style={{\n position: 'absolute',\n inset: `${contentRate.value}% 0 0 0`,\n }}\n >\n {slots.secondary?.()}\n </div>\n </>\n ))\n }\n </div>\n </>\n );\n });\n\n return {\n activeSecondary,\n };\n },\n});\n"],"mappings":";AAAA,SAEEA,QAAQ,EACRC,eAAe,EACfC,GAAG,EAEHC,KAAK,QACA,KAAK;AAAC,SAEJC,SAAS;AAElB;AAEA,OAAO,MAAMC,YAAY,GAAGJ,eAAe,CAAC;EAC1CK,KAAKA,CAACC,KAAK,EAAAC,IAAA,EAAa;IAAA,IAAX;MAAEC;IAAM,CAAC,GAAAD,IAAA;IACpB,MAAME,WAAW,GAAGR,GAAG,CAAC,EAAE,CAAC;IAC3B,MAAMS,UAAU,GAAGT,GAAG,CAAC,KAAK,CAAC;IAC7B,MAAMU,aAAa,GAAGV,GAAG,CAAC,CAAC;IAC3B,MAAMW,eAAe,GAAGX,GAAG,CAAC,KAAK,CAAC;IAClC,MAAMY,OAAO,GAAGZ,GAAG,CAAC,CAAC;IAErBC,KAAK,CAACS,aAAa,EAAGG,GAAG,IAAK;MAC5BF,eAAe,CAACG,KAAK,GAAG,CAAC,CAACD,GAA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9
+ }
10
+
11
+ &__divider {
12
+ position: absolute;
13
+ height: 8px;
14
+ cursor: ns-resize;
15
+ z-index: 1;
16
+ //margin: 0 (-1 * $side-padding);
17
+
18
+ &-line {
19
+ position: absolute;
20
+ top: 4px;
21
+ left: 0;
22
+ right: 0;
23
+ bottom: 4px;
24
+ height: 1px;
25
+ background: #eee;
26
+ }
27
+
28
+ &:hover {
29
+ background: rgba(var(--y-theme--primary), 0.12);
30
+ }
31
+
32
+ &:hover &-line {
33
+ background: rgba(var(--y-theme--primary), 1);
34
+ }
35
+ }
36
+
37
+ &--resizing &__divider {
38
+ background: rgba(var(--y-theme--primary), 0.12);
39
+ &-line {
40
+ background: rgba(var(--y-theme--primary), 1);
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./YDividePanel.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../src/components/panel/index.ts"],"sourcesContent":["export * from './YDividePanel';\r\n"],"mappings":""}
@@ -0,0 +1,27 @@
1
+ import { createVNode as _createVNode } from "vue";
2
+ import { computed, defineComponent } from 'vue';
3
+ import { useRender } from "../../composables/component.mjs";
4
+ import "./YPlate.scss";
5
+
6
+ /**
7
+ * # Base Component
8
+ */
9
+ export const YPlate = defineComponent({
10
+ name: 'YPlate',
11
+ props: {
12
+ variation: Object
13
+ },
14
+ setup() {
15
+ const classes = computed(() => {
16
+ return {
17
+ 'y-plate': true
18
+ };
19
+ });
20
+ useRender(() => {
21
+ return _createVNode("div", {
22
+ "class": classes.value
23
+ }, null);
24
+ });
25
+ }
26
+ });
27
+ //# sourceMappingURL=YPlate.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"YPlate.mjs","names":["computed","defineComponent","useRender","YPlate","name","props","variation","Object","setup","classes","_createVNode","value"],"sources":["../../../src/components/plate/YPlate.tsx"],"sourcesContent":["import { PropType, computed, defineComponent } from 'vue';\n\nimport { useRender } from '../../composables/component';\n\nimport './YPlate.scss';\n\n/**\n * # Base Component\n */\nexport const YPlate = defineComponent({\n name: 'YPlate',\n props: {\n variation: Object as PropType<Record<string, any>>,\n },\n setup() {\n const classes = computed<Record<string, boolean>>(() => {\n return {\n 'y-plate': true\n };\n });\n\n useRender(() => {\n return <div class={classes.value}></div>;\n });\n },\n});\n\nexport type YPlate = InstanceType<typeof YPlate>;\n"],"mappings":";AAAA,SAAmBA,QAAQ,EAAEC,eAAe,QAAQ,KAAK;AAAC,SAEjDC,SAAS;AAElB;;AAEA;AACA;AACA;AACA,OAAO,MAAMC,MAAM,GAAGF,eAAe,CAAC;EACpCG,IAAI,EAAE,QAAQ;EACdC,KAAK,EAAE;IACLC,SAAS,EAAEC;EACb,CAAC;EACDC,KAAKA,CAAA,EAAG;IACN,MAAMC,OAAO,GAAGT,QAAQ,CAA0B,MAAM;MACtD,OAAO;QACL,SAAS,EAAE;MACb,CAAC;IACH,CAAC,CAAC;IAEFE,SAAS,CAAC,MAAM;MACd,OAAAQ,YAAA;QAAA,SAAmBD,OAAO,CAACE;MAAK;IAClC,CAAC,CAAC;EACJ;AACF,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ .y-plate {
2
+ pointer-events: none;
3
+ position: absolute;
4
+ inset: 0;
5
+ border-top: 1px solid transparent;
6
+ contain: paint;
7
+ border-radius: 8px;
8
+ outline: 0 solid rgba(0, 0, 0, 0);
9
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./YPlate.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../src/components/plate/index.ts"],"sourcesContent":["export * from './YPlate';\n"],"mappings":""}
@@ -0,0 +1,110 @@
1
+ import { createTextVNode as _createTextVNode, createVNode as _createVNode } from "vue";
2
+ import { defineComponent } from 'vue';
3
+ import { useProgress } from "../../composables/progress.mjs";
4
+ export const YProgressBar = defineComponent({
5
+ name: 'YProgressBar',
6
+ props: {
7
+ value: {
8
+ type: Number
9
+ },
10
+ rounded: {
11
+ type: Boolean
12
+ },
13
+ height: {
14
+ type: Number
15
+ },
16
+ noRewindTransition: {
17
+ type: Boolean
18
+ },
19
+ outlined: {
20
+ type: Boolean
21
+ },
22
+ innerText: {
23
+ type: Boolean
24
+ },
25
+ textColor: {
26
+ type: String
27
+ },
28
+ outlineColor: {
29
+ type: String
30
+ }
31
+ },
32
+ setup(props) {
33
+ const {
34
+ numValue
35
+ } = useProgress(props);
36
+ return {
37
+ numValue
38
+ };
39
+ },
40
+ data() {
41
+ return {
42
+ delta: 0
43
+ };
44
+ },
45
+ computed: {
46
+ classes() {
47
+ let noTransition = false;
48
+ if (this.noRewindTransition && this.delta < 0) {
49
+ noTransition = true;
50
+ }
51
+ return {
52
+ 'y-progress--no-trans': noTransition,
53
+ 'y-progress--outlined': !!this.outlined,
54
+ 'y-progress-bar--rounded': !!this.rounded
55
+ };
56
+ },
57
+ styles() {
58
+ let minWidth;
59
+ if (this.innerText && this.numValue < 5 && this.numValue > 0) {
60
+ minWidth = '2rem';
61
+ }
62
+ return {
63
+ transform: `scaleX(${this.numValue / 100})`,
64
+ minWidth
65
+ };
66
+ }
67
+ },
68
+ render() {
69
+ const {
70
+ classes,
71
+ numValue,
72
+ height,
73
+ outlineColor,
74
+ textColor,
75
+ styles,
76
+ innerText
77
+ } = this;
78
+ const slots = this.$slots;
79
+ return _createVNode("div", {
80
+ "class": {
81
+ 'y-progress y-progress-bar': true,
82
+ ...classes
83
+ },
84
+ "role": "progressbar",
85
+ "aria-valuemin": "0",
86
+ "aria-valuemax": "100",
87
+ "aria-valuenow": numValue,
88
+ "style": {
89
+ '--y-progress-bar__height': height !== undefined ? `${height}px` : undefined,
90
+ '--y-progress-bar__outline-color': outlineColor !== undefined ? outlineColor : undefined
91
+ }
92
+ }, [_createVNode("div", {
93
+ "class": "y-progress__track"
94
+ }, null), _createVNode("div", {
95
+ "class": "y-progress__tube"
96
+ }, [_createVNode("div", {
97
+ "class": "y-progress__lead",
98
+ "style": styles
99
+ }, [slots['lead-inner'] ? slots['lead-inner']() : innerText && _createVNode("div", {
100
+ "class": {
101
+ 'y-progress__lead-inner': true,
102
+ 'y-progress__lead-inner--fixed': numValue < 3
103
+ },
104
+ "style": {
105
+ color: textColor
106
+ }
107
+ }, [_createVNode("span", null, [numValue, _createTextVNode(" %")])])])])]);
108
+ }
109
+ });
110
+ //# sourceMappingURL=YProgressBar.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"YProgressBar.mjs","names":["defineComponent","useProgress","YProgressBar","name","props","value","type","Number","rounded","Boolean","height","noRewindTransition","outlined","innerText","textColor","String","outlineColor","setup","numValue","data","delta","computed","classes","noTransition","styles","minWidth","transform","render","slots","$slots","_createVNode","undefined","color","_createTextVNode"],"sources":["../../../src/components/progress-bar/YProgressBar.tsx"],"sourcesContent":["import { PropType, StyleValue, defineComponent } from 'vue';\n\nimport { useProgress } from '../../composables/progress';\n\nexport const YProgressBar = defineComponent({\n name: 'YProgressBar',\n props: {\n value: {\n type: Number as PropType<number>,\n },\n rounded: {\n type: Boolean as PropType<boolean>,\n },\n height: {\n type: Number as PropType<number>,\n },\n noRewindTransition: {\n type: Boolean as PropType<boolean>,\n },\n outlined: {\n type: Boolean as PropType<boolean>,\n },\n innerText: {\n type: Boolean as PropType<boolean>,\n },\n textColor: {\n type: String as PropType<string>,\n },\n outlineColor: {\n type: String as PropType<string>,\n },\n },\n setup(props) {\n const { numValue } = useProgress(props);\n\n return {\n numValue,\n };\n },\n data() {\n return {\n delta: 0,\n };\n },\n computed: {\n classes(): Record<string, boolean> {\n let noTransition = false;\n if (this.noRewindTransition && this.delta < 0) {\n noTransition = true;\n }\n return {\n 'y-progress--no-trans': noTransition,\n 'y-progress--outlined': !!this.outlined,\n 'y-progress-bar--rounded': !!this.rounded,\n };\n },\n styles(): StyleValue {\n let minWidth;\n if (this.innerText && this.numValue < 5 && this.numValue > 0) {\n minWidth = '2rem';\n }\n return {\n transform: `scaleX(${this.numValue / 100})`,\n minWidth,\n };\n },\n },\n render() {\n const {\n classes,\n numValue,\n height,\n outlineColor,\n textColor,\n styles,\n innerText,\n } = this;\n const slots = this.$slots;\n return (\n <div\n class={{ 'y-progress y-progress-bar': true, ...classes }}\n role=\"progressbar\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n aria-valuenow={numValue}\n style={{\n '--y-progress-bar__height':\n height !== undefined ? `${height}px` : undefined,\n '--y-progress-bar__outline-color':\n outlineColor !== undefined ? outlineColor : undefined,\n }}\n >\n <div class=\"y-progress__track\"></div>\n <div class=\"y-progress__tube\">\n <div class=\"y-progress__lead\" style={styles}>\n {slots['lead-inner']\n ? slots['lead-inner']()\n : innerText && (\n <div\n class={{\n 'y-progress__lead-inner': true,\n 'y-progress__lead-inner--fixed': numValue < 3,\n }}\n style={{ color: textColor }}\n >\n <span>{numValue} %</span>\n </div>\n )}\n </div>\n </div>\n </div>\n );\n },\n});\n"],"mappings":";AAAA,SAA+BA,eAAe,QAAQ,KAAK;AAAC,SAEnDC,WAAW;AAEpB,OAAO,MAAMC,YAAY,GAAGF,eAAe,CAAC;EAC1CG,IAAI,EAAE,cAAc;EACpBC,KAAK,EAAE;IACLC,KAAK,EAAE;MACLC,IAAI,EAAEC;IACR,CAAC;IACDC,OAAO,EAAE;MACPF,IAAI,EAAEG;IACR,CAAC;IACDC,MAAM,EAAE;MACNJ,IAAI,EAAEC;IACR,CAAC;IACDI,kBAAkB,EAAE;MAClBL,IAAI,EAAEG;IACR,CAAC;IACDG,QAAQ,EAAE;MACRN,IAAI,EAAEG;IACR,CAAC;IACDI,SAAS,EAAE;MACTP,IAAI,EAAEG;IACR,CAAC;IACDK,SAAS,EAAE;MACTR,IAAI,EAAES;IACR,CAAC;IACDC,YAAY,EAAE;MACZV,IAAI,EAAES;IACR;EACF,CAAC;EACDE,KAAKA,CAACb,KAAK,EAAE;IACX,MAAM;MAAEc;IAAS,CAAC,GAAGjB,WAAW,CAACG,KAAK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KAAKe,SAAS,GAAGf,YAAY,GAAGe;MAChD;IAAC,IAAAD,YAAA;MAAA,SAEU;IAAmB,UAAAA,YAAA;MAAA,SACnB;IAAkB,IAAAA,YAAA;MAAA,SAChB,kBAAkB;MAAA,SAAQN;IAAM,IACxCI,KAAK,CAAC,YAAY,CAAC,GAChBA,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,GACrBf,SAAS,IAAAiB,YAAA;MAAA,SAEE;QACL,wBAAwB,EAAE,IAAI;QAC9B,+BAA+B,EAAEZ,QAAQ,GAAG;MAC9C,CAAC;MAAA,SACM;QAAEc,KAAK,EAAElB;MAAU;IAAC,IAAAgB,YAAA,gBAEpBZ,QAAQ,EAAAe,gBAAA,UAElB;EAKf;AACF,CAAC,CAAC"}
@@ -0,0 +1,40 @@
1
+ .y-progress {
2
+ --y-progress-bar__height: 4px;
3
+
4
+ display: flex;
5
+ position: relative;
6
+ height: var(--y-progress-bar__height, 4px);
7
+
8
+ &-bar--rounded {
9
+ border-radius: calc(var(--y-progress-bar__height) / 2);
10
+ }
11
+
12
+ &--outlined {
13
+ --y-progress-bar__outline-color: var(--y-palette--primary);
14
+ border: 1px solid var(--y-progress-bar__outline-color);
15
+ }
16
+
17
+ &__tube {
18
+ border-radius: inherit;
19
+ overflow: clip;
20
+ min-width: 0;
21
+ flex: 1 1;
22
+ }
23
+
24
+ &__track {
25
+ background-color: #f0f0f0;
26
+ position: absolute;
27
+ inset: 0;
28
+ border-radius: inherit;
29
+ overflow: clip;
30
+ }
31
+
32
+ &__lead {
33
+ width: 100%;
34
+ height: 100%;
35
+ background-color: var(--y-palette--primary);
36
+ position: relative;
37
+ transform-origin: left;
38
+ transition: all 250ms cubic-bezier(0.42, 0.5, 0.51, 1.02);
39
+ }
40
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./YProgressBar.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../src/components/progress-bar/index.ts"],"sourcesContent":["export * from './YProgressBar';\n"],"mappings":""}