@groupteknology/vuno 1.0.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (481) hide show
  1. package/README.md +53 -27
  2. package/dist/module.d.mts +2 -0
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +33 -12
  5. package/dist/runtime/app/assets/css/dialog.css +1 -1
  6. package/dist/runtime/app/assets/css/stylesheet.css +1 -0
  7. package/dist/runtime/app/assets/css/theme.css +1 -1
  8. package/dist/runtime/app/assets/css/tokens.css +1 -1
  9. package/dist/runtime/app/components/Alert/Alert.d.vue.ts +20 -0
  10. package/dist/runtime/app/components/Alert/Alert.theme.d.ts +13 -0
  11. package/dist/runtime/app/components/Alert/Alert.theme.js +13 -0
  12. package/dist/runtime/app/components/Alert/Alert.vue +59 -0
  13. package/dist/runtime/app/components/Alert/Alert.vue.d.ts +20 -0
  14. package/dist/runtime/app/components/{overlays → App}/App.d.vue.ts +4 -5
  15. package/dist/runtime/app/components/{overlays → App}/App.vue +8 -12
  16. package/dist/runtime/app/components/{overlays → App}/App.vue.d.ts +4 -5
  17. package/dist/runtime/app/components/App/internal/Overlay/Overlay.d.vue.ts +7 -0
  18. package/dist/runtime/app/components/{overlays → App/internal/Overlay}/Overlay.vue +5 -6
  19. package/dist/runtime/app/components/App/internal/Overlay/Overlay.vue.d.ts +7 -0
  20. package/dist/runtime/app/components/App/internal/OverlayItem/OverlayItem.d.vue.ts +8 -0
  21. package/dist/runtime/app/components/App/internal/OverlayItem/OverlayItem.vue +19 -0
  22. package/dist/runtime/app/components/App/internal/OverlayItem/OverlayItem.vue.d.ts +8 -0
  23. package/dist/runtime/app/components/{overlays → App/internal/Toast}/Toast.d.vue.ts +3 -3
  24. package/dist/runtime/app/components/App/internal/Toast/Toast.theme.d.ts +13 -0
  25. package/dist/runtime/app/components/App/internal/Toast/Toast.theme.js +18 -0
  26. package/dist/runtime/app/components/{overlays → App/internal/Toast}/Toast.vue +3 -2
  27. package/dist/runtime/app/components/{overlays → App/internal/Toast}/Toast.vue.d.ts +3 -3
  28. package/dist/runtime/app/components/{overlays → App/internal/Toaster}/Toaster.d.vue.ts +3 -3
  29. package/dist/runtime/app/components/App/internal/Toaster/Toaster.theme.d.ts +15 -0
  30. package/dist/runtime/app/components/App/internal/Toaster/Toaster.theme.js +16 -0
  31. package/dist/runtime/app/components/{overlays → App/internal/Toaster}/Toaster.vue +3 -2
  32. package/dist/runtime/app/components/{overlays → App/internal/Toaster}/Toaster.vue.d.ts +3 -3
  33. package/dist/runtime/app/components/{actions → Avatar}/Avatar.d.vue.ts +9 -5
  34. package/dist/runtime/app/components/Avatar/Avatar.theme.d.ts +30 -0
  35. package/dist/runtime/app/components/Avatar/Avatar.theme.js +22 -0
  36. package/dist/runtime/app/components/{actions → Avatar}/Avatar.vue +7 -5
  37. package/dist/runtime/app/components/{actions → Avatar}/Avatar.vue.d.ts +9 -5
  38. package/dist/runtime/app/components/{actions → Badge}/Badge.d.vue.ts +9 -5
  39. package/dist/runtime/app/components/Badge/Badge.theme.d.ts +40 -0
  40. package/dist/runtime/app/components/Badge/Badge.theme.js +22 -0
  41. package/dist/runtime/app/components/{actions → Badge}/Badge.vue +3 -0
  42. package/dist/runtime/app/components/{actions → Badge}/Badge.vue.d.ts +9 -5
  43. package/dist/runtime/app/components/{actions → Button}/Button.d.vue.ts +10 -6
  44. package/dist/runtime/app/components/Button/Button.theme.d.ts +88 -0
  45. package/dist/runtime/app/components/Button/Button.theme.js +59 -0
  46. package/dist/runtime/app/components/{actions → Button}/Button.vue +10 -3
  47. package/dist/runtime/app/components/{actions → Button}/Button.vue.d.ts +10 -6
  48. package/dist/runtime/app/components/{structure → Card}/Card.d.vue.ts +9 -5
  49. package/dist/runtime/app/components/Card/Card.theme.d.ts +57 -0
  50. package/dist/runtime/app/components/Card/Card.theme.js +62 -0
  51. package/dist/runtime/app/components/{structure → Card}/Card.vue +3 -1
  52. package/dist/runtime/app/components/{structure → Card}/Card.vue.d.ts +9 -5
  53. package/dist/runtime/app/components/Code/Code.d.vue.ts +19 -0
  54. package/dist/runtime/app/components/Code/Code.theme.d.ts +11 -0
  55. package/dist/runtime/app/components/Code/Code.theme.js +12 -0
  56. package/dist/runtime/app/components/Code/Code.vue +109 -0
  57. package/dist/runtime/app/components/Code/Code.vue.d.ts +19 -0
  58. package/dist/runtime/app/components/{overlays → Confirm}/Confirm.d.vue.ts +2 -2
  59. package/dist/runtime/app/components/Confirm/Confirm.theme.d.ts +12 -0
  60. package/dist/runtime/app/components/Confirm/Confirm.theme.js +13 -0
  61. package/dist/runtime/app/components/{overlays → Confirm}/Confirm.vue +10 -5
  62. package/dist/runtime/app/components/{overlays → Confirm}/Confirm.vue.d.ts +2 -2
  63. package/dist/runtime/app/components/{structure → Container}/Container.d.vue.ts +5 -5
  64. package/dist/runtime/app/components/Container/Container.theme.d.ts +53 -0
  65. package/dist/runtime/app/components/Container/Container.theme.js +31 -0
  66. package/dist/runtime/app/components/{structure → Container}/Container.vue +2 -1
  67. package/dist/runtime/app/components/{structure → Container}/Container.vue.d.ts +5 -5
  68. package/dist/runtime/app/components/ControlGroup/ControlGroup.d.vue.ts +26 -0
  69. package/dist/runtime/app/components/ControlGroup/ControlGroup.theme.d.ts +16 -0
  70. package/dist/runtime/app/components/ControlGroup/ControlGroup.theme.js +13 -0
  71. package/dist/runtime/app/components/ControlGroup/ControlGroup.vue +26 -0
  72. package/dist/runtime/app/components/ControlGroup/ControlGroup.vue.d.ts +26 -0
  73. package/dist/runtime/app/components/FieldArray/FieldArray.d.vue.ts +13 -0
  74. package/dist/runtime/app/components/FieldArray/FieldArray.theme.d.ts +12 -0
  75. package/dist/runtime/app/components/FieldArray/FieldArray.theme.js +13 -0
  76. package/dist/runtime/app/components/FieldArray/FieldArray.vue +173 -0
  77. package/dist/runtime/app/components/FieldArray/FieldArray.vue.d.ts +13 -0
  78. package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.d.vue.ts +13 -0
  79. package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.theme.d.ts +5 -0
  80. package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.theme.js +2 -0
  81. package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.vue +39 -0
  82. package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.vue.d.ts +13 -0
  83. package/dist/runtime/app/components/{forms → FieldCheckbox/internal/Checkbox}/Checkbox.d.vue.ts +9 -4
  84. package/dist/runtime/app/components/FieldCheckbox/internal/Checkbox/Checkbox.theme.d.ts +30 -0
  85. package/dist/runtime/app/components/FieldCheckbox/internal/Checkbox/Checkbox.theme.js +10 -0
  86. package/dist/runtime/app/components/{forms → FieldCheckbox/internal/Checkbox}/Checkbox.vue +7 -4
  87. package/dist/runtime/app/components/{forms → FieldCheckbox/internal/Checkbox}/Checkbox.vue.d.ts +9 -4
  88. package/dist/runtime/app/components/FieldColor/FieldColor.d.vue.ts +13 -0
  89. package/dist/runtime/app/components/FieldColor/FieldColor.theme.d.ts +27 -0
  90. package/dist/runtime/app/components/FieldColor/FieldColor.theme.js +18 -0
  91. package/dist/runtime/app/components/{forms/fields → FieldColor}/FieldColor.vue +39 -32
  92. package/dist/runtime/app/components/FieldColor/FieldColor.vue.d.ts +13 -0
  93. package/dist/runtime/app/components/FieldCurrency/FieldCurrency.d.vue.ts +13 -0
  94. package/dist/runtime/app/components/FieldCurrency/FieldCurrency.theme.d.ts +5 -0
  95. package/dist/runtime/app/components/FieldCurrency/FieldCurrency.theme.js +2 -0
  96. package/dist/runtime/app/components/FieldCurrency/FieldCurrency.vue +51 -0
  97. package/dist/runtime/app/components/FieldCurrency/FieldCurrency.vue.d.ts +13 -0
  98. package/dist/runtime/app/components/{forms/fields → FieldFile}/FieldFile.d.vue.ts +10 -2
  99. package/dist/runtime/app/components/FieldFile/FieldFile.theme.d.ts +5 -0
  100. package/dist/runtime/app/components/FieldFile/FieldFile.theme.js +2 -0
  101. package/dist/runtime/app/components/FieldFile/FieldFile.vue +99 -0
  102. package/dist/runtime/app/components/{forms/fields → FieldFile}/FieldFile.vue.d.ts +10 -2
  103. package/dist/runtime/app/components/{forms → FieldFile/internal/FileUpload}/FileUpload.d.vue.ts +25 -20
  104. package/dist/runtime/app/components/FieldFile/internal/FileUpload/FileUpload.theme.d.ts +88 -0
  105. package/dist/runtime/app/components/FieldFile/internal/FileUpload/FileUpload.theme.js +55 -0
  106. package/dist/runtime/app/components/{forms → FieldFile/internal/FileUpload}/FileUpload.vue +21 -20
  107. package/dist/runtime/app/components/{forms → FieldFile/internal/FileUpload}/FileUpload.vue.d.ts +25 -20
  108. package/dist/runtime/app/components/FieldInput/FieldInput.d.vue.ts +24 -0
  109. package/dist/runtime/app/components/FieldInput/FieldInput.theme.d.ts +5 -0
  110. package/dist/runtime/app/components/FieldInput/FieldInput.theme.js +2 -0
  111. package/dist/runtime/app/components/FieldInput/FieldInput.vue +61 -0
  112. package/dist/runtime/app/components/FieldInput/FieldInput.vue.d.ts +24 -0
  113. package/dist/runtime/app/components/FieldNumber/FieldNumber.d.vue.ts +13 -0
  114. package/dist/runtime/app/components/FieldNumber/FieldNumber.theme.d.ts +5 -0
  115. package/dist/runtime/app/components/FieldNumber/FieldNumber.theme.js +2 -0
  116. package/dist/runtime/app/components/FieldNumber/FieldNumber.vue +47 -0
  117. package/dist/runtime/app/components/FieldNumber/FieldNumber.vue.d.ts +13 -0
  118. package/dist/runtime/app/components/FieldPassword/FieldPassword.d.vue.ts +13 -0
  119. package/dist/runtime/app/components/FieldPassword/FieldPassword.theme.d.ts +5 -0
  120. package/dist/runtime/app/components/FieldPassword/FieldPassword.theme.js +2 -0
  121. package/dist/runtime/app/components/FieldPassword/FieldPassword.vue +62 -0
  122. package/dist/runtime/app/components/FieldPassword/FieldPassword.vue.d.ts +13 -0
  123. package/dist/runtime/app/components/FieldRadio/FieldRadio.d.vue.ts +13 -0
  124. package/dist/runtime/app/components/FieldRadio/FieldRadio.theme.d.ts +5 -0
  125. package/dist/runtime/app/components/FieldRadio/FieldRadio.theme.js +2 -0
  126. package/dist/runtime/app/components/FieldRadio/FieldRadio.vue +41 -0
  127. package/dist/runtime/app/components/FieldRadio/FieldRadio.vue.d.ts +13 -0
  128. package/dist/runtime/app/components/{forms → FieldRadio/internal/RadioGroup}/RadioGroup.d.vue.ts +10 -8
  129. package/dist/runtime/app/components/FieldRadio/internal/RadioGroup/RadioGroup.theme.d.ts +54 -0
  130. package/dist/runtime/app/components/FieldRadio/internal/RadioGroup/RadioGroup.theme.js +31 -0
  131. package/dist/runtime/app/components/{forms → FieldRadio/internal/RadioGroup}/RadioGroup.vue +7 -4
  132. package/dist/runtime/app/components/{forms → FieldRadio/internal/RadioGroup}/RadioGroup.vue.d.ts +10 -8
  133. package/dist/runtime/app/components/FieldSearch/FieldSearch.d.vue.ts +17 -0
  134. package/dist/runtime/app/components/FieldSearch/FieldSearch.theme.d.ts +6 -0
  135. package/dist/runtime/app/components/FieldSearch/FieldSearch.theme.js +7 -0
  136. package/dist/runtime/app/components/FieldSearch/FieldSearch.vue +74 -0
  137. package/dist/runtime/app/components/FieldSearch/FieldSearch.vue.d.ts +17 -0
  138. package/dist/runtime/app/components/FieldSelect/FieldSelect.d.vue.ts +13 -0
  139. package/dist/runtime/app/components/FieldSelect/FieldSelect.theme.d.ts +5 -0
  140. package/dist/runtime/app/components/FieldSelect/FieldSelect.theme.js +2 -0
  141. package/dist/runtime/app/components/FieldSelect/FieldSelect.vue +45 -0
  142. package/dist/runtime/app/components/FieldSelect/FieldSelect.vue.d.ts +13 -0
  143. package/dist/runtime/app/components/FieldSelect/internal/Select/Select.d.vue.ts +97 -0
  144. package/dist/runtime/app/components/FieldSelect/internal/Select/Select.theme.d.ts +36 -0
  145. package/dist/runtime/app/components/FieldSelect/internal/Select/Select.theme.js +49 -0
  146. package/dist/runtime/app/components/FieldSelect/internal/Select/Select.vue +196 -0
  147. package/dist/runtime/app/components/FieldSelect/internal/Select/Select.vue.d.ts +97 -0
  148. package/dist/runtime/app/{utils → components/FieldSelect/internal/Select}/option.d.ts +3 -4
  149. package/dist/runtime/app/components/FieldSelect/internal/Select/useVunoSelectState.d.ts +30 -0
  150. package/dist/runtime/app/components/FieldSelect/internal/Select/useVunoSelectState.js +142 -0
  151. package/dist/runtime/app/components/FieldSlug/FieldSlug.d.vue.ts +13 -0
  152. package/dist/runtime/app/components/FieldSlug/FieldSlug.theme.d.ts +5 -0
  153. package/dist/runtime/app/components/FieldSlug/FieldSlug.theme.js +2 -0
  154. package/dist/runtime/app/components/{forms/fields → FieldSlug}/FieldSlug.vue +58 -47
  155. package/dist/runtime/app/components/FieldSlug/FieldSlug.vue.d.ts +13 -0
  156. package/dist/runtime/app/components/FieldSwitch/FieldSwitch.d.vue.ts +13 -0
  157. package/dist/runtime/app/components/FieldSwitch/FieldSwitch.theme.d.ts +5 -0
  158. package/dist/runtime/app/components/FieldSwitch/FieldSwitch.theme.js +2 -0
  159. package/dist/runtime/app/components/FieldSwitch/FieldSwitch.vue +37 -0
  160. package/dist/runtime/app/components/FieldSwitch/FieldSwitch.vue.d.ts +13 -0
  161. package/dist/runtime/app/components/{forms → FieldSwitch/internal/Switch}/Switch.d.vue.ts +9 -4
  162. package/dist/runtime/app/components/FieldSwitch/internal/Switch/Switch.theme.d.ts +39 -0
  163. package/dist/runtime/app/components/FieldSwitch/internal/Switch/Switch.theme.js +20 -0
  164. package/dist/runtime/app/components/{forms → FieldSwitch/internal/Switch}/Switch.vue +4 -2
  165. package/dist/runtime/app/components/{forms → FieldSwitch/internal/Switch}/Switch.vue.d.ts +9 -4
  166. package/dist/runtime/app/components/FieldTags/FieldTags.d.vue.ts +13 -0
  167. package/dist/runtime/app/components/FieldTags/FieldTags.theme.d.ts +5 -0
  168. package/dist/runtime/app/components/FieldTags/FieldTags.theme.js +2 -0
  169. package/dist/runtime/app/components/FieldTags/FieldTags.vue +41 -0
  170. package/dist/runtime/app/components/FieldTags/FieldTags.vue.d.ts +13 -0
  171. package/dist/runtime/app/components/FieldTags/internal/TagsInput/TagsInput.d.vue.ts +26 -0
  172. package/dist/runtime/app/components/FieldTags/internal/TagsInput/TagsInput.theme.d.ts +34 -0
  173. package/dist/runtime/app/components/FieldTags/internal/TagsInput/TagsInput.theme.js +20 -0
  174. package/dist/runtime/app/components/FieldTags/internal/TagsInput/TagsInput.vue +97 -0
  175. package/dist/runtime/app/components/FieldTags/internal/TagsInput/TagsInput.vue.d.ts +26 -0
  176. package/dist/runtime/app/components/{forms/fields → FieldTextarea}/FieldTextarea.d.vue.ts +10 -2
  177. package/dist/runtime/app/components/FieldTextarea/FieldTextarea.theme.d.ts +5 -0
  178. package/dist/runtime/app/components/FieldTextarea/FieldTextarea.theme.js +2 -0
  179. package/dist/runtime/app/components/FieldTextarea/FieldTextarea.vue +45 -0
  180. package/dist/runtime/app/components/{forms/fields → FieldTextarea}/FieldTextarea.vue.d.ts +10 -2
  181. package/dist/runtime/app/components/{forms → FieldTextarea/internal/Textarea}/Textarea.d.vue.ts +9 -4
  182. package/dist/runtime/app/components/FieldTextarea/internal/Textarea/Textarea.theme.d.ts +36 -0
  183. package/dist/runtime/app/components/FieldTextarea/internal/Textarea/Textarea.theme.js +37 -0
  184. package/dist/runtime/app/components/{forms → FieldTextarea/internal/Textarea}/Textarea.vue +6 -4
  185. package/dist/runtime/app/components/{forms → FieldTextarea/internal/Textarea}/Textarea.vue.d.ts +9 -4
  186. package/dist/runtime/app/components/{forms → Form}/Form.d.vue.ts +3 -4
  187. package/dist/runtime/app/components/Form/Form.theme.d.ts +9 -0
  188. package/dist/runtime/app/components/Form/Form.theme.js +10 -0
  189. package/dist/runtime/app/components/{forms → Form}/Form.vue +7 -6
  190. package/dist/runtime/app/components/{forms → Form}/Form.vue.d.ts +3 -4
  191. package/dist/runtime/app/components/Form/internal/FormFieldRenderer/FormFieldRenderer.d.vue.ts +7 -0
  192. package/dist/runtime/app/components/Form/internal/FormFieldRenderer/FormFieldRenderer.vue +67 -0
  193. package/dist/runtime/app/components/Form/internal/FormFieldRenderer/FormFieldRenderer.vue.d.ts +7 -0
  194. package/dist/runtime/app/components/Form/internal/standard-schema.d.ts +29 -0
  195. package/dist/runtime/app/{internal → components/Form/internal}/useVunoFormState.d.ts +5 -3
  196. package/dist/runtime/app/{internal → components/Form/internal}/useVunoFormState.js +4 -3
  197. package/dist/runtime/app/components/{forms → FormField}/FormField.d.vue.ts +7 -4
  198. package/dist/runtime/app/components/FormField/FormField.theme.d.ts +62 -0
  199. package/dist/runtime/app/components/FormField/FormField.theme.js +28 -0
  200. package/dist/runtime/app/components/{forms → FormField}/FormField.vue +61 -42
  201. package/dist/runtime/app/components/{forms → FormField}/FormField.vue.d.ts +7 -4
  202. package/dist/runtime/app/components/{forms → FormModal}/FormModal.d.vue.ts +9 -7
  203. package/dist/runtime/app/components/FormModal/FormModal.theme.d.ts +8 -0
  204. package/dist/runtime/app/components/FormModal/FormModal.theme.js +9 -0
  205. package/dist/runtime/app/components/{forms → FormModal}/FormModal.vue +15 -12
  206. package/dist/runtime/app/components/{forms → FormModal}/FormModal.vue.d.ts +9 -7
  207. package/dist/runtime/app/components/FormSection/FormSection.d.vue.ts +15 -0
  208. package/dist/runtime/app/components/FormSection/FormSection.theme.d.ts +12 -0
  209. package/dist/runtime/app/components/FormSection/FormSection.theme.js +14 -0
  210. package/dist/runtime/app/components/{forms → FormSection}/FormSection.vue +5 -3
  211. package/dist/runtime/app/components/FormSection/FormSection.vue.d.ts +15 -0
  212. package/dist/runtime/app/components/Icon/Icon.d.vue.ts +6 -0
  213. package/dist/runtime/app/components/Icon/Icon.vue +32 -0
  214. package/dist/runtime/app/components/Icon/Icon.vue.d.ts +6 -0
  215. package/dist/runtime/app/components/{actions → Menu}/Menu.d.vue.ts +6 -4
  216. package/dist/runtime/app/components/Menu/Menu.theme.d.ts +17 -0
  217. package/dist/runtime/app/components/Menu/Menu.theme.js +20 -0
  218. package/dist/runtime/app/components/{actions → Menu}/Menu.vue +20 -27
  219. package/dist/runtime/app/components/{actions → Menu}/Menu.vue.d.ts +6 -4
  220. package/dist/runtime/app/components/Modal/Modal.d.vue.ts +43 -0
  221. package/dist/runtime/app/components/Modal/Modal.theme.d.ts +59 -0
  222. package/dist/runtime/app/components/Modal/Modal.theme.js +47 -0
  223. package/dist/runtime/app/components/{overlays → Modal}/Modal.vue +89 -32
  224. package/dist/runtime/app/components/Modal/Modal.vue.d.ts +43 -0
  225. package/dist/runtime/app/components/{structure → Navbar}/Navbar.d.vue.ts +14 -18
  226. package/dist/runtime/app/components/Navbar/Navbar.theme.d.ts +31 -0
  227. package/dist/runtime/app/components/Navbar/Navbar.theme.js +32 -0
  228. package/dist/runtime/app/components/{structure → Navbar}/Navbar.vue +1 -0
  229. package/dist/runtime/app/components/{structure → Navbar}/Navbar.vue.d.ts +14 -18
  230. package/dist/runtime/app/components/NavigationList/NavigationList.d.vue.ts +38 -0
  231. package/dist/runtime/app/components/NavigationList/NavigationList.theme.d.ts +32 -0
  232. package/dist/runtime/app/components/NavigationList/NavigationList.theme.js +35 -0
  233. package/dist/runtime/app/components/{structure/Navigation.vue → NavigationList/NavigationList.vue} +74 -34
  234. package/dist/runtime/app/components/NavigationList/NavigationList.vue.d.ts +38 -0
  235. package/dist/runtime/app/components/NavigationMenu/NavigationMenu.d.vue.ts +31 -0
  236. package/dist/runtime/app/components/NavigationMenu/NavigationMenu.theme.d.ts +26 -0
  237. package/dist/runtime/app/components/NavigationMenu/NavigationMenu.theme.js +27 -0
  238. package/dist/runtime/app/components/NavigationMenu/NavigationMenu.vue +236 -0
  239. package/dist/runtime/app/components/NavigationMenu/NavigationMenu.vue.d.ts +31 -0
  240. package/dist/runtime/app/components/NavigationToc/NavigationToc.d.vue.ts +14 -0
  241. package/dist/runtime/app/components/NavigationToc/NavigationToc.theme.d.ts +9 -0
  242. package/dist/runtime/app/components/NavigationToc/NavigationToc.theme.js +10 -0
  243. package/dist/runtime/app/components/NavigationToc/NavigationToc.vue +81 -0
  244. package/dist/runtime/app/components/NavigationToc/NavigationToc.vue.d.ts +14 -0
  245. package/dist/runtime/app/components/{structure → Page}/Page.d.vue.ts +6 -5
  246. package/dist/runtime/app/components/Page/Page.theme.d.ts +32 -0
  247. package/dist/runtime/app/components/Page/Page.theme.js +31 -0
  248. package/dist/runtime/app/components/{structure → Page}/Page.vue +11 -3
  249. package/dist/runtime/app/components/{structure → Page}/Page.vue.d.ts +6 -5
  250. package/dist/runtime/app/components/{structure → Pagination}/Pagination.d.vue.ts +8 -7
  251. package/dist/runtime/app/components/Pagination/Pagination.theme.d.ts +13 -0
  252. package/dist/runtime/app/components/Pagination/Pagination.theme.js +14 -0
  253. package/dist/runtime/app/components/{structure → Pagination}/Pagination.vue +4 -2
  254. package/dist/runtime/app/components/{structure → Pagination}/Pagination.vue.d.ts +8 -7
  255. package/dist/runtime/app/components/{overlays/Modal.d.vue.ts → Slideover/Slideover.d.vue.ts} +10 -18
  256. package/dist/runtime/app/components/Slideover/Slideover.theme.d.ts +35 -0
  257. package/dist/runtime/app/components/Slideover/Slideover.theme.js +24 -0
  258. package/dist/runtime/app/components/Slideover/Slideover.vue +58 -0
  259. package/dist/runtime/app/components/{overlays/Modal.vue.d.ts → Slideover/Slideover.vue.d.ts} +10 -18
  260. package/dist/runtime/app/components/State/State.theme.d.ts +19 -0
  261. package/dist/runtime/app/components/State/State.theme.js +26 -0
  262. package/dist/runtime/app/components/{structure → State}/State.vue +8 -3
  263. package/dist/runtime/app/components/{structure → Table}/Table.d.vue.ts +5 -2
  264. package/dist/runtime/app/components/Table/Table.theme.d.ts +50 -0
  265. package/dist/runtime/app/components/Table/Table.theme.js +64 -0
  266. package/dist/runtime/app/components/{structure → Table}/Table.vue +62 -72
  267. package/dist/runtime/app/components/{structure → Table}/Table.vue.d.ts +5 -2
  268. package/dist/runtime/app/components/{structure/cells → Table/internal/CellBadge}/CellBadge.vue +2 -1
  269. package/dist/runtime/app/components/Table/internal/CellBoolean/CellBoolean.theme.d.ts +21 -0
  270. package/dist/runtime/app/components/Table/internal/CellBoolean/CellBoolean.theme.js +11 -0
  271. package/dist/runtime/app/components/Table/internal/CellBoolean/CellBoolean.vue +32 -0
  272. package/dist/runtime/app/components/Table/internal/CellCurrency/CellCurrency.theme.d.ts +5 -0
  273. package/dist/runtime/app/components/Table/internal/CellCurrency/CellCurrency.theme.js +4 -0
  274. package/dist/runtime/app/components/{structure/cells → Table/internal/CellCurrency}/CellCurrency.vue +1 -0
  275. package/dist/runtime/app/components/Table/internal/CellDate/CellDate.theme.d.ts +5 -0
  276. package/dist/runtime/app/components/Table/internal/CellDate/CellDate.theme.js +4 -0
  277. package/dist/runtime/app/components/{structure/cells → Table/internal/CellDate}/CellDate.vue +1 -0
  278. package/dist/runtime/app/components/{structure/cells → Table/internal/CellImage}/CellImage.vue +2 -1
  279. package/dist/runtime/app/components/Table/internal/CellNumber/CellNumber.theme.d.ts +5 -0
  280. package/dist/runtime/app/components/Table/internal/CellNumber/CellNumber.theme.js +4 -0
  281. package/dist/runtime/app/components/{structure/cells → Table/internal/CellNumber}/CellNumber.vue +1 -0
  282. package/dist/runtime/app/components/Table/internal/CellText/CellText.theme.d.ts +13 -0
  283. package/dist/runtime/app/components/Table/internal/CellText/CellText.theme.js +11 -0
  284. package/dist/runtime/app/components/{structure/cells → Table/internal/CellText}/CellText.vue +1 -0
  285. package/dist/runtime/app/components/{structure → Table/internal/TableCell}/TableCell.vue +9 -8
  286. package/dist/runtime/app/{utils → components/Table/internal}/column.js +1 -1
  287. package/dist/runtime/app/{internal → components/Table/internal}/useVunoTable.d.ts +23 -22
  288. package/dist/runtime/app/{internal → components/Table/internal}/useVunoTable.js +1 -1
  289. package/dist/runtime/app/components/Table/internal/useVunoTableSelection.d.ts +21 -0
  290. package/dist/runtime/app/components/Table/internal/useVunoTableSelection.js +29 -0
  291. package/dist/runtime/app/components/{structure → Tabs}/Tabs.d.vue.ts +8 -7
  292. package/dist/runtime/app/components/Tabs/Tabs.theme.d.ts +32 -0
  293. package/dist/runtime/app/components/Tabs/Tabs.theme.js +23 -0
  294. package/dist/runtime/app/components/{structure → Tabs}/Tabs.vue +13 -8
  295. package/dist/runtime/app/components/{structure → Tabs}/Tabs.vue.d.ts +8 -7
  296. package/dist/runtime/app/components/{actions → Tooltip}/Tooltip.d.vue.ts +6 -6
  297. package/dist/runtime/app/components/Tooltip/Tooltip.theme.d.ts +12 -0
  298. package/dist/runtime/app/components/Tooltip/Tooltip.theme.js +13 -0
  299. package/dist/runtime/app/components/{actions → Tooltip}/Tooltip.vue +10 -23
  300. package/dist/runtime/app/components/{actions → Tooltip}/Tooltip.vue.d.ts +6 -6
  301. package/dist/runtime/app/components/{forms → internal/ControlShell}/ControlShell.d.vue.ts +9 -5
  302. package/dist/runtime/app/components/internal/ControlShell/ControlShell.theme.d.ts +50 -0
  303. package/dist/runtime/app/components/internal/ControlShell/ControlShell.theme.js +38 -0
  304. package/dist/runtime/app/components/internal/ControlShell/ControlShell.vue +33 -0
  305. package/dist/runtime/app/components/{forms → internal/ControlShell}/ControlShell.vue.d.ts +9 -5
  306. package/dist/runtime/app/components/internal/FieldShell/FieldShell.d.vue.ts +23 -0
  307. package/dist/runtime/app/components/internal/FieldShell/FieldShell.vue +63 -0
  308. package/dist/runtime/app/components/internal/FieldShell/FieldShell.vue.d.ts +23 -0
  309. package/dist/runtime/app/components/{forms → internal/Input}/Input.d.vue.ts +15 -10
  310. package/dist/runtime/app/components/internal/Input/Input.theme.d.ts +30 -0
  311. package/dist/runtime/app/components/internal/Input/Input.theme.js +21 -0
  312. package/dist/runtime/app/components/{forms → internal/Input}/Input.vue +8 -6
  313. package/dist/runtime/app/components/{forms → internal/Input}/Input.vue.d.ts +15 -10
  314. package/dist/runtime/app/components/{forms → internal/NumberInput}/NumberInput.d.vue.ts +14 -8
  315. package/dist/runtime/app/components/internal/NumberInput/NumberInput.theme.d.ts +31 -0
  316. package/dist/runtime/app/components/internal/NumberInput/NumberInput.theme.js +26 -0
  317. package/dist/runtime/app/components/internal/NumberInput/NumberInput.vue +221 -0
  318. package/dist/runtime/app/components/{forms → internal/NumberInput}/NumberInput.vue.d.ts +14 -8
  319. package/dist/runtime/app/{utils → components/internal/NumberInput}/number.d.ts +7 -0
  320. package/dist/runtime/app/components/internal/NumberInput/number.js +64 -0
  321. package/dist/runtime/app/composables/defineShortcuts.d.ts +19 -0
  322. package/dist/runtime/app/composables/defineShortcuts.js +68 -0
  323. package/dist/runtime/app/{internal → composables/internal}/useVunoAnchor.d.ts +6 -4
  324. package/dist/runtime/app/{internal → composables/internal}/useVunoAnchor.js +3 -2
  325. package/dist/runtime/app/composables/internal/useVunoControlGroup.d.ts +17 -0
  326. package/dist/runtime/app/composables/internal/useVunoControlGroup.js +18 -0
  327. package/dist/runtime/app/{internal → composables/internal}/useVunoPortal.d.ts +3 -8
  328. package/dist/runtime/app/composables/internal/useVunoPortal.js +12 -0
  329. package/dist/runtime/app/composables/useCrud.js +5 -4
  330. package/dist/runtime/app/composables/useField.d.ts +3 -3
  331. package/dist/runtime/app/composables/useField.js +16 -8
  332. package/dist/runtime/app/composables/useForm.d.ts +3 -0
  333. package/dist/runtime/app/composables/useForm.js +2 -2
  334. package/dist/runtime/app/composables/useModal.js +1 -3
  335. package/dist/runtime/app/composables/useTableQuery.js +29 -13
  336. package/dist/runtime/app/composables/useTheme.d.ts +3 -2
  337. package/dist/runtime/app/composables/useTheme.js +4 -2
  338. package/dist/runtime/app/internal/keys.d.ts +11 -5
  339. package/dist/runtime/app/internal/keys.js +5 -2
  340. package/dist/runtime/app/internal/slots.d.ts +3 -0
  341. package/dist/runtime/app/internal/slots.js +13 -1
  342. package/dist/runtime/app/plugins/vue-query.d.ts +8 -0
  343. package/dist/runtime/app/plugins/vue-query.js +13 -0
  344. package/dist/runtime/app/theme/icons.js +4 -1
  345. package/dist/runtime/app/theme/index.d.ts +1158 -4
  346. package/dist/runtime/app/theme/index.js +116 -10
  347. package/dist/runtime/app/theme/messages.js +10 -3
  348. package/dist/runtime/app/theme/shared.d.ts +19 -3
  349. package/dist/runtime/app/theme/shared.js +15 -1
  350. package/dist/runtime/app/types/alert.d.ts +13 -0
  351. package/dist/runtime/app/types/base.d.ts +19 -1
  352. package/dist/runtime/app/types/field-type.d.ts +4 -0
  353. package/dist/runtime/app/types/field-type.js +0 -0
  354. package/dist/runtime/app/types/field.d.ts +132 -26
  355. package/dist/runtime/app/types/form.d.ts +27 -1
  356. package/dist/runtime/app/types/index.d.ts +15 -12
  357. package/dist/runtime/app/types/page.d.ts +9 -1
  358. package/dist/runtime/app/types/shortcuts.d.ts +44 -0
  359. package/dist/runtime/app/types/shortcuts.js +0 -0
  360. package/dist/runtime/app/types/slots.d.ts +30 -0
  361. package/dist/runtime/app/types/slots.js +0 -0
  362. package/dist/runtime/app/types/state.d.ts +3 -3
  363. package/dist/runtime/app/types/table.d.ts +3 -2
  364. package/dist/runtime/app/types/theme.d.ts +51 -13
  365. package/dist/runtime/app/utils/format.js +2 -2
  366. package/dist/runtime/app/utils/path.js +4 -2
  367. package/dist/runtime/app/utils/theme.d.ts +19 -1
  368. package/dist/runtime/app/utils/theme.js +21 -3
  369. package/package.json +18 -3
  370. package/dist/runtime/app/components/actions/Icon.d.vue.ts +0 -6
  371. package/dist/runtime/app/components/actions/Icon.vue +0 -32
  372. package/dist/runtime/app/components/actions/Icon.vue.d.ts +0 -6
  373. package/dist/runtime/app/components/forms/ControlShell.vue +0 -19
  374. package/dist/runtime/app/components/forms/FormFieldRenderer.d.vue.ts +0 -7
  375. package/dist/runtime/app/components/forms/FormFieldRenderer.vue +0 -88
  376. package/dist/runtime/app/components/forms/FormFieldRenderer.vue.d.ts +0 -7
  377. package/dist/runtime/app/components/forms/FormSection.d.vue.ts +0 -12
  378. package/dist/runtime/app/components/forms/FormSection.vue.d.ts +0 -12
  379. package/dist/runtime/app/components/forms/NumberInput.vue +0 -160
  380. package/dist/runtime/app/components/forms/Select.d.vue.ts +0 -61
  381. package/dist/runtime/app/components/forms/Select.vue +0 -336
  382. package/dist/runtime/app/components/forms/Select.vue.d.ts +0 -61
  383. package/dist/runtime/app/components/forms/fields/FieldArray.d.vue.ts +0 -5
  384. package/dist/runtime/app/components/forms/fields/FieldArray.vue +0 -129
  385. package/dist/runtime/app/components/forms/fields/FieldArray.vue.d.ts +0 -5
  386. package/dist/runtime/app/components/forms/fields/FieldCheckbox.d.vue.ts +0 -5
  387. package/dist/runtime/app/components/forms/fields/FieldCheckbox.vue +0 -31
  388. package/dist/runtime/app/components/forms/fields/FieldCheckbox.vue.d.ts +0 -5
  389. package/dist/runtime/app/components/forms/fields/FieldColor.d.vue.ts +0 -5
  390. package/dist/runtime/app/components/forms/fields/FieldColor.vue.d.ts +0 -5
  391. package/dist/runtime/app/components/forms/fields/FieldEmail.d.vue.ts +0 -5
  392. package/dist/runtime/app/components/forms/fields/FieldEmail.vue +0 -38
  393. package/dist/runtime/app/components/forms/fields/FieldEmail.vue.d.ts +0 -5
  394. package/dist/runtime/app/components/forms/fields/FieldFile.vue +0 -91
  395. package/dist/runtime/app/components/forms/fields/FieldNumber.d.vue.ts +0 -5
  396. package/dist/runtime/app/components/forms/fields/FieldNumber.vue +0 -39
  397. package/dist/runtime/app/components/forms/fields/FieldNumber.vue.d.ts +0 -5
  398. package/dist/runtime/app/components/forms/fields/FieldPassword.d.vue.ts +0 -5
  399. package/dist/runtime/app/components/forms/fields/FieldPassword.vue +0 -36
  400. package/dist/runtime/app/components/forms/fields/FieldPassword.vue.d.ts +0 -5
  401. package/dist/runtime/app/components/forms/fields/FieldRadio.d.vue.ts +0 -5
  402. package/dist/runtime/app/components/forms/fields/FieldRadio.vue +0 -33
  403. package/dist/runtime/app/components/forms/fields/FieldRadio.vue.d.ts +0 -5
  404. package/dist/runtime/app/components/forms/fields/FieldSelect.d.vue.ts +0 -5
  405. package/dist/runtime/app/components/forms/fields/FieldSelect.vue +0 -37
  406. package/dist/runtime/app/components/forms/fields/FieldSelect.vue.d.ts +0 -5
  407. package/dist/runtime/app/components/forms/fields/FieldSlug.d.vue.ts +0 -5
  408. package/dist/runtime/app/components/forms/fields/FieldSlug.vue.d.ts +0 -5
  409. package/dist/runtime/app/components/forms/fields/FieldSwitch.d.vue.ts +0 -5
  410. package/dist/runtime/app/components/forms/fields/FieldSwitch.vue +0 -29
  411. package/dist/runtime/app/components/forms/fields/FieldSwitch.vue.d.ts +0 -5
  412. package/dist/runtime/app/components/forms/fields/FieldText.d.vue.ts +0 -5
  413. package/dist/runtime/app/components/forms/fields/FieldText.vue +0 -39
  414. package/dist/runtime/app/components/forms/fields/FieldText.vue.d.ts +0 -5
  415. package/dist/runtime/app/components/forms/fields/FieldTextarea.vue +0 -37
  416. package/dist/runtime/app/components/layouts/dashboard/DashboardAside.d.vue.ts +0 -56
  417. package/dist/runtime/app/components/layouts/dashboard/DashboardAside.vue +0 -96
  418. package/dist/runtime/app/components/layouts/dashboard/DashboardAside.vue.d.ts +0 -56
  419. package/dist/runtime/app/components/layouts/dashboard/DashboardLayout.d.vue.ts +0 -57
  420. package/dist/runtime/app/components/layouts/dashboard/DashboardLayout.vue +0 -164
  421. package/dist/runtime/app/components/layouts/dashboard/DashboardLayout.vue.d.ts +0 -57
  422. package/dist/runtime/app/components/layouts/dashboard/DashboardPage.d.vue.ts +0 -49
  423. package/dist/runtime/app/components/layouts/dashboard/DashboardPage.vue +0 -45
  424. package/dist/runtime/app/components/layouts/dashboard/DashboardPage.vue.d.ts +0 -49
  425. package/dist/runtime/app/components/layouts/public/PublicLayout.d.vue.ts +0 -50
  426. package/dist/runtime/app/components/layouts/public/PublicLayout.vue +0 -56
  427. package/dist/runtime/app/components/layouts/public/PublicLayout.vue.d.ts +0 -50
  428. package/dist/runtime/app/components/overlays/Context.d.vue.ts +0 -3
  429. package/dist/runtime/app/components/overlays/Context.vue +0 -7
  430. package/dist/runtime/app/components/overlays/Context.vue.d.ts +0 -3
  431. package/dist/runtime/app/components/overlays/Overlay.d.vue.ts +0 -7
  432. package/dist/runtime/app/components/overlays/Overlay.vue.d.ts +0 -7
  433. package/dist/runtime/app/components/structure/Navigation.d.vue.ts +0 -14
  434. package/dist/runtime/app/components/structure/Navigation.vue.d.ts +0 -14
  435. package/dist/runtime/app/components/structure/cells/CellBoolean.vue +0 -26
  436. package/dist/runtime/app/composables/useDashboard.d.ts +0 -14
  437. package/dist/runtime/app/composables/useDashboard.js +0 -9
  438. package/dist/runtime/app/internal/useVunoDashboard.d.ts +0 -15
  439. package/dist/runtime/app/internal/useVunoDashboard.js +0 -5
  440. package/dist/runtime/app/internal/useVunoPortal.js +0 -8
  441. package/dist/runtime/app/theme/actions.d.ts +0 -2
  442. package/dist/runtime/app/theme/actions.js +0 -123
  443. package/dist/runtime/app/theme/forms.d.ts +0 -2
  444. package/dist/runtime/app/theme/forms.js +0 -442
  445. package/dist/runtime/app/theme/layouts.d.ts +0 -2
  446. package/dist/runtime/app/theme/layouts.js +0 -76
  447. package/dist/runtime/app/theme/overlays.d.ts +0 -2
  448. package/dist/runtime/app/theme/overlays.js +0 -90
  449. package/dist/runtime/app/theme/structure.d.ts +0 -2
  450. package/dist/runtime/app/theme/structure.js +0 -351
  451. package/dist/runtime/app/types/dashboard.d.ts +0 -7
  452. package/dist/runtime/app/utils/number.js +0 -30
  453. package/dist/runtime/app/utils/standard-schema.d.ts +0 -62
  454. /package/dist/runtime/app/{utils → components/FieldSelect/internal/Select}/option.js +0 -0
  455. /package/dist/runtime/app/{utils → components/Form/internal}/grid.d.ts +0 -0
  456. /package/dist/runtime/app/{utils → components/Form/internal}/grid.js +0 -0
  457. /package/dist/runtime/app/{utils → components/Form/internal}/standard-schema.js +0 -0
  458. /package/dist/runtime/app/components/{structure → State}/State.d.vue.ts +0 -0
  459. /package/dist/runtime/app/components/{structure → State}/State.vue.d.ts +0 -0
  460. /package/dist/runtime/app/components/{structure/cells → Table/internal/CellBadge}/CellBadge.d.vue.ts +0 -0
  461. /package/dist/runtime/app/components/{structure/cells → Table/internal/CellBadge}/CellBadge.vue.d.ts +0 -0
  462. /package/dist/runtime/app/components/{structure/cells → Table/internal/CellBoolean}/CellBoolean.d.vue.ts +0 -0
  463. /package/dist/runtime/app/components/{structure/cells → Table/internal/CellBoolean}/CellBoolean.vue.d.ts +0 -0
  464. /package/dist/runtime/app/components/{structure/cells → Table/internal/CellCurrency}/CellCurrency.d.vue.ts +0 -0
  465. /package/dist/runtime/app/components/{structure/cells → Table/internal/CellCurrency}/CellCurrency.vue.d.ts +0 -0
  466. /package/dist/runtime/app/components/{structure/cells → Table/internal/CellDate}/CellDate.d.vue.ts +0 -0
  467. /package/dist/runtime/app/components/{structure/cells → Table/internal/CellDate}/CellDate.vue.d.ts +0 -0
  468. /package/dist/runtime/app/components/{structure/cells → Table/internal/CellImage}/CellImage.d.vue.ts +0 -0
  469. /package/dist/runtime/app/components/{structure/cells → Table/internal/CellImage}/CellImage.vue.d.ts +0 -0
  470. /package/dist/runtime/app/components/{structure/cells → Table/internal/CellNumber}/CellNumber.d.vue.ts +0 -0
  471. /package/dist/runtime/app/components/{structure/cells → Table/internal/CellNumber}/CellNumber.vue.d.ts +0 -0
  472. /package/dist/runtime/app/components/{structure/cells → Table/internal/CellText}/CellText.d.vue.ts +0 -0
  473. /package/dist/runtime/app/components/{structure/cells → Table/internal/CellText}/CellText.vue.d.ts +0 -0
  474. /package/dist/runtime/app/components/{structure → Table/internal/TableCell}/TableCell.d.vue.ts +0 -0
  475. /package/dist/runtime/app/components/{structure → Table/internal/TableCell}/TableCell.vue.d.ts +0 -0
  476. /package/dist/runtime/app/{utils → components/Table/internal}/column.d.ts +0 -0
  477. /package/dist/runtime/app/{utils → components/Table/internal}/query.d.ts +0 -0
  478. /package/dist/runtime/app/{utils → components/Table/internal}/query.js +0 -0
  479. /package/dist/runtime/app/{utils → components/Table/internal}/selection.d.ts +0 -0
  480. /package/dist/runtime/app/{utils → components/Table/internal}/selection.js +0 -0
  481. /package/dist/runtime/app/types/{dashboard.js → alert.js} +0 -0
@@ -0,0 +1,88 @@
1
+ /**
2
+ * La subida de archivos. La zona de caída es una `<label>`, así que el clic
3
+ * en cualquier punto abre el selector sin manejadores; lo que se pinta aquí
4
+ * es solo su aspecto y el de la lista de lo elegido.
5
+ *
6
+ * La miniatura y el icono de respaldo comparten hueco a propósito: si un
7
+ * archivo sin vista previa ocupara menos, la lista bailaría al mezclar
8
+ * imágenes con documentos.
9
+ */
10
+ export declare const fileUploadTheme: Record<"fileUpload", {
11
+ readonly slots: {
12
+ readonly name: "truncate text-vuno-body";
13
+ readonly actions: "ms-auto flex shrink-0 items-center gap-1.5";
14
+ readonly dropzone: "flex cursor-pointer items-center rounded-sm border border-vuno-border-strong bg-vuno-surface-1 text-vuno-muted transition-[background-color,border-color,color] focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-vuno-primary hover:border-vuno-primary hover:bg-vuno-surface-2 hover:text-vuno-body";
15
+ readonly dropzoneActive: "border-vuno-primary bg-vuno-surface-2 text-vuno-body";
16
+ readonly dropzoneDisabled: "cursor-not-allowed opacity-50";
17
+ readonly fileIcon: "shrink-0 text-vuno-muted";
18
+ readonly hint: "leading-snug";
19
+ readonly item: "flex items-center gap-2 rounded-sm border border-vuno-border bg-vuno-surface p-1.5";
20
+ readonly itemAction: "rounded-sm";
21
+ readonly list: "flex w-full flex-col gap-1.5";
22
+ readonly preview: "shrink-0 rounded-sm object-cover";
23
+ readonly root: "flex w-full flex-col gap-2";
24
+ readonly size: "text-vuno-muted";
25
+ readonly texts: "flex min-w-0 flex-col";
26
+ };
27
+ readonly variants: {
28
+ readonly dropzone: {
29
+ readonly false: {
30
+ readonly dropzone: "w-full justify-start gap-2 border-solid bg-vuno-surface px-3 py-2";
31
+ readonly hint: "text-start";
32
+ };
33
+ readonly true: {
34
+ readonly dropzone: "min-h-24 w-full flex-col justify-center gap-2 border-dashed px-4 py-6";
35
+ readonly hint: "text-center font-medium text-vuno-body";
36
+ };
37
+ };
38
+ readonly layout: {
39
+ /** En rejilla manda la imagen: la lista pasa a columnas y el texto se va debajo. */
40
+ readonly grid: {
41
+ readonly item: "flex-col items-start";
42
+ readonly list: "grid grid-cols-[repeat(auto-fill,minmax(8rem,1fr))] gap-2";
43
+ readonly preview: "h-24 w-full";
44
+ };
45
+ readonly list: {
46
+ readonly preview: "size-9";
47
+ };
48
+ };
49
+ readonly radius: Record<import("../../../../types/base.js").VunoRadius, Record<"dropzone", string>>;
50
+ readonly size: {
51
+ readonly xs: {
52
+ readonly name: "text-xs";
53
+ readonly fileIcon: "size-6";
54
+ readonly hint: "text-xs";
55
+ readonly icon: "size-6";
56
+ readonly size: "text-xs";
57
+ };
58
+ readonly sm: {
59
+ readonly name: "text-sm";
60
+ readonly fileIcon: "size-7";
61
+ readonly hint: "text-xs";
62
+ readonly icon: "size-7";
63
+ readonly size: "text-xs";
64
+ };
65
+ readonly md: {
66
+ readonly name: "text-sm";
67
+ readonly fileIcon: "size-8";
68
+ readonly hint: "text-sm";
69
+ readonly icon: "size-8";
70
+ readonly size: "text-xs";
71
+ };
72
+ readonly lg: {
73
+ readonly name: "text-base";
74
+ readonly fileIcon: "size-9";
75
+ readonly hint: "text-sm";
76
+ readonly icon: "size-9";
77
+ readonly size: "text-sm";
78
+ };
79
+ readonly xl: {
80
+ readonly name: "text-base";
81
+ readonly fileIcon: "size-10";
82
+ readonly hint: "text-base";
83
+ readonly icon: "size-10";
84
+ readonly size: "text-sm";
85
+ };
86
+ };
87
+ };
88
+ }>;
@@ -0,0 +1,55 @@
1
+ import { radiusByStep } from "#vuno/theme/shared";
2
+ import { defineTheme } from "#vuno/utils/theme";
3
+ export const fileUploadTheme = defineTheme("fileUpload", {
4
+ slots: {
5
+ name: "truncate text-vuno-body",
6
+ actions: "ms-auto flex shrink-0 items-center gap-1.5",
7
+ dropzone: "flex cursor-pointer items-center rounded-sm border border-vuno-border-strong bg-vuno-surface-1 text-vuno-muted transition-[background-color,border-color,color] focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-vuno-primary hover:border-vuno-primary hover:bg-vuno-surface-2 hover:text-vuno-body",
8
+ dropzoneActive: "border-vuno-primary bg-vuno-surface-2 text-vuno-body",
9
+ dropzoneDisabled: "cursor-not-allowed opacity-50",
10
+ fileIcon: "shrink-0 text-vuno-muted",
11
+ hint: "leading-snug",
12
+ item: "flex items-center gap-2 rounded-sm border border-vuno-border bg-vuno-surface p-1.5",
13
+ /*
14
+ * Los botones de cada archivo: quitar, y los de reordenar que
15
+ * `FieldFile` añade por el hueco. El radio estaba escrito a mano en
16
+ * los tres sitios, y por `ui` de instancia, así que no había forma
17
+ * de cambiarlo desde el proyecto. Ahora sale de aquí y el hueco lo
18
+ * reparte, de modo que los tres siguen pareciéndose entre sí.
19
+ */
20
+ itemAction: "rounded-sm",
21
+ list: "flex w-full flex-col gap-1.5",
22
+ preview: "shrink-0 rounded-sm object-cover",
23
+ root: "flex w-full flex-col gap-2",
24
+ size: "text-vuno-muted",
25
+ texts: "flex min-w-0 flex-col"
26
+ },
27
+ variants: {
28
+ /*
29
+ * **Sin zona de caída el control cambia de forma, no solo de
30
+ * comportamiento.** Antes `dropzone: false` apagaba los manejadores
31
+ * y dejaba el mismo recuadro de rayas: medido, idéntico píxel a
32
+ * píxel al de al lado. O sea un área que invita a soltar y no acepta
33
+ * nada, que es la peor manera de apagar algo. Ahora se encoge a una
34
+ * fila, que es lo que su propia documentación prometía para un
35
+ * formulario apretado.
36
+ */
37
+ dropzone: {
38
+ false: { dropzone: "w-full justify-start gap-2 border-solid bg-vuno-surface px-3 py-2", hint: "text-start" },
39
+ true: { dropzone: "min-h-24 w-full flex-col justify-center gap-2 border-dashed px-4 py-6", hint: "text-center font-medium text-vuno-body" }
40
+ },
41
+ layout: {
42
+ /** En rejilla manda la imagen: la lista pasa a columnas y el texto se va debajo. */
43
+ grid: { item: "flex-col items-start", list: "grid grid-cols-[repeat(auto-fill,minmax(8rem,1fr))] gap-2", preview: "h-24 w-full" },
44
+ list: { preview: "size-9" }
45
+ },
46
+ radius: radiusByStep("dropzone"),
47
+ size: {
48
+ xs: { name: "text-xs", fileIcon: "size-6", hint: "text-xs", icon: "size-6", size: "text-xs" },
49
+ sm: { name: "text-sm", fileIcon: "size-7", hint: "text-xs", icon: "size-7", size: "text-xs" },
50
+ md: { name: "text-sm", fileIcon: "size-8", hint: "text-sm", icon: "size-8", size: "text-xs" },
51
+ lg: { name: "text-base", fileIcon: "size-9", hint: "text-sm", icon: "size-9", size: "text-sm" },
52
+ xl: { name: "text-base", fileIcon: "size-10", hint: "text-base", icon: "size-10", size: "text-sm" }
53
+ }
54
+ }
55
+ });
@@ -1,9 +1,10 @@
1
1
  <script setup>
2
2
  import { computed, onBeforeUnmount, ref, watch } from "vue";
3
3
  import { useIcons, useMessages, useTheme } from "#vuno/composables/useTheme";
4
- import Button from "#vuno/components/actions/Button.vue";
5
- import Icon from "#vuno/components/actions/Icon.vue";
6
- defineOptions({ inheritAttrs: false });
4
+ import Button from "#vuno/components/Button/Button.vue";
5
+ import Icon from "#vuno/components/Icon/Icon.vue";
6
+ defineOptions({ name: "VunoFileUpload", inheritAttrs: false });
7
+ const model = defineModel({ type: null, ...{ default: void 0 } });
7
8
  const props = defineProps({
8
9
  name: { type: String, required: false, default: void 0 },
9
10
  accept: { type: String, required: false, default: void 0 },
@@ -12,24 +13,23 @@ const props = defineProps({
12
13
  hint: { type: String, required: false, default: void 0 },
13
14
  layout: { type: String, required: false, default: "list" },
14
15
  multiple: { type: Boolean, required: false, default: true },
16
+ radius: { type: String, required: false, default: void 0 },
15
17
  required: { type: Boolean, required: false },
16
18
  size: { type: String, required: false, default: "md" },
17
19
  ui: { type: Object, required: false, default: void 0 }
18
20
  });
19
- const model = defineModel({ type: null, ...{ default: void 0 } });
21
+ defineSlots();
20
22
  const icons = useIcons();
21
23
  const messages = useMessages();
22
24
  const ui = useTheme(
23
25
  "fileUpload",
24
26
  () => props.ui,
25
- () => ({ dropzone: String(props.dropzone), layout: props.layout, size: props.size })
27
+ () => ({ dropzone: String(props.dropzone), layout: props.layout, radius: props.radius, size: props.size })
26
28
  );
27
- defineSlots();
28
29
  const inputRef = ref(null);
29
30
  const isDragging = ref(false);
30
- defineExpose({ inputRef });
31
- const files = computed(() => model.value ?? []);
32
31
  const previews = ref(/* @__PURE__ */ new Map());
32
+ const files = computed(() => model.value ?? []);
33
33
  function releasePreviews(keep = []) {
34
34
  for (const [file, url] of previews.value) {
35
35
  if (keep.includes(file)) continue;
@@ -37,18 +37,6 @@ function releasePreviews(keep = []) {
37
37
  previews.value.delete(file);
38
38
  }
39
39
  }
40
- watch(
41
- files,
42
- (next) => {
43
- releasePreviews(next);
44
- for (const file of next) {
45
- if (!file.type.startsWith("image/") || previews.value.has(file)) continue;
46
- previews.value.set(file, URL.createObjectURL(file));
47
- }
48
- },
49
- { immediate: true }
50
- );
51
- onBeforeUnmount(() => releasePreviews());
52
40
  function formatSize(bytes) {
53
41
  if (bytes < 1024) return `${bytes} B`;
54
42
  const units = ["KB", "MB", "GB"];
@@ -86,6 +74,19 @@ function onDragOver() {
86
74
  if (props.disabled || !props.dropzone) return;
87
75
  isDragging.value = true;
88
76
  }
77
+ watch(
78
+ files,
79
+ (next) => {
80
+ releasePreviews(next);
81
+ for (const file of next) {
82
+ if (!file.type.startsWith("image/") || previews.value.has(file)) continue;
83
+ previews.value.set(file, URL.createObjectURL(file));
84
+ }
85
+ },
86
+ { immediate: true }
87
+ );
88
+ onBeforeUnmount(() => releasePreviews());
89
+ defineExpose({ inputRef });
89
90
  </script>
90
91
 
91
92
  <template>
@@ -1,20 +1,6 @@
1
- import type { VunoSize, VunoSlots } from '#vuno/types/base';
2
- type __VLS_Props = {
3
- name?: string;
4
- /** Filtro del selector nativo: `image/*`, `.pdf`, ... */
5
- accept?: string;
6
- disabled?: boolean;
7
- /** Admite soltar archivos encima, además del clic. */
8
- dropzone?: boolean;
9
- /** Texto de la zona de caída. Sin él solo se ve el icono. */
10
- hint?: string;
11
- /** En rejilla se ve la miniatura; en lista, el nombre y el tamaño. */
12
- layout?: 'grid' | 'list';
13
- multiple?: boolean;
14
- required?: boolean;
15
- size?: VunoSize;
16
- ui?: VunoSlots;
17
- };
1
+ import type { VunoRadius, VunoSize } from '#vuno/types/base';
2
+ import type { VunoUi } from '#vuno/types/slots';
3
+ type __VLS_Props = Props;
18
4
  type __VLS_Slots = {
19
5
  /**
20
6
  * Acciones extra por archivo: reordenar, previsualizar.
@@ -31,6 +17,24 @@ type __VLS_Slots = {
31
17
  removeFile: (index: number) => void;
32
18
  }) => unknown;
33
19
  };
20
+ type Props = {
21
+ name?: string;
22
+ /** Filtro del selector nativo: `image/*`, `.pdf`, ... */
23
+ accept?: string;
24
+ disabled?: boolean;
25
+ /** Admite soltar archivos encima, además del clic. */
26
+ dropzone?: boolean;
27
+ /** Texto de la zona de caída. Sin él solo se ve el icono. */
28
+ hint?: string;
29
+ /** En rejilla se ve la miniatura; en lista, el nombre y el tamaño. */
30
+ layout?: 'grid' | 'list';
31
+ multiple?: boolean;
32
+ /** La curvatura. Sin valor, la que traiga el tema. */
33
+ radius?: VunoRadius;
34
+ required?: boolean;
35
+ size?: VunoSize;
36
+ ui?: VunoUi<'fieldFile' | 'fileUpload'>;
37
+ };
34
38
  type __VLS_ModelProps = {
35
39
  modelValue?: File[] | null | undefined;
36
40
  };
@@ -42,12 +46,13 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
42
46
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
43
47
  "onUpdate:modelValue"?: ((value: File[] | null | undefined) => any) | undefined;
44
48
  }>, {
45
- name: string;
46
- hint: string;
49
+ radius: VunoRadius;
47
50
  size: VunoSize;
51
+ name: string;
48
52
  dropzone: boolean;
53
+ hint: string;
49
54
  layout: "grid" | "list";
50
- ui: VunoSlots;
55
+ ui: VunoUi<"fieldFile" | "fileUpload">;
51
56
  accept: string;
52
57
  multiple: boolean;
53
58
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,24 @@
1
+ import type { VunoFieldInput } from '#vuno/types/field';
2
+ import type { VunoFieldInputType } from '#vuno/types/field-type';
3
+ type __VLS_Props = Omit<VunoFieldInput, 'columns'>;
4
+ type __VLS_ModelProps = {
5
+ modelValue?: string | undefined;
6
+ };
7
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ "update:modelValue": (value: string | undefined) => any;
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
12
+ }>, {
13
+ icon: string;
14
+ type: VunoFieldInputType;
15
+ ui: Partial<Record<"root" | ("icon" | "base"), string | string[] | undefined>>;
16
+ placeholder: string;
17
+ max: string;
18
+ min: string;
19
+ autocomplete: string;
20
+ autofocus: boolean;
21
+ maxlength: number;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export declare const fieldInputTheme: Record<"fieldInput", {
2
+ readonly slots: {
3
+ readonly root: "w-full";
4
+ };
5
+ }>;
@@ -0,0 +1,2 @@
1
+ import { defineTheme } from "#vuno/utils/theme";
2
+ export const fieldInputTheme = defineTheme("fieldInput", { slots: { root: "w-full" } });
@@ -0,0 +1,61 @@
1
+ <script setup>
2
+ import { computed } from "vue";
3
+ import { useField } from "#vuno/composables/useField";
4
+ import { useTheme } from "#vuno/composables/useTheme";
5
+ import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
6
+ import Input from "#vuno/components/internal/Input/Input.vue";
7
+ defineOptions({ name: "VunoFieldInput" });
8
+ const model = defineModel({ type: null, ...{ default: void 0 } });
9
+ const props = defineProps({
10
+ name: { type: String, required: false },
11
+ class: { type: String, required: false },
12
+ description: { type: String, required: false },
13
+ disabled: { type: Boolean, required: false },
14
+ error: { type: String, required: false },
15
+ help: { type: String, required: false },
16
+ hint: { type: String, required: false },
17
+ label: { type: String, required: false },
18
+ orientation: { type: String, required: false },
19
+ required: { type: Boolean, required: false },
20
+ size: { type: String, required: false },
21
+ ui: { type: Object, required: false, default: void 0 },
22
+ autocomplete: { type: String, required: false, default: void 0 },
23
+ autofocus: { type: Boolean, required: false, default: false },
24
+ icon: { type: String, required: false, default: void 0 },
25
+ max: { type: String, required: false, default: void 0 },
26
+ maxlength: { type: Number, required: false, default: void 0 },
27
+ min: { type: String, required: false, default: void 0 },
28
+ placeholder: { type: String, required: false, default: void 0 },
29
+ type: { type: String, required: false, default: "text" }
30
+ });
31
+ const { value } = useField(() => props.name, model);
32
+ const ui = useTheme("fieldInput", () => props.ui);
33
+ const nativeType = computed(() => props.type === "phone" ? "tel" : props.type);
34
+ const autocompleteDefaults = {
35
+ email: "email",
36
+ phone: "tel",
37
+ url: "url"
38
+ };
39
+ const autocomplete = computed(() => props.autocomplete ?? autocompleteDefaults[props.type]);
40
+ </script>
41
+
42
+ <template>
43
+ <FieldShell v-bind="props">
44
+ <template #default="control">
45
+ <Input
46
+ v-bind="control"
47
+ v-model="value"
48
+ :autocomplete="autocomplete"
49
+ :autofocus="props.autofocus"
50
+ :disabled="props.disabled"
51
+ :icon="props.icon"
52
+ :max="props.max"
53
+ :maxlength="props.maxlength"
54
+ :min="props.min"
55
+ :placeholder="props.placeholder"
56
+ :type="nativeType"
57
+ :ui="ui"
58
+ />
59
+ </template>
60
+ </FieldShell>
61
+ </template>
@@ -0,0 +1,24 @@
1
+ import type { VunoFieldInput } from '#vuno/types/field';
2
+ import type { VunoFieldInputType } from '#vuno/types/field-type';
3
+ type __VLS_Props = Omit<VunoFieldInput, 'columns'>;
4
+ type __VLS_ModelProps = {
5
+ modelValue?: string | undefined;
6
+ };
7
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ "update:modelValue": (value: string | undefined) => any;
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
12
+ }>, {
13
+ icon: string;
14
+ type: VunoFieldInputType;
15
+ ui: Partial<Record<"root" | ("icon" | "base"), string | string[] | undefined>>;
16
+ placeholder: string;
17
+ max: string;
18
+ min: string;
19
+ autocomplete: string;
20
+ autofocus: boolean;
21
+ maxlength: number;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import type { VunoFieldNumber } from '#vuno/types/field';
2
+ type __VLS_Props = Omit<VunoFieldNumber, 'columns'>;
3
+ type __VLS_ModelProps = {
4
+ modelValue?: number | undefined;
5
+ };
6
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ "update:modelValue": (value: number | undefined) => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export declare const fieldNumberTheme: Record<"fieldNumber", {
2
+ readonly slots: {
3
+ readonly root: "w-full";
4
+ };
5
+ }>;
@@ -0,0 +1,2 @@
1
+ import { defineTheme } from "#vuno/utils/theme";
2
+ export const fieldNumberTheme = defineTheme("fieldNumber", { slots: { root: "w-full" } });
@@ -0,0 +1,47 @@
1
+ <script setup>
2
+ import { useField } from "#vuno/composables/useField";
3
+ import { useTheme } from "#vuno/composables/useTheme";
4
+ import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
5
+ import NumberInput from "#vuno/components/internal/NumberInput/NumberInput.vue";
6
+ defineOptions({ name: "VunoFieldNumber" });
7
+ const model = defineModel({ type: null, ...{ default: void 0 } });
8
+ const props = defineProps({
9
+ name: { type: String, required: false },
10
+ class: { type: String, required: false },
11
+ description: { type: String, required: false },
12
+ disabled: { type: Boolean, required: false },
13
+ error: { type: String, required: false },
14
+ help: { type: String, required: false },
15
+ hint: { type: String, required: false },
16
+ label: { type: String, required: false },
17
+ orientation: { type: String, required: false },
18
+ required: { type: Boolean, required: false },
19
+ size: { type: String, required: false },
20
+ ui: { type: Object, required: false },
21
+ controlsOrientation: { type: String, required: false },
22
+ max: { type: Number, required: false },
23
+ min: { type: Number, required: false },
24
+ placeholder: { type: String, required: false },
25
+ step: { type: Number, required: false }
26
+ });
27
+ const { value } = useField(() => props.name, model);
28
+ const ui = useTheme("fieldNumber", () => props.ui);
29
+ </script>
30
+
31
+ <template>
32
+ <FieldShell v-bind="props">
33
+ <template #default="control">
34
+ <NumberInput
35
+ v-bind="control"
36
+ v-model="value"
37
+ :disabled="props.disabled"
38
+ :max="props.max"
39
+ :min="props.min"
40
+ :orientation="props.controlsOrientation ?? 'horizontal'"
41
+ :placeholder="props.placeholder"
42
+ :step="props.step"
43
+ :ui="ui"
44
+ />
45
+ </template>
46
+ </FieldShell>
47
+ </template>
@@ -0,0 +1,13 @@
1
+ import type { VunoFieldNumber } from '#vuno/types/field';
2
+ type __VLS_Props = Omit<VunoFieldNumber, 'columns'>;
3
+ type __VLS_ModelProps = {
4
+ modelValue?: number | undefined;
5
+ };
6
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ "update:modelValue": (value: number | undefined) => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import type { VunoFieldPassword } from '#vuno/types/field';
2
+ type __VLS_Props = Omit<VunoFieldPassword, 'columns'>;
3
+ type __VLS_ModelProps = {
4
+ modelValue?: string | undefined;
5
+ };
6
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ "update:modelValue": (value: string | undefined) => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export declare const fieldPasswordTheme: Record<"fieldPassword", {
2
+ readonly slots: {
3
+ readonly root: "w-full";
4
+ };
5
+ }>;
@@ -0,0 +1,2 @@
1
+ import { defineTheme } from "#vuno/utils/theme";
2
+ export const fieldPasswordTheme = defineTheme("fieldPassword", { slots: { root: "w-full" } });
@@ -0,0 +1,62 @@
1
+ <script setup>
2
+ import { ref } from "vue";
3
+ import { useField } from "#vuno/composables/useField";
4
+ import { useIcons, useMessages, useTheme } from "#vuno/composables/useTheme";
5
+ import Button from "#vuno/components/Button/Button.vue";
6
+ import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
7
+ import Input from "#vuno/components/internal/Input/Input.vue";
8
+ defineOptions({ name: "VunoFieldPassword" });
9
+ const model = defineModel({ type: null, ...{ default: void 0 } });
10
+ const props = defineProps({
11
+ name: { type: String, required: false },
12
+ class: { type: String, required: false },
13
+ description: { type: String, required: false },
14
+ disabled: { type: Boolean, required: false },
15
+ error: { type: String, required: false },
16
+ help: { type: String, required: false },
17
+ hint: { type: String, required: false },
18
+ label: { type: String, required: false },
19
+ orientation: { type: String, required: false },
20
+ required: { type: Boolean, required: false },
21
+ size: { type: String, required: false },
22
+ ui: { type: Object, required: false },
23
+ autocomplete: { type: String, required: false },
24
+ autofocus: { type: Boolean, required: false },
25
+ placeholder: { type: String, required: false }
26
+ });
27
+ const { value } = useField(() => props.name, model);
28
+ const icons = useIcons();
29
+ const messages = useMessages();
30
+ const ui = useTheme("fieldPassword", () => props.ui);
31
+ const isVisible = ref(false);
32
+ </script>
33
+
34
+ <template>
35
+ <FieldShell v-bind="props">
36
+ <template #default="control">
37
+ <Input
38
+ v-bind="control"
39
+ v-model="value"
40
+ :autocomplete="props.autocomplete ?? 'current-password'"
41
+ :autofocus="props.autofocus"
42
+ :disabled="props.disabled"
43
+ :placeholder="props.placeholder"
44
+ :type="isVisible ? 'text' : 'password'"
45
+ :ui="ui"
46
+ >
47
+ <template #trailing>
48
+ <Button
49
+ :aria-label="isVisible ? messages.passwordHide : messages.passwordShow"
50
+ :aria-pressed="isVisible"
51
+ color="neutral"
52
+ :disabled="props.disabled"
53
+ :icon="isVisible ? icons.passwordHide : icons.passwordShow"
54
+ size="sm"
55
+ variant="link"
56
+ @click="isVisible = !isVisible"
57
+ />
58
+ </template>
59
+ </Input>
60
+ </template>
61
+ </FieldShell>
62
+ </template>
@@ -0,0 +1,13 @@
1
+ import type { VunoFieldPassword } from '#vuno/types/field';
2
+ type __VLS_Props = Omit<VunoFieldPassword, 'columns'>;
3
+ type __VLS_ModelProps = {
4
+ modelValue?: string | undefined;
5
+ };
6
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ "update:modelValue": (value: string | undefined) => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import type { VunoFieldOptionValue, VunoFieldRadio } from '#vuno/types/field';
2
+ type __VLS_Props = Omit<VunoFieldRadio, 'columns'>;
3
+ type __VLS_ModelProps = {
4
+ modelValue?: undefined | VunoFieldOptionValue;
5
+ };
6
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ "update:modelValue": (value: VunoFieldOptionValue | undefined) => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value: VunoFieldOptionValue | undefined) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export declare const fieldRadioTheme: Record<"fieldRadio", {
2
+ readonly slots: {
3
+ readonly root: "w-full";
4
+ };
5
+ }>;
@@ -0,0 +1,2 @@
1
+ import { defineTheme } from "#vuno/utils/theme";
2
+ export const fieldRadioTheme = defineTheme("fieldRadio", { slots: { root: "w-full" } });