@weni/unnnic-system 3.9.4 → 3.11.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. package/CHANGELOG.md +120 -0
  2. package/dist/assets/tokens/colors.json.d.ts +376 -0
  3. package/dist/components/Accordion/Accordion.vue.d.ts +1 -1
  4. package/dist/components/Alert/Alert.vue.d.ts +17 -116
  5. package/dist/components/Alert/Alert.vue.d.ts.map +1 -1
  6. package/dist/components/Alert/Version1dot1.vue.d.ts +2 -38
  7. package/dist/components/Alert/Version1dot1.vue.d.ts.map +1 -1
  8. package/dist/components/AudioRecorder/AudioHandler.vue.d.ts +111 -20
  9. package/dist/components/AudioRecorder/AudioPlayer.vue.d.ts +1 -1
  10. package/dist/components/AudioRecorder/AudioRecorder.vue.d.ts +223 -41
  11. package/dist/components/AvatarIcon/AvatarIcon.vue.d.ts +3 -3
  12. package/dist/components/Banner/Banner.vue.d.ts +1 -1
  13. package/dist/components/Banner/InfoBanner.vue.d.ts +1 -1
  14. package/dist/components/Breadcrumb/Breadcrumb.vue.d.ts +1 -1
  15. package/dist/components/Button/Button.vue.d.ts +3 -3
  16. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  17. package/dist/components/Button/ButtonIcon.vue.d.ts +1 -1
  18. package/dist/components/Button/types.d.ts +1 -1
  19. package/dist/components/Button/types.d.ts.map +1 -1
  20. package/dist/components/Card/AccountCard.vue.d.ts +4 -4
  21. package/dist/components/Card/BlankCard.vue.d.ts +1 -1
  22. package/dist/components/Card/Card.vue.d.ts +128 -37
  23. package/dist/components/Card/CardCompany.vue.d.ts +12 -415
  24. package/dist/components/Card/CardData.vue.d.ts +1 -1
  25. package/dist/components/Card/CardStatusesContainer.vue.d.ts +114 -23
  26. package/dist/components/Card/ContentCard.vue.d.ts +2 -2
  27. package/dist/components/Card/DashCard.vue.d.ts +4 -4
  28. package/dist/components/Card/MarketplaceCard.vue.d.ts +1 -1
  29. package/dist/components/Card/MarketplaceCard.vue.d.ts.map +1 -1
  30. package/dist/components/Card/SimpleCard.vue.d.ts +112 -21
  31. package/dist/components/Card/StatusCard.vue.d.ts +1 -1
  32. package/dist/components/Card/TitleCard.vue.d.ts +112 -21
  33. package/dist/components/CardImage/CardImage.vue.d.ts +23 -30
  34. package/dist/components/CardInformation/CardInformation.vue.d.ts +114 -23
  35. package/dist/components/CardProject/CardProject.vue.d.ts +3 -3
  36. package/dist/components/Carousel/Carousel.vue.d.ts +14 -417
  37. package/dist/components/Carousel/TagCarousel.vue.d.ts +13 -416
  38. package/dist/components/ChartBar/ChartBar.vue.d.ts +120 -29
  39. package/dist/components/ChartLine/ChartLine.vue.d.ts +110 -19
  40. package/dist/components/ChatText/ChatText.vue.d.ts +111 -20
  41. package/dist/components/ChatsContact/ChatsContact.vue.d.ts +22 -447
  42. package/dist/components/ChatsDashboardTagLive/ChatsDashboardTagLive.vue.d.ts +1 -1
  43. package/dist/components/ChatsHeader/ChatsHeader.vue.d.ts +1 -1
  44. package/dist/components/ChatsHeader/ChatsHeader.vue.d.ts.map +1 -1
  45. package/dist/components/ChatsMessage/ChatsMessage.vue.d.ts +114 -23
  46. package/dist/components/ChatsMessage/ChatsMessageStatusBackdrop.vue.d.ts +2 -2
  47. package/dist/components/ChatsNavbar/ChatsNavbar.vue.d.ts +1 -1
  48. package/dist/components/ChatsUserAvatar/ChatsUserAvatar.vue.d.ts +3 -3
  49. package/dist/components/Checkbox/Checkbox.vue.d.ts +17 -24
  50. package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
  51. package/dist/components/CheckboxGroup/CheckboxGroup.vue.d.ts +28 -0
  52. package/dist/components/CheckboxGroup/CheckboxGroup.vue.d.ts.map +1 -0
  53. package/dist/components/Comment/Comment.vue.d.ts +1 -1
  54. package/dist/components/DataArea/DataArea.vue.d.ts +111 -20
  55. package/dist/components/DataTable/index.vue.d.ts +2 -2
  56. package/dist/components/DataTable/index.vue.d.ts.map +1 -1
  57. package/dist/components/DateFilter/DateFilter.vue.d.ts +172 -41
  58. package/dist/components/DatePicker/DatePicker.vue.d.ts +69 -249
  59. package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
  60. package/dist/components/Drawer/Drawer.vue.d.ts +35 -207
  61. package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
  62. package/dist/components/Dropdown/Dropdown.vue.d.ts +2 -2
  63. package/dist/components/Dropdown/LanguageSelect.vue.d.ts +3 -3
  64. package/dist/components/Flag.vue.d.ts +2 -2
  65. package/dist/components/FormElement/FormElement.vue.d.ts +50 -27
  66. package/dist/components/FormElement/FormElement.vue.d.ts.map +1 -1
  67. package/dist/components/Icon.vue.d.ts +1 -1
  68. package/dist/components/Icon.vue.d.ts.map +1 -1
  69. package/dist/components/IconLoading/IconLoading.vue.d.ts +1 -1
  70. package/dist/components/ImportCard/ImportCard.vue.d.ts +10 -10
  71. package/dist/components/Input/BaseInput.vue.d.ts +11 -2
  72. package/dist/components/Input/BaseInput.vue.d.ts.map +1 -1
  73. package/dist/components/Input/Input.vue.d.ts +171 -40
  74. package/dist/components/Input/Input.vue.d.ts.map +1 -1
  75. package/dist/components/Input/TextInput.vue.d.ts +33 -24
  76. package/dist/components/Input/TextInput.vue.d.ts.map +1 -1
  77. package/dist/components/InputNext/InputNext.vue.d.ts +3 -3
  78. package/dist/components/Label/Label.vue.d.ts +9 -15
  79. package/dist/components/Label/Label.vue.d.ts.map +1 -1
  80. package/dist/components/Modal/Modal.vue.d.ts +1 -1
  81. package/dist/components/ModalDialog/ModalDialog.vue.d.ts +214 -40
  82. package/dist/components/ModalDialog/ModalDialog.vue.d.ts.map +1 -1
  83. package/dist/components/ModalNext/ModalNext.vue.d.ts +182 -51
  84. package/dist/components/ModalUpload/ModalUpload.vue.d.ts +21 -21
  85. package/dist/components/MoodRating/MoodRating.vue.d.ts +110 -19
  86. package/dist/components/MultiSelect/MultiSelect.vue.d.ts +26 -14
  87. package/dist/components/PageHeader/PageHeader.vue.d.ts +28 -0
  88. package/dist/components/PageHeader/PageHeader.vue.d.ts.map +1 -0
  89. package/dist/components/PageHeader/index.d.ts +3 -0
  90. package/dist/components/PageHeader/index.d.ts.map +1 -0
  91. package/dist/components/PageHeader/types.d.ts +9 -0
  92. package/dist/components/PageHeader/types.d.ts.map +1 -0
  93. package/dist/components/Pagination/Pagination.vue.d.ts +9 -9
  94. package/dist/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
  95. package/dist/components/Radio/Radio.vue.d.ts +10 -6
  96. package/dist/components/Radio/Radio.vue.d.ts.map +1 -1
  97. package/dist/components/Select/SelectItem.vue.d.ts +1 -1
  98. package/dist/components/SelectSmart/SelectSmart.vue.d.ts +68 -469
  99. package/dist/components/SelectSmart/SelectSmartMultipleHeader.vue.d.ts +12 -415
  100. package/dist/components/SelectSmart/SelectSmartOption.vue.d.ts +19 -26
  101. package/dist/components/SelectSmart/SelectSmartOption.vue.d.ts.map +1 -1
  102. package/dist/components/SelectTime/index.vue.d.ts +34 -25
  103. package/dist/components/SkeletonLoading/skeletonTheme.vue.d.ts +1 -1
  104. package/dist/components/Slider/Slider.vue.d.ts +111 -20
  105. package/dist/components/StarRating/StarRating.vue.d.ts +1 -1
  106. package/dist/components/Switch/Switch.vue.d.ts +56 -22
  107. package/dist/components/Switch/Switch.vue.d.ts.map +1 -1
  108. package/dist/components/Tab/Tab.vue.d.ts +122 -20
  109. package/dist/components/TableNext/TablePagination.vue.d.ts +9 -9
  110. package/dist/components/TabsExpanded/TabsExpanded.vue.d.ts +1 -1
  111. package/dist/components/Tag/DefaultTag.vue.d.ts +4 -83
  112. package/dist/components/Tag/DefaultTag.vue.d.ts.map +1 -1
  113. package/dist/components/Tag/Tag.vue.d.ts +13 -415
  114. package/dist/components/Tag/Tag.vue.d.ts.map +1 -1
  115. package/dist/components/Tag/types.d.ts +18 -0
  116. package/dist/components/Tag/types.d.ts.map +1 -0
  117. package/dist/components/TextArea/TextArea.vue.d.ts +78 -33
  118. package/dist/components/TextArea/TextArea.vue.d.ts.map +1 -1
  119. package/dist/components/Toast/Toast.vue.d.ts +16 -0
  120. package/dist/components/Toast/Toast.vue.d.ts.map +1 -0
  121. package/dist/components/Toast/ToastManager.d.ts +14 -0
  122. package/dist/components/Toast/ToastManager.d.ts.map +1 -0
  123. package/dist/components/Toast/types.d.ts +35 -0
  124. package/dist/components/Toast/types.d.ts.map +1 -0
  125. package/dist/components/ToolTip/ToolTip.vue.d.ts +110 -19
  126. package/dist/components/ToolTip/ToolTip.vue.d.ts.map +1 -1
  127. package/dist/components/Tour/Tour.vue.d.ts +9 -9
  128. package/dist/components/Tour/TourPopover.vue.d.ts +9 -9
  129. package/dist/components/UploadArea/UploadArea.vue.d.ts +10 -10
  130. package/dist/components/ui/dialog/Dialog.vue.d.ts +23 -0
  131. package/dist/components/ui/dialog/Dialog.vue.d.ts.map +1 -0
  132. package/dist/components/ui/dialog/DialogClose.vue.d.ts +19 -0
  133. package/dist/components/ui/dialog/DialogClose.vue.d.ts.map +1 -0
  134. package/dist/components/ui/dialog/DialogContent.vue.d.ts +43 -0
  135. package/dist/components/ui/dialog/DialogContent.vue.d.ts.map +1 -0
  136. package/dist/components/ui/dialog/DialogFooter.vue.d.ts +25 -0
  137. package/dist/components/ui/dialog/DialogFooter.vue.d.ts.map +1 -0
  138. package/dist/components/ui/dialog/DialogHeader.vue.d.ts +29 -0
  139. package/dist/components/ui/dialog/DialogHeader.vue.d.ts.map +1 -0
  140. package/dist/components/ui/dialog/DialogTitle.vue.d.ts +23 -0
  141. package/dist/components/ui/dialog/DialogTitle.vue.d.ts.map +1 -0
  142. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +19 -0
  143. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts.map +1 -0
  144. package/dist/components/ui/dialog/index.d.ts +8 -0
  145. package/dist/components/ui/dialog/index.d.ts.map +1 -0
  146. package/dist/components/ui/drawer/Drawer.vue.d.ts +35 -0
  147. package/dist/components/ui/drawer/Drawer.vue.d.ts.map +1 -0
  148. package/dist/components/ui/drawer/DrawerClose.vue.d.ts +19 -0
  149. package/dist/components/ui/drawer/DrawerClose.vue.d.ts.map +1 -0
  150. package/dist/components/ui/drawer/DrawerContent.vue.d.ts +42 -0
  151. package/dist/components/ui/drawer/DrawerContent.vue.d.ts.map +1 -0
  152. package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +23 -0
  153. package/dist/components/ui/drawer/DrawerDescription.vue.d.ts.map +1 -0
  154. package/dist/components/ui/drawer/DrawerFooter.vue.d.ts +22 -0
  155. package/dist/components/ui/drawer/DrawerFooter.vue.d.ts.map +1 -0
  156. package/dist/components/ui/drawer/DrawerHeader.vue.d.ts +25 -0
  157. package/dist/components/ui/drawer/DrawerHeader.vue.d.ts.map +1 -0
  158. package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +8 -0
  159. package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts.map +1 -0
  160. package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +23 -0
  161. package/dist/components/ui/drawer/DrawerTitle.vue.d.ts.map +1 -0
  162. package/dist/components/ui/drawer/DrawerTrigger.vue.d.ts +19 -0
  163. package/dist/components/ui/drawer/DrawerTrigger.vue.d.ts.map +1 -0
  164. package/dist/components/ui/drawer/index.d.ts +11 -0
  165. package/dist/components/ui/drawer/index.d.ts.map +1 -0
  166. package/dist/components/ui/popover/PopoverContent.vue.d.ts +2 -2
  167. package/dist/components/ui/popover/PopoverContent.vue.d.ts.map +1 -1
  168. package/dist/components/ui/segmented-control/SegmentedControlList.vue.d.ts +26 -0
  169. package/dist/components/ui/segmented-control/SegmentedControlList.vue.d.ts.map +1 -0
  170. package/dist/components/ui/segmented-control/SegmentedControlTrigger.vue.d.ts +24 -0
  171. package/dist/components/ui/segmented-control/SegmentedControlTrigger.vue.d.ts.map +1 -0
  172. package/dist/components/ui/segmented-control/index.d.ts +5 -0
  173. package/dist/components/ui/segmented-control/index.d.ts.map +1 -0
  174. package/dist/components/ui/tabs/TabsTrigger.vue.d.ts.map +1 -1
  175. package/dist/components/ui/tooltip/Tooltip.vue.d.ts +23 -0
  176. package/dist/components/ui/tooltip/Tooltip.vue.d.ts.map +1 -0
  177. package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +31 -0
  178. package/dist/components/ui/tooltip/TooltipContent.vue.d.ts.map +1 -0
  179. package/dist/components/ui/tooltip/TooltipProvider.vue.d.ts +19 -0
  180. package/dist/components/ui/tooltip/TooltipProvider.vue.d.ts.map +1 -0
  181. package/dist/components/ui/tooltip/TooltipTrigger.vue.d.ts +19 -0
  182. package/dist/components/ui/tooltip/TooltipTrigger.vue.d.ts.map +1 -0
  183. package/dist/components/ui/tooltip/index.d.ts +5 -0
  184. package/dist/components/ui/tooltip/index.d.ts.map +1 -0
  185. package/dist/{es-8146fb1b.mjs → es-34baba30.mjs} +1 -1
  186. package/dist/{index-724ed422.mjs → index-147b4c7d.mjs} +99341 -95990
  187. package/dist/{pt-br-af294ec9.mjs → pt-br-3921d504.mjs} +1 -1
  188. package/dist/style.css +1 -1
  189. package/dist/unnnic.mjs +229 -185
  190. package/dist/unnnic.umd.js +50 -47
  191. package/dist/utils/call.d.ts +2 -1
  192. package/dist/utils/call.d.ts.map +1 -1
  193. package/package.json +3 -2
  194. package/src/assets/fonts/material-symbols-rounded.woff2 +0 -0
  195. package/src/assets/icons/checkbox-checked-disabled.svg +3 -0
  196. package/src/assets/icons/checkbox-checked.svg +3 -0
  197. package/src/assets/icons/checkbox-less-disabled.svg +3 -0
  198. package/src/assets/icons/checkbox-less.svg +3 -0
  199. package/src/assets/icons/radio-checked.svg +3 -0
  200. package/src/assets/icons/switch-checked-disabled.svg +3 -0
  201. package/src/assets/icons/switch-checked.svg +3 -0
  202. package/src/assets/scss/tailwind.scss +8 -0
  203. package/src/components/Alert/Alert.vue +26 -135
  204. package/src/components/Alert/Version1dot1.vue +0 -36
  205. package/src/components/Alert/__tests__/Alert.spec.js +2 -45
  206. package/src/components/Alert/__tests__/Version1dot1.spec.js +0 -21
  207. package/src/components/Alert/__tests__/__snapshots__/Alert.spec.js.snap +11 -7
  208. package/src/components/Alert/__tests__/__snapshots__/AlertBanner.spec.js.snap +2 -2
  209. package/src/components/Alert/__tests__/__snapshots__/Version1dot1.spec.js.snap +1 -1
  210. package/src/components/Button/Button.vue +67 -117
  211. package/src/components/Button/types.ts +0 -1
  212. package/src/components/Card/MarketplaceCard.vue +1 -0
  213. package/src/components/ChatsContact/ChatsContact.vue +10 -6
  214. package/src/components/Checkbox/Checkbox.vue +117 -65
  215. package/src/components/Checkbox/__tests__/Checkbox.spec.js +6 -21
  216. package/src/components/CheckboxGroup/CheckboxGroup.vue +96 -0
  217. package/src/components/Collapse/Collapse.vue +1 -1
  218. package/src/components/Collapse/__tests__/__snapshots__/Collapse.spec.js.snap +1 -1
  219. package/src/components/DatePicker/DatePicker.vue +628 -516
  220. package/src/components/DatePicker/__tests__/DatePicker.spec.js +227 -0
  221. package/src/components/Drawer/Drawer.vue +177 -270
  222. package/src/components/Drawer/__tests__/Drawer.spec.js +31 -46
  223. package/src/components/Drawer/__tests__/__snapshots__/Drawer.spec.js.snap +18 -19
  224. package/src/components/FormElement/FormElement.vue +63 -93
  225. package/src/components/Icon.vue +4 -10
  226. package/src/components/Input/BaseInput.vue +12 -12
  227. package/src/components/Input/Input.scss +19 -20
  228. package/src/components/Input/Input.vue +60 -55
  229. package/src/components/Input/TextInput.vue +25 -54
  230. package/src/components/Input/__test__/Input.spec.js +13 -33
  231. package/src/components/Input/__test__/TextInput.spec.js +6 -8
  232. package/src/components/Input/__test__/__snapshots__/Input.spec.js.snap +14 -5
  233. package/src/components/Input/__test__/__snapshots__/TextInput.spec.js.snap +1 -1
  234. package/src/components/Label/Label.vue +52 -21
  235. package/src/components/Label/__tests__/Label.spec.js +1 -1
  236. package/src/components/Label/__tests__/__snapshots__/Label.spec.js.snap +1 -1
  237. package/src/components/ModalDialog/ModalDialog.vue +62 -148
  238. package/src/components/ModalDialog/__tests__/ModalDialog.spec.js +11 -221
  239. package/src/components/ModalDialog/__tests__/__snapshots__/ModalDialog.spec.js.snap +1 -22
  240. package/src/components/PageHeader/PageHeader.vue +148 -0
  241. package/src/components/PageHeader/index.ts +2 -0
  242. package/src/components/PageHeader/types.ts +10 -0
  243. package/src/components/Radio/Radio.vue +118 -66
  244. package/src/components/Radio/__test__/Radio.spec.js +14 -20
  245. package/src/components/Radio/__test__/__snapshots__/Radio.spec.js.snap +4 -3
  246. package/src/components/RadioGroup/RadioGroup.vue +142 -0
  247. package/src/components/SelectSmart/SelectSmart.vue +4 -3
  248. package/src/components/Switch/Switch.vue +132 -91
  249. package/src/components/Switch/__tests__/Switch.spec.js +8 -75
  250. package/src/components/Switch/__tests__/__snapshots__/Switch.spec.js.snap +5 -6
  251. package/src/components/Tab/Tab.vue +37 -23
  252. package/src/components/Tab/__test__/__snapshots__/Tab.spec.js.snap +3 -1
  253. package/src/components/TableNext/__test__/__snapshots__/TableNext.spec.js.snap +2 -2
  254. package/src/components/TableNext/__test__/__snapshots__/TablePagination.spec.js.snap +2 -2
  255. package/src/components/Tag/DefaultTag.vue +51 -107
  256. package/src/components/Tag/Tag.vue +32 -79
  257. package/src/components/Tag/types.ts +19 -0
  258. package/src/components/TextArea/TextArea.vue +41 -12
  259. package/src/components/TextArea/__test__/__snapshots__/TextArea.spec.js.snap +11 -3
  260. package/src/components/Toast/Toast.vue +246 -0
  261. package/src/components/Toast/ToastManager.ts +110 -0
  262. package/src/components/Toast/__tests__/Toast.spec.js +291 -0
  263. package/src/components/Toast/__tests__/ToastManager.spec.js +294 -0
  264. package/src/components/Toast/types.ts +57 -0
  265. package/src/components/ToolTip/ToolTip.vue +41 -188
  266. package/src/components/ToolTip/__tests__/ToolTip.spec.js +345 -61
  267. package/src/components/index.ts +95 -5
  268. package/src/components/ui/dialog/Dialog.vue +15 -0
  269. package/src/components/ui/dialog/DialogClose.vue +25 -0
  270. package/src/components/ui/dialog/DialogContent.vue +133 -0
  271. package/src/components/ui/dialog/DialogFooter.vue +46 -0
  272. package/src/components/ui/dialog/DialogHeader.vue +79 -0
  273. package/src/components/ui/dialog/DialogTitle.vue +34 -0
  274. package/src/components/ui/dialog/DialogTrigger.vue +12 -0
  275. package/src/components/ui/dialog/index.ts +7 -0
  276. package/src/components/ui/drawer/Drawer.vue +27 -0
  277. package/src/components/ui/drawer/DrawerClose.vue +37 -0
  278. package/src/components/ui/drawer/DrawerContent.vue +102 -0
  279. package/src/components/ui/drawer/DrawerDescription.vue +40 -0
  280. package/src/components/ui/drawer/DrawerFooter.vue +38 -0
  281. package/src/components/ui/drawer/DrawerHeader.vue +57 -0
  282. package/src/components/ui/drawer/DrawerOverlay.vue +34 -0
  283. package/src/components/ui/drawer/DrawerTitle.vue +37 -0
  284. package/src/components/ui/drawer/DrawerTrigger.vue +31 -0
  285. package/src/components/ui/drawer/index.ts +10 -0
  286. package/src/components/ui/segmented-control/SegmentedControlList.vue +51 -0
  287. package/src/components/ui/segmented-control/SegmentedControlTrigger.vue +81 -0
  288. package/src/components/ui/segmented-control/index.ts +4 -0
  289. package/src/components/ui/tabs/TabsTrigger.vue +4 -20
  290. package/src/components/ui/tooltip/Tooltip.vue +15 -0
  291. package/src/components/ui/tooltip/TooltipContent.vue +73 -0
  292. package/src/components/ui/tooltip/TooltipProvider.vue +15 -0
  293. package/src/components/ui/tooltip/TooltipTrigger.vue +22 -0
  294. package/src/components/ui/tooltip/index.ts +4 -0
  295. package/src/stories/Alert.stories.js +6 -67
  296. package/src/stories/Button.stories.js +29 -39
  297. package/src/stories/Checkbox.stories.js +11 -4
  298. package/src/stories/CheckboxGroup.stories.js +105 -0
  299. package/src/stories/DatePicker.stories.js +71 -0
  300. package/src/stories/Dialog.stories.js +832 -0
  301. package/src/stories/Drawer.stories.js +1 -1
  302. package/src/stories/DrawerNext.stories.js +610 -0
  303. package/src/stories/Icon.stories.js +2 -0
  304. package/src/stories/Input.stories.js +71 -76
  305. package/src/stories/Label.stories.js +7 -0
  306. package/src/stories/ModalDialog.mdx +3 -0
  307. package/src/stories/ModalDialog.stories.js +1 -1
  308. package/src/stories/PageHeader.stories.js +330 -0
  309. package/src/stories/Radio.stories.js +28 -1
  310. package/src/stories/RadioGroup.stories.js +144 -0
  311. package/src/stories/SegmentedControl.stories.js +253 -0
  312. package/src/stories/Switch.stories.js +10 -5
  313. package/src/stories/Tab.stories.js +11 -4
  314. package/src/stories/Tabs.stories.js +1 -1
  315. package/src/stories/Tag.stories.js +24 -43
  316. package/src/stories/TextArea.stories.js +14 -2
  317. package/src/stories/Toast.mdx +123 -0
  318. package/src/stories/Toast.stories.js +126 -0
  319. package/src/types/scheme-colors.d.ts +1 -0
  320. package/src/utils/call.js +46 -18
  321. package/dist/components/InputDatePicker/InputDatePicker.vue.d.ts +0 -792
  322. package/dist/components/InputDatePicker/InputDatePicker.vue.d.ts.map +0 -1
  323. package/dist/components/Tag/BrandTag.vue.d.ts +0 -51
  324. package/dist/components/Tag/BrandTag.vue.d.ts.map +0 -1
  325. package/dist/components/Tag/IndicatorTag.vue.d.ts +0 -151
  326. package/dist/components/Tag/IndicatorTag.vue.d.ts.map +0 -1
  327. package/dist/components/Tag/TagNext.vue.d.ts +0 -24
  328. package/dist/components/Tag/TagNext.vue.d.ts.map +0 -1
  329. package/dist/components/index.d.ts +0 -24078
  330. package/dist/components/index.d.ts.map +0 -1
  331. package/src/assets/fonts/Material Symbols Rounded Filled.woff2 +0 -0
  332. package/src/assets/fonts/Material Symbols Rounded.woff2 +0 -0
  333. package/src/components/Alert/AlertBanner.vue +0 -182
  334. package/src/components/Alert/AlertCaller.vue +0 -49
  335. package/src/components/Alert/__tests__/AlertBanner.spec.js +0 -89
  336. package/src/components/Alert/__tests__/AlertCaller.spec.js +0 -98
  337. package/src/components/Tag/BrandTag.vue +0 -96
  338. package/src/components/Tag/IndicatorTag.vue +0 -107
  339. package/src/components/Tag/TagNext.vue +0 -60
@@ -5,6 +5,13 @@ import Drawer from '../Drawer.vue';
5
5
  describe('Drawer.vue', () => {
6
6
  let wrapper;
7
7
 
8
+ const templateSlot = { template: `<div><slot /></div>` };
9
+ const globalStubs = {
10
+ UnnnicIcon: true,
11
+ UnnnicButton: true,
12
+ Teleport: templateSlot,
13
+ };
14
+
8
15
  beforeEach(() => {
9
16
  wrapper = mount(Drawer, {
10
17
  props: {
@@ -15,15 +22,14 @@ describe('Drawer.vue', () => {
15
22
  secondaryButtonText: 'Secondary Action',
16
23
  },
17
24
  global: {
18
- stubs: ['UnnnicIcon', 'UnnnicButton'],
25
+ stubs: globalStubs,
19
26
  },
20
27
  });
21
28
  });
22
29
 
23
30
  const element = (id) => wrapper.find(`[data-testid="${id}"]`);
24
31
  const component = (id) => wrapper.findComponent(`[data-testid="${id}"]`);
25
- const drawer = () => element('drawer');
26
- const overlay = () => element('overlay');
32
+ const drawerRoot = () => wrapper.findComponent({ name: 'UnnnicDrawerNext' });
27
33
  const title = () => element('drawer-title');
28
34
  const description = () => element('drawer-description');
29
35
  const primaryButton = () => component('primary-button');
@@ -31,6 +37,8 @@ describe('Drawer.vue', () => {
31
37
  const footer = () => element('footer');
32
38
  const closeIcon = () => component('close-icon');
33
39
  const drawerContainer = () => element('drawer-container');
40
+ const drawerContentComponent = () =>
41
+ wrapper.findComponent({ name: 'UnnnicDrawerContent' });
34
42
 
35
43
  describe('Component Rendering', () => {
36
44
  describe('Component Rendering', () => {
@@ -39,21 +47,21 @@ describe('Drawer.vue', () => {
39
47
  });
40
48
 
41
49
  it('should render the drawer when modelValue is true', () => {
42
- expect(drawer().exists()).toBe(true);
50
+ expect(drawerRoot().props('open')).toBe(true);
43
51
  });
44
52
 
45
53
  it('should not render the drawer when modelValue is false', async () => {
46
54
  await wrapper.setProps({ modelValue: false });
47
- expect(drawer().exists()).toBe(false);
55
+ expect(drawerRoot().props('open')).toBe(false);
48
56
  });
49
57
 
50
58
  it('should render the overlay when withoutOverlay is false', () => {
51
- expect(overlay().exists()).toBe(true);
59
+ expect(drawerContentComponent().props('showOverlay')).toBe(true);
52
60
  });
53
61
 
54
62
  it('should not render the overlay when withoutOverlay is true', async () => {
55
63
  await wrapper.setProps({ withoutOverlay: true });
56
- expect(overlay().exists()).toBe(false);
64
+ expect(drawerContentComponent().props('showOverlay')).toBe(false);
57
65
  });
58
66
 
59
67
  it('should display the title and description correctly', () => {
@@ -75,7 +83,11 @@ describe('Drawer.vue', () => {
75
83
  slots: {
76
84
  content: '<div data-testid="slot-content">Slot Content</div>',
77
85
  },
86
+ global: {
87
+ stubs: globalStubs,
88
+ },
78
89
  });
90
+
79
91
  expect(wrapper.find('[data-testid="slot-content"]').exists()).toBe(
80
92
  true,
81
93
  );
@@ -93,6 +105,9 @@ describe('Drawer.vue', () => {
93
105
  slots: {
94
106
  title: '<h2 data-testid="custom-title">Custom Title Content</h2>',
95
107
  },
108
+ global: {
109
+ stubs: globalStubs,
110
+ },
96
111
  });
97
112
 
98
113
  expect(title().exists()).toBe(false);
@@ -113,6 +128,9 @@ describe('Drawer.vue', () => {
113
128
  slots: {
114
129
  title: '<div data-testid="custom-title">Slot Title</div>',
115
130
  },
131
+ global: {
132
+ stubs: globalStubs,
133
+ },
116
134
  });
117
135
 
118
136
  expect(title().exists()).toBe(false);
@@ -164,7 +182,7 @@ describe('Drawer.vue', () => {
164
182
  });
165
183
  });
166
184
 
167
- describe('Interactions and Transitions', () => {
185
+ describe('Interactions', () => {
168
186
  beforeEach(() => {
169
187
  vi.useFakeTimers();
170
188
  });
@@ -174,9 +192,6 @@ describe('Drawer.vue', () => {
174
192
 
175
193
  it('should close the drawer when the close icon is clicked', async () => {
176
194
  await closeIcon().trigger('click');
177
-
178
- vi.advanceTimersByTime(200);
179
-
180
195
  expect(wrapper.emitted('close')).toBeTruthy();
181
196
  });
182
197
 
@@ -184,8 +199,6 @@ describe('Drawer.vue', () => {
184
199
  await wrapper.setProps({ distinctCloseBack: true });
185
200
  await closeIcon().trigger('click');
186
201
 
187
- vi.advanceTimersByTime(200);
188
-
189
202
  expect(wrapper.emitted('back')).toBeTruthy();
190
203
  });
191
204
 
@@ -193,49 +206,21 @@ describe('Drawer.vue', () => {
193
206
  await closeIcon().trigger('click');
194
207
  expect(wrapper.emitted('back')).toBeUndefined();
195
208
  });
196
-
197
- it('should correctly handle transitions when closing the drawer', async () => {
198
- await wrapper.vm.close();
199
- expect(wrapper.vm.showDrawer).toBe(false);
200
-
201
- setTimeout(() => {
202
- expect(drawer().exists()).toBe(false);
203
- }, 200);
204
- });
205
-
206
- it('should handle overlay clicks to close the drawer when withoutOverlay is false', async () => {
207
- expect(overlay().exists()).toBe(true);
208
- await overlay().trigger('click');
209
-
210
- vi.advanceTimersByTime(200);
211
-
212
- expect(wrapper.emitted('close')).toBeTruthy();
213
- });
214
-
215
- it('should execute the callback after 200ms timeout and reset showDrawer', async () => {
216
- const callbackMock = vi.fn();
217
- wrapper.vm.transitionClose(callbackMock);
218
-
219
- expect(wrapper.vm.showDrawer).toBe(false);
220
-
221
- vi.advanceTimersByTime(200);
222
-
223
- expect(callbackMock).toHaveBeenCalled();
224
- expect(wrapper.vm.showDrawer).toBe(true);
225
- });
226
209
  });
227
210
 
228
211
  describe('Props and Computed Properties', () => {
229
212
  it('should render the correct size class based on size prop', async () => {
230
213
  await wrapper.setProps({ size: 'lg' });
231
- expect(drawerContainer().classes()).toContain(
214
+ expect(drawerContentComponent().props('class')).toContain(
232
215
  'unnnic-drawer__container--lg',
233
216
  );
217
+ expect(drawerContentComponent().props('size')).toBe('large');
234
218
 
235
219
  await wrapper.setProps({ size: 'xl' });
236
- expect(drawerContainer().classes()).toContain(
220
+ expect(drawerContentComponent().props('class')).toContain(
237
221
  'unnnic-drawer__container--xl',
238
222
  );
223
+ expect(drawerContentComponent().props('size')).toBe('extra-large');
239
224
  });
240
225
 
241
226
  it('should display footer if either primaryButtonText or secondaryButtonText is provided', async () => {
@@ -275,7 +260,7 @@ describe('Drawer.vue', () => {
275
260
 
276
261
  it('should use correct icon for close button based on closeIcon prop', async () => {
277
262
  await wrapper.setProps({ closeIcon: 'custom_close_icon' });
278
- expect(closeIcon().props('icon')).toBe('custom_close_icon');
263
+ expect(closeIcon().props('iconCenter')).toBe('custom_close_icon');
279
264
  });
280
265
 
281
266
  it('should validate all size prop values correctly', () => {
@@ -1,23 +1,22 @@
1
1
  // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`Drawer.vue > Component Rendering > Component Rendering > matches the snapshot 1`] = `
4
- "<aside data-v-196de012="" class="unnnic-drawer" data-testid="drawer">
5
- <section data-v-196de012="" class="unnnic-drawer__overlay" data-testid="overlay"></section>
6
- <transition-stub data-v-196de012="" name="drawer" appear="true" persisted="false" css="true">
7
- <section data-v-196de012="" data-testid="drawer-container" class="unnnic-drawer__container unnnic-drawer__container--md">
8
- <header data-v-196de012="" class="unnnic-drawer__header">
9
- <section data-v-196de012="" class="unnnic-drawer__title-container">
10
- <h1 data-v-196de012="" class="unnnic-drawer__title" data-testid="drawer-title">Test Title</h1>
11
- <p data-v-196de012="" class="unnnic-drawer__description" data-testid="drawer-description">Test Description</p>
12
- </section>
13
- <unnnic-icon-stub data-v-196de012="" filled="false" icon="arrow_back" clickable="true" size="avatar-nano" scheme="neutral-darkest" class="unnnic-drawer__close" data-testid="close-icon"></unnnic-icon-stub>
14
- </header>
15
- <section data-v-196de012="" class="unnnic-drawer__content"></section>
16
- <footer data-v-196de012="" class="unnnic-drawer__footer" data-testid="footer">
17
- <unnnic-button-stub data-v-196de012="" size="large" text="Secondary Action" type="tertiary" float="false" iconleft="" iconright="" iconcenter="" iconsfilled="false" disabled="false" loading="false" data-testid="secondary-button"></unnnic-button-stub>
18
- <unnnic-button-stub data-v-196de012="" size="large" text="Primary Action" type="primary" float="false" iconleft="" iconright="" iconcenter="" iconsfilled="false" disabled="false" loading="false" data-testid="primary-button"></unnnic-button-stub>
19
- </footer>
20
- </section>
21
- </transition-stub>
22
- </aside>"
4
+ "<div data-v-e761d31f="" data-v-196de012="" disabled="false" defer="false" forcemount="false" data-testid="drawer-container">
5
+ <div data-v-7f241b30="" data-v-e761d31f="" data-state="open" style="pointer-events: auto;" data-vaul-overlay="" data-vaul-snap-points="false" data-vaul-snap-points-overlay="true" class="unnnic-drawer__overlay"></div>
6
+ <div data-v-e761d31f="" data-dismissable-layer="" style="--snap-point-height: 0; --initial-transform: calc(100% + 8px); pointer-events: auto;" tabindex="-1" data-vaul-drawer="" data-vaul-drawer-direction="right" data-vaul-delayed-snap-points="false" data-vaul-snap-points="false" size="medium" showoverlay="true" class="unnnic-drawer__content unnnic-drawer__content--medium unnnic-drawer__container unnnic-drawer__container--md" id="" role="dialog" aria-describedby="reka-dialog-description-v-1" aria-labelledby="reka-dialog-title-v-0" data-state="open">
7
+ <header data-v-39d0dfb8="" data-v-196de012="" class="unnnic-drawer__header unnnic-drawer__header">
8
+ <section data-v-196de012="" class="unnnic-drawer__title-container">
9
+ <h2 data-v-97709962="" data-v-196de012="" id="reka-dialog-title-v-0" class="unnnic-drawer__title unnnic-drawer__title" data-testid="drawer-title">Test Title</h2>
10
+ <p data-v-750ea255="" data-v-196de012="" id="reka-dialog-description-v-1" class="unnnic-drawer__description unnnic-drawer__description" data-testid="drawer-description">Test Description</p>
11
+ </section><button data-v-4a771f40="" data-v-196de012="" type="button" class="unnnic-drawer__close">
12
+ <unnnic-button-stub data-v-196de012="" size="small" text="" type="tertiary" float="false" iconleft="" iconright="" iconcenter="arrow_forward" iconsfilled="false" disabled="false" loading="false" class="unnnic-drawer__close-icon" data-testid="close-icon"></unnnic-button-stub>
13
+ </button>
14
+ </header>
15
+ <section data-v-196de012="" class="unnnic-drawer__content"></section>
16
+ <footer data-v-02ebc5b4="" data-v-196de012="" class="unnnic-drawer__footer unnnic-drawer__footer" data-testid="footer">
17
+ <unnnic-button-stub data-v-196de012="" size="large" text="Secondary Action" type="tertiary" float="false" iconleft="" iconright="" iconcenter="" iconsfilled="false" disabled="false" loading="false" data-testid="secondary-button"></unnnic-button-stub>
18
+ <unnnic-button-stub data-v-196de012="" size="large" text="Primary Action" type="primary" float="false" iconleft="" iconright="" iconcenter="" iconsfilled="false" disabled="false" loading="false" data-testid="primary-button"></unnnic-button-stub>
19
+ </footer>
20
+ </div>
21
+ </div>"
23
22
  `;
@@ -3,66 +3,53 @@
3
3
  class="unnnic-form-element"
4
4
  :class="{ 'unnnic-form-element--disabled': disabled }"
5
5
  >
6
- <p
6
+ <UnnnicLabel
7
7
  v-if="label"
8
+ :label="label"
9
+ :tooltip="tooltip"
8
10
  :class="[
9
11
  'unnnic-form-element__label',
10
12
  {
11
13
  'unnnic-form-element__label--fixed': fixedLabel,
12
14
  },
13
15
  ]"
14
- >
15
- {{ fullySanitize(label) }}
16
- </p>
16
+ />
17
17
 
18
18
  <slot></slot>
19
19
 
20
- <p
21
- v-if="shouldShowErrorSection"
22
- class="unnnic-form-element__error"
23
- >
24
- <template v-if="error !== true">
25
- <UnnnicIcon
26
- size="sm"
27
- icon="warning"
28
- scheme="aux-red-500"
29
- />
30
-
31
- {{ fullySanitize(error) }}
32
- </template>
33
-
34
- <span
35
- v-if="!!$slots.rightMessage"
36
- class="unnnic-form-element__right-message"
37
- >
38
- <slot name="rightMessage"></slot>
39
- </span>
40
- </p>
41
-
42
- <p
43
- v-if="message || !!$slots.rightMessage"
44
- class="unnnic-form-element__message"
20
+ <section
21
+ class="unnnic-form-element__hints-container"
22
+ v-if="message || error || !!$slots.rightMessage"
45
23
  >
46
- {{ fullySanitize(message) }}
47
-
48
- <span
49
- v-if="!shouldShowErrorSection && !!$slots.rightMessage"
50
- class="unnnic-form-element__right-message"
51
- >
52
- <slot name="rightMessage"></slot>
53
- </span>
54
- </p>
24
+ <section class="unnnic-form-element__message-container">
25
+ <p
26
+ v-if="message"
27
+ class="unnnic-form-element__message"
28
+ >
29
+ {{ fullySanitize(message) }}
30
+ </p>
31
+ <p
32
+ v-if="!!error?.length"
33
+ class="unnnic-form-element__message error"
34
+ >
35
+ {{ Array.isArray(error) ? error.join(', ') : error }}
36
+ </p>
37
+ </section>
38
+ <p v-if="!!$slots.rightMessage">
39
+ <slot name="rightMessage" />
40
+ </p>
41
+ </section>
55
42
  </section>
56
43
  </template>
57
44
 
58
- <script>
59
- import UnnnicIcon from '../../components/Icon.vue';
45
+ <script lang="js">
60
46
  import { fullySanitize } from '../../utils/sanitize';
47
+ import UnnnicLabel from '../Label/Label.vue';
48
+
61
49
  export default {
62
50
  components: {
63
- UnnnicIcon,
51
+ UnnnicLabel,
64
52
  },
65
-
66
53
  props: {
67
54
  size: {
68
55
  type: String,
@@ -70,28 +57,20 @@ export default {
70
57
  validator: (size) => ['md', 'sm'].includes(size),
71
58
  },
72
59
 
73
- label: String,
60
+ label: { type: String, default: '' },
74
61
 
75
- fixedLabel: Boolean,
62
+ fixedLabel: { type: Boolean, default: false },
76
63
 
77
64
  error: {
78
65
  type: [Boolean, String],
79
66
  default: false,
80
67
  },
81
68
 
82
- message: String,
69
+ message: { type: String, default: '' },
83
70
 
84
- disabled: Boolean,
85
- },
71
+ disabled: { type: Boolean, default: false },
86
72
 
87
- data() {
88
- return {};
89
- },
90
-
91
- computed: {
92
- shouldShowErrorSection() {
93
- return this.error && (this.error !== true || !!this.$slots.rightMessage);
94
- },
73
+ tooltip: { type: String, default: '' },
95
74
  },
96
75
  methods: {
97
76
  fullySanitize,
@@ -102,75 +81,66 @@ export default {
102
81
  <style lang="scss" scoped>
103
82
  @use '@/assets/scss/unnnic' as *;
104
83
 
84
+ * {
85
+ margin: $unnnic-space-0;
86
+ padding: $unnnic-space-0;
87
+ box-sizing: border-box;
88
+ }
89
+
105
90
  .unnnic-form-element {
106
91
  &__label {
107
- margin: 0;
108
- margin-bottom: $unnnic-spacing-nano;
109
-
92
+ font: $unnnic-font-body;
110
93
  color: $unnnic-color-neutral-cloudy;
111
- font-family: $unnnic-font-family-secondary;
112
- font-weight: $unnnic-font-weight-regular;
113
- font-size: $unnnic-font-size-body-gt;
114
- line-height: $unnnic-font-size-body-gt + $unnnic-line-height-md;
115
-
116
- $label-bottom-spacing: 3px;
94
+ margin-bottom: $unnnic-space-1;
95
+ display: flex;
96
+ align-items: center;
97
+ gap: $unnnic-space-2;
117
98
 
118
99
  &--fixed {
119
- margin-top: -$unnnic-font-size-body-gt - $unnnic-line-height-md +
120
- $label-bottom-spacing;
100
+ margin-top: -$unnnic-font-size-body-gt - $unnnic-space-2 + $unnnic-space-1;
121
101
  }
122
102
 
123
103
  &--fixed {
124
- margin-bottom: 0;
104
+ margin-bottom: $unnnic-space-0;
125
105
  position: absolute;
126
- padding: 0 $unnnic-spacing-nano;
127
- margin-left: $unnnic-spacing-xs;
106
+ padding: $unnnic-space-0 $unnnic-space-1;
107
+ margin-left: $unnnic-space-2;
128
108
 
129
109
  &:after {
130
110
  content: ' ';
131
111
  position: absolute;
132
- left: 0;
133
- bottom: $label-bottom-spacing - $unnnic-border-width-thinner;
112
+ left: $unnnic-space-0;
113
+ bottom: $unnnic-space-1 - $unnnic-border-width-thinner;
134
114
  width: 100%;
135
115
  height: $unnnic-border-width-thinner;
136
- background-color: $unnnic-color-neutral-white;
116
+ background-color: $unnnic-color-white;
137
117
  }
138
118
  }
139
119
  }
140
120
 
141
- &__error,
142
121
  &__message {
143
- margin: 0;
144
- margin-top: $unnnic-spacing-stack-nano;
145
-
146
- color: $unnnic-color-neutral-cloudy;
147
- font-family: $unnnic-font-family-secondary;
148
- font-weight: $unnnic-font-weight-regular;
149
- font-size: $unnnic-font-size-body-md;
150
- line-height: $unnnic-font-size-body-md + $unnnic-line-height-md;
122
+ &.error {
123
+ color: $unnnic-color-fg-critical;
124
+ }
151
125
  }
152
126
 
153
- &__message {
127
+ &__hints-container {
154
128
  display: flex;
155
- column-gap: $unnnic-spacing-nano;
156
- }
157
-
158
- &__right-message {
159
- margin-left: auto;
129
+ justify-content: space-between;
130
+ margin-top: $unnnic-space-1;
131
+ font: $unnnic-font-caption-2;
132
+ color: $unnnic-color-fg-base;
160
133
  }
161
134
 
162
- &__error {
135
+ &__message-container {
163
136
  display: flex;
164
- column-gap: $unnnic-spacing-nano;
165
- align-items: center;
166
-
167
- color: $unnnic-color-aux-red-500;
137
+ flex-direction: column;
138
+ gap: $unnnic-space-1;
168
139
  }
169
140
 
170
141
  &--disabled .unnnic-form-element__label,
171
142
  &--disabled .unnnic-form-element__message {
172
143
  user-select: none;
173
- color: $unnnic-color-neutral-cleanest;
174
144
  }
175
145
  }
176
146
  </style>
@@ -133,15 +133,7 @@ $icon-sizes:
133
133
  font-family: 'Material Symbols Rounded';
134
134
  font-style: normal;
135
135
  font-weight: 300;
136
- src: url('../assets/fonts/Material Symbols Rounded.woff2') format('woff2');
137
- }
138
-
139
- @font-face {
140
- font-family: 'Material Symbols Rounded Filled';
141
- font-style: normal;
142
- font-weight: 300;
143
- src: url('../assets/fonts/Material Symbols Rounded Filled.woff2')
144
- format('woff2');
136
+ src: url('../assets/fonts/material-symbols-rounded.woff2') format('woff2');
145
137
  }
146
138
 
147
139
  .unnnic-icon {
@@ -197,8 +189,10 @@ $icon-sizes:
197
189
  -webkit-font-feature-settings: 'liga';
198
190
  -webkit-font-smoothing: antialiased;
199
191
 
192
+ user-select: none;
193
+
200
194
  &--filled {
201
- font-family: 'Material Symbols Rounded Filled';
195
+ font-variation-settings: 'FILL' 1;
202
196
  }
203
197
  }
204
198
  </style>
@@ -7,13 +7,13 @@
7
7
  :class="classes"
8
8
  :type="nativeType"
9
9
  />
10
-
11
10
  <input
12
11
  v-else
13
12
  v-bind="attributes"
14
13
  :value="fullySanitize(modelValue)"
15
14
  :class="classes"
16
15
  :type="nativeType"
16
+ :maxlength="maxlength"
17
17
  />
18
18
  </template>
19
19
 
@@ -49,6 +49,10 @@ export default {
49
49
  },
50
50
  hasIconLeft: Boolean,
51
51
  hasIconRight: Boolean,
52
+ maxlength: {
53
+ type: Number,
54
+ default: null,
55
+ },
52
56
  },
53
57
  emits: ['update:modelValue'],
54
58
  data() {
@@ -96,27 +100,23 @@ export default {
96
100
  &.size {
97
101
  &-md {
98
102
  @include input-md-font;
99
-
100
- padding: ($unnnic-spacing-ant - $unnnic-border-width-thinner)
101
- ($unnnic-spacing-sm - $unnnic-border-width-thinner);
103
+ padding: $unnnic-space-3 $unnnic-space-4;
104
+ height: 45px;
102
105
  }
103
106
 
104
107
  &-sm {
105
108
  @include input-sm-font;
106
-
107
- padding: $unnnic-spacing-xs
108
- ($unnnic-spacing-sm - $unnnic-border-width-thinner);
109
+ padding: $unnnic-space-2 $unnnic-space-4;
110
+ height: 37px;
109
111
  }
110
112
  }
111
113
 
112
114
  &.input--has-icon-left {
113
- padding-left: $unnnic-spacing-sm + $unnnic-icon-size-sm +
114
- $unnnic-spacing-xs - $unnnic-border-width-thinner;
115
+ padding-left: $unnnic-space-10;
115
116
  }
116
117
 
117
118
  &.input--has-icon-right {
118
- padding-right: $unnnic-spacing-sm + $unnnic-icon-size-sm +
119
- $unnnic-spacing-xs - $unnnic-border-width-thinner;
119
+ padding-right: $unnnic-space-10;
120
120
  }
121
121
 
122
122
  &.error {
@@ -126,7 +126,7 @@ export default {
126
126
  &:-ms-input-placeholder,
127
127
  &::-ms-input-placeholder {
128
128
  /* Internet Explorer 10-11 */
129
- color: $unnnic-color-brand-sec;
129
+ color: $unnnic-color-fg-muted;
130
130
  }
131
131
  }
132
132
  </style>
@@ -1,43 +1,42 @@
1
1
  @use '@/assets/scss/unnnic' as *;
2
2
 
3
3
  @mixin input-base {
4
- background: $unnnic-color-neutral-white;
5
- border: $unnnic-border-width-thinner solid $unnnic-color-neutral-clean;
4
+ background: $unnnic-color-white;
5
+ border: $unnnic-border-width-thinner solid $unnnic-color-border-base;
6
6
  outline: none;
7
- border-radius: $unnnic-border-radius-sm;
8
- color: $unnnic-color-neutral-darkest;
9
- caret-color: $unnnic-color-neutral-clean;
10
- font-weight: $unnnic-font-weight-regular;
11
- font-family: $unnnic-font-family-secondary;
7
+ border-radius: $unnnic-radius-2;
8
+ color: $unnnic-color-fg-emphasized;
9
+ caret-color: $unnnic-color-fg-muted;
10
+ font: $unnnic-font-body;
11
+
12
+ transition: border-color 0.1s ease-in-out;
12
13
 
13
14
  &:focus {
14
- border-color: $unnnic-color-weni-600;
15
+ border-color: $unnnic-color-border-active;
15
16
  }
16
17
 
17
18
  &::placeholder {
18
- color: $unnnic-color-neutral-cleanest;
19
- opacity: 1; /* Firefox */
19
+ color: $unnnic-color-fg-muted;
20
+ opacity: 1;
21
+ /* Firefox */
20
22
  }
21
23
 
22
24
  &:disabled {
23
- border-color: $unnnic-color-neutral-cleanest;
24
- background-color: $unnnic-color-neutral-lightest;
25
+ border-color: $unnnic-color-border-muted;
26
+ background-color: $unnnic-color-bg-muted;
25
27
  cursor: not-allowed;
26
- color: $unnnic-color-neutral-cleanest;
28
+ color: $unnnic-color-fg-muted;
27
29
  }
28
30
  }
29
31
 
30
32
  @mixin input-sm-font {
31
- font-size: $unnnic-font-size-body-md;
32
- line-height: $unnnic-font-size-body-md + $unnnic-line-height-medium;
33
+ font: $unnnic-font-body;
33
34
  }
34
35
 
35
36
  @mixin input-md-font {
36
- font-size: $unnnic-font-size-body-gt;
37
- line-height: $unnnic-font-size-body-gt + $unnnic-line-height-medium;
37
+ font: $unnnic-font-body;
38
38
  }
39
39
 
40
40
  @mixin input-error {
41
- border-color: $unnnic-color-aux-red-500;
42
- color: $unnnic-color-aux-red-500;
43
- }
41
+ border-color: $unnnic-color-border-critical;
42
+ }