yuyeon 0.2.1-rc.1 → 0.2.1-rc.11

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 (397) hide show
  1. package/dist/style.css +1 -1
  2. package/dist/yuyeon.js +5514 -7176
  3. package/dist/yuyeon.umd.cjs +4 -26
  4. package/lib/components/alert/YAlert.mjs +2 -2
  5. package/lib/components/alert/YAlert.mjs.map +1 -1
  6. package/lib/components/alert/YAlert.scss +75 -76
  7. package/lib/components/alert/index.mjs.map +1 -1
  8. package/lib/components/app/YApp.mjs +3 -2
  9. package/lib/components/app/YApp.mjs.map +1 -1
  10. package/lib/components/app/YApp.scss +14 -14
  11. package/lib/components/app/index.mjs.map +1 -1
  12. package/lib/components/badge/YBadge.mjs +2 -2
  13. package/lib/components/badge/YBadge.mjs.map +1 -1
  14. package/lib/components/badge/YBadge.scss +76 -76
  15. package/lib/components/badge/index.mjs.map +1 -1
  16. package/lib/components/bench/YBench.mjs +2 -3
  17. package/lib/components/bench/YBench.mjs.map +1 -1
  18. package/lib/components/bench/index.mjs.map +1 -1
  19. package/lib/components/button/YButton.mjs +4 -4
  20. package/lib/components/button/YButton.mjs.map +1 -1
  21. package/lib/components/button/YButton.scss +128 -129
  22. package/lib/components/button/index.mjs.map +1 -1
  23. package/lib/components/card/YCard.mjs +3 -2
  24. package/lib/components/card/YCard.mjs.map +1 -1
  25. package/lib/components/card/YCard.scss +45 -43
  26. package/lib/components/card/YCardBody.mjs +2 -1
  27. package/lib/components/card/YCardBody.mjs.map +1 -1
  28. package/lib/components/card/YCardFooter.mjs +2 -1
  29. package/lib/components/card/YCardFooter.mjs.map +1 -1
  30. package/lib/components/card/YCardHeader.mjs +2 -1
  31. package/lib/components/card/YCardHeader.mjs.map +1 -1
  32. package/lib/components/checkbox/YCheckbox.mjs +2 -2
  33. package/lib/components/checkbox/YCheckbox.mjs.map +1 -1
  34. package/lib/components/checkbox/YCheckbox.scss +48 -48
  35. package/lib/components/checkbox/YInputCheckbox.mjs +2 -1
  36. package/lib/components/checkbox/YInputCheckbox.mjs.map +1 -1
  37. package/lib/components/checkbox/YInputCheckbox.scss +84 -86
  38. package/lib/components/checkbox/index.mjs +1 -1
  39. package/lib/components/checkbox/index.mjs.map +1 -1
  40. package/lib/components/chip/YChip.mjs +50 -42
  41. package/lib/components/chip/YChip.mjs.map +1 -1
  42. package/lib/components/chip/YChip.scss +6 -1
  43. package/lib/components/date-picker/YDateCalendar.mjs +3 -3
  44. package/lib/components/date-picker/YDateCalendar.mjs.map +1 -1
  45. package/lib/components/date-picker/YDateCalendar.scss +84 -82
  46. package/lib/components/date-picker/YDatePicker.mjs +2 -2
  47. package/lib/components/date-picker/YDatePicker.mjs.map +1 -1
  48. package/lib/components/date-picker/YDatePicker.scss +3 -3
  49. package/lib/components/date-picker/YDatePickerControl.mjs +2 -2
  50. package/lib/components/date-picker/YDatePickerControl.mjs.map +1 -1
  51. package/lib/components/date-picker/YDatePickerControl.scss +35 -35
  52. package/lib/components/date-picker/YMonthPicker.mjs +3 -3
  53. package/lib/components/date-picker/YMonthPicker.mjs.map +1 -1
  54. package/lib/components/date-picker/YMonthPicker.scss +25 -25
  55. package/lib/components/date-picker/YYearPicker.mjs +3 -2
  56. package/lib/components/date-picker/YYearPicker.mjs.map +1 -1
  57. package/lib/components/date-picker/YYearPicker.scss +23 -23
  58. package/lib/components/date-picker/index.mjs.map +1 -1
  59. package/lib/components/dialog/YDialog.mjs +3 -3
  60. package/lib/components/dialog/YDialog.mjs.map +1 -1
  61. package/lib/components/dialog/YDialog.scss +50 -50
  62. package/lib/components/dialog/index.mjs.map +1 -1
  63. package/lib/components/divider/YDivider.mjs +1 -2
  64. package/lib/components/divider/YDivider.mjs.map +1 -1
  65. package/lib/components/divider/YDivider.scss +2 -3
  66. package/lib/components/divider/index.mjs.map +1 -1
  67. package/lib/components/dropdown/YDropdown.mjs +2 -2
  68. package/lib/components/dropdown/YDropdown.mjs.map +1 -1
  69. package/lib/components/dropdown/YDropdown.scss +27 -28
  70. package/lib/components/dropdown/index.mjs.map +1 -1
  71. package/lib/components/field-input/YFieldInput.mjs +2 -2
  72. package/lib/components/field-input/YFieldInput.mjs.map +1 -1
  73. package/lib/components/field-input/YFieldInput.scss +66 -66
  74. package/lib/components/field-input/index.mjs.map +1 -1
  75. package/lib/components/form/YForm.mjs +3 -2
  76. package/lib/components/form/YForm.mjs.map +1 -1
  77. package/lib/components/hover/YHover.mjs +2 -2
  78. package/lib/components/hover/YHover.mjs.map +1 -1
  79. package/lib/components/hover/index.mjs.map +1 -1
  80. package/lib/components/icon/YIcon.mjs +3 -2
  81. package/lib/components/icon/YIcon.mjs.map +1 -1
  82. package/lib/components/icon/YIcon.scss +18 -18
  83. package/lib/components/icon/index.mjs.map +1 -1
  84. package/lib/components/icons/YIconCheckbox.mjs +1 -1
  85. package/lib/components/icons/YIconCheckbox.mjs.map +1 -1
  86. package/lib/components/icons/YIconCheckbox.scss +60 -60
  87. package/lib/components/icons/YIconClear.mjs +1 -1
  88. package/lib/components/icons/YIconClear.mjs.map +1 -1
  89. package/lib/components/icons/YIconDropdown.mjs +1 -1
  90. package/lib/components/icons/YIconDropdown.mjs.map +1 -1
  91. package/lib/components/icons/YIconExpand.mjs +1 -1
  92. package/lib/components/icons/YIconExpand.mjs.map +1 -1
  93. package/lib/components/icons/YIconPageControl.mjs +1 -1
  94. package/lib/components/icons/YIconPageControl.mjs.map +1 -1
  95. package/lib/components/icons/YIconSort.mjs +1 -1
  96. package/lib/components/icons/YIconSort.mjs.map +1 -1
  97. package/lib/components/icons/YIconSort.scss +24 -23
  98. package/lib/components/icons/index.mjs +1 -1
  99. package/lib/components/icons/index.mjs.map +1 -1
  100. package/lib/components/img/YImg.mjs +6 -7
  101. package/lib/components/img/YImg.mjs.map +1 -1
  102. package/lib/components/input/YInput.mjs +3 -4
  103. package/lib/components/input/YInput.mjs.map +1 -1
  104. package/lib/components/input/YInput.scss +258 -254
  105. package/lib/components/input/index.mjs.map +1 -1
  106. package/lib/components/ip-field/YIpField.scss +74 -74
  107. package/lib/components/ip-field/YIpv4Field.mjs +2 -2
  108. package/lib/components/ip-field/YIpv4Field.mjs.map +1 -1
  109. package/lib/components/ip-field/index.mjs.map +1 -1
  110. package/lib/components/layer/YLayer.mjs +2 -2
  111. package/lib/components/layer/YLayer.mjs.map +1 -1
  112. package/lib/components/layer/YLayer.scss +38 -38
  113. package/lib/components/layer/active-delay.mjs.map +1 -1
  114. package/lib/components/layer/active-stack.mjs.map +1 -1
  115. package/lib/components/layer/base.mjs.map +1 -1
  116. package/lib/components/layer/content.mjs.map +1 -1
  117. package/lib/components/layer/scroll-strategies.mjs +1 -1
  118. package/lib/components/layer/scroll-strategies.mjs.map +1 -1
  119. package/lib/components/list/YList.mjs +2 -2
  120. package/lib/components/list/YList.mjs.map +1 -1
  121. package/lib/components/list/YList.scss +3 -3
  122. package/lib/components/list/YListItem.mjs +2 -2
  123. package/lib/components/list/YListItem.mjs.map +1 -1
  124. package/lib/components/list/YListItem.scss +62 -62
  125. package/lib/components/list/index.mjs.map +1 -1
  126. package/lib/components/loading/YSpinnerRing.mjs +1 -1
  127. package/lib/components/loading/YSpinnerRing.mjs.map +1 -1
  128. package/lib/components/menu/YMenu.mjs +5 -4
  129. package/lib/components/menu/YMenu.mjs.map +1 -1
  130. package/lib/components/menu/YMenu.scss +25 -22
  131. package/lib/components/menu/index.mjs.map +1 -1
  132. package/lib/components/navigation/YNavigation.mjs +2 -1
  133. package/lib/components/navigation/YNavigation.mjs.map +1 -1
  134. package/lib/components/pagination/YPagination.mjs +2 -2
  135. package/lib/components/pagination/YPagination.mjs.map +1 -1
  136. package/lib/components/pagination/YPagination.scss +52 -51
  137. package/lib/components/pagination/index.mjs.map +1 -1
  138. package/lib/components/panel/YDividePanel.mjs.map +1 -1
  139. package/lib/components/panel/YDividePanel.scss +43 -43
  140. package/lib/components/panel/index.mjs.map +1 -1
  141. package/lib/components/plate/YPlate.mjs +2 -1
  142. package/lib/components/plate/YPlate.mjs.map +1 -1
  143. package/lib/components/plate/YPlate.scss +9 -9
  144. package/lib/components/progress-bar/YProgressBar.mjs +40 -52
  145. package/lib/components/progress-bar/YProgressBar.mjs.map +1 -1
  146. package/lib/components/progress-bar/YProgressBar.scss +10 -4
  147. package/lib/components/select/YSelect.mjs +6 -15
  148. package/lib/components/select/YSelect.mjs.map +1 -1
  149. package/lib/components/select/YSelect.scss +43 -43
  150. package/lib/components/select/index.mjs.map +1 -1
  151. package/lib/components/slider/YSlider.mjs +26 -0
  152. package/lib/components/slider/YSlider.mjs.map +1 -0
  153. package/lib/components/slider/index.mjs +2 -0
  154. package/lib/components/slider/index.mjs.map +1 -0
  155. package/lib/components/snackbar/YSnackbar.mjs +8 -9
  156. package/lib/components/snackbar/YSnackbar.mjs.map +1 -1
  157. package/lib/components/snackbar/YSnackbar.scss +38 -38
  158. package/lib/components/switch/YSwitch.mjs +2 -1
  159. package/lib/components/switch/YSwitch.mjs.map +1 -1
  160. package/lib/components/switch/YSwitch.scss +204 -198
  161. package/lib/components/tab/YTab.mjs +2 -3
  162. package/lib/components/tab/YTab.mjs.map +1 -1
  163. package/lib/components/tab/YTab.scss +6 -3
  164. package/lib/components/tab/YTabs.mjs +2 -2
  165. package/lib/components/tab/YTabs.mjs.map +1 -1
  166. package/lib/components/tab/YTabs.scss +8 -10
  167. package/lib/components/tab/index.mjs.map +1 -1
  168. package/lib/components/tab/types.mjs.map +1 -1
  169. package/lib/components/table/YDataTable.mjs +5 -5
  170. package/lib/components/table/YDataTable.mjs.map +1 -1
  171. package/lib/components/table/YDataTableBody.mjs +2 -2
  172. package/lib/components/table/YDataTableBody.mjs.map +1 -1
  173. package/lib/components/table/YDataTableCell.mjs +2 -1
  174. package/lib/components/table/YDataTableCell.mjs.map +1 -1
  175. package/lib/components/table/YDataTableControl.mjs +1 -1
  176. package/lib/components/table/YDataTableControl.mjs.map +1 -1
  177. package/lib/components/table/YDataTableControl.scss +7 -7
  178. package/lib/components/table/YDataTableHead.mjs +4 -4
  179. package/lib/components/table/YDataTableHead.mjs.map +1 -1
  180. package/lib/components/table/YDataTableLayer.mjs +2 -1
  181. package/lib/components/table/YDataTableLayer.mjs.map +1 -1
  182. package/lib/components/table/YDataTableRow.mjs +2 -1
  183. package/lib/components/table/YDataTableRow.mjs.map +1 -1
  184. package/lib/components/table/YDataTableServer.mjs +8 -7
  185. package/lib/components/table/YDataTableServer.mjs.map +1 -1
  186. package/lib/components/table/YTable.mjs +14 -19
  187. package/lib/components/table/YTable.mjs.map +1 -1
  188. package/lib/components/table/YTable.scss +157 -152
  189. package/lib/components/table/composibles/header.mjs +10 -3
  190. package/lib/components/table/composibles/header.mjs.map +1 -1
  191. package/lib/components/table/composibles/items.mjs.map +1 -1
  192. package/lib/components/table/composibles/measure.mjs +37 -0
  193. package/lib/components/table/composibles/measure.mjs.map +1 -0
  194. package/lib/components/table/composibles/options.mjs.map +1 -1
  195. package/lib/components/table/composibles/pagination.mjs.map +1 -1
  196. package/lib/components/table/composibles/selection.mjs +13 -5
  197. package/lib/components/table/composibles/selection.mjs.map +1 -1
  198. package/lib/components/table/composibles/sorted-items.mjs +1 -1
  199. package/lib/components/table/composibles/sorted-items.mjs.map +1 -1
  200. package/lib/components/table/composibles/sorting.mjs +1 -2
  201. package/lib/components/table/composibles/sorting.mjs.map +1 -1
  202. package/lib/components/table/index.mjs.map +1 -1
  203. package/lib/components/table/types/common.mjs.map +1 -1
  204. package/lib/components/table/types/header.mjs.map +1 -1
  205. package/lib/components/table/types/index.mjs.map +1 -1
  206. package/lib/components/table/types/row.mjs.map +1 -1
  207. package/lib/components/text-ellipsis/YTextEllipsis.mjs +4 -2
  208. package/lib/components/text-ellipsis/YTextEllipsis.mjs.map +1 -1
  209. package/lib/components/text-ellipsis/YTextEllipsis.scss +43 -43
  210. package/lib/components/text-ellipsis/index.mjs.map +1 -1
  211. package/lib/components/text-highlighter/YTextHighlighter.mjs +2 -1
  212. package/lib/components/text-highlighter/YTextHighlighter.mjs.map +1 -1
  213. package/lib/components/text-interpolation/YTi.mjs +2 -1
  214. package/lib/components/text-interpolation/YTi.mjs.map +1 -1
  215. package/lib/components/text-interpolation/index.mjs.map +1 -1
  216. package/lib/components/textarea/YTextarea.mjs +2 -2
  217. package/lib/components/textarea/YTextarea.mjs.map +1 -1
  218. package/lib/components/textarea/YTextarea.scss +25 -25
  219. package/lib/components/textarea/index.mjs.map +1 -1
  220. package/lib/components/toggle-button/YToggleButton.mjs.map +1 -1
  221. package/lib/components/toggle-button/index.mjs.map +1 -1
  222. package/lib/components/tooltip/YTooltip.mjs +3 -3
  223. package/lib/components/tooltip/YTooltip.mjs.map +1 -1
  224. package/lib/components/tooltip/YTooltip.scss +19 -19
  225. package/lib/components/tooltip/index.mjs.map +1 -1
  226. package/lib/components/transitions/expand-transition.mjs.map +1 -1
  227. package/lib/components/tree-view/YTreeView.mjs +1 -1
  228. package/lib/components/tree-view/YTreeView.mjs.map +1 -1
  229. package/lib/components/tree-view/YTreeView.scss +81 -79
  230. package/lib/components/tree-view/YTreeViewNode.mjs +2 -1
  231. package/lib/components/tree-view/YTreeViewNode.mjs.map +1 -1
  232. package/lib/components/tree-view/index.mjs.map +1 -1
  233. package/lib/components/tree-view/types.mjs.map +1 -1
  234. package/lib/components/tree-view/util.mjs.map +1 -1
  235. package/lib/composables/choice.mjs.map +1 -1
  236. package/lib/composables/communication.mjs.map +1 -1
  237. package/lib/composables/component.mjs.map +1 -1
  238. package/lib/composables/coordinate/arrangement.mjs.map +1 -1
  239. package/lib/composables/coordinate/levitation.mjs.map +1 -1
  240. package/lib/composables/coordinate/utils/point.mjs.map +1 -1
  241. package/lib/composables/date/factory.mjs.map +1 -1
  242. package/lib/composables/date/index.mjs +1 -1
  243. package/lib/composables/date/index.mjs.map +1 -1
  244. package/lib/composables/date/setting.mjs.map +1 -1
  245. package/lib/composables/date/types.mjs.map +1 -1
  246. package/lib/composables/defaults/index.mjs +3 -3
  247. package/lib/composables/defaults/index.mjs.map +1 -1
  248. package/lib/composables/defaults/types.mjs.map +1 -1
  249. package/lib/composables/dimension.mjs +1 -1
  250. package/lib/composables/dimension.mjs.map +1 -1
  251. package/lib/composables/focus.mjs +1 -1
  252. package/lib/composables/focus.mjs.map +1 -1
  253. package/lib/composables/form.mjs.map +1 -1
  254. package/lib/composables/i18n/index.mjs.map +1 -1
  255. package/lib/composables/icon.mjs +5 -4
  256. package/lib/composables/icon.mjs.map +1 -1
  257. package/lib/composables/layer-group.mjs +1 -1
  258. package/lib/composables/layer-group.mjs.map +1 -1
  259. package/lib/composables/layout.mjs +1 -1
  260. package/lib/composables/layout.mjs.map +1 -1
  261. package/lib/composables/list-items.mjs.map +1 -1
  262. package/lib/composables/progress.mjs +7 -2
  263. package/lib/composables/progress.mjs.map +1 -1
  264. package/lib/composables/ref.mjs +1 -1
  265. package/lib/composables/ref.mjs.map +1 -1
  266. package/lib/composables/resize-observer.mjs +1 -3
  267. package/lib/composables/resize-observer.mjs.map +1 -1
  268. package/lib/composables/scope.mjs +1 -2
  269. package/lib/composables/scope.mjs.map +1 -1
  270. package/lib/composables/theme/factory.mjs.map +1 -1
  271. package/lib/composables/theme/index.mjs +1 -1
  272. package/lib/composables/theme/index.mjs.map +1 -1
  273. package/lib/composables/theme/setting.mjs.map +1 -1
  274. package/lib/composables/theme/types.mjs.map +1 -1
  275. package/lib/composables/timing.mjs +1 -1
  276. package/lib/composables/timing.mjs.map +1 -1
  277. package/lib/composables/transition.mjs +1 -1
  278. package/lib/composables/transition.mjs.map +1 -1
  279. package/lib/composables/validation.mjs +1 -1
  280. package/lib/composables/validation.mjs.map +1 -1
  281. package/lib/composables/vue-router.mjs +1 -1
  282. package/lib/composables/vue-router.mjs.map +1 -1
  283. package/lib/index.mjs +4 -4
  284. package/lib/index.mjs.map +1 -1
  285. package/lib/util/anchor.mjs.map +1 -1
  286. package/lib/util/array.mjs.map +1 -1
  287. package/lib/util/color/const.mjs +1 -1
  288. package/lib/util/color/const.mjs.map +1 -1
  289. package/lib/util/component/component.mjs +2 -1
  290. package/lib/util/component/component.mjs.map +1 -1
  291. package/lib/util/component/index.mjs +2 -1
  292. package/lib/util/component/index.mjs.map +1 -1
  293. package/lib/util/component/inject-self.mjs.map +1 -1
  294. package/lib/util/component/props.mjs +1 -1
  295. package/lib/util/component/props.mjs.map +1 -1
  296. package/lib/util/date/index.mjs.map +1 -1
  297. package/lib/util/dom.mjs.map +1 -1
  298. package/lib/util/reactivity.mjs +3 -3
  299. package/lib/util/reactivity.mjs.map +1 -1
  300. package/lib/util/rect.mjs.map +1 -1
  301. package/lib/util/ui.mjs.map +1 -1
  302. package/lib/util/validation.mjs.map +1 -1
  303. package/package.json +1 -1
  304. package/types/abstract/items.d.ts +4 -4
  305. package/types/components/app/YApp.d.ts +1 -1
  306. package/types/components/badge/YBadge.d.ts +5 -39
  307. package/types/components/bench/YBench.d.ts +1 -1
  308. package/types/components/button/YButton.d.ts +10 -69
  309. package/types/components/card/YCard.d.ts +1 -6
  310. package/types/components/card/YCardBody.d.ts +1 -1
  311. package/types/components/card/YCardFooter.d.ts +1 -1
  312. package/types/components/card/YCardHeader.d.ts +1 -1
  313. package/types/components/checkbox/YCheckbox.d.ts +1 -26
  314. package/types/components/checkbox/YInputCheckbox.d.ts +2 -26
  315. package/types/components/checkbox/index.d.ts +1 -0
  316. package/types/components/chip/YChip.d.ts +29 -25
  317. package/types/components/date-picker/YDateCalendar.d.ts +3 -31
  318. package/types/components/date-picker/YDatePicker.d.ts +13 -42
  319. package/types/components/date-picker/YDatePickerControl.d.ts +12 -44
  320. package/types/components/date-picker/YMonthPicker.d.ts +1 -5
  321. package/types/components/date-picker/YYearPicker.d.ts +1 -7
  322. package/types/components/dialog/YDialog.d.ts +72 -315
  323. package/types/components/divider/YDivider.d.ts +1 -3
  324. package/types/components/dropdown/YDropdown.d.ts +70 -243
  325. package/types/components/field-input/YFieldInput.d.ts +14 -120
  326. package/types/components/form/YForm.d.ts +2 -24
  327. package/types/components/hover/YHover.d.ts +4 -26
  328. package/types/components/icon/YIcon.d.ts +3 -18
  329. package/types/components/icons/YIconCheckbox.d.ts +1 -9
  330. package/types/components/icons/YIconClear.d.ts +1 -1
  331. package/types/components/icons/YIconDropdown.d.ts +1 -1
  332. package/types/components/icons/YIconExpand.d.ts +1 -1
  333. package/types/components/icons/YIconPageControl.d.ts +1 -8
  334. package/types/components/icons/YIconSort.d.ts +1 -10
  335. package/types/components/icons/index.d.ts +8 -46
  336. package/types/components/img/YImg.d.ts +7 -47
  337. package/types/components/input/YInput.d.ts +11 -99
  338. package/types/components/ip-field/YIpv4Field.d.ts +2 -70
  339. package/types/components/layer/YLayer.d.ts +35 -152
  340. package/types/components/layer/content.d.ts +1 -1
  341. package/types/components/layer/scroll-strategies.d.ts +1 -1
  342. package/types/components/list/YList.d.ts +1 -6
  343. package/types/components/list/YListItem.d.ts +3 -21
  344. package/types/components/loading/YSpinnerRing.d.ts +1 -1
  345. package/types/components/menu/YMenu.d.ts +17 -282
  346. package/types/components/navigation/YNavigation.d.ts +1 -1
  347. package/types/components/pagination/YPagination.d.ts +7 -47
  348. package/types/components/plate/YPlate.d.ts +1 -3
  349. package/types/components/progress-bar/YProgressBar.d.ts +3 -43
  350. package/types/components/select/YSelect.d.ts +263 -899
  351. package/types/components/slider/YSlider.d.ts +16 -0
  352. package/types/components/slider/index.d.ts +0 -0
  353. package/types/components/snackbar/YSnackbar.d.ts +43 -188
  354. package/types/components/switch/YSwitch.d.ts +1 -43
  355. package/types/components/tab/YTab.d.ts +14 -80
  356. package/types/components/tab/YTabs.d.ts +6 -39
  357. package/types/components/table/YDataTable.d.ts +35 -177
  358. package/types/components/table/YDataTableBody.d.ts +3 -26
  359. package/types/components/table/YDataTableCell.d.ts +1 -30
  360. package/types/components/table/YDataTableControl.d.ts +3 -18
  361. package/types/components/table/YDataTableHead.d.ts +3 -21
  362. package/types/components/table/YDataTableLayer.d.ts +1 -3
  363. package/types/components/table/YDataTableRow.d.ts +1 -9
  364. package/types/components/table/YDataTableServer.d.ts +38 -183
  365. package/types/components/table/YTable.d.ts +5 -24
  366. package/types/components/table/composibles/header.d.ts +9 -1
  367. package/types/components/table/composibles/items.d.ts +3 -3
  368. package/types/components/table/composibles/measure.d.ts +8 -0
  369. package/types/components/table/composibles/pagination.d.ts +3 -3
  370. package/types/components/table/composibles/selection.d.ts +13 -13
  371. package/types/components/table/composibles/sorting.d.ts +1 -1
  372. package/types/components/table/types/header.d.ts +1 -0
  373. package/types/components/table/types/index.d.ts +1 -1
  374. package/types/components/text-ellipsis/YTextEllipsis.d.ts +1 -8
  375. package/types/components/text-highlighter/YTextHighlighter.d.ts +2 -17
  376. package/types/components/text-interpolation/YTi.d.ts +1 -10
  377. package/types/components/textarea/YTextarea.d.ts +15 -111
  378. package/types/components/tooltip/YTooltip.d.ts +27 -261
  379. package/types/components/tree-view/YTreeView.d.ts +2 -2
  380. package/types/components/tree-view/YTreeViewNode.d.ts +10 -67
  381. package/types/composables/choice.d.ts +1 -1
  382. package/types/composables/coordinate/index.d.ts +6 -6
  383. package/types/composables/coordinate/utils/point.d.ts +1 -1
  384. package/types/composables/form.d.ts +2 -2
  385. package/types/composables/icon.d.ts +5 -22
  386. package/types/composables/layer-group.d.ts +1 -1
  387. package/types/composables/list-items.d.ts +10 -10
  388. package/types/composables/progress.d.ts +1 -0
  389. package/types/composables/timing.d.ts +1 -1
  390. package/types/composables/transition.d.ts +1 -1
  391. package/types/composables/validation.d.ts +3 -3
  392. package/types/composables/vue-router.d.ts +1 -1
  393. package/types/index.d.ts +1 -1
  394. package/types/util/Rect.d.ts +1 -1
  395. package/types/util/component/component.d.ts +2 -1
  396. package/types/util/component/index.d.ts +4 -4
  397. package/types/util/component/inject-self.d.ts +1 -1
@@ -1,198 +1,204 @@
1
-
2
- @use '../../styles/variables';
3
-
4
- .y-switch {
5
- --y-switch__color: var(--y-theme-primary);
6
- font-size: 1rem;
7
-
8
- &__slot {
9
- display: flex;
10
- cursor: pointer;
11
- align-items: center;
12
- color: inherit;
13
- min-height: inherit;
14
- position: relative;
15
- }
16
-
17
- &__input {
18
- width: 3em;
19
- height: 1.5em;
20
- position: relative;
21
- display: inline-flex;
22
- user-select: none;
23
- color: inherit;
24
- flex: 0 0 auto;
25
-
26
- input[role='switch'] {
27
- position: absolute;
28
- opacity: 0;
29
- width: 100%;
30
- height: 100%;
31
- cursor: pointer;
32
- user-select: none;
33
- }
34
- }
35
- &:not(&--loading) &__input:active &__thumb {
36
- width: 1em;
37
- }
38
-
39
- &__track {
40
- width: 100%;
41
- height: 100%;
42
- border-radius: 2em;
43
- background-color: #e0e0e0;
44
- position: absolute;
45
- left: 0;
46
- top: 0;
47
- transition: 300ms;
48
- }
49
-
50
- &__thumb {
51
- width: 1.1em;
52
- height: 1.1em;
53
- align-self: center;
54
- left: 0.185em;
55
- border-radius: 50%;
56
- display: flex;
57
- justify-content: center;
58
- align-items: center;
59
- background-color: #fff;
60
- pointer-events: none;
61
- position: relative;
62
- transition: 180ms cubic-bezier(0.78, 0.04, 0.9, 0.18);
63
- will-change: left, transform;
64
- }
65
-
66
- &__spinner {
67
- position: relative;
68
- width: 100%;
69
- height: 100%;
70
- border-radius: 50%;
71
- animation: rotate 2s linear infinite;
72
- contain: paint;
73
-
74
- @keyframes spinner-blur {
75
- 0% {
76
- filter: blur(4px);
77
- }
78
- 50% {
79
- filter: blur(1px);
80
- }
81
- 100% {
82
- filter: blur(4px);
83
- }
84
- }
85
-
86
- &:before {
87
- content: '';
88
- position: absolute;
89
- top: 2px;
90
- left: 2px;
91
- right: 2px;
92
- bottom: 2px;
93
- border-radius: 50%;
94
- border-width: 2px 2px 0 0;
95
- border-style: solid;
96
- border-color: var(--y-switch__color) transparent;
97
- }
98
-
99
- &:after {
100
- content: '';
101
- position: absolute;
102
- left: 0;
103
- top: 0;
104
- right: 0;
105
- bottom: 0;
106
- background: linear-gradient(0deg, transparent 60%, rgba(var(--y-switch__color), 0.4));
107
- filter: blur(4px);
108
- animation: spinner-blur 3s infinite;
109
- }
110
- }
111
-
112
- &--active {
113
- .y-switch__track {
114
- background-color: var(--y-switch__color);
115
- }
116
-
117
- .y-switch__thumb {
118
- left: calc(100% - 1.1em - 0.24em);
119
- }
120
- }
121
-
122
- &--active:not(&--loading):active &__thumb {
123
- left: 1.8em;
124
- }
125
-
126
- &--focused {
127
- .y-switch__thumb:before {
128
- content: '';
129
- position: absolute;
130
- top: 2px;
131
- bottom: 2px;
132
- left: 2px;
133
- right: 2px;
134
- border-radius: 50%;
135
- background-color: rgba(var(--y-switch__color), 0.4);
136
- }
137
- }
138
-
139
- &--stick-out {
140
- .y-switch__thumb {
141
- box-shadow: 2px 2px 5px -2px rgba(0, 0, 0, 0.54), 1px 1px 4px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.08);
142
- }
143
-
144
- .y-switch__track {
145
- width: 80%;
146
- height: 74%;
147
- top: 50%;
148
- left: 50%;
149
- transform: translate(-50%, -50%);
150
- box-shadow: inset 0 0 4px -1px rgba(0, 0, 0, 0.34);
151
- }
152
- }
153
-
154
- &--disabled {
155
- opacity: 0.8;
156
- filter: brightness(0.88);
157
-
158
- .y-switch__thumb {
159
- opacity: 0.4;
160
- }
161
- }
162
- &--disabled &__slot,
163
- &--disabled &__input input {
164
- cursor: default;
165
- }
166
-
167
- &__state {
168
- position: relative;
169
- width: 100%;
170
- height: 100%;
171
- contain: content;
172
- }
173
-
174
- &__state-label {
175
- font-size: 12px;
176
- color: #ffffff;
177
- position: absolute;
178
- height: 100%;
179
- display: flex;
180
- align-items: center;
181
- transition: transform 180ms cubic-bezier(0.16, 0.85, 0.36, 0.96);
182
-
183
- &--on {
184
- left: -40px;
185
- }
186
- &--off {
187
- right: 10px;
188
- }
189
- }
190
-
191
- &--active &__state-label {
192
- transform: translateX(50px);
193
- }
194
-
195
- &--stick-out &__state-label--off {
196
- right: 7px;
197
- }
198
- }
1
+ @use '../../styles/variables';
2
+
3
+ .y-switch {
4
+ --y-switch__color: var(--y-theme-primary);
5
+ font-size: 1rem;
6
+
7
+ &__slot {
8
+ display: flex;
9
+ cursor: pointer;
10
+ align-items: center;
11
+ color: inherit;
12
+ min-height: inherit;
13
+ position: relative;
14
+ }
15
+
16
+ &__input {
17
+ width: 3em;
18
+ height: 1.5em;
19
+ position: relative;
20
+ display: inline-flex;
21
+ user-select: none;
22
+ color: inherit;
23
+ flex: 0 0 auto;
24
+
25
+ input[role='switch'] {
26
+ position: absolute;
27
+ opacity: 0;
28
+ width: 100%;
29
+ height: 100%;
30
+ cursor: pointer;
31
+ user-select: none;
32
+ }
33
+ }
34
+ &:not(&--loading) &__input:active &__thumb {
35
+ width: 1em;
36
+ }
37
+
38
+ &__track {
39
+ width: 100%;
40
+ height: 100%;
41
+ border-radius: 2em;
42
+ background-color: #e0e0e0;
43
+ position: absolute;
44
+ left: 0;
45
+ top: 0;
46
+ transition: 300ms;
47
+ }
48
+
49
+ &__thumb {
50
+ width: 1.1em;
51
+ height: 1.1em;
52
+ align-self: center;
53
+ left: 0.185em;
54
+ border-radius: 50%;
55
+ display: flex;
56
+ justify-content: center;
57
+ align-items: center;
58
+ background-color: #fff;
59
+ pointer-events: none;
60
+ position: relative;
61
+ transition: 180ms cubic-bezier(0.78, 0.04, 0.9, 0.18);
62
+ will-change: left, transform;
63
+ }
64
+
65
+ &__spinner {
66
+ position: relative;
67
+ width: 100%;
68
+ height: 100%;
69
+ border-radius: 50%;
70
+ animation: rotate 2s linear infinite;
71
+ contain: paint;
72
+
73
+ @keyframes spinner-blur {
74
+ 0% {
75
+ filter: blur(4px);
76
+ }
77
+ 50% {
78
+ filter: blur(1px);
79
+ }
80
+ 100% {
81
+ filter: blur(4px);
82
+ }
83
+ }
84
+
85
+ &:before {
86
+ content: '';
87
+ position: absolute;
88
+ top: 2px;
89
+ left: 2px;
90
+ right: 2px;
91
+ bottom: 2px;
92
+ border-radius: 50%;
93
+ border-width: 2px 2px 0 0;
94
+ border-style: solid;
95
+ border-color: var(--y-switch__color) transparent;
96
+ }
97
+
98
+ &:after {
99
+ content: '';
100
+ position: absolute;
101
+ left: 0;
102
+ top: 0;
103
+ right: 0;
104
+ bottom: 0;
105
+ background: linear-gradient(
106
+ 0deg,
107
+ transparent 60%,
108
+ rgba(var(--y-switch__color), 0.4)
109
+ );
110
+ filter: blur(4px);
111
+ animation: spinner-blur 3s infinite;
112
+ }
113
+ }
114
+
115
+ &--active {
116
+ .y-switch__track {
117
+ background-color: var(--y-switch__color);
118
+ }
119
+
120
+ .y-switch__thumb {
121
+ left: calc(100% - 1.1em - 0.24em);
122
+ }
123
+ }
124
+
125
+ &--active:not(&--loading):active &__thumb {
126
+ left: 1.8em;
127
+ }
128
+
129
+ &--focused {
130
+ .y-switch__thumb:before {
131
+ content: '';
132
+ position: absolute;
133
+ top: 2px;
134
+ bottom: 2px;
135
+ left: 2px;
136
+ right: 2px;
137
+ border-radius: 50%;
138
+ background-color: rgba(var(--y-switch__color), 0.4);
139
+ }
140
+ }
141
+
142
+ &--stick-out {
143
+ .y-switch__thumb {
144
+ box-shadow:
145
+ 2px 2px 5px -2px rgba(0, 0, 0, 0.54),
146
+ 1px 1px 4px rgba(0, 0, 0, 0.12),
147
+ 0 0 0 1px rgba(0, 0, 0, 0.08);
148
+ }
149
+
150
+ .y-switch__track {
151
+ width: 80%;
152
+ height: 74%;
153
+ top: 50%;
154
+ left: 50%;
155
+ transform: translate(-50%, -50%);
156
+ box-shadow: inset 0 0 4px -1px rgba(0, 0, 0, 0.34);
157
+ }
158
+ }
159
+
160
+ &--disabled {
161
+ opacity: 0.8;
162
+ filter: brightness(0.88);
163
+
164
+ .y-switch__thumb {
165
+ opacity: 0.4;
166
+ }
167
+ }
168
+ &--disabled &__slot,
169
+ &--disabled &__input input {
170
+ cursor: default;
171
+ }
172
+
173
+ &__state {
174
+ position: relative;
175
+ width: 100%;
176
+ height: 100%;
177
+ contain: content;
178
+ }
179
+
180
+ &__state-label {
181
+ font-size: 12px;
182
+ color: #ffffff;
183
+ position: absolute;
184
+ height: 100%;
185
+ display: flex;
186
+ align-items: center;
187
+ transition: transform 180ms cubic-bezier(0.16, 0.85, 0.36, 0.96);
188
+
189
+ &--on {
190
+ left: -40px;
191
+ }
192
+ &--off {
193
+ right: 10px;
194
+ }
195
+ }
196
+
197
+ &--active &__state-label {
198
+ transform: translateX(50px);
199
+ }
200
+
201
+ &--stick-out &__state-label--off {
202
+ right: 7px;
203
+ }
204
+ }
@@ -1,8 +1,7 @@
1
1
  import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
2
- import { shallowRef } from '@vue/runtime-core';
3
- import { computed, defineComponent, ref } from 'vue';
2
+ import { computed, ref, shallowRef } from 'vue';
4
3
  import { useRender } from "../../composables/component.mjs";
5
- import { chooseProps, propsFactory } from "../../util/index.mjs";
4
+ import { chooseProps, defineComponent, propsFactory } from "../../util/component/index.mjs";
6
5
  import { YButton, pressYButtonProps } from "../button/index.mjs";
7
6
  import { Y_TABS_KEY } from "./shared.mjs";
8
7
  import "./YTab.scss";
@@ -1 +1 @@
1
- {"version":3,"file":"YTab.mjs","names":["shallowRef","computed","defineComponent","ref","useRender","chooseProps","propsFactory","YButton","pressYButtonProps","Y_TABS_KEY","pressYTabPropsOptions","text","String","hideIndicator","Boolean","indicatorColor","selectedClass","noWave","YTab","name","props","slots","Object","setup","_ref","attrs","selected","indicator$","indicatorStyles","attrsProps","role","value","tabindex","onChoice","_ref2","yButtonProps","_createVNode","_mergeProps","default","append"],"sources":["../../../src/components/tab/YTab.tsx"],"sourcesContent":["import { shallowRef } from '@vue/runtime-core';\r\nimport { PropType, SlotsType, computed, defineComponent, ref } from 'vue';\r\n\r\nimport { useRender } from '../../composables/component';\r\nimport { chooseProps, propsFactory } from '../../util';\r\nimport { YButton, pressYButtonProps } from '../button';\r\nimport { Y_TABS_KEY } from './shared';\r\n\r\nimport './YTab.scss';\r\n\r\nexport const pressYTabPropsOptions = propsFactory(\r\n {\r\n text: String as PropType<string>,\r\n hideIndicator: Boolean as PropType<boolean>,\r\n indicatorColor: String as PropType<string>,\r\n ...pressYButtonProps({\r\n selectedClass: 'y-tab--selected',\r\n noWave: true,\r\n }),\r\n },\r\n 'YTab',\r\n);\r\n\r\nexport const YTab = defineComponent({\r\n name: 'YTab',\r\n props: pressYTabPropsOptions(),\r\n slots: Object as SlotsType<{\r\n default?: any;\r\n }>,\r\n setup(props, { slots, attrs }) {\r\n const selected = shallowRef(false);\r\n\r\n const indicator$ = ref();\r\n const indicatorStyles = computed(() => {\r\n return {};\r\n });\r\n const attrsProps = computed(() => {\r\n return {\r\n role: 'tab',\r\n 'aria-selected': `${String(selected.value)}`,\r\n tabindex: selected.value ? 0 : -1,\r\n };\r\n });\r\n\r\n function onChoice({ value }: { value: boolean }) {\r\n selected.value = value;\r\n }\r\n\r\n useRender(() => {\r\n const yButtonProps = chooseProps(props, YButton.props);\r\n return (\r\n <YButton\r\n class={['y-tab']}\r\n active={false}\r\n {...attrsProps.value}\r\n {...attrs}\r\n {...yButtonProps}\r\n injectSymbol={Y_TABS_KEY}\r\n onChoice:selected={onChoice}\r\n >\r\n {{\r\n default: () => slots.default?.() ?? props.text,\r\n append: () =>\r\n !props.hideIndicator && (\r\n <div\r\n ref={indicator$}\r\n class={['y-tab__indicator']}\r\n style={indicatorStyles.value}\r\n ></div>\r\n ),\r\n }}\r\n </YButton>\r\n );\r\n });\r\n\r\n return {};\r\n },\r\n});\r\n\r\nexport type YTab = InstanceType<typeof YTab>;\r\n"],"mappings":";AAAA,SAASA,UAAU,QAAQ,mBAAmB;AAC9C,SAA8BC,QAAQ,EAAEC,eAAe,EAAEC,GAAG,QAAQ,KAAK;AAAC,SAEjEC,SAAS;AAAA,SACTC,WAAW,EAAEC,YAAY;AAAA,SACzBC,OAAO,EAAEC,iBAAiB;AAAA,SAC1BC,UAAU;AAEnB;AAEA,OAAO,MAAMC,qBAAqB,GAAGJ,YAAY,CAC/C;EACEK,IAAI,EAAEC,MAA0B;EAChCC,aAAa,EAAEC,OAA4B;EAC3CC,cAAc,EAAEH,MAA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AAO,EAAEA,CAAA,KAAMjB,KAAK,CAACiB,OAAO,GAAG,CAAC,IAAIlB,KAAK,CAACT,IAAI;QAC9C4B,MAAM,EAAEA,CAAA,KACN,CAACnB,KAAK,CAACP,aAAa,IAAAuB,YAAA;UAAA,OAEXT,UAAU;UAAA,SACR,CAAC,kBAAkB,CAAC;UAAA,SACpBC,eAAe,CAACG;QAAK;MAE/B;IAIX,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"YTab.mjs","names":["computed","ref","shallowRef","useRender","chooseProps","defineComponent","propsFactory","YButton","pressYButtonProps","Y_TABS_KEY","pressYTabPropsOptions","text","String","hideIndicator","Boolean","indicatorColor","selectedClass","noWave","YTab","name","props","slots","Object","setup","_ref","attrs","selected","indicator$","indicatorStyles","attrsProps","role","value","tabindex","onChoice","_ref2","yButtonProps","_createVNode","_mergeProps","default","append"],"sources":["../../../src/components/tab/YTab.tsx"],"sourcesContent":["import { type PropType, type SlotsType, computed, ref, shallowRef } from 'vue';\n\nimport { useRender } from '@/composables/component';\nimport { chooseProps, defineComponent, propsFactory } from '@/util/component';\n\nimport { YButton, pressYButtonProps } from '../button';\nimport { Y_TABS_KEY } from './shared';\n\nimport './YTab.scss';\n\nexport const pressYTabPropsOptions = propsFactory(\n {\n text: String as PropType<string>,\n hideIndicator: Boolean as PropType<boolean>,\n indicatorColor: String as PropType<string>,\n ...pressYButtonProps({\n selectedClass: 'y-tab--selected',\n noWave: true,\n }),\n },\n 'YTab',\n);\n\nexport const YTab = defineComponent({\n name: 'YTab',\n props: pressYTabPropsOptions(),\n slots: Object as SlotsType<{\n default?: any;\n }>,\n setup(props, { slots, attrs }) {\n const selected = shallowRef(false);\n\n const indicator$ = ref();\n const indicatorStyles = computed(() => {\n return {};\n });\n const attrsProps = computed(() => {\n return {\n role: 'tab',\n 'aria-selected': `${String(selected.value)}`,\n tabindex: selected.value ? 0 : -1,\n };\n });\n\n function onChoice({ value }: { value: boolean }) {\n selected.value = value;\n }\n\n useRender(() => {\n const yButtonProps = chooseProps(props, YButton.props);\n return (\n <YButton\n class={['y-tab']}\n active={false}\n {...attrsProps.value}\n {...attrs}\n {...yButtonProps}\n injectSymbol={Y_TABS_KEY}\n onChoice:selected={onChoice}\n >\n {{\n default: () => slots.default?.() ?? props.text,\n append: () =>\n !props.hideIndicator && (\n <div\n ref={indicator$}\n class={['y-tab__indicator']}\n style={indicatorStyles.value}\n ></div>\n ),\n }}\n </YButton>\n );\n });\n\n return {};\n },\n});\n\nexport type YTab = InstanceType<typeof YTab>;\n"],"mappings":";AAAA,SAAwCA,QAAQ,EAAEC,GAAG,EAAEC,UAAU,QAAQ,KAAK;AAAC,SAEtEC,SAAS;AAAA,SACTC,WAAW,EAAEC,eAAe,EAAEC,YAAY;AAAA,SAE1CC,OAAO,EAAEC,iBAAiB;AAAA,SAC1BC,UAAU;AAEnB;AAEA,OAAO,MAAMC,qBAAqB,GAAGJ,YAAY,CAC/C;EACEK,IAAI,EAAEC,MAA0B;EAChCC,aAAa,EAAEC,OAA4B;EAC3CC,cAAc,EAAEH,MAA0B;EAC1C,GAAGJ,iBAAiB,CAAC;IACnBQ,aAAa,EAAE,iBAAiB;IAChCC,MAAM,EAAE;EACV,CAAC;AACH,CAAC,EACD,MACF,CAAC;AAED,OAAO,MAAMC,IAAI,GAAGb,eAAe,CAAC;EAClCc,IAAI,EAAE,MAAM;EACZC,KAAK,EAAEV,qBAAqB,CAAC,CAAC;EAC9BW,KAAK,EAAEC,MAEL;EACFC,KAAKA,CAACH,KAAK,EAAAI,IAAA,EAAoB;IAAA,IAAlB;MAAEH,KAAK;MAAEI;IAAM,CAAC,GAAAD,IAAA;IAC3B,MAAME,QAAQ,GAAGxB,UAAU,CAAC,KAAK,CAAC;IAElC,MAAMyB,UAAU,GAAG1B,GAAG,CAAC,CAAC;IACxB,MAAM2B,eAAe,GAAG5B,QAAQ,CAAC,MAAM;MACrC,OAAO,CAAC,CAAC;IACX,CAAC,CAAC;IACF,MAAM6B,UAAU,GAAG7B,QAAQ,CAAC,MAAM;MAChC,OAAO;QACL8B,IAAI,EAAE,KAAK;QACX,eAAe,EAAG,GAAElB,MAAM,CAACc,QAAQ,CAACK,KAAK,CAAE,EAAC;QAC5CC,QAAQ,EAAEN,QAAQ,CAACK,KAAK,GAAG,CAAC,GAAG,CAAC;MAClC,CAAC;IACH,CAAC,CAAC;IAEF,SAASE,QAAQA,CAAAC,KAAA,EAAgC;MAAA,IAA/B;QAAEH;MAA0B,CAAC,GAAAG,KAAA;MAC7CR,QAAQ,CAACK,KAAK,GAAGA,KAAK;IACxB;IAEA5B,SAAS,CAAC,MAAM;MACd,MAAMgC,YAAY,GAAG/B,WAAW,CAACgB,KAAK,EAAEb,OAAO,CAACa,KAAK,CAAC;MACtD,OAAAgB,YAAA,CAAA7B,OAAA,EAAA8B,WAAA;QAAA,SAEW,CAAC,OAAO,CAAC;QAAA,UACR;MAAK,GACTR,UAAU,CAACE,KAAK,EAChBN,KAAK,EACLU,YAAY;QAAA,gBACF1B,UAAU;QAAA,qBACLwB;MAAQ;QAGzBK,OAAO,EAAEA,CAAA,KAAMjB,KAAK,CAACiB,OAAO,GAAG,CAAC,IAAIlB,KAAK,CAACT,IAAI;QAC9C4B,MAAM,EAAEA,CAAA,KACN,CAACnB,KAAK,CAACP,aAAa,IAAAuB,YAAA;UAAA,OAEXT,UAAU;UAAA,SACR,CAAC,kBAAkB,CAAC;UAAA,SACpBC,eAAe,CAACG;QAAK;MAE/B;IAIX,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC"}
@@ -49,7 +49,8 @@
49
49
  }
50
50
  }
51
51
 
52
- &--active, .y-button--active {
52
+ &--active,
53
+ .y-button--active {
53
54
  font-weight: 700;
54
55
  color: var(--y-tab-active-color);
55
56
 
@@ -58,12 +59,14 @@
58
59
  }
59
60
  }
60
61
 
61
- &:hover:not(&--active) &__indicator, &:hover:not(.y-button--active) &__indicator {
62
+ &:hover:not(&--active) &__indicator,
63
+ &:hover:not(.y-button--active) &__indicator {
62
64
  transform: scaleY(1);
63
65
  color: var(--y-tab-hover-indicator-color);
64
66
  }
65
67
 
66
- &--active &__indicator, .y-button--active &__indicator {
68
+ &--active &__indicator,
69
+ .y-button--active &__indicator {
67
70
  color: var(--y-tab-active-indicator-color);
68
71
  transform: scaleY(1);
69
72
  }
@@ -1,9 +1,9 @@
1
1
  import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
- import { computed, defineComponent } from 'vue';
2
+ import { computed } from 'vue';
3
3
  import { pressChoicePropsOptions, useChoice } from "../../composables/choice.mjs";
4
4
  import { useRender } from "../../composables/component.mjs";
5
5
  import { useResizeObserver } from "../../composables/resize-observer.mjs";
6
- import { propsFactory } from "../../util/component/index.mjs";
6
+ import { defineComponent, propsFactory } from "../../util/component/index.mjs";
7
7
  import { YTab } from "./YTab.mjs";
8
8
  import { Y_TABS_KEY } from "./shared.mjs";
9
9
  import "./YTabs.scss";
@@ -1 +1 @@
1
- {"version":3,"file":"YTabs.mjs","names":["computed","defineComponent","pressChoicePropsOptions","useChoice","useRender","useResizeObserver","propsFactory","YTab","Y_TABS_KEY","pressYTabsPropOptions","items","type","Array","selectedClass","mandatory","YTabs","name","props","tag","String","default","emits","value","setup","_ref","slots","resizeObservedRef","container$","contentRect","containerRect","content$","choiceState","slotProps","next","prev","select","isSelected","tabItems","map","item","text","_createVNode","tabItem","_mergeProps","selected"],"sources":["../../../src/components/tab/YTabs.tsx"],"sourcesContent":["import { PropType, computed, defineComponent } from 'vue';\r\n\r\nimport { pressChoicePropsOptions, useChoice } from '../../composables/choice';\r\nimport { useRender } from '../../composables/component';\r\nimport { useResizeObserver } from '../../composables/resize-observer';\r\nimport { propsFactory } from '../../util/component';\r\nimport { YTab } from './YTab';\r\nimport { Y_TABS_KEY } from './shared';\r\nimport { YTabPropItem } from './types';\r\n\r\nimport './YTabs.scss';\r\n\r\nexport const pressYTabsPropOptions = propsFactory(\r\n {\r\n items: {\r\n type: Array as PropType<YTabPropItem[]>,\r\n },\r\n ...pressChoicePropsOptions({\r\n selectedClass: 'y-tab--active',\r\n mandatory: 'force' as const,\r\n }),\r\n },\r\n 'YTabs',\r\n);\r\n\r\nexport const YTabs = defineComponent({\r\n name: 'YTabs',\r\n props: {\r\n tag: {\r\n type: String as PropType<'div' | 'nav' | 'ol' | 'ul'>,\r\n default: 'div',\r\n },\r\n ...pressYTabsPropOptions(),\r\n },\r\n emits: {\r\n 'update:modelValue': (value: any) => true,\r\n },\r\n setup(props, { slots }) {\r\n const { resizeObservedRef: container$, contentRect: containerRect } =\r\n useResizeObserver();\r\n const { resizeObservedRef: content$, contentRect } = useResizeObserver();\r\n\r\n const choiceState = useChoice(props, Y_TABS_KEY);\r\n\r\n const slotProps = computed(() => {\r\n return {\r\n next: choiceState.next,\r\n prev: choiceState.prev,\r\n select: choiceState.select,\r\n isSelected: choiceState.isSelected,\r\n };\r\n });\r\n\r\n const tabItems = computed(() => {\r\n return (\r\n props.items?.map((item) => {\r\n if (typeof item !== 'object') {\r\n return {\r\n text: item,\r\n value: item,\r\n };\r\n }\r\n return item;\r\n }) ?? []\r\n );\r\n });\r\n\r\n useRender(() => {\r\n return (\r\n <props.tag class={['y-tabs']} role=\"tablist\">\r\n <div key=\"container\" ref={container$} class={['y-tabs__container']}>\r\n <div key=\"content\" ref={content$} class={['y-tabs__content']}>\r\n {slots.default\r\n ? slots.default(slotProps.value)\r\n : tabItems.value.map((tabItem) => (\r\n <YTab {...tabItem} key={tabItem.text}></YTab>\r\n ))}\r\n </div>\r\n </div>\r\n </props.tag>\r\n );\r\n });\r\n\r\n return {\r\n selected: choiceState.selected,\r\n };\r\n },\r\n});\r\n\r\nexport type YTabs = InstanceType<typeof YTabs>;\r\n"],"mappings":";AAAA,SAAmBA,QAAQ,EAAEC,eAAe,QAAQ,KAAK;AAAC,SAEjDC,uBAAuB,EAAEC,SAAS;AAAA,SAClCC,SAAS;AAAA,SAC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AEC,IAAI,IAAK;QACzB,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;UAC5B,OAAO;YACLC,IAAI,EAAED,IAAI;YACVjB,KAAK,EAAEiB;UACT,CAAC;QACH;QACA,OAAOA,IAAI;MACb,CAAC,CAAC,IAAI,EAAE;IAEZ,CAAC,CAAC;IAEFnC,SAAS,CAAC,MAAM;MACd,OAAAqC,YAAA,CAAAxB,KAAA,CAAAC,GAAA;QAAA,SACoB,CAAC,QAAQ,CAAC;QAAA;MAAA;QAAAE,OAAA,EAAAA,CAAA,MAAAqB,YAAA;UAAA;UAAA,OACAd,UAAU;UAAA,SAAS,CAAC,mBAAmB;QAAC,IAAAc,YAAA;UAAA;UAAA,OACxCX,QAAQ;UAAA,SAAS,CAAC,iBAAiB;QAAC,IACzDL,KAAK,CAACL,OAAO,GACVK,KAAK,CAACL,OAAO,CAACY,SAAS,CAACV,KAAK,CAAC,GAC9Be,QAAQ,CAACf,KAAK,CAACgB,GAAG,CAAEI,OAAO,IAAAD,YAAA,CAAAlC,IAAA,EAAAoC,WAAA,CACfD,OAAO;UAAA,OAAOA,OAAO,CAACF;QAAI,SACrC,CAAC;MAAA;IAKhB,CAAC,CAAC;IAEF,OAAO;MACLI,QAAQ,EAAEb,WAAW,CAACa;IACxB,CAAC;EACH;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"YTabs.mjs","names":["computed","pressChoicePropsOptions","useChoice","useRender","useResizeObserver","defineComponent","propsFactory","YTab","Y_TABS_KEY","pressYTabsPropOptions","items","type","Array","selectedClass","mandatory","YTabs","name","props","tag","String","default","emits","value","setup","_ref","slots","resizeObservedRef","container$","contentRect","containerRect","content$","choiceState","slotProps","next","prev","select","isSelected","tabItems","map","item","text","_createVNode","tabItem","_mergeProps","selected"],"sources":["../../../src/components/tab/YTabs.tsx"],"sourcesContent":["import { type PropType, computed } from 'vue';\n\nimport { pressChoicePropsOptions, useChoice } from '@/composables/choice';\nimport { useRender } from '@/composables/component';\nimport { useResizeObserver } from '@/composables/resize-observer';\nimport { defineComponent, propsFactory } from '@/util/component';\n\nimport { YTab } from './YTab';\nimport { Y_TABS_KEY } from './shared';\nimport { YTabPropItem } from './types';\n\nimport './YTabs.scss';\n\nexport const pressYTabsPropOptions = propsFactory(\n {\n items: {\n type: Array as PropType<YTabPropItem[]>,\n },\n ...pressChoicePropsOptions({\n selectedClass: 'y-tab--active',\n mandatory: 'force' as const,\n }),\n },\n 'YTabs',\n);\n\nexport const YTabs = defineComponent({\n name: 'YTabs',\n props: {\n tag: {\n type: String as PropType<'div' | 'nav' | 'ol' | 'ul'>,\n default: 'div',\n },\n ...pressYTabsPropOptions(),\n },\n emits: {\n 'update:modelValue': (value: any) => true,\n },\n setup(props, { slots }) {\n const { resizeObservedRef: container$, contentRect: containerRect } =\n useResizeObserver();\n const { resizeObservedRef: content$, contentRect } = useResizeObserver();\n\n const choiceState = useChoice(props, Y_TABS_KEY);\n\n const slotProps = computed(() => {\n return {\n next: choiceState.next,\n prev: choiceState.prev,\n select: choiceState.select,\n isSelected: choiceState.isSelected,\n };\n });\n\n const tabItems = computed(() => {\n return (\n props.items?.map((item) => {\n if (typeof item !== 'object') {\n return {\n text: item,\n value: item,\n };\n }\n return item;\n }) ?? []\n );\n });\n\n useRender(() => {\n return (\n <props.tag class={['y-tabs']} role=\"tablist\">\n <div key=\"container\" ref={container$} class={['y-tabs__container']}>\n <div key=\"content\" ref={content$} class={['y-tabs__content']}>\n {slots.default\n ? slots.default(slotProps.value)\n : tabItems.value.map((tabItem) => (\n <YTab {...tabItem} key={tabItem.text}></YTab>\n ))}\n </div>\n </div>\n </props.tag>\n );\n });\n\n return {\n selected: choiceState.selected,\n };\n },\n});\n\nexport type YTabs = InstanceType<typeof YTabs>;\n"],"mappings":";AAAA,SAAwBA,QAAQ,QAAQ,KAAK;AAAC,SAErCC,uBAAuB,EAAEC,SAAS;AAAA,SAClCC,SAAS;AAAA,SACTC,iBAAiB;AAAA,SACjBC,eAAe,EAAEC,YAAY;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,OAAOA,IAAI,KAAK,QAAQ,EAAE;UAC5B,OAAO;YACLC,IAAI,EAAED,IAAI;YACVjB,KAAK,EAAEiB;UACT,CAAC;QACH;QACA,OAAOA,IAAI;MACb,CAAC,CAAC,IAAI,EAAE;IAEZ,CAAC,CAAC;IAEFpC,SAAS,CAAC,MAAM;MACd,OAAAsC,YAAA,CAAAxB,KAAA,CAAAC,GAAA;QAAA,SACoB,CAAC,QAAQ,CAAC;QAAA;MAAA;QAAAE,OAAA,EAAAA,CAAA,MAAAqB,YAAA;UAAA;UAAA,OACAd,UAAU;UAAA,SAAS,CAAC,mBAAmB;QAAC,IAAAc,YAAA;UAAA;UAAA,OACxCX,QAAQ;UAAA,SAAS,CAAC,iBAAiB;QAAC,IACzDL,KAAK,CAACL,OAAO,GACVK,KAAK,CAACL,OAAO,CAACY,SAAS,CAACV,KAAK,CAAC,GAC9Be,QAAQ,CAACf,KAAK,CAACgB,GAAG,CAAEI,OAAO,IAAAD,YAAA,CAAAlC,IAAA,EAAAoC,WAAA,CACfD,OAAO;UAAA,OAAOA,OAAO,CAACF;QAAI,SACrC,CAAC;MAAA;IAKhB,CAAC,CAAC;IAEF,OAAO;MACLI,QAAQ,EAAEb,WAAW,CAACa;IACxB,CAAC;EACH;AACF,CAAC,CAAC"}
@@ -1,10 +1,8 @@
1
- .y-tabs {
2
- --y-tabs-gap: 16px;
3
-
4
-
5
-
6
- &__content {
7
- display: flex;
8
- gap: var(--y-tabs-gap);
9
- }
10
- }
1
+ .y-tabs {
2
+ --y-tabs-gap: 16px;
3
+
4
+ &__content {
5
+ display: flex;
6
+ gap: var(--y-tabs-gap);
7
+ }
8
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["Y_TABS_KEY"],"sources":["../../../src/components/tab/index.ts"],"sourcesContent":["export * from './YTabs';\r\nexport * from './YTab';\r\nexport {Y_TABS_KEY} from \"./shared\";\r\n"],"mappings":";;SAEQA,UAAU"}
1
+ {"version":3,"file":"index.mjs","names":["Y_TABS_KEY"],"sources":["../../../src/components/tab/index.ts"],"sourcesContent":["export * from './YTabs';\nexport * from './YTab';\nexport { Y_TABS_KEY } from './shared';\n"],"mappings":";;SAESA,UAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.mjs","names":[],"sources":["../../../src/components/tab/types.ts"],"sourcesContent":["export interface YTabPropItem {\r\n text: string;\r\n value?: string;\r\n [Key: string]: any;\r\n}\r\n"],"mappings":""}
1
+ {"version":3,"file":"types.mjs","names":[],"sources":["../../../src/components/tab/types.ts"],"sourcesContent":["export interface YTabPropItem {\n text: string;\n value?: string;\n [Key: string]: any;\n}\n"],"mappings":""}
@@ -1,9 +1,9 @@
1
1
  import { mergeProps as _mergeProps, createVNode as _createVNode, resolveDirective as _resolveDirective, Fragment as _Fragment } from "vue";
2
- import { computed, defineComponent, provide, toRef } from 'vue';
2
+ import { computed, provide, toRef } from 'vue';
3
3
  import { useRender } from "../../composables/component.mjs";
4
4
  import { useResizeObserver } from "../../composables/resize-observer.mjs";
5
- import { toStyleSizeValue } from "../../util/index.mjs";
6
- import { chooseProps, propsFactory } from "../../util/component/index.mjs";
5
+ import { chooseProps, defineComponent, propsFactory } from "../../util/component/index.mjs";
6
+ import { toStyleSizeValue } from "../../util/ui.mjs";
7
7
  import { YDataTableBody, pressYDataTableBodyProps } from "./YDataTableBody.mjs";
8
8
  import { YDataTableControl } from "./YDataTableControl.mjs";
9
9
  import { YDataTableHead, pressYDataTableHeadProps } from "./YDataTableHead.mjs";
@@ -14,8 +14,8 @@ import { pressDataTableItemsProps, useItems } from "./composibles/items.mjs";
14
14
  import { useOptions } from "./composibles/options.mjs";
15
15
  import { createPagination, pressDataTablePaginationProps, providePagination, usePaginatedItems } from "./composibles/pagination.mjs";
16
16
  import { pressDataTableSelectionProps, provideSelection } from "./composibles/selection.mjs";
17
- import { createSorting, pressDataTableSortProps, provideSorting } from "./composibles/sorting.mjs";
18
17
  import { useSortedItems } from "./composibles/sorted-items.mjs";
18
+ import { createSorting, pressDataTableSortProps, provideSorting } from "./composibles/sorting.mjs";
19
19
  export const pressDataTableProps = propsFactory({
20
20
  ...pressYDataTableBodyProps(),
21
21
  width: [String, Number],
@@ -40,7 +40,7 @@ export const YDataTable = defineComponent({
40
40
  'update:sortBy': sortBy => true,
41
41
  'update:options': options => true,
42
42
  'click:row': (e, value) => true,
43
- 'scroll': e => true
43
+ scroll: e => true
44
44
  },
45
45
  setup(props, _ref) {
46
46
  let {