nuance-ui 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (386) hide show
  1. package/README.md +90 -0
  2. package/dist/module.d.mts +24 -0
  3. package/dist/module.json +12 -0
  4. package/dist/module.mjs +96 -0
  5. package/dist/runtime/components/action-icon/action-icon-group.d.vue.ts +17 -0
  6. package/dist/runtime/components/action-icon/action-icon-group.vue +13 -0
  7. package/dist/runtime/components/action-icon/action-icon-group.vue.d.ts +17 -0
  8. package/dist/runtime/components/action-icon/action-icon-section.d.vue.ts +23 -0
  9. package/dist/runtime/components/action-icon/action-icon-section.vue +45 -0
  10. package/dist/runtime/components/action-icon/action-icon-section.vue.d.ts +23 -0
  11. package/dist/runtime/components/action-icon/action-icon.d.vue.ts +29 -0
  12. package/dist/runtime/components/action-icon/action-icon.module.css +1 -0
  13. package/dist/runtime/components/action-icon/action-icon.vue +71 -0
  14. package/dist/runtime/components/action-icon/action-icon.vue.d.ts +29 -0
  15. package/dist/runtime/components/action-icon/index.d.ts +3 -0
  16. package/dist/runtime/components/action-icon/index.js +0 -0
  17. package/dist/runtime/components/app-shell/app-shell-aside.d.vue.ts +14 -0
  18. package/dist/runtime/components/app-shell/app-shell-aside.vue +43 -0
  19. package/dist/runtime/components/app-shell/app-shell-aside.vue.d.ts +14 -0
  20. package/dist/runtime/components/app-shell/app-shell-footer.d.vue.ts +14 -0
  21. package/dist/runtime/components/app-shell/app-shell-footer.vue +42 -0
  22. package/dist/runtime/components/app-shell/app-shell-footer.vue.d.ts +14 -0
  23. package/dist/runtime/components/app-shell/app-shell-header.d.vue.ts +14 -0
  24. package/dist/runtime/components/app-shell/app-shell-header.vue +43 -0
  25. package/dist/runtime/components/app-shell/app-shell-header.vue.d.ts +14 -0
  26. package/dist/runtime/components/app-shell/app-shell-main.d.vue.ts +14 -0
  27. package/dist/runtime/components/app-shell/app-shell-main.vue +30 -0
  28. package/dist/runtime/components/app-shell/app-shell-main.vue.d.ts +14 -0
  29. package/dist/runtime/components/app-shell/app-shell-navbar.d.vue.ts +14 -0
  30. package/dist/runtime/components/app-shell/app-shell-navbar.vue +47 -0
  31. package/dist/runtime/components/app-shell/app-shell-navbar.vue.d.ts +14 -0
  32. package/dist/runtime/components/app-shell/app-shell-section.d.vue.ts +18 -0
  33. package/dist/runtime/components/app-shell/app-shell-section.vue +22 -0
  34. package/dist/runtime/components/app-shell/app-shell-section.vue.d.ts +18 -0
  35. package/dist/runtime/components/app-shell/app-shell.d.vue.ts +27 -0
  36. package/dist/runtime/components/app-shell/app-shell.vue +70 -0
  37. package/dist/runtime/components/app-shell/app-shell.vue.d.ts +27 -0
  38. package/dist/runtime/components/app-shell/index.d.ts +7 -0
  39. package/dist/runtime/components/app-shell/index.js +0 -0
  40. package/dist/runtime/components/background-image.d.vue.ts +10 -0
  41. package/dist/runtime/components/background-image.vue +37 -0
  42. package/dist/runtime/components/background-image.vue.d.ts +10 -0
  43. package/dist/runtime/components/box.d.vue.ts +20 -0
  44. package/dist/runtime/components/box.vue +14 -0
  45. package/dist/runtime/components/box.vue.d.ts +20 -0
  46. package/dist/runtime/components/button/button-group.d.vue.ts +17 -0
  47. package/dist/runtime/components/button/button-group.vue +13 -0
  48. package/dist/runtime/components/button/button-group.vue.d.ts +17 -0
  49. package/dist/runtime/components/button/button.d.vue.ts +40 -0
  50. package/dist/runtime/components/button/button.module.css +1 -0
  51. package/dist/runtime/components/button/button.vue +108 -0
  52. package/dist/runtime/components/button/button.vue.d.ts +40 -0
  53. package/dist/runtime/components/button/index.d.ts +3 -0
  54. package/dist/runtime/components/button/index.js +0 -0
  55. package/dist/runtime/components/button/unstyled-button.d.vue.ts +16 -0
  56. package/dist/runtime/components/button/unstyled-button.vue +37 -0
  57. package/dist/runtime/components/button/unstyled-button.vue.d.ts +16 -0
  58. package/dist/runtime/components/card/card-section.d.vue.ts +19 -0
  59. package/dist/runtime/components/card/card-section.vue +14 -0
  60. package/dist/runtime/components/card/card-section.vue.d.ts +19 -0
  61. package/dist/runtime/components/card/card.d.vue.ts +18 -0
  62. package/dist/runtime/components/card/card.module.css +1 -0
  63. package/dist/runtime/components/card/card.vue +18 -0
  64. package/dist/runtime/components/card/card.vue.d.ts +18 -0
  65. package/dist/runtime/components/card/index.d.ts +2 -0
  66. package/dist/runtime/components/card/index.js +0 -0
  67. package/dist/runtime/components/checkbox/checkbox-card.d.vue.ts +30 -0
  68. package/dist/runtime/components/checkbox/checkbox-card.vue +76 -0
  69. package/dist/runtime/components/checkbox/checkbox-card.vue.d.ts +30 -0
  70. package/dist/runtime/components/checkbox/checkbox-group.d.vue.ts +34 -0
  71. package/dist/runtime/components/checkbox/checkbox-group.vue +32 -0
  72. package/dist/runtime/components/checkbox/checkbox-group.vue.d.ts +34 -0
  73. package/dist/runtime/components/checkbox/checkbox-indicator.d.vue.ts +37 -0
  74. package/dist/runtime/components/checkbox/checkbox-indicator.vue +161 -0
  75. package/dist/runtime/components/checkbox/checkbox-indicator.vue.d.ts +37 -0
  76. package/dist/runtime/components/checkbox/checkbox.d.vue.ts +36 -0
  77. package/dist/runtime/components/checkbox/checkbox.vue +190 -0
  78. package/dist/runtime/components/checkbox/checkbox.vue.d.ts +36 -0
  79. package/dist/runtime/components/checkbox/index.d.ts +6 -0
  80. package/dist/runtime/components/checkbox/index.js +2 -0
  81. package/dist/runtime/components/checkbox/lib/card.context.d.ts +7 -0
  82. package/dist/runtime/components/checkbox/lib/card.context.js +8 -0
  83. package/dist/runtime/components/checkbox/lib/group.context.d.ts +16 -0
  84. package/dist/runtime/components/checkbox/lib/group.context.js +15 -0
  85. package/dist/runtime/components/chip/chip-group.d.vue.ts +24 -0
  86. package/dist/runtime/components/chip/chip-group.vue +20 -0
  87. package/dist/runtime/components/chip/chip-group.vue.d.ts +24 -0
  88. package/dist/runtime/components/chip/chip.d.vue.ts +35 -0
  89. package/dist/runtime/components/chip/chip.vue +270 -0
  90. package/dist/runtime/components/chip/chip.vue.d.ts +35 -0
  91. package/dist/runtime/components/chip/index.d.ts +3 -0
  92. package/dist/runtime/components/chip/index.js +1 -0
  93. package/dist/runtime/components/chip/lib.d.ts +14 -0
  94. package/dist/runtime/components/chip/lib.js +25 -0
  95. package/dist/runtime/components/combobox/combobox-dropdown.d.vue.ts +13 -0
  96. package/dist/runtime/components/combobox/combobox-dropdown.vue +33 -0
  97. package/dist/runtime/components/combobox/combobox-dropdown.vue.d.ts +13 -0
  98. package/dist/runtime/components/combobox/combobox-empty.d.vue.ts +16 -0
  99. package/dist/runtime/components/combobox/combobox-empty.vue +11 -0
  100. package/dist/runtime/components/combobox/combobox-empty.vue.d.ts +16 -0
  101. package/dist/runtime/components/combobox/combobox-group.d.vue.ts +27 -0
  102. package/dist/runtime/components/combobox/combobox-group.vue +47 -0
  103. package/dist/runtime/components/combobox/combobox-group.vue.d.ts +27 -0
  104. package/dist/runtime/components/combobox/combobox-option-list.d.vue.ts +18 -0
  105. package/dist/runtime/components/combobox/combobox-option-list.vue +13 -0
  106. package/dist/runtime/components/combobox/combobox-option-list.vue.d.ts +18 -0
  107. package/dist/runtime/components/combobox/combobox-option.d.vue.ts +23 -0
  108. package/dist/runtime/components/combobox/combobox-option.vue +65 -0
  109. package/dist/runtime/components/combobox/combobox-option.vue.d.ts +23 -0
  110. package/dist/runtime/components/combobox/combobox-options-dropdown.d.vue.ts +34 -0
  111. package/dist/runtime/components/combobox/combobox-options-dropdown.vue +74 -0
  112. package/dist/runtime/components/combobox/combobox-options-dropdown.vue.d.ts +34 -0
  113. package/dist/runtime/components/combobox/combobox-root.d.vue.ts +49 -0
  114. package/dist/runtime/components/combobox/combobox-root.vue +46 -0
  115. package/dist/runtime/components/combobox/combobox-root.vue.d.ts +49 -0
  116. package/dist/runtime/components/combobox/combobox-target.d.vue.ts +29 -0
  117. package/dist/runtime/components/combobox/combobox-target.vue +32 -0
  118. package/dist/runtime/components/combobox/combobox-target.vue.d.ts +29 -0
  119. package/dist/runtime/components/combobox/combobox.module.css +1 -0
  120. package/dist/runtime/components/combobox/index.d.ts +11 -0
  121. package/dist/runtime/components/combobox/index.js +2 -0
  122. package/dist/runtime/components/combobox/lib/const.d.ts +7 -0
  123. package/dist/runtime/components/combobox/lib/const.js +6 -0
  124. package/dist/runtime/components/combobox/lib/context.d.ts +16 -0
  125. package/dist/runtime/components/combobox/lib/context.js +8 -0
  126. package/dist/runtime/components/combobox/lib/use-combobox/get-index.d.ts +3 -0
  127. package/dist/runtime/components/combobox/lib/use-combobox/get-index.js +33 -0
  128. package/dist/runtime/components/combobox/lib/use-combobox/handlers.d.ts +36 -0
  129. package/dist/runtime/components/combobox/lib/use-combobox/handlers.js +82 -0
  130. package/dist/runtime/components/combobox/lib/use-combobox/index.d.ts +1 -0
  131. package/dist/runtime/components/combobox/lib/use-combobox/index.js +1 -0
  132. package/dist/runtime/components/combobox/lib/use-combobox/use-combobox.d.ts +70 -0
  133. package/dist/runtime/components/combobox/lib/use-combobox/use-combobox.js +97 -0
  134. package/dist/runtime/components/combobox/lib/use-combobox-data/get-parsed-combobox-data.d.ts +2 -0
  135. package/dist/runtime/components/combobox/lib/use-combobox-data/get-parsed-combobox-data.js +23 -0
  136. package/dist/runtime/components/combobox/lib/use-combobox-data/index.d.ts +1 -0
  137. package/dist/runtime/components/combobox/lib/use-combobox-data/index.js +1 -0
  138. package/dist/runtime/components/combobox/lib/use-combobox-data/use-combobox-data.d.ts +7 -0
  139. package/dist/runtime/components/combobox/lib/use-combobox-data/use-combobox-data.js +23 -0
  140. package/dist/runtime/components/combobox/lib/use-combobox-target.d.ts +25 -0
  141. package/dist/runtime/components/combobox/lib/use-combobox-target.js +65 -0
  142. package/dist/runtime/components/combobox/lib/utils/default-option-filter.d.ts +7 -0
  143. package/dist/runtime/components/combobox/lib/utils/default-option-filter.js +27 -0
  144. package/dist/runtime/components/combobox/lib/utils/index.d.ts +5 -0
  145. package/dist/runtime/components/combobox/lib/utils/index.js +6 -0
  146. package/dist/runtime/components/combobox/lib/utils/is-empty-combobox-data.d.ts +2 -0
  147. package/dist/runtime/components/combobox/lib/utils/is-empty-combobox-data.js +11 -0
  148. package/dist/runtime/components/combobox/lib/utils/is-options-group.d.ts +2 -0
  149. package/dist/runtime/components/combobox/lib/utils/is-options-group.js +3 -0
  150. package/dist/runtime/components/combobox/types/index.d.ts +19 -0
  151. package/dist/runtime/components/combobox/types/index.js +1 -0
  152. package/dist/runtime/components/combobox/types/item.d.ts +22 -0
  153. package/dist/runtime/components/combobox/types/item.js +0 -0
  154. package/dist/runtime/components/container.d.vue.ts +19 -0
  155. package/dist/runtime/components/container.vue +33 -0
  156. package/dist/runtime/components/container.vue.d.ts +19 -0
  157. package/dist/runtime/components/dialog/dialog-close-button.d.vue.ts +14 -0
  158. package/dist/runtime/components/dialog/dialog-close-button.vue +28 -0
  159. package/dist/runtime/components/dialog/dialog-close-button.vue.d.ts +14 -0
  160. package/dist/runtime/components/dialog/dialog-header.d.vue.ts +16 -0
  161. package/dist/runtime/components/dialog/dialog-header.vue +11 -0
  162. package/dist/runtime/components/dialog/dialog-header.vue.d.ts +16 -0
  163. package/dist/runtime/components/dialog/dialog-root.d.vue.ts +54 -0
  164. package/dist/runtime/components/dialog/dialog-root.vue +93 -0
  165. package/dist/runtime/components/dialog/dialog-root.vue.d.ts +54 -0
  166. package/dist/runtime/components/dialog/dialog-title.d.vue.ts +16 -0
  167. package/dist/runtime/components/dialog/dialog-title.vue +11 -0
  168. package/dist/runtime/components/dialog/dialog-title.vue.d.ts +16 -0
  169. package/dist/runtime/components/dialog/dialog.module.css +1 -0
  170. package/dist/runtime/components/dialog/index.d.ts +5 -0
  171. package/dist/runtime/components/dialog/index.js +1 -0
  172. package/dist/runtime/components/dialog/lib.d.ts +2 -0
  173. package/dist/runtime/components/dialog/lib.js +8 -0
  174. package/dist/runtime/components/dialog/types/index.d.ts +9 -0
  175. package/dist/runtime/components/dialog/types/index.js +0 -0
  176. package/dist/runtime/components/drawer/drawer-close-button.d.vue.ts +14 -0
  177. package/dist/runtime/components/drawer/drawer-close-button.vue +20 -0
  178. package/dist/runtime/components/drawer/drawer-close-button.vue.d.ts +14 -0
  179. package/dist/runtime/components/drawer/drawer-header.d.vue.ts +16 -0
  180. package/dist/runtime/components/drawer/drawer-header.vue +10 -0
  181. package/dist/runtime/components/drawer/drawer-header.vue.d.ts +16 -0
  182. package/dist/runtime/components/drawer/drawer-root.d.vue.ts +31 -0
  183. package/dist/runtime/components/drawer/drawer-root.vue +45 -0
  184. package/dist/runtime/components/drawer/drawer-root.vue.d.ts +31 -0
  185. package/dist/runtime/components/drawer/drawer-title.d.vue.ts +16 -0
  186. package/dist/runtime/components/drawer/drawer-title.vue +10 -0
  187. package/dist/runtime/components/drawer/drawer-title.vue.d.ts +16 -0
  188. package/dist/runtime/components/drawer/drawer.module.css +1 -0
  189. package/dist/runtime/components/drawer/index.d.ts +3 -0
  190. package/dist/runtime/components/drawer/index.js +0 -0
  191. package/dist/runtime/components/index.d.ts +26 -0
  192. package/dist/runtime/components/index.js +26 -0
  193. package/dist/runtime/components/input/index.d.ts +10 -0
  194. package/dist/runtime/components/input/index.js +1 -0
  195. package/dist/runtime/components/input/input.d.vue.ts +38 -0
  196. package/dist/runtime/components/input/input.vue +38 -0
  197. package/dist/runtime/components/input/input.vue.d.ts +38 -0
  198. package/dist/runtime/components/input/lib/input-wrapper.context.d.ts +18 -0
  199. package/dist/runtime/components/input/lib/input-wrapper.context.js +9 -0
  200. package/dist/runtime/components/input/number-input.d.vue.ts +36 -0
  201. package/dist/runtime/components/input/number-input.vue +172 -0
  202. package/dist/runtime/components/input/number-input.vue.d.ts +36 -0
  203. package/dist/runtime/components/input/password-input.d.vue.ts +4 -0
  204. package/dist/runtime/components/input/password-input.vue +28 -0
  205. package/dist/runtime/components/input/password-input.vue.d.ts +4 -0
  206. package/dist/runtime/components/input/text-input.d.vue.ts +32 -0
  207. package/dist/runtime/components/input/text-input.vue +38 -0
  208. package/dist/runtime/components/input/text-input.vue.d.ts +32 -0
  209. package/dist/runtime/components/input/types/index.d.ts +5 -0
  210. package/dist/runtime/components/input/types/index.js +0 -0
  211. package/dist/runtime/components/input/ui/input-base.d.vue.ts +28 -0
  212. package/dist/runtime/components/input/ui/input-base.vue +343 -0
  213. package/dist/runtime/components/input/ui/input-base.vue.d.ts +28 -0
  214. package/dist/runtime/components/input/ui/input-inline.d.vue.ts +30 -0
  215. package/dist/runtime/components/input/ui/input-inline.vue +138 -0
  216. package/dist/runtime/components/input/ui/input-inline.vue.d.ts +30 -0
  217. package/dist/runtime/components/input/ui/input-label.d.vue.ts +18 -0
  218. package/dist/runtime/components/input/ui/input-label.vue +26 -0
  219. package/dist/runtime/components/input/ui/input-label.vue.d.ts +18 -0
  220. package/dist/runtime/components/input/ui/input-wrapper.d.vue.ts +26 -0
  221. package/dist/runtime/components/input/ui/input-wrapper.vue +96 -0
  222. package/dist/runtime/components/input/ui/input-wrapper.vue.d.ts +26 -0
  223. package/dist/runtime/components/link/index.d.ts +3 -0
  224. package/dist/runtime/components/link/index.js +1 -0
  225. package/dist/runtime/components/link/lib.d.ts +16 -0
  226. package/dist/runtime/components/link/lib.js +25 -0
  227. package/dist/runtime/components/link/link-button.d.vue.ts +21 -0
  228. package/dist/runtime/components/link/link-button.vue +42 -0
  229. package/dist/runtime/components/link/link-button.vue.d.ts +21 -0
  230. package/dist/runtime/components/link/link.d.vue.ts +18 -0
  231. package/dist/runtime/components/link/link.vue +47 -0
  232. package/dist/runtime/components/link/link.vue.d.ts +18 -0
  233. package/dist/runtime/components/loader/_loaders/bars-loader.d.vue.ts +3 -0
  234. package/dist/runtime/components/loader/_loaders/bars-loader.vue +11 -0
  235. package/dist/runtime/components/loader/_loaders/bars-loader.vue.d.ts +3 -0
  236. package/dist/runtime/components/loader/_loaders/dots-loader.d.vue.ts +3 -0
  237. package/dist/runtime/components/loader/_loaders/dots-loader.vue +11 -0
  238. package/dist/runtime/components/loader/_loaders/dots-loader.vue.d.ts +3 -0
  239. package/dist/runtime/components/loader/_loaders/oval-loader.d.vue.ts +3 -0
  240. package/dist/runtime/components/loader/_loaders/oval-loader.vue +7 -0
  241. package/dist/runtime/components/loader/_loaders/oval-loader.vue.d.ts +3 -0
  242. package/dist/runtime/components/loader/index.d.ts +1 -0
  243. package/dist/runtime/components/loader/index.js +0 -0
  244. package/dist/runtime/components/loader/loader.d.vue.ts +10 -0
  245. package/dist/runtime/components/loader/loader.vue +37 -0
  246. package/dist/runtime/components/loader/loader.vue.d.ts +10 -0
  247. package/dist/runtime/components/modal/index.d.ts +3 -0
  248. package/dist/runtime/components/modal/index.js +0 -0
  249. package/dist/runtime/components/modal/modal-close-button.d.vue.ts +14 -0
  250. package/dist/runtime/components/modal/modal-close-button.vue +20 -0
  251. package/dist/runtime/components/modal/modal-close-button.vue.d.ts +14 -0
  252. package/dist/runtime/components/modal/modal-header.d.vue.ts +16 -0
  253. package/dist/runtime/components/modal/modal-header.vue +10 -0
  254. package/dist/runtime/components/modal/modal-header.vue.d.ts +16 -0
  255. package/dist/runtime/components/modal/modal-root.d.vue.ts +33 -0
  256. package/dist/runtime/components/modal/modal-root.vue +30 -0
  257. package/dist/runtime/components/modal/modal-root.vue.d.ts +33 -0
  258. package/dist/runtime/components/modal/modal-title.d.vue.ts +16 -0
  259. package/dist/runtime/components/modal/modal-title.vue +10 -0
  260. package/dist/runtime/components/modal/modal-title.vue.d.ts +16 -0
  261. package/dist/runtime/components/modal/modal.module.css +1 -0
  262. package/dist/runtime/components/nav-link/index.d.ts +1 -0
  263. package/dist/runtime/components/nav-link/index.js +0 -0
  264. package/dist/runtime/components/nav-link/nav-link.d.vue.ts +35 -0
  265. package/dist/runtime/components/nav-link/nav-link.vue +201 -0
  266. package/dist/runtime/components/nav-link/nav-link.vue.d.ts +35 -0
  267. package/dist/runtime/components/paper.d.vue.ts +20 -0
  268. package/dist/runtime/components/paper.vue +53 -0
  269. package/dist/runtime/components/paper.vue.d.ts +20 -0
  270. package/dist/runtime/components/popover/index.d.ts +1 -0
  271. package/dist/runtime/components/popover/index.js +0 -0
  272. package/dist/runtime/components/popover/lib/context.d.ts +14 -0
  273. package/dist/runtime/components/popover/lib/context.js +8 -0
  274. package/dist/runtime/components/popover/lib/get-arrow-position.d.ts +12 -0
  275. package/dist/runtime/components/popover/lib/get-arrow-position.js +88 -0
  276. package/dist/runtime/components/popover/lib/use-popover.d.ts +23 -0
  277. package/dist/runtime/components/popover/lib/use-popover.js +47 -0
  278. package/dist/runtime/components/popover/popover-dropdown.d.vue.ts +13 -0
  279. package/dist/runtime/components/popover/popover-dropdown.vue +90 -0
  280. package/dist/runtime/components/popover/popover-dropdown.vue.d.ts +13 -0
  281. package/dist/runtime/components/popover/popover-target.d.vue.ts +13 -0
  282. package/dist/runtime/components/popover/popover-target.vue +11 -0
  283. package/dist/runtime/components/popover/popover-target.vue.d.ts +13 -0
  284. package/dist/runtime/components/popover/popover.d.vue.ts +27 -0
  285. package/dist/runtime/components/popover/popover.vue +79 -0
  286. package/dist/runtime/components/popover/popover.vue.d.ts +27 -0
  287. package/dist/runtime/components/popover/types/index.d.ts +42 -0
  288. package/dist/runtime/components/popover/types/index.js +0 -0
  289. package/dist/runtime/components/renderless/renderless-slot.d.ts +6 -0
  290. package/dist/runtime/components/renderless/renderless-slot.js +32 -0
  291. package/dist/runtime/components/renderless/renderless.d.vue.ts +13 -0
  292. package/dist/runtime/components/renderless/renderless.vue +12 -0
  293. package/dist/runtime/components/renderless/renderless.vue.d.ts +13 -0
  294. package/dist/runtime/components/select/index.d.ts +1 -0
  295. package/dist/runtime/components/select/index.js +0 -0
  296. package/dist/runtime/components/select/select.d.vue.ts +45 -0
  297. package/dist/runtime/components/select/select.vue +131 -0
  298. package/dist/runtime/components/select/select.vue.d.ts +45 -0
  299. package/dist/runtime/components/tabs/index.d.ts +1 -0
  300. package/dist/runtime/components/tabs/index.js +1 -0
  301. package/dist/runtime/components/tabs/lib.d.ts +142 -0
  302. package/dist/runtime/components/tabs/lib.js +18 -0
  303. package/dist/runtime/components/tabs/tabs-list.d.vue.ts +19 -0
  304. package/dist/runtime/components/tabs/tabs-list.vue +31 -0
  305. package/dist/runtime/components/tabs/tabs-list.vue.d.ts +19 -0
  306. package/dist/runtime/components/tabs/tabs-panel.d.vue.ts +17 -0
  307. package/dist/runtime/components/tabs/tabs-panel.vue +23 -0
  308. package/dist/runtime/components/tabs/tabs-panel.vue.d.ts +17 -0
  309. package/dist/runtime/components/tabs/tabs-root.d.vue.ts +47 -0
  310. package/dist/runtime/components/tabs/tabs-root.vue +71 -0
  311. package/dist/runtime/components/tabs/tabs-root.vue.d.ts +47 -0
  312. package/dist/runtime/components/tabs/tabs-tab.d.vue.ts +22 -0
  313. package/dist/runtime/components/tabs/tabs-tab.vue +41 -0
  314. package/dist/runtime/components/tabs/tabs-tab.vue.d.ts +22 -0
  315. package/dist/runtime/components/tabs/tabs.module.css +1 -0
  316. package/dist/runtime/components/text.d.vue.ts +37 -0
  317. package/dist/runtime/components/text.vue +122 -0
  318. package/dist/runtime/components/text.vue.d.ts +37 -0
  319. package/dist/runtime/components/textarea.d.vue.ts +33 -0
  320. package/dist/runtime/components/textarea.vue +48 -0
  321. package/dist/runtime/components/textarea.vue.d.ts +33 -0
  322. package/dist/runtime/components/title.d.vue.ts +18 -0
  323. package/dist/runtime/components/title.vue +34 -0
  324. package/dist/runtime/components/title.vue.d.ts +18 -0
  325. package/dist/runtime/components/transition/index.d.ts +1 -0
  326. package/dist/runtime/components/transition/index.js +0 -0
  327. package/dist/runtime/components/transition/transition.d.vue.ts +25 -0
  328. package/dist/runtime/components/transition/transition.vue +31 -0
  329. package/dist/runtime/components/transition/transition.vue.d.ts +25 -0
  330. package/dist/runtime/components/visually-hidden/index.d.ts +2 -0
  331. package/dist/runtime/components/visually-hidden/index.js +0 -0
  332. package/dist/runtime/components/visually-hidden/visually-hidden-input.d.vue.ts +22 -0
  333. package/dist/runtime/components/visually-hidden/visually-hidden-input.vue +13 -0
  334. package/dist/runtime/components/visually-hidden/visually-hidden-input.vue.d.ts +22 -0
  335. package/dist/runtime/components/visually-hidden/visually-hidden.d.vue.ts +17 -0
  336. package/dist/runtime/components/visually-hidden/visually-hidden.vue +22 -0
  337. package/dist/runtime/components/visually-hidden/visually-hidden.vue.d.ts +17 -0
  338. package/dist/runtime/composals/index.d.ts +4 -0
  339. package/dist/runtime/composals/index.js +4 -0
  340. package/dist/runtime/composals/use-active-link.d.ts +5 -0
  341. package/dist/runtime/composals/use-active-link.js +20 -0
  342. package/dist/runtime/composals/use-mod.d.ts +2 -0
  343. package/dist/runtime/composals/use-mod.js +25 -0
  344. package/dist/runtime/composals/use-style-resolver.d.ts +3 -0
  345. package/dist/runtime/composals/use-style-resolver.js +5 -0
  346. package/dist/runtime/composals/use-theme.d.ts +9 -0
  347. package/dist/runtime/composals/use-theme.js +4 -0
  348. package/dist/runtime/const/index.d.ts +2 -0
  349. package/dist/runtime/const/index.js +6 -0
  350. package/dist/runtime/helpers/create-strict-injection.d.ts +94 -0
  351. package/dist/runtime/helpers/create-strict-injection.js +11 -0
  352. package/dist/runtime/helpers/index.d.ts +1 -0
  353. package/dist/runtime/helpers/index.js +1 -0
  354. package/dist/runtime/server/tsconfig.json +3 -0
  355. package/dist/runtime/styles/baseline.css +1 -0
  356. package/dist/runtime/styles/colors.css +1 -0
  357. package/dist/runtime/styles/const.css +1 -0
  358. package/dist/runtime/styles/dark-theme.css +1 -0
  359. package/dist/runtime/styles/global.css +1 -0
  360. package/dist/runtime/styles/light-theme.css +1 -0
  361. package/dist/runtime/types/index.d.ts +1 -0
  362. package/dist/runtime/types/index.js +0 -0
  363. package/dist/runtime/types/theme.d.ts +25 -0
  364. package/dist/runtime/types/theme.js +0 -0
  365. package/dist/runtime/utils/boolean/is-falsy.d.ts +1 -0
  366. package/dist/runtime/utils/boolean/is-falsy.js +7 -0
  367. package/dist/runtime/utils/boolean/is-number-like.d.ts +1 -0
  368. package/dist/runtime/utils/boolean/is-number-like.js +13 -0
  369. package/dist/runtime/utils/color-functions/get-gradient.d.ts +3 -0
  370. package/dist/runtime/utils/color-functions/get-gradient.js +25 -0
  371. package/dist/runtime/utils/converters/rem.d.ts +2 -0
  372. package/dist/runtime/utils/converters/rem.js +43 -0
  373. package/dist/runtime/utils/get-color-var.d.ts +2 -0
  374. package/dist/runtime/utils/get-color-var.js +6 -0
  375. package/dist/runtime/utils/get-safe-id.d.ts +1 -0
  376. package/dist/runtime/utils/get-safe-id.js +8 -0
  377. package/dist/runtime/utils/get-size/get-size.d.ts +6 -0
  378. package/dist/runtime/utils/get-size/get-size.js +24 -0
  379. package/dist/runtime/utils/index.d.ts +7 -0
  380. package/dist/runtime/utils/index.js +7 -0
  381. package/dist/runtime/utils/parse-theme-color/parse-theme-color.d.ts +14 -0
  382. package/dist/runtime/utils/parse-theme-color/parse-theme-color.js +73 -0
  383. package/dist/runtime/utils/vars-resolver/create-variant-color-resolver.d.ts +14 -0
  384. package/dist/runtime/utils/vars-resolver/create-variant-color-resolver.js +106 -0
  385. package/dist/types.d.mts +3 -0
  386. package/package.json +96 -0
@@ -0,0 +1,26 @@
1
+ export * from './action-icon/index.js';
2
+ export * from './app-shell/index.js';
3
+ export * from './background-image.vue.js';
4
+ export * from './box.vue.js';
5
+ export * from './button/index.js';
6
+ export * from './card/index.js';
7
+ export * from './checkbox/index.js';
8
+ export * from './chip/index.js';
9
+ export * from './combobox/index.js';
10
+ export * from './container.vue.js';
11
+ export * from './dialog/index.js';
12
+ export * from './drawer/index.js';
13
+ export * from './input/index.js';
14
+ export * from './link/index.js';
15
+ export * from './loader/index.js';
16
+ export * from './modal/index.js';
17
+ export * from './nav-link/index.js';
18
+ export * from './paper.vue.js';
19
+ export * from './popover/index.js';
20
+ export * from './select/index.js';
21
+ export * from './tabs/index.js';
22
+ export * from './text.vue.js';
23
+ export * from './textarea.vue.js';
24
+ export * from './title.vue.js';
25
+ export * from './transition/index.js';
26
+ export * from './visually-hidden/index.js';
@@ -0,0 +1,26 @@
1
+ export * from "./action-icon/index.js";
2
+ export * from "./app-shell/index.js";
3
+ export * from "./background-image.vue";
4
+ export * from "./box.vue";
5
+ export * from "./button/index.js";
6
+ export * from "./card/index.js";
7
+ export * from "./checkbox/index.js";
8
+ export * from "./chip/index.js";
9
+ export * from "./combobox/index.js";
10
+ export * from "./container.vue";
11
+ export * from "./dialog/index.js";
12
+ export * from "./drawer/index.js";
13
+ export * from "./input/index.js";
14
+ export * from "./link/index.js";
15
+ export * from "./loader/index.js";
16
+ export * from "./modal/index.js";
17
+ export * from "./nav-link/index.js";
18
+ export * from "./paper.vue";
19
+ export * from "./popover/index.js";
20
+ export * from "./select/index.js";
21
+ export * from "./tabs/index.js";
22
+ export * from "./text.vue";
23
+ export * from "./textarea.vue";
24
+ export * from "./title.vue";
25
+ export * from "./transition/index.js";
26
+ export * from "./visually-hidden/index.js";
@@ -0,0 +1,10 @@
1
+ export type * from './input.vue';
2
+ export { useInputWrapperState, type WrapperContext } from './lib/input-wrapper.context.js';
3
+ export type * from './number-input.vue';
4
+ export type * from './password-input.vue';
5
+ export type * from './text-input.vue';
6
+ export type * from './types';
7
+ export type * from './ui/input-base.vue';
8
+ export type * from './ui/input-inline.vue';
9
+ export type * from './ui/input-label.vue';
10
+ export type * from './ui/input-wrapper.vue';
@@ -0,0 +1 @@
1
+ export { useInputWrapperState } from "./lib/input-wrapper.context.js";
@@ -0,0 +1,38 @@
1
+ import type { InputBaseProps } from './types/index.js';
2
+ import type { InputWrapperProps } from './ui/input-wrapper.vue.js';
3
+ export interface InputProps extends /* @vue-ignore */ InputWrapperProps, InputBaseProps {
4
+ /** If set, the input can have multiple lines, for example when `component="textarea"` @default `false` */
5
+ multiline?: boolean;
6
+ /** If set, `aria-` and other accessibility attributes are added to the input @default `true` */
7
+ withAria?: boolean;
8
+ }
9
+ type __VLS_Props = InputProps;
10
+ type __VLS_ModelProps = {
11
+ modelValue?: any;
12
+ };
13
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
+ declare var __VLS_7: {}, __VLS_14: {}, __VLS_17: {}, __VLS_20: {}, __VLS_23: {};
15
+ type __VLS_Slots = {} & {
16
+ label?: (props: typeof __VLS_7) => any;
17
+ } & {
18
+ leftSection?: (props: typeof __VLS_14) => any;
19
+ } & {
20
+ rightSection?: (props: typeof __VLS_17) => any;
21
+ } & {
22
+ error?: (props: typeof __VLS_20) => any;
23
+ } & {
24
+ description?: (props: typeof __VLS_23) => any;
25
+ };
26
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
+ "update:modelValue": (value: any) => any;
28
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
29
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
30
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
32
+ declare const _default: typeof __VLS_export;
33
+ export default _default;
34
+ type __VLS_WithSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -0,0 +1,38 @@
1
+ <script setup>
2
+ import { useId } from "vue";
3
+ import BaseInput from "./ui/input-base.vue";
4
+ import InputWrapper from "./ui/input-wrapper.vue";
5
+ const { id, ...rest } = defineProps({
6
+ multiline: { type: Boolean, required: false },
7
+ withAria: { type: Boolean, required: false },
8
+ readonly: { type: Boolean, required: false },
9
+ disabled: { type: Boolean, required: false }
10
+ });
11
+ const value = defineModel({ type: null });
12
+ const uid = id ?? useId();
13
+ </script>
14
+
15
+ <template>
16
+ <InputWrapper :id='uid' v-bind='rest'>
17
+ <template #label>
18
+ <slot name='label' />
19
+ </template>
20
+
21
+ <BaseInput :id='uid' v-model='value' v-bind='$attrs'>
22
+ <template v-if='$slots.leftSection' #leftSection>
23
+ <slot name='leftSection' />
24
+ </template>
25
+ <template v-if='$slots.rightSection' #rightSection>
26
+ <slot name='rightSection' />
27
+ </template>
28
+ </BaseInput>
29
+
30
+ <template #error>
31
+ <slot name='error' />
32
+ </template>
33
+
34
+ <template #description>
35
+ <slot name='description' />
36
+ </template>
37
+ </InputWrapper>
38
+ </template>
@@ -0,0 +1,38 @@
1
+ import type { InputBaseProps } from './types/index.js';
2
+ import type { InputWrapperProps } from './ui/input-wrapper.vue.js';
3
+ export interface InputProps extends /* @vue-ignore */ InputWrapperProps, InputBaseProps {
4
+ /** If set, the input can have multiple lines, for example when `component="textarea"` @default `false` */
5
+ multiline?: boolean;
6
+ /** If set, `aria-` and other accessibility attributes are added to the input @default `true` */
7
+ withAria?: boolean;
8
+ }
9
+ type __VLS_Props = InputProps;
10
+ type __VLS_ModelProps = {
11
+ modelValue?: any;
12
+ };
13
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
+ declare var __VLS_7: {}, __VLS_14: {}, __VLS_17: {}, __VLS_20: {}, __VLS_23: {};
15
+ type __VLS_Slots = {} & {
16
+ label?: (props: typeof __VLS_7) => any;
17
+ } & {
18
+ leftSection?: (props: typeof __VLS_14) => any;
19
+ } & {
20
+ rightSection?: (props: typeof __VLS_17) => any;
21
+ } & {
22
+ error?: (props: typeof __VLS_20) => any;
23
+ } & {
24
+ description?: (props: typeof __VLS_23) => any;
25
+ };
26
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
+ "update:modelValue": (value: any) => any;
28
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
29
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
30
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
32
+ declare const _default: typeof __VLS_export;
33
+ export default _default;
34
+ type __VLS_WithSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -0,0 +1,18 @@
1
+ import type { UiKitSize } from '@nui/types';
2
+ import type { CSSProperties } from 'vue';
3
+ import type { InputVariant } from '../types/index.js';
4
+ export interface WrapperContext {
5
+ id?: string | null;
6
+ required?: boolean;
7
+ radius?: UiKitSize | string;
8
+ size?: UiKitSize | string;
9
+ variant?: InputVariant;
10
+ multiline?: boolean;
11
+ resize?: CSSProperties['resize'];
12
+ /** section pointer-events */
13
+ leftSectionPE?: CSSStyleDeclaration['pointerEvents'];
14
+ /** section pointer-events */
15
+ rightSectionPE?: CSSStyleDeclaration['pointerEvents'];
16
+ }
17
+ export declare const useProvideInputWrapper: (initial: WrapperContext) => import("vue").ShallowRef<WrapperContext, WrapperContext>;
18
+ export declare const useInputWrapperState: () => import("vue").ShallowRef<WrapperContext, WrapperContext>;
@@ -0,0 +1,9 @@
1
+ import { createStrictInjection } from "@nui/helpers";
2
+ import { shallowRef } from "vue";
3
+ const injectionKey = Symbol("InputWrapper");
4
+ const [useProvide, useState] = createStrictInjection((initial) => shallowRef(initial), {
5
+ injectionKey,
6
+ name: "InputWrapper"
7
+ });
8
+ export const useProvideInputWrapper = useProvide;
9
+ export const useInputWrapperState = useState;
@@ -0,0 +1,36 @@
1
+ import type { InputWrapperProps } from './index.js';
2
+ import type { InputBaseProps } from './types/index.js';
3
+ export interface NumberInputProps extends /* @vue-ignore */ InputBaseProps, Omit<InputWrapperProps, 'multiline' | 'resize' | 'id'> {
4
+ /** Minimum possible value */
5
+ min?: number;
6
+ /** Maximum possible value */
7
+ max?: number;
8
+ /** Number by which value will be incremented/decremented with up/down controls and keyboard arrows, `1` by default */
9
+ step?: number;
10
+ /** Determines whether the up/down controls should be hidden, `false` by default */
11
+ hideControls?: boolean;
12
+ }
13
+ type __VLS_Props = NumberInputProps;
14
+ type __VLS_ModelProps = {
15
+ modelValue?: number;
16
+ };
17
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
18
+ declare var __VLS_16: {}, __VLS_19: {};
19
+ type __VLS_Slots = {} & {
20
+ leftSection?: (props: typeof __VLS_16) => any;
21
+ } & {
22
+ rightSection?: (props: typeof __VLS_19) => any;
23
+ };
24
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ "update:modelValue": (value: number) => any;
26
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
27
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
28
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
+ declare const _default: typeof __VLS_export;
31
+ export default _default;
32
+ type __VLS_WithSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1,172 @@
1
+ <script setup>
2
+ import { clamp, useCounter } from "@vueuse/core";
3
+ import { shallowRef, useId, watch } from "vue";
4
+ import UnstyledButton from "../button/unstyled-button.vue";
5
+ import BaseInput from "./ui/input-base.vue";
6
+ import InputWrapper from "./ui/input-wrapper.vue";
7
+ const {
8
+ min = Number.MIN_SAFE_INTEGER,
9
+ max = Number.MAX_SAFE_INTEGER,
10
+ step = 1,
11
+ hideControls,
12
+ disabled,
13
+ readonly,
14
+ rightSectionPE = "all",
15
+ ...rest
16
+ } = defineProps({
17
+ min: { type: Number, required: false },
18
+ max: { type: Number, required: false },
19
+ step: { type: Number, required: false },
20
+ hideControls: { type: Boolean, required: false },
21
+ error: { type: String, required: false },
22
+ description: { type: String, required: false },
23
+ label: { type: String, required: false },
24
+ required: { type: Boolean, required: false },
25
+ size: { type: String, required: false }
26
+ });
27
+ const id = useId();
28
+ const value = defineModel({ type: Number, ...{ default: 0 } });
29
+ const { count, inc, dec, set } = useCounter(value, { min, max });
30
+ const focused = shallowRef(false);
31
+ watch(count, () => {
32
+ value.value = count.value;
33
+ });
34
+ function handleWheel(event) {
35
+ if (!focused.value)
36
+ return;
37
+ if (Math.abs(event.deltaY) <= Math.abs(event.deltaX))
38
+ return;
39
+ if (event.deltaY > 0)
40
+ dec(step);
41
+ else if (event.deltaY < 0)
42
+ inc(step);
43
+ }
44
+ function handleBlur() {
45
+ focused.value = false;
46
+ set(clamp(count.value, min, max));
47
+ }
48
+ </script>
49
+
50
+ <template>
51
+ <InputWrapper v-bind='rest' :id :class='$style.root' :right-section-p-e>
52
+ <BaseInput
53
+ :id
54
+ :value='count'
55
+ :readonly
56
+ :disabled
57
+ :step
58
+ :min
59
+ :max
60
+ type='number'
61
+ @focus='focused = true'
62
+ @blur='handleBlur()'
63
+ @wheel.prevent='handleWheel'
64
+ >
65
+ <template v-if='$slots?.leftSection' #leftSection>
66
+ <slot name='leftSection' />
67
+ </template>
68
+ <template #rightSection>
69
+ <slot name='rightSection'>
70
+ <div v-if='!hideControls' :class='$style.controls'>
71
+ <UnstyledButton
72
+ :class='$style.control'
73
+ :disabled='disabled || typeof value === "number" && !Number.isNaN(max) && value >= max'
74
+ @click='inc(step)'
75
+ >
76
+ <Icon name='gravity-ui:chevron-up' />
77
+ </UnstyledButton>
78
+ <UnstyledButton
79
+ :class='$style.control'
80
+ :disabled='disabled || typeof value === "number" && !Number.isNaN(min) && value <= min'
81
+ @click='dec(step)'
82
+ >
83
+ <Icon name='gravity-ui:chevron-down' />
84
+ </UnstyledButton>
85
+ </div>
86
+ </slot>
87
+ </template>
88
+ </BaseInput>
89
+ </InputWrapper>
90
+ </template>
91
+
92
+ <style module lang="postcss">
93
+ .root {
94
+ --ni-right-section-width-xs: rem(17px);
95
+ --ni-right-section-width-sm: rem(24px);
96
+ --ni-right-section-width-md: rem(27px);
97
+ --ni-right-section-width-lg: rem(31px);
98
+ --ni-right-section-width-xl: rem(34px);
99
+ }
100
+
101
+ .controls {
102
+ --ni-chevron-size-xs: rem(10px);
103
+ --ni-chevron-size-sm: rem(14px);
104
+ --ni-chevron-size-md: rem(16px);
105
+ --ni-chevron-size-lg: rem(18px);
106
+ --ni-chevron-size-xl: rem(20px);
107
+ --ni-chevron-size: var(--ni-chevron-size-sm);
108
+
109
+ display: flex;
110
+ flex-direction: column;
111
+
112
+ width: 100%;
113
+ max-width: calc(var(--ni-chevron-size) * 1.7);
114
+ height: calc(var(--input-height) - rem(2px));
115
+ margin-inline-start: auto;
116
+ }
117
+
118
+ .control {
119
+ --control-border: 1px solid var(--input-bd);
120
+ --control-radius: calc(var(--input-radius) - rem(1px));
121
+
122
+ cursor: pointer;
123
+
124
+ display: flex;
125
+
126
+ flex: 0 0 50%;
127
+ align-items: center;
128
+ justify-content: center;
129
+
130
+ width: 100%;
131
+ height: calc(var(--input-height) / 2 - rem(1px));
132
+ padding: 0;
133
+ border-inline-start: var(--control-border);
134
+
135
+ color: var(--color-text);
136
+
137
+ background-color: transparent;
138
+
139
+ &:where(:disabled) {
140
+ cursor: not-allowed;
141
+
142
+ color: var(--color-disabled-text);
143
+
144
+ opacity: 0.6;
145
+ background-color: transparent;
146
+ }
147
+
148
+ .root[data-error] :where(&) {
149
+ color: var(--color-error);
150
+ }
151
+
152
+ &:where(:first-of-type) {
153
+ border-radius: 0;
154
+ border-start-end-radius: var(--control-radius);
155
+ }
156
+
157
+ &:last-of-type {
158
+ border-radius: 0;
159
+ border-end-end-radius: var(--control-radius);
160
+ }
161
+
162
+ @mixin hover {
163
+ @mixin where-light {
164
+ background-color: var(--color-gray-0);
165
+ }
166
+
167
+ @mixin where-dark {
168
+ background-color: var(--color-dark-4);
169
+ }
170
+ }
171
+ }
172
+ </style>
@@ -0,0 +1,36 @@
1
+ import type { InputWrapperProps } from './index.js';
2
+ import type { InputBaseProps } from './types/index.js';
3
+ export interface NumberInputProps extends /* @vue-ignore */ InputBaseProps, Omit<InputWrapperProps, 'multiline' | 'resize' | 'id'> {
4
+ /** Minimum possible value */
5
+ min?: number;
6
+ /** Maximum possible value */
7
+ max?: number;
8
+ /** Number by which value will be incremented/decremented with up/down controls and keyboard arrows, `1` by default */
9
+ step?: number;
10
+ /** Determines whether the up/down controls should be hidden, `false` by default */
11
+ hideControls?: boolean;
12
+ }
13
+ type __VLS_Props = NumberInputProps;
14
+ type __VLS_ModelProps = {
15
+ modelValue?: number;
16
+ };
17
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
18
+ declare var __VLS_16: {}, __VLS_19: {};
19
+ type __VLS_Slots = {} & {
20
+ leftSection?: (props: typeof __VLS_16) => any;
21
+ } & {
22
+ rightSection?: (props: typeof __VLS_19) => any;
23
+ };
24
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ "update:modelValue": (value: number) => any;
26
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
27
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
28
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
+ declare const _default: typeof __VLS_export;
31
+ export default _default;
32
+ type __VLS_WithSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1,4 @@
1
+ import type { TextInputProps } from './index.js';
2
+ declare const __VLS_export: import("vue").DefineComponent<TextInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextInputProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
@@ -0,0 +1,28 @@
1
+ <script setup>
2
+ import { ref } from "vue";
3
+ import ActionIcon from "../action-icon/action-icon.vue";
4
+ import TextInput from "./text-input.vue";
5
+ const props = defineProps({
6
+ error: { type: String, required: false },
7
+ description: { type: String, required: false },
8
+ label: { type: String, required: false },
9
+ required: { type: Boolean, required: false },
10
+ size: { type: String, required: false }
11
+ });
12
+ const password = ref(true);
13
+ </script>
14
+
15
+ <template>
16
+ <TextInput
17
+ v-bind='props'
18
+ :type='password ? "password" : "text"'
19
+ right-section-p-e='all'
20
+ >
21
+ <template #rightSection>
22
+ <ActionIcon variant='subtle' @click='password = !password'>
23
+ <Icon v-if='password' name='gravity-ui:eye' />
24
+ <Icon v-else name='gravity-ui:eye-slash' />
25
+ </ActionIcon>
26
+ </template>
27
+ </TextInput>
28
+ </template>
@@ -0,0 +1,4 @@
1
+ import type { TextInputProps } from './index.js';
2
+ declare const __VLS_export: import("vue").DefineComponent<TextInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextInputProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
@@ -0,0 +1,32 @@
1
+ import type { InputWrapperProps } from './ui/input-wrapper.vue.js';
2
+ export type TextInputProps = Omit<InputWrapperProps, 'id' | 'multiline' | 'resize'>;
3
+ type __VLS_Props = TextInputProps;
4
+ type __VLS_ModelProps = {
5
+ modelValue?: string | undefined;
6
+ };
7
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
+ declare var __VLS_6: {}, __VLS_8: {}, __VLS_10: {}, __VLS_17: {}, __VLS_20: {};
9
+ type __VLS_Slots = {} & {
10
+ label?: (props: typeof __VLS_6) => any;
11
+ } & {
12
+ error?: (props: typeof __VLS_8) => any;
13
+ } & {
14
+ description?: (props: typeof __VLS_10) => any;
15
+ } & {
16
+ leftSection?: (props: typeof __VLS_17) => any;
17
+ } & {
18
+ rightSection?: (props: typeof __VLS_20) => any;
19
+ };
20
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ "update:modelValue": (value: string | undefined) => any;
22
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,38 @@
1
+ <script setup>
2
+ import { useId } from "vue";
3
+ import BaseInput from "./ui/input-base.vue";
4
+ import InputWrapper from "./ui/input-wrapper.vue";
5
+ defineOptions({
6
+ inheritAttrs: false
7
+ });
8
+ const { required, ...props } = defineProps({
9
+ error: { type: String, required: false },
10
+ description: { type: String, required: false },
11
+ label: { type: String, required: false },
12
+ required: { type: Boolean, required: false },
13
+ size: { type: String, required: false }
14
+ });
15
+ const model = defineModel({ type: null });
16
+ const id = useId();
17
+ </script>
18
+
19
+ <template>
20
+ <InputWrapper :id v-bind='props' :class='$attrs?.class'>
21
+ <slot name='label' />
22
+ <slot name='error' />
23
+ <slot name='description' />
24
+ <BaseInput
25
+ :id
26
+ v-model='model'
27
+ v-bind='{ ...$attrs, class: void 0 }'
28
+ :required
29
+ >
30
+ <template v-if='$slots.leftSection' #leftSection>
31
+ <slot name='leftSection' />
32
+ </template>
33
+ <template v-if='$slots.rightSection' #rightSection>
34
+ <slot name='rightSection' />
35
+ </template>
36
+ </BaseInput>
37
+ </InputWrapper>
38
+ </template>
@@ -0,0 +1,32 @@
1
+ import type { InputWrapperProps } from './ui/input-wrapper.vue.js';
2
+ export type TextInputProps = Omit<InputWrapperProps, 'id' | 'multiline' | 'resize'>;
3
+ type __VLS_Props = TextInputProps;
4
+ type __VLS_ModelProps = {
5
+ modelValue?: string | undefined;
6
+ };
7
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
+ declare var __VLS_6: {}, __VLS_8: {}, __VLS_10: {}, __VLS_17: {}, __VLS_20: {};
9
+ type __VLS_Slots = {} & {
10
+ label?: (props: typeof __VLS_6) => any;
11
+ } & {
12
+ error?: (props: typeof __VLS_8) => any;
13
+ } & {
14
+ description?: (props: typeof __VLS_10) => any;
15
+ } & {
16
+ leftSection?: (props: typeof __VLS_17) => any;
17
+ } & {
18
+ rightSection?: (props: typeof __VLS_20) => any;
19
+ };
20
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ "update:modelValue": (value: string | undefined) => any;
22
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,5 @@
1
+ export type InputVariant = 'default' | 'filled' | 'unstyled';
2
+ export interface InputBaseProps {
3
+ readonly?: boolean;
4
+ disabled?: boolean;
5
+ }
File without changes
@@ -0,0 +1,28 @@
1
+ import type { Component } from 'vue';
2
+ import type { WrapperContext } from '../lib/input-wrapper.context.js';
3
+ import type { InputBaseProps } from '../types/index.js';
4
+ export interface BaseInputProps extends /* @vue-ignore */ InputBaseProps, Omit<WrapperContext, 'id'>, Required<Pick<WrapperContext, 'id'>> {
5
+ is?: 'input' | 'textarea' | Component;
6
+ modelValue?: string;
7
+ }
8
+ declare var __VLS_6: {}, __VLS_18: {};
9
+ type __VLS_Slots = {} & {
10
+ leftSection?: (props: typeof __VLS_6) => any;
11
+ } & {
12
+ rightSection?: (props: typeof __VLS_18) => any;
13
+ };
14
+ declare const __VLS_base: import("vue").DefineComponent<BaseInputProps, {
15
+ ref: Readonly<import("vue").ShallowRef<any>>;
16
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ "update:modelValue": (value: string | undefined) => any;
18
+ }, string, import("vue").PublicProps, Readonly<BaseInputProps> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };