@eyesee/ui-components 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/README.md +2 -0
  2. package/dist/components/Avatar/Avatar.d.ts +139 -0
  3. package/dist/components/Avatar/Avatar.js +8 -7
  4. package/dist/components/Badge/Badge.d.ts +59 -0
  5. package/dist/components/Badge/Badge.js +7 -7
  6. package/dist/components/Badge/badgeVariants.d.ts +17 -0
  7. package/dist/components/Button/Button.d.ts +299 -0
  8. package/dist/components/Button/Button.js +3 -3
  9. package/dist/components/Checkbox/Checkbox.d.ts +124 -0
  10. package/dist/components/Checkbox/Checkbox.js +13 -12
  11. package/dist/components/DropdownList/DropdownList.d.ts +153 -0
  12. package/dist/components/DropdownList/DropdownList.js +15 -15
  13. package/dist/components/EllipsisTooltip/EllipsisTooltip.d.ts +114 -0
  14. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +24 -24
  15. package/dist/components/EllipsisTooltip/EllipsisTooltip.module.scss.js +4 -6
  16. package/dist/components/ExpandableItem/ExpandableItem.d.ts +89 -0
  17. package/dist/components/ExpandableItem/ExpandableItem.js +6 -6
  18. package/dist/components/Fields/InputField/InputField.d.ts +309 -0
  19. package/dist/components/Fields/InputField/InputField.js +54 -49
  20. package/dist/components/Fields/InputFieldContainer.d.ts +11 -0
  21. package/dist/components/Fields/SelectField/SelectField.d.ts +404 -0
  22. package/dist/components/Fields/SelectField/SelectField.js +61 -56
  23. package/dist/components/Fields/SelectField/SelectFieldTags.d.ts +6 -0
  24. package/dist/components/Fields/SelectField/selectOptionRow.d.ts +1 -0
  25. package/dist/components/Fields/SelectField/selectUtils.d.ts +35 -0
  26. package/dist/components/Fields/SelectField/useSelectFieldDropdownPosition.d.ts +7 -0
  27. package/dist/components/Fields/TextField/TextField.d.ts +272 -0
  28. package/dist/components/Fields/TextField/TextField.js +68 -61
  29. package/dist/components/FileType/FileType.d.ts +61 -0
  30. package/dist/components/FileType/FileType.js +6 -5
  31. package/dist/components/FileType/PaperIcon.d.ts +5 -0
  32. package/dist/components/ImagePlaceholder/ImageHoverPreview/ImageHoverPreview.d.ts +75 -0
  33. package/dist/components/ImagePlaceholder/ImageHoverPreview/ImageHoverPreview.js +13 -12
  34. package/dist/components/ImagePlaceholder/ImagePlaceholder.d.ts +606 -0
  35. package/dist/components/ImagePlaceholder/ImagePlaceholder.js +78 -76
  36. package/dist/components/ImagePlaceholder/ImagePlaceholder.module.scss.js +34 -32
  37. package/dist/components/ImagePlaceholder/constantsImgPh.d.ts +16 -0
  38. package/dist/components/ImagePlaceholder/utilsImgPh.d.ts +18 -0
  39. package/dist/components/ImageWithData/ImageWithData.d.ts +284 -0
  40. package/dist/components/ImageWithData/ImageWithData.js +11 -11
  41. package/dist/components/Infobox/Infobox.d.ts +90 -0
  42. package/dist/components/Infobox/Infobox.js +5 -5
  43. package/dist/components/Infobox/infoboxVariants.d.ts +8 -0
  44. package/dist/components/ListItem/ListItem.d.ts +311 -0
  45. package/dist/components/ListItem/ListItem.js +7 -7
  46. package/dist/components/ListItem/useListItems.d.ts +108 -0
  47. package/dist/components/ListItem/useListItems.js +18 -17
  48. package/dist/components/Modal/Modal.d.ts +239 -0
  49. package/dist/components/Modal/Modal.js +4 -3
  50. package/dist/components/Notifications/Notifications.d.ts +261 -0
  51. package/dist/components/Notifications/Notifications.js +4 -3
  52. package/dist/components/Notifications/useNotifications.d.ts +59 -0
  53. package/dist/components/Notifications/useNotifications.js +3 -2
  54. package/dist/components/Pill/Pill.d.ts +81 -0
  55. package/dist/components/Pill/Pill.js +7 -12
  56. package/dist/components/Pill/pillVariants.d.ts +16 -0
  57. package/dist/components/ProgressBar/ProgressBar.d.ts +111 -0
  58. package/dist/components/ProgressBar/ProgressBar.js +17 -16
  59. package/dist/components/Radio/Radio.d.ts +58 -0
  60. package/dist/components/Radio/Radio.js +12 -11
  61. package/dist/components/Tab/Tab.d.ts +204 -0
  62. package/dist/components/Tab/Tab.js +3 -3
  63. package/dist/components/Tabs/Tabs.d.ts +356 -0
  64. package/dist/components/Tabs/Tabs.js +3 -3
  65. package/dist/components/Tabs/tabsUtils.d.ts +33 -0
  66. package/dist/components/Tabs/tabsUtils.js +18 -12
  67. package/dist/components/Tag/Tag.d.ts +93 -0
  68. package/dist/components/Tag/Tag.js +4 -3
  69. package/dist/components/Tag/tagVariants.d.ts +7 -0
  70. package/dist/components/TextHoverable/TextHoverable.d.ts +46 -0
  71. package/dist/components/TextHoverable/TextHoverable.js +5 -3
  72. package/dist/components/Toggle/Toggle.d.ts +115 -0
  73. package/dist/components/Toggle/Toggle.js +6 -5
  74. package/dist/components/Tooltip/Tooltip.d.ts +294 -0
  75. package/dist/components/Tooltip/Tooltip.js +22 -21
  76. package/dist/components/Tooltip/Tooltip.module.scss.js +30 -28
  77. package/dist/components/Tooltip/useTooltipPositioning.d.ts +21 -0
  78. package/dist/components/icons-v2/AdIcon.d.ts +2 -0
  79. package/dist/components/icons-v2/AddMessageIcon.d.ts +13 -0
  80. package/dist/components/icons-v2/AddUserIcon.d.ts +13 -0
  81. package/dist/components/icons-v2/AdjustmentsIcon.d.ts +13 -0
  82. package/dist/components/icons-v2/AlertIcon.d.ts +13 -0
  83. package/dist/components/icons-v2/AlignCenterIcon.d.ts +13 -0
  84. package/dist/components/icons-v2/AlignHorizontallyIcon.d.ts +13 -0
  85. package/dist/components/icons-v2/AlignJustifyIcon.d.ts +13 -0
  86. package/dist/components/icons-v2/AlignLeftIcon.d.ts +13 -0
  87. package/dist/components/icons-v2/AlignRightIcon.d.ts +13 -0
  88. package/dist/components/icons-v2/AlignVerticallyIcon.d.ts +13 -0
  89. package/dist/components/icons-v2/AlphabetIcon.d.ts +20 -0
  90. package/dist/components/icons-v2/ArchiveIcon.d.ts +13 -0
  91. package/dist/components/icons-v2/ArrowDownIcon.d.ts +13 -0
  92. package/dist/components/icons-v2/ArrowDownRightIcon.d.ts +13 -0
  93. package/dist/components/icons-v2/ArrowLeftIcon.d.ts +13 -0
  94. package/dist/components/icons-v2/ArrowMoveDownIcon.d.ts +13 -0
  95. package/dist/components/icons-v2/ArrowRightIcon.d.ts +13 -0
  96. package/dist/components/icons-v2/ArrowUpIcon.d.ts +13 -0
  97. package/dist/components/icons-v2/AspectRatioIcon.d.ts +13 -0
  98. package/dist/components/icons-v2/AspectRatioIcon.js +15 -0
  99. package/dist/components/icons-v2/AttributesEvaluationIcon.d.ts +13 -0
  100. package/dist/components/icons-v2/BellIcon.d.ts +13 -0
  101. package/dist/components/icons-v2/BoldIcon.d.ts +13 -0
  102. package/dist/components/icons-v2/BoltIcon.d.ts +13 -0
  103. package/dist/components/icons-v2/BookIcon.d.ts +13 -0
  104. package/dist/components/icons-v2/BookmarkIcon.d.ts +13 -0
  105. package/dist/components/icons-v2/BooksIcon.d.ts +13 -0
  106. package/dist/components/icons-v2/BoxIcon.d.ts +13 -0
  107. package/dist/components/icons-v2/BugIcon.d.ts +13 -0
  108. package/dist/components/icons-v2/CalendarIcon.d.ts +13 -0
  109. package/dist/components/icons-v2/CameraPlusIcon.d.ts +13 -0
  110. package/dist/components/icons-v2/CardsIcon.d.ts +13 -0
  111. package/dist/components/icons-v2/CellIcon.d.ts +13 -0
  112. package/dist/components/icons-v2/ChartbarIcon.d.ts +13 -0
  113. package/dist/components/icons-v2/ChartbarOffIcon.d.ts +13 -0
  114. package/dist/components/icons-v2/ChatBubbleIcon.d.ts +13 -0
  115. package/dist/components/icons-v2/ChatbotIcon.d.ts +13 -0
  116. package/dist/components/icons-v2/CheckCircleIcon.d.ts +13 -0
  117. package/dist/components/icons-v2/CheckboxIcon.d.ts +13 -0
  118. package/dist/components/icons-v2/CheckmarkDoubleIcon.d.ts +13 -0
  119. package/dist/components/icons-v2/CheckmarkLargeIcon.d.ts +13 -0
  120. package/dist/components/icons-v2/ChevronDownIcon.d.ts +13 -0
  121. package/dist/components/icons-v2/ChevronLeftIcon.d.ts +13 -0
  122. package/dist/components/icons-v2/ChevronRightIcon.d.ts +13 -0
  123. package/dist/components/icons-v2/ChevronUpIcon.d.ts +13 -0
  124. package/dist/components/icons-v2/ChevronsDownIcon.d.ts +13 -0
  125. package/dist/components/icons-v2/ChevronsLeftIcon.d.ts +13 -0
  126. package/dist/components/icons-v2/ChevronsRightIcon.d.ts +13 -0
  127. package/dist/components/icons-v2/ChevronsUpIcon.d.ts +13 -0
  128. package/dist/components/icons-v2/CircleIcon.d.ts +11 -0
  129. package/dist/components/icons-v2/CirclesIcon.d.ts +13 -0
  130. package/dist/components/icons-v2/ClickIcon.d.ts +13 -0
  131. package/dist/components/icons-v2/ClipboardIcon.d.ts +13 -0
  132. package/dist/components/icons-v2/ClockIcon.d.ts +13 -0
  133. package/dist/components/icons-v2/ClockShareIcon.d.ts +13 -0
  134. package/dist/components/icons-v2/CloseIcon.d.ts +13 -0
  135. package/dist/components/icons-v2/ColumnIcon.d.ts +1 -0
  136. package/dist/components/icons-v2/CopyIcon.d.ts +13 -0
  137. package/dist/components/icons-v2/CreditCardIcon.d.ts +13 -0
  138. package/dist/components/icons-v2/CropIcon.d.ts +13 -0
  139. package/dist/components/icons-v2/DashboardMeterIcon.d.ts +13 -0
  140. package/dist/components/icons-v2/DatabaseCheckIcon.d.ts +13 -0
  141. package/dist/components/icons-v2/DatabaseIcon.d.ts +13 -0
  142. package/dist/components/icons-v2/DeleteIcon.d.ts +12 -0
  143. package/dist/components/icons-v2/DetailsIcon.d.ts +13 -0
  144. package/dist/components/icons-v2/DevicesIcon.d.ts +13 -0
  145. package/dist/components/icons-v2/DislikeIcon.d.ts +13 -0
  146. package/dist/components/icons-v2/DollarIcon.d.ts +13 -0
  147. package/dist/components/icons-v2/DownloadIcon.d.ts +13 -0
  148. package/dist/components/icons-v2/DragToolIcon.d.ts +13 -0
  149. package/dist/components/icons-v2/DrawRectangleIcon.d.ts +13 -0
  150. package/dist/components/icons-v2/EditIcon.d.ts +12 -0
  151. package/dist/components/icons-v2/EmailIcon.d.ts +13 -0
  152. package/dist/components/icons-v2/EmojiNeutralIcon.d.ts +13 -0
  153. package/dist/components/icons-v2/EmojiSadIcon.d.ts +13 -0
  154. package/dist/components/icons-v2/EmojiSlightSmileyIcon.d.ts +13 -0
  155. package/dist/components/icons-v2/EmojiSmileyIcon.d.ts +13 -0
  156. package/dist/components/icons-v2/EmojiVerySadIcon.d.ts +13 -0
  157. package/dist/components/icons-v2/EraserIcon.d.ts +13 -0
  158. package/dist/components/icons-v2/EtShelfIcon.d.ts +13 -0
  159. package/dist/components/icons-v2/EtStandaloneIcon.d.ts +13 -0
  160. package/dist/components/icons-v2/ExternalLinkIcon.d.ts +13 -0
  161. package/dist/components/icons-v2/EyeSeeTokenIcon.d.ts +1 -0
  162. package/dist/components/icons-v2/FileExportIcon.d.ts +13 -0
  163. package/dist/components/icons-v2/FileIcon.d.ts +13 -0
  164. package/dist/components/icons-v2/FileImportIcon.d.ts +13 -0
  165. package/dist/components/icons-v2/FileNewIcon.d.ts +13 -0
  166. package/dist/components/icons-v2/FileRemoveIcon.d.ts +13 -0
  167. package/dist/components/icons-v2/FileTemplateIcon.d.ts +13 -0
  168. package/dist/components/icons-v2/FileUploadIcon.d.ts +13 -0
  169. package/dist/components/icons-v2/FilesIcon.d.ts +13 -0
  170. package/dist/components/icons-v2/FilterOffIcon.d.ts +13 -0
  171. package/dist/components/icons-v2/FilterOnIcon.d.ts +13 -0
  172. package/dist/components/icons-v2/FlagIcon.d.ts +13 -0
  173. package/dist/components/icons-v2/FolderIcon.d.ts +13 -0
  174. package/dist/components/icons-v2/FullscreenIcon.d.ts +13 -0
  175. package/dist/components/icons-v2/GridviewIcon.d.ts +13 -0
  176. package/dist/components/icons-v2/HelpIcon.d.ts +10 -0
  177. package/dist/components/icons-v2/HomeIcon.d.ts +13 -0
  178. package/dist/components/icons-v2/ImageIcon.d.ts +13 -0
  179. package/dist/components/icons-v2/ImageOffIcon.d.ts +13 -0
  180. package/dist/components/icons-v2/ImageStarIcon.d.ts +15 -0
  181. package/dist/components/icons-v2/ImageUploadIcon.d.ts +13 -0
  182. package/dist/components/icons-v2/InfoIcon.d.ts +13 -0
  183. package/dist/components/icons-v2/ItalicIcon.d.ts +13 -0
  184. package/dist/components/icons-v2/LanguageIcon.d.ts +13 -0
  185. package/dist/components/icons-v2/LaunchIcon.d.ts +13 -0
  186. package/dist/components/icons-v2/LayersIcon.d.ts +13 -0
  187. package/dist/components/icons-v2/LeftSidebarCollapseIcon.d.ts +13 -0
  188. package/dist/components/icons-v2/LeftSidebarExpandIcon.d.ts +13 -0
  189. package/dist/components/icons-v2/LightDarkIcon.d.ts +13 -0
  190. package/dist/components/icons-v2/LightbulbIcon.d.ts +13 -0
  191. package/dist/components/icons-v2/LikeIcon.d.ts +13 -0
  192. package/dist/components/icons-v2/LinkIcon.d.ts +13 -0
  193. package/dist/components/icons-v2/ListCheckIcon.d.ts +1 -0
  194. package/dist/components/icons-v2/ListViewIcon.d.ts +13 -0
  195. package/dist/components/icons-v2/LoaderIcon.d.ts +14 -0
  196. package/dist/components/icons-v2/LoadingIcon.d.ts +14 -0
  197. package/dist/components/icons-v2/LockIcon.d.ts +13 -0
  198. package/dist/components/icons-v2/LockOffIcon.d.ts +13 -0
  199. package/dist/components/icons-v2/LoginIcon.d.ts +13 -0
  200. package/dist/components/icons-v2/LogoutIcon.d.ts +13 -0
  201. package/dist/components/icons-v2/MagicwandIcon.d.ts +13 -0
  202. package/dist/components/icons-v2/MaximizeIcon.d.ts +13 -0
  203. package/dist/components/icons-v2/MenuIcon.d.ts +13 -0
  204. package/dist/components/icons-v2/MessageIcon.d.ts +13 -0
  205. package/dist/components/icons-v2/MeterIcon.d.ts +13 -0
  206. package/dist/components/icons-v2/MinimizeIcon.d.ts +13 -0
  207. package/dist/components/icons-v2/MinusIcon.d.ts +13 -0
  208. package/dist/components/icons-v2/MoreHorizontalIcon.d.ts +13 -0
  209. package/dist/components/icons-v2/MoreIcon.d.ts +13 -0
  210. package/dist/components/icons-v2/MouseIcon.d.ts +13 -0
  211. package/dist/components/icons-v2/MoveIcon.d.ts +13 -0
  212. package/dist/components/icons-v2/Multiplier05Icon.d.ts +13 -0
  213. package/dist/components/icons-v2/Multiplier10Icon.d.ts +13 -0
  214. package/dist/components/icons-v2/Multiplier15Icon.d.ts +13 -0
  215. package/dist/components/icons-v2/Multiplier20Icon.d.ts +13 -0
  216. package/dist/components/icons-v2/NoteIcon.d.ts +13 -0
  217. package/dist/components/icons-v2/NoteOffIcon.d.ts +13 -0
  218. package/dist/components/icons-v2/NotifyIcon.d.ts +13 -0
  219. package/dist/components/icons-v2/PackAIIcon.d.ts +13 -0
  220. package/dist/components/icons-v2/PackseeIcon.d.ts +1 -0
  221. package/dist/components/icons-v2/PaperclipIcon.d.ts +13 -0
  222. package/dist/components/icons-v2/PauseIcon.d.ts +13 -0
  223. package/dist/components/icons-v2/PdfIcon.d.ts +13 -0
  224. package/dist/components/icons-v2/PentoolIcon.d.ts +13 -0
  225. package/dist/components/icons-v2/PiechartIcon.d.ts +13 -0
  226. package/dist/components/icons-v2/PinIcon.d.ts +13 -0
  227. package/dist/components/icons-v2/PinskewedIcon.d.ts +13 -0
  228. package/dist/components/icons-v2/PlayIcon.d.ts +13 -0
  229. package/dist/components/icons-v2/PlusIcon.d.ts +12 -0
  230. package/dist/components/icons-v2/PredictiveETIcon.d.ts +13 -0
  231. package/dist/components/icons-v2/RectanglesAddIcon.d.ts +1 -0
  232. package/dist/components/icons-v2/RedoIcon.d.ts +13 -0
  233. package/dist/components/icons-v2/RefreshAlertIcon.d.ts +13 -0
  234. package/dist/components/icons-v2/RefreshIcon.d.ts +13 -0
  235. package/dist/components/icons-v2/ReplaceIcon.d.ts +13 -0
  236. package/dist/components/icons-v2/ReplyIcon.d.ts +13 -0
  237. package/dist/components/icons-v2/SaveIcon.d.ts +12 -0
  238. package/dist/components/icons-v2/ScalesIcon.d.ts +13 -0
  239. package/dist/components/icons-v2/SearchIcon.d.ts +13 -0
  240. package/dist/components/icons-v2/SendIcon.d.ts +13 -0
  241. package/dist/components/icons-v2/SettingsIcon.d.ts +13 -0
  242. package/dist/components/icons-v2/ShareIcon.d.ts +13 -0
  243. package/dist/components/icons-v2/ShelfAddIcon.d.ts +13 -0
  244. package/dist/components/icons-v2/ShelfIcon.d.ts +13 -0
  245. package/dist/components/icons-v2/ShelfInfoIcon.d.ts +13 -0
  246. package/dist/components/icons-v2/ShoppingIcon.d.ts +13 -0
  247. package/dist/components/icons-v2/SlideshowIcon.d.ts +13 -0
  248. package/dist/components/icons-v2/SocialFacebookIcon.d.ts +13 -0
  249. package/dist/components/icons-v2/SocialInstagramIcon.d.ts +13 -0
  250. package/dist/components/icons-v2/SocialSnapchatIcon.d.ts +13 -0
  251. package/dist/components/icons-v2/SocialTiktok2Icon.d.ts +13 -0
  252. package/dist/components/icons-v2/SocialTiktokIcon.d.ts +13 -0
  253. package/dist/components/icons-v2/SocialXIcon.d.ts +13 -0
  254. package/dist/components/icons-v2/SocialYoutubeIcon.d.ts +13 -0
  255. package/dist/components/icons-v2/SortHorizontalIcon.d.ts +13 -0
  256. package/dist/components/icons-v2/SquareAddIcon.d.ts +1 -0
  257. package/dist/components/icons-v2/StarIcon.d.ts +20 -0
  258. package/dist/components/icons-v2/StopIcon.d.ts +11 -0
  259. package/dist/components/icons-v2/SurveyIcon.d.ts +13 -0
  260. package/dist/components/icons-v2/TableExportIcon.d.ts +13 -0
  261. package/dist/components/icons-v2/TableIcon.d.ts +13 -0
  262. package/dist/components/icons-v2/TableOptionsIcon.d.ts +13 -0
  263. package/dist/components/icons-v2/TagIcon.d.ts +13 -0
  264. package/dist/components/icons-v2/TargetArrowIcon.d.ts +13 -0
  265. package/dist/components/icons-v2/TargetIcon.d.ts +13 -0
  266. package/dist/components/icons-v2/TextRecognitionIcon.d.ts +13 -0
  267. package/dist/components/icons-v2/TriangleFlagIcon.d.ts +13 -0
  268. package/dist/components/icons-v2/TrophyIcon.d.ts +13 -0
  269. package/dist/components/icons-v2/UnderlineIcon.d.ts +13 -0
  270. package/dist/components/icons-v2/UndoIcon.d.ts +13 -0
  271. package/dist/components/icons-v2/UnitBuyRateIcon.d.ts +13 -0
  272. package/dist/components/icons-v2/UploadIcon.d.ts +13 -0
  273. package/dist/components/icons-v2/UserGroupIcon.d.ts +13 -0
  274. package/dist/components/icons-v2/UserIcon.d.ts +13 -0
  275. package/dist/components/icons-v2/UsersIcon.d.ts +13 -0
  276. package/dist/components/icons-v2/ValueBuyRateIcon.d.ts +13 -0
  277. package/dist/components/icons-v2/VideoIcon.d.ts +13 -0
  278. package/dist/components/icons-v2/ViewOffIcon.d.ts +13 -0
  279. package/dist/components/icons-v2/ViewOnIcon.d.ts +13 -0
  280. package/dist/components/icons-v2/VolumeOffIcon.d.ts +13 -0
  281. package/dist/components/icons-v2/VolumeOnIcon.d.ts +13 -0
  282. package/dist/components/icons-v2/WebIcon.d.ts +13 -0
  283. package/dist/components/icons-v2/XIcon.d.ts +13 -0
  284. package/dist/components/icons-v2/ZipFileIcon.d.ts +13 -0
  285. package/dist/components/icons-v2/ZonePercentageIcon.d.ts +1 -0
  286. package/dist/components/icons-v2/ZoomInIcon.d.ts +1 -0
  287. package/dist/components/icons-v2/ZoomOutIcon.d.ts +1 -0
  288. package/dist/components/icons-v2/constants.d.ts +61 -0
  289. package/dist/components/icons-v2/createIcon.d.ts +45 -0
  290. package/dist/components/icons-v2/index.d.ts +209 -0
  291. package/dist/components/icons-v2/index.js +376 -374
  292. package/dist/components/index.d.ts +30 -0
  293. package/dist/hooks/useClickOutside.d.ts +2 -0
  294. package/dist/hooks/useEscapeKey.d.ts +1 -0
  295. package/dist/index.d.ts +1 -0
  296. package/dist/style.css +1 -1
  297. package/package.json +17 -4
@@ -0,0 +1,35 @@
1
+ export function normalizeSelectOptions(options: any[] | object | null | undefined): {
2
+ withSections: boolean;
3
+ sections: Array<{
4
+ sectionTitle: string;
5
+ options: Array<{
6
+ value: any;
7
+ label: any;
8
+ disabled: any;
9
+ }>;
10
+ }>;
11
+ options: Array<{
12
+ value: any;
13
+ label: any;
14
+ disabled: any;
15
+ }>;
16
+ };
17
+ export function toArrayValue(value: any): any[];
18
+ export function getOptionByValue(flatOptions: any, val: any): any;
19
+ export function hasSelectValue(value: any): boolean;
20
+ export function resolveDefaultSelectValue(defaultValue: any): any;
21
+ export function getEffectiveSelectValue(value: any, defaultValue: any): any;
22
+ export function getSelectedOptions(value: any, flatOptions: any): any[];
23
+ export function getSelectedLabelsPreview(value: any, flatOptions: any): string;
24
+ export function getSelectFieldDisplayValue(value: any, defaultValue: any, flatOptions: any): any;
25
+ export function emitSelectChange(onChange: any, nextValue: any): void;
26
+ export function filterOptionsByQuery(options: any, searchValue: any): any;
27
+ export function filterSectionsByQuery(sections: any, searchValue: any): any;
28
+ export function areAllOptionsSelected(value: any, flatOptions: any): any;
29
+ export function getNextToggleAllValues(value: any, flatOptions: any): any;
30
+ export function getResolvedListItemType({ multiSelect, tags, listItemType }: {
31
+ multiSelect: any;
32
+ tags: any;
33
+ listItemType: any;
34
+ }): any;
35
+ export function isOptionSelected(value: any, opt: any): boolean;
@@ -0,0 +1,7 @@
1
+ export function useSelectFieldDropdownPosition({ open, anchorRef, dropdownRef, dir: desiredDir, fixed, }: {
2
+ open: any;
3
+ anchorRef: any;
4
+ dropdownRef: any;
5
+ dir?: string;
6
+ fixed?: boolean;
7
+ }): any;
@@ -0,0 +1,272 @@
1
+ /**
2
+ * Textarea with auto-grow, optional resize, and trailing {@link Button} actions.
3
+ *
4
+ * ## Props
5
+ *
6
+ * Rest props (e.g. `maxLength`) pass through to the native `<textarea>`.
7
+ * Auto-sizing runs when `rows > 1` and `maxRows` is set.
8
+ *
9
+ * **label** `string` — no default
10
+ * Field label.
11
+ *
12
+ * **infoText** `string` — no default
13
+ * Helper text below the field. Overridden by `error.message`.
14
+ *
15
+ * **status** `'default' | 'error'` — default `'default'`
16
+ * Validation shell state.
17
+ *
18
+ * **disabled** `boolean` — default `false`
19
+ * Disables the textarea and all actions.
20
+ *
21
+ * **required** `boolean` — default `false`
22
+ * Shows required mark when `label` is set.
23
+ *
24
+ * **id** `string` — no default
25
+ * Textarea `id`. Auto-generated when omitted.
26
+ *
27
+ * **name** `string` — no default
28
+ * Textarea `name`. Also used as RHF field name with `control`.
29
+ *
30
+ * **value** `string` — no default
31
+ * Controlled value.
32
+ *
33
+ * **defaultValue** `string` — no default
34
+ * Uncontrolled initial value.
35
+ *
36
+ * **placeholder** `string` — default `'Text'`
37
+ * Placeholder text.
38
+ *
39
+ * **onChange** `(event: ChangeEvent<HTMLTextAreaElement>) => void` — default `() => {}`
40
+ * Textarea change handler.
41
+ *
42
+ * **onBlur** `(event: FocusEvent<HTMLTextAreaElement>) => void` — no default
43
+ * Textarea blur handler.
44
+ *
45
+ * **rows** `number` — default `4`
46
+ * Initial visible height in rows.
47
+ *
48
+ * **maxRows** `number` — default `10`
49
+ * Auto-grow limit when `rows > 1`.
50
+ *
51
+ * **expandable** `boolean` — default `false`
52
+ * Enables manual vertical resize (capped by CSS).
53
+ *
54
+ * **actions** `TextFieldAction[]` — default `[]`
55
+ * Trailing {@link Button} actions.
56
+ * - `id` `string` — required. Unique id.
57
+ * - `variant` `'primary' | 'secondary' | 'neutral' | 'destructive'` — default `'neutral'`
58
+ * - `type` `'fill' | 'outline' | 'blank'` — default `'outline'`
59
+ * - `icon` `ReactNode` — optional
60
+ * - `text` `string` — optional
61
+ * - `disabled` `boolean` — default `false`
62
+ * - `onClick` `() => void` — optional
63
+ *
64
+ * **control** `object` — no default
65
+ * react-hook-form `control`. With `name`, wires via `useController`.
66
+ *
67
+ * **rules** `object` — no default
68
+ * RHF validation rules.
69
+ *
70
+ * **error** `object` — no default
71
+ * RHF field error (`error.message` → info text and error status).
72
+ *
73
+ * **inputRef** `Ref` — no default
74
+ * Ref forwarded to the native `<textarea>`.
75
+ *
76
+ * **aria-label** `string` — default `'input field'` when no `label`
77
+ * Accessible name when `label` is omitted.
78
+ *
79
+ * @param {TextFieldProps} props
80
+ * @returns {import('react').ReactElement}
81
+ *
82
+ * @example <caption>Default</caption>
83
+ * import { TextField } from '@eyesee/ui-components';
84
+ *
85
+ * <TextField
86
+ * label="Project description"
87
+ * infoText="Max 1000 characters"
88
+ * placeholder="Enter project description"
89
+ * rows={5}
90
+ * maxRows={8}
91
+ * maxLength={1000}
92
+ * />
93
+ *
94
+ * @example <caption>WithActions</caption>
95
+ * import { TextField } from '@eyesee/ui-components';
96
+ * import { PaperclipIcon, SendIcon } from '@eyesee/ui-components/icons';
97
+ *
98
+ * <TextField
99
+ * label="Message"
100
+ * infoText="Optional attachment + send"
101
+ * placeholder="Type your message"
102
+ * rows={4}
103
+ * maxRows={6}
104
+ * actions={[
105
+ * { id: 'attach', variant: 'neutral', type: 'outline', icon: <PaperclipIcon /> },
106
+ * { id: 'send', variant: 'primary', type: 'fill', icon: <SendIcon />, text: 'Send' },
107
+ * ]}
108
+ * />
109
+ *
110
+ * @example <caption>Expandable</caption>
111
+ * import { TextField } from '@eyesee/ui-components';
112
+ *
113
+ * <TextField
114
+ * label="Expandable notes"
115
+ * infoText="Drag-resize enabled (capped)"
116
+ * placeholder="Try dragging the resize handle"
117
+ * rows={3}
118
+ * maxRows={10}
119
+ * expandable
120
+ * maxLength={2000}
121
+ * />
122
+ *
123
+ * @example <caption>SingleRow</caption>
124
+ * import { TextField } from '@eyesee/ui-components';
125
+ * import { SendIcon } from '@eyesee/ui-components/icons';
126
+ *
127
+ * <TextField
128
+ * label="Single row"
129
+ * infoText="rows=1 keeps a compact layout"
130
+ * placeholder="Short message…"
131
+ * rows={1}
132
+ * maxRows={1}
133
+ * actions={[
134
+ * { id: 'send', variant: 'primary', type: 'fill', icon: <SendIcon />, text: 'Send' },
135
+ * ]}
136
+ * />
137
+ *
138
+ * @example <caption>Matrix (Figma-like)</caption>
139
+ * import { TextField } from '@eyesee/ui-components';
140
+ * import { SendIcon } from '@eyesee/ui-components/icons';
141
+ *
142
+ * <TextField label="Label" infoText="Info" placeholder="Type here…" rows={3} maxRows={6} />
143
+ * <TextField label="Label" infoText="Info" status="error" placeholder="Type here…" rows={3} maxRows={6} />
144
+ * <TextField label="Label" infoText="Info" disabled placeholder="Type here…" rows={1} maxRows={1} actions={[{ id: 'send', variant: 'primary', type: 'fill', icon: <SendIcon />, text: 'Send' }]} />
145
+ */
146
+ export function TextField(props: TextFieldProps): import("react").ReactElement;
147
+ export type TextFieldChangeHandler = (event: import("react").ChangeEvent<HTMLTextAreaElement>) => void;
148
+ export type TextFieldBlurHandler = (event: import("react").FocusEvent<HTMLTextAreaElement>) => void;
149
+ export type TextFieldActionClickHandler = () => void;
150
+ /**
151
+ * Action button config rendered as {@link Button} inside the field.
152
+ */
153
+ export type TextFieldAction = {
154
+ /**
155
+ * Unique id (React key fallback).
156
+ */
157
+ id: string;
158
+ /**
159
+ * Optional React key override.
160
+ */
161
+ key?: string;
162
+ /**
163
+ * {@link Button} colour. Default `'neutral'`.
164
+ */
165
+ variant?: "primary" | "secondary" | "neutral" | "destructive";
166
+ /**
167
+ * {@link Button} visual style. Default `'outline'`.
168
+ */
169
+ type?: "fill" | "outline" | "blank";
170
+ /**
171
+ * Leading icon.
172
+ */
173
+ icon?: React.ReactNode;
174
+ /**
175
+ * Button label.
176
+ */
177
+ text?: string;
178
+ /**
179
+ * Disables only this action. Default `false`.
180
+ */
181
+ disabled?: boolean;
182
+ /**
183
+ * Click handler.
184
+ */
185
+ onClick?: TextFieldActionClickHandler;
186
+ };
187
+ export type TextFieldProps = {
188
+ /**
189
+ * Field label.
190
+ */
191
+ label?: string;
192
+ /**
193
+ * Helper text below the field. Overridden by `error.message`.
194
+ */
195
+ infoText?: string;
196
+ /**
197
+ * Validation shell state. Default `'default'`.
198
+ */
199
+ status?: "default" | "error";
200
+ /**
201
+ * Disables the textarea and all actions. Default `false`.
202
+ */
203
+ disabled?: boolean;
204
+ /**
205
+ * Shows required mark when `label` is set. Default `false`.
206
+ */
207
+ required?: boolean;
208
+ /**
209
+ * Textarea `id`. Auto-generated when omitted.
210
+ */
211
+ id?: string;
212
+ /**
213
+ * Textarea `name`. Also used as RHF field name with `control`.
214
+ */
215
+ name?: string;
216
+ /**
217
+ * Controlled value.
218
+ */
219
+ value?: string;
220
+ /**
221
+ * Uncontrolled initial value.
222
+ */
223
+ defaultValue?: string;
224
+ /**
225
+ * Placeholder text. Default `'Text'`.
226
+ */
227
+ placeholder?: string;
228
+ /**
229
+ * Textarea change handler. Default `() => {}`.
230
+ */
231
+ onChange?: TextFieldChangeHandler;
232
+ /**
233
+ * Textarea blur handler.
234
+ */
235
+ onBlur?: TextFieldBlurHandler;
236
+ /**
237
+ * Initial visible height in rows. Default `4`.
238
+ */
239
+ rows?: number;
240
+ /**
241
+ * Auto-grow limit when `rows > 1`. Default `10`.
242
+ */
243
+ maxRows?: number;
244
+ /**
245
+ * Enables manual vertical resize (capped by CSS). Default `false`.
246
+ */
247
+ expandable?: boolean;
248
+ /**
249
+ * Trailing {@link Button} actions. Default `[]`.
250
+ */
251
+ actions?: TextFieldAction[];
252
+ /**
253
+ * react-hook-form `control`. With `name`, wires via `useController`.
254
+ */
255
+ control?: object;
256
+ /**
257
+ * RHF validation rules.
258
+ */
259
+ rules?: object;
260
+ /**
261
+ * RHF field error (`error.message` → info text and error status).
262
+ */
263
+ error?: object;
264
+ /**
265
+ * Ref forwarded to the native `<textarea>`.
266
+ */
267
+ inputRef?: any;
268
+ /**
269
+ * Accessible name when `label` is omitted. Default `'input field'`.
270
+ */
271
+ "aria-label"?: string;
272
+ };
@@ -1,66 +1,73 @@
1
- import { jsxs as N, jsx as u } from "react/jsx-runtime";
2
- import y from "clsx";
1
+ import { jsx as m, jsxs as C } from "react/jsx-runtime";
2
+ import g from "clsx";
3
3
  import p from "./TextField.module.scss.js";
4
- import { createField as w } from "../InputFieldContainer.js";
5
- import { Button as $ } from "../../Button/Button.js";
6
- const j = (s, r, m) => {
7
- const h = window.getComputedStyle(s), t = parseFloat(h.lineHeight) || 20, x = r * t, l = m * t;
8
- s.style.height = "auto";
9
- const d = Math.max(x, Math.min(s.scrollHeight, l));
10
- s.style.height = `${d}px`, s.style.resize = l > s.scrollHeight ? "vertical" : "none";
11
- }, z = ({
12
- id: s,
13
- name: r,
14
- type: m = "text",
15
- value: h,
16
- defaultValue: t,
17
- placeholder: x = "Text",
18
- disabled: l = !1,
19
- onChange: d = () => {
4
+ import { createField as N } from "../InputFieldContainer.js";
5
+ import { Button as w } from "../../Button/Button.js";
6
+ const $ = (r, l, d) => {
7
+ const x = window.getComputedStyle(r), s = parseFloat(x.lineHeight) || 20, h = l * s, t = d * s;
8
+ r.style.height = "auto";
9
+ const u = Math.max(h, Math.min(r.scrollHeight, t));
10
+ r.style.height = `${u}px`, r.style.resize = t > r.scrollHeight ? "vertical" : "none";
11
+ };
12
+ function j({
13
+ id: r,
14
+ name: l,
15
+ type: d = "text",
16
+ value: x,
17
+ defaultValue: s,
18
+ placeholder: h = "Text",
19
+ disabled: t = !1,
20
+ onChange: u = () => {
20
21
  },
21
- rows: g = 4,
22
- maxRows: f = 10,
23
- expandable: H = !1,
24
- ariaLabel: i,
25
- label: v,
26
- inputProps: F = {},
27
- actions: T = [],
28
- containerFieldClassName: b
29
- }) => /* @__PURE__ */ N("div", { className: y(p.field, b), children: [
30
- /* @__PURE__ */ u(
31
- "textarea",
32
- {
33
- id: s,
34
- name: r,
35
- type: m,
36
- className: y(p.input, H && p.expandableField),
37
- value: h,
38
- defaultValue: t,
39
- placeholder: x,
40
- disabled: l,
41
- onChange: d,
42
- rows: g,
43
- onInput: (e) => j(e.currentTarget, g, f),
44
- "aria-label": i ?? (v ? void 0 : "input field"),
45
- ...F
46
- }
47
- ),
48
- /* @__PURE__ */ u("span", { className: p.buttonWrapper, children: T.map((e, k) => {
49
- const C = (e == null ? void 0 : e.key) ?? (e == null ? void 0 : e.id) ?? `${r ?? s}-action-${k}`;
50
- return /* @__PURE__ */ u(
51
- $,
22
+ rows: f = 4,
23
+ maxRows: y = 10,
24
+ expandable: i = !1,
25
+ ariaLabel: F,
26
+ label: H,
27
+ inputProps: T = {},
28
+ actions: n = [],
29
+ containerFieldClassName: v
30
+ }) {
31
+ return /* @__PURE__ */ C("div", { className: g(p.field, v), children: [
32
+ /* @__PURE__ */ m(
33
+ "textarea",
52
34
  {
53
- variant: (e == null ? void 0 : e.variant) ?? "neutral",
54
- type: (e == null ? void 0 : e.type) ?? "outline",
55
- icon: e == null ? void 0 : e.icon,
56
- text: e == null ? void 0 : e.text,
57
- disabled: l || (e == null ? void 0 : e.disabled),
58
- onClick: e == null ? void 0 : e.onClick
59
- },
60
- C
61
- );
62
- }) })
63
- ] }), W = w(z);
35
+ id: r,
36
+ name: l,
37
+ type: d,
38
+ className: g(p.input, i && p.expandableField),
39
+ value: x,
40
+ defaultValue: s,
41
+ placeholder: h,
42
+ disabled: t,
43
+ onChange: u,
44
+ rows: f,
45
+ onInput: (e) => $(e.currentTarget, f, y),
46
+ "aria-label": F ?? (H ? void 0 : "input field"),
47
+ ...T
48
+ }
49
+ ),
50
+ /* @__PURE__ */ m("span", { className: p.buttonWrapper, children: n.map((e, b) => {
51
+ const k = (e == null ? void 0 : e.key) ?? (e == null ? void 0 : e.id) ?? `${l ?? r}-action-${b}`;
52
+ return /* @__PURE__ */ m(
53
+ w,
54
+ {
55
+ variant: (e == null ? void 0 : e.variant) ?? "neutral",
56
+ type: (e == null ? void 0 : e.type) ?? "outline",
57
+ icon: e == null ? void 0 : e.icon,
58
+ text: e == null ? void 0 : e.text,
59
+ disabled: t || (e == null ? void 0 : e.disabled),
60
+ onClick: e == null ? void 0 : e.onClick
61
+ },
62
+ k
63
+ );
64
+ }) })
65
+ ] });
66
+ }
67
+ const z = N(j);
68
+ function I(r) {
69
+ return /* @__PURE__ */ m(z, { ...r });
70
+ }
64
71
  export {
65
- W as TextField
72
+ I as TextField
66
73
  };
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @typedef {object} FileTypeProps
3
+ *
4
+ * @property {string} extension
5
+ * File extension, with or without leading dot (case-insensitive).
6
+ * @property {number} [size=64]
7
+ * Rendered square size in px. Default `64`.
8
+ * @property {string} [className]
9
+ * Extra class on the wrapper `<div>`.
10
+ */
11
+ /**
12
+ * Figma-style file type icon. Unknown extensions use a neutral badge colour.
13
+ *
14
+ * ## Props
15
+ *
16
+ * **extension** `string` — no default
17
+ * File extension, with or without leading dot (case-insensitive).
18
+ *
19
+ * **size** `number` — default `64`
20
+ * Rendered square size in px.
21
+ *
22
+ * **className** `string` — no default
23
+ * Extra class on the wrapper `<div>`.
24
+ *
25
+ * @param {FileTypeProps} props
26
+ * @returns {import('react').ReactElement}
27
+ *
28
+ * @example <caption>Default</caption>
29
+ * import { FileType } from '@eyesee/ui-components';
30
+ *
31
+ * <FileType extension="PDF" size={64} />
32
+ *
33
+ * @example <caption>Gallery</caption>
34
+ * import { FileType } from '@eyesee/ui-components';
35
+ *
36
+ * <FileType extension="DOC" size={64} />
37
+ * <FileType extension="PDF" size={64} />
38
+ * <FileType extension="XLSX" size={64} />
39
+ *
40
+ * @example <caption>Normalization</caption>
41
+ * import { FileType } from '@eyesee/ui-components';
42
+ *
43
+ * <FileType extension=".pdf" size={64} />
44
+ * <FileType extension=" pdf " size={64} />
45
+ * <FileType extension="Docx" size={64} />
46
+ */
47
+ export function FileType({ extension, size, className }: FileTypeProps): import("react").ReactElement;
48
+ export type FileTypeProps = {
49
+ /**
50
+ * File extension, with or without leading dot (case-insensitive).
51
+ */
52
+ extension: string;
53
+ /**
54
+ * Rendered square size in px. Default `64`.
55
+ */
56
+ size?: number;
57
+ /**
58
+ * Extra class on the wrapper `<div>`.
59
+ */
60
+ className?: string;
61
+ };
@@ -1,4 +1,4 @@
1
- import { jsx as o, jsxs as n } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as t } from "react/jsx-runtime";
2
2
  import i from "clsx";
3
3
  import { PaperIcon as b } from "./PaperIcon.js";
4
4
  import l from "./FileType.module.scss.js";
@@ -15,16 +15,17 @@ const m = (e) => String(e || "").trim().replace(/^\./, "").toUpperCase(), p = {
15
15
  HTMLX: { label: "XHTML", color: "#222222" },
16
16
  TIF: { label: "TIFF", color: "#32A7FE" },
17
17
  TIFF: { label: "TIFF", color: "#32A7FE" }
18
- }, E = ({ extension: e, size: r = 64, className: s }) => {
18
+ };
19
+ function E({ extension: e, size: r = 64, className: s }) {
19
20
  const c = m(e), a = p[c] || {
20
21
  label: c || "",
21
22
  color: "#667085"
22
- }, t = r / 64;
23
- return /* @__PURE__ */ o("div", { className: i(l.wrapper, s), style: { width: r, height: r }, children: /* @__PURE__ */ n("div", { className: l.inner, style: { transform: `scale(${t})` }, children: [
23
+ }, n = r / 64;
24
+ return /* @__PURE__ */ o("div", { className: i(l.wrapper, s), style: { width: r, height: r }, children: /* @__PURE__ */ t("div", { className: l.inner, style: { transform: `scale(${n})` }, children: [
24
25
  /* @__PURE__ */ o("div", { className: l.paper, children: /* @__PURE__ */ o(b, { className: l.paperSvg }) }),
25
26
  a.label ? /* @__PURE__ */ o("div", { className: l.badge, style: { backgroundColor: a.color }, children: /* @__PURE__ */ o("span", { className: l.badgeText, children: a.label }) }) : null
26
27
  ] }) });
27
- };
28
+ }
28
29
  export {
29
30
  E as FileType
30
31
  };
@@ -0,0 +1,5 @@
1
+ export function PaperIcon({ width, height, ...props }: {
2
+ [x: string]: any;
3
+ width?: number;
4
+ height?: number;
5
+ }): import("react").JSX.Element;
@@ -0,0 +1,75 @@
1
+ /**
2
+ * @typedef {import('../ImagePlaceholder/ImagePlaceholder').ImagePlaceholderProps} ImagePlaceholderBaseProps
3
+ */
4
+ /**
5
+ * All {@link ImagePlaceholder} props plus hover-preview options.
6
+ *
7
+ * @typedef {ImagePlaceholderBaseProps & { previewSize?: number }} ImageHoverPreviewProps
8
+ */
9
+ /**
10
+ * {@link ImagePlaceholder} with a fixed-size hover preview portaled to `#modal` or `document.body`.
11
+ *
12
+ * ## Props
13
+ *
14
+ * Accepts every {@link ImagePlaceholder} prop, plus:
15
+ *
16
+ * **previewSize** `number` — default `200`
17
+ * Width and height of the hover preview in pixels.
18
+ *
19
+ * **url** `string` — no default
20
+ * Image source (from {@link ImagePlaceholder}).
21
+ *
22
+ * **text** `string` — no default
23
+ * Caption text (from {@link ImagePlaceholder}).
24
+ *
25
+ * **textPosition** `'inside' | 'outside'` — default `'inside'`
26
+ * Caption placement (from {@link ImagePlaceholder}).
27
+ *
28
+ * **aspectRatio** `'1/1' | '4/3' | '16/9' | '9/16'` — default `'1/1'`
29
+ * Thumbnail aspect ratio (from {@link ImagePlaceholder}).
30
+ *
31
+ * **lines** `'1' | '2'` — default `'1'`
32
+ * Max caption lines (from {@link ImagePlaceholder}).
33
+ *
34
+ * @param {ImageHoverPreviewProps} props
35
+ * @returns {import('react').ReactElement}
36
+ *
37
+ * @example <caption>Default</caption>
38
+ * import { ImageHoverPreview } from '@eyesee/ui-components';
39
+ *
40
+ * <ImageHoverPreview
41
+ * url="https://picsum.photos/400/400"
42
+ * text="Hover to preview"
43
+ * textPosition="outside"
44
+ * aspectRatio="1/1"
45
+ * lines="1"
46
+ * />
47
+ *
48
+ * @example <caption>Large preview</caption>
49
+ * import { ImageHoverPreview } from '@eyesee/ui-components';
50
+ *
51
+ * <ImageHoverPreview
52
+ * url="https://picsum.photos/400/400"
53
+ * text="Large preview"
54
+ * previewSize={280}
55
+ * textPosition="outside"
56
+ * />
57
+ *
58
+ * @example <caption>Inside caption</caption>
59
+ * import { ImageHoverPreview } from '@eyesee/ui-components';
60
+ *
61
+ * <ImageHoverPreview
62
+ * url="https://picsum.photos/400/400"
63
+ * text="Caption inside image area"
64
+ * textPosition="inside"
65
+ * aspectRatio="4/3"
66
+ * />
67
+ */
68
+ export function ImageHoverPreview({ previewSize, ...imagePlaceholderProps }: ImageHoverPreviewProps): import("react").ReactElement;
69
+ export type ImagePlaceholderBaseProps = any;
70
+ /**
71
+ * All {@link ImagePlaceholder} props plus hover-preview options.
72
+ */
73
+ export type ImageHoverPreviewProps = ImagePlaceholderBaseProps & {
74
+ previewSize?: number;
75
+ };