@cfx-dev/ui-components 4.5.21 → 5.0.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 (354) hide show
  1. package/dist/DropdownContent-BMfQCuaP.js +964 -0
  2. package/dist/Table.module-CMz5ENmI.js +17 -0
  3. package/dist/assets/all_css.css +1 -1
  4. package/dist/assets/css/Accordion.css +1 -1
  5. package/dist/assets/css/AccordionShowcase.css +1 -1
  6. package/dist/assets/css/Avatar.css +1 -1
  7. package/dist/assets/css/Badge.css +1 -1
  8. package/dist/assets/css/BurgerMenu.css +1 -1
  9. package/dist/assets/css/Button.css +1 -1
  10. package/dist/assets/css/Checkbox.css +1 -1
  11. package/dist/assets/css/ControlBox.css +1 -1
  12. package/dist/assets/css/CountryFlag.css +1 -1
  13. package/dist/assets/css/DataTable.css +1 -1
  14. package/dist/assets/css/Dot.css +1 -1
  15. package/dist/assets/css/DropdownContent.css +1 -1
  16. package/dist/assets/css/DropdownSelect.css +1 -1
  17. package/dist/assets/css/FlexShowcase.css +1 -1
  18. package/dist/assets/css/Flyout.css +1 -1
  19. package/dist/assets/css/FormField.css +1 -0
  20. package/dist/assets/css/Icon.css +1 -1
  21. package/dist/assets/css/IconButton.css +1 -1
  22. package/dist/assets/css/InfoPanel.css +1 -1
  23. package/dist/assets/css/Input.css +1 -1
  24. package/dist/assets/css/InputDropzone.css +1 -1
  25. package/dist/assets/css/Island.css +1 -1
  26. package/dist/assets/css/ItemPreview.css +1 -1
  27. package/dist/assets/css/Link.css +1 -1
  28. package/dist/assets/css/Loaf.css +1 -1
  29. package/dist/assets/css/Modal.css +1 -1
  30. package/dist/assets/css/NavList.css +1 -1
  31. package/dist/assets/css/Page.css +1 -1
  32. package/dist/assets/css/Popover.css +1 -1
  33. package/dist/assets/css/Prose.css +1 -1
  34. package/dist/assets/css/Radio.css +1 -1
  35. package/dist/assets/css/Range.css +1 -1
  36. package/dist/assets/css/RangeInput.css +1 -1
  37. package/dist/assets/css/RichInput.css +1 -1
  38. package/dist/assets/css/Select.css +1 -1
  39. package/dist/assets/css/Separator.css +1 -1
  40. package/dist/assets/css/Skeleton.css +1 -1
  41. package/dist/assets/css/Slider.css +1 -1
  42. package/dist/assets/css/StyledInput.css +1 -1
  43. package/dist/assets/css/StyledTextarea.css +1 -1
  44. package/dist/assets/css/Switch.css +1 -1
  45. package/dist/assets/css/Table.css +1 -1
  46. package/dist/assets/css/Tabular.css +1 -1
  47. package/dist/assets/css/Text.css +1 -1
  48. package/dist/assets/css/TextShowcase.css +1 -1
  49. package/dist/assets/css/Textarea.css +1 -1
  50. package/dist/assets/css/Title.css +1 -1
  51. package/dist/assets/css/ToggleGroup.css +1 -1
  52. package/dist/assets/general/global.css +1 -1
  53. package/dist/cfxIcons-0xD_EEXT.js +110 -0
  54. package/dist/cfxIconsXLarge-D0vz6Yd_.js +110 -0
  55. package/dist/components/Accordion/Accordion.d.ts +0 -3
  56. package/dist/components/Accordion/Accordion.js +117 -121
  57. package/dist/components/Accordion/AccordionShowcase.js +22 -26
  58. package/dist/components/Avatar/Avatar.d.ts +1 -1
  59. package/dist/components/Avatar/Avatar.js +12 -12
  60. package/dist/components/Avatar/AvatarShowcase.js +4 -4
  61. package/dist/components/Badge/Badge.d.ts +1 -1
  62. package/dist/components/Badge/Badge.js +7 -7
  63. package/dist/components/Badge/BadgeShowcase.js +20 -20
  64. package/dist/components/BurgerMenu/BurgerMenu.js +7 -7
  65. package/dist/components/BurgerMenu/BurgerMenuShowcase.js +8 -8
  66. package/dist/components/Button/Button.d.ts +1 -1
  67. package/dist/components/Button/Button.js +15 -15
  68. package/dist/components/Button/ButtonShowcase.js +80 -57
  69. package/dist/components/Checkbox/Checkbox.d.ts +4 -1
  70. package/dist/components/Checkbox/Checkbox.js +276 -191
  71. package/dist/components/Checkbox/CheckboxShowcase.js +170 -29
  72. package/dist/components/ControlBox/ControlBox.d.ts +1 -1
  73. package/dist/components/ControlBox/ControlBox.js +17 -17
  74. package/dist/components/DataTable/DataTableShowcase.js +5 -5
  75. package/dist/components/Dot/Dot.d.ts +1 -1
  76. package/dist/components/Dot/Dot.js +15 -15
  77. package/dist/components/DropdownContent/DropdownContent.d.ts +1 -5
  78. package/dist/components/DropdownContent/DropdownContent.js +2 -3
  79. package/dist/components/DropdownContent/index.d.ts +1 -1
  80. package/dist/components/DropdownContent/index.js +2 -3
  81. package/dist/components/DropdownMenu/DropdownMenu.d.ts +1 -2
  82. package/dist/components/DropdownMenu/DropdownMenu.js +17 -19
  83. package/dist/components/DropdownSelect/DropdownSelect.d.ts +0 -5
  84. package/dist/components/DropdownSelect/DropdownSelect.js +47 -55
  85. package/dist/components/DropdownSelect/DropdownSelectShowcase.js +10 -11
  86. package/dist/components/Flyout/Flyout.d.ts +1 -1
  87. package/dist/components/Flyout/Flyout.js +10 -10
  88. package/dist/components/FormField/FormField.d.ts +20 -0
  89. package/dist/components/FormField/FormField.js +68 -0
  90. package/dist/components/FormField/FormFieldShowcase.d.ts +5 -0
  91. package/dist/components/FormField/FormFieldShowcase.js +59 -0
  92. package/dist/components/FormField/index.d.ts +1 -0
  93. package/dist/components/FormField/index.js +4 -0
  94. package/dist/components/Icon/Icon.d.ts +6 -2
  95. package/dist/components/Icon/Icon.js +33 -32
  96. package/dist/components/IconButton/IconButton.js +1 -1
  97. package/dist/components/Icons/Icons.types.d.ts +1 -3
  98. package/dist/components/Icons/IconsShowcase.js +224 -92
  99. package/dist/components/Icons/cfx-icons/Cart.js +17 -33
  100. package/dist/components/Icons/cfx-icons/Close.js +7 -8
  101. package/dist/components/Icons/cfx-icons/Controller.js +13 -20
  102. package/dist/components/Icons/cfx-icons/Copy.js +6 -7
  103. package/dist/components/Icons/cfx-icons/DownArrow.js +4 -5
  104. package/dist/components/Icons/cfx-icons/DownChevron.js +4 -5
  105. package/dist/components/Icons/cfx-icons/Download.js +6 -7
  106. package/dist/components/Icons/cfx-icons/Expand.js +1 -1
  107. package/dist/components/Icons/cfx-icons/ExternalLink.js +9 -10
  108. package/dist/components/Icons/cfx-icons/Filter.js +9 -9
  109. package/dist/components/Icons/cfx-icons/Folder.d.ts +5 -0
  110. package/dist/components/Icons/cfx-icons/Folder.js +24 -0
  111. package/dist/components/Icons/cfx-icons/Heart.js +9 -10
  112. package/dist/components/Icons/cfx-icons/HeartFilled.js +3 -4
  113. package/dist/components/Icons/cfx-icons/Help.js +9 -10
  114. package/dist/components/Icons/cfx-icons/LeftArrow.js +9 -10
  115. package/dist/components/Icons/cfx-icons/LeftChevron.js +7 -8
  116. package/dist/components/Icons/cfx-icons/Map.js +14 -30
  117. package/dist/components/Icons/cfx-icons/Menu.js +17 -40
  118. package/dist/components/Icons/cfx-icons/Minus.js +2 -3
  119. package/dist/components/Icons/cfx-icons/More.js +4 -5
  120. package/dist/components/Icons/cfx-icons/MoreInfo.js +6 -7
  121. package/dist/components/Icons/cfx-icons/Pencil.js +3 -3
  122. package/dist/components/Icons/cfx-icons/Play.js +6 -6
  123. package/dist/components/Icons/cfx-icons/Plus.js +4 -5
  124. package/dist/components/Icons/cfx-icons/Radio.js +15 -25
  125. package/dist/components/Icons/cfx-icons/Refresh.js +10 -11
  126. package/dist/components/Icons/cfx-icons/RightArrow.js +9 -10
  127. package/dist/components/Icons/cfx-icons/RightChevron.js +4 -5
  128. package/dist/components/Icons/cfx-icons/Search.js +9 -10
  129. package/dist/components/Icons/cfx-icons/ServerList.d.ts +5 -0
  130. package/dist/components/Icons/cfx-icons/ServerList.js +24 -0
  131. package/dist/components/Icons/cfx-icons/ServerReconnect.d.ts +5 -0
  132. package/dist/components/Icons/cfx-icons/ServerReconnect.js +24 -0
  133. package/dist/components/Icons/cfx-icons/Sort.js +6 -7
  134. package/dist/components/Icons/cfx-icons/Square.js +8 -9
  135. package/dist/components/Icons/cfx-icons/SquareFilled.d.ts +5 -0
  136. package/dist/components/Icons/cfx-icons/SquareFilled.js +23 -0
  137. package/dist/components/Icons/cfx-icons/SquareTick.d.ts +5 -0
  138. package/dist/components/Icons/cfx-icons/SquareTick.js +26 -0
  139. package/dist/components/Icons/cfx-icons/Stop.js +7 -8
  140. package/dist/components/Icons/cfx-icons/Success.d.ts +5 -0
  141. package/dist/components/Icons/cfx-icons/Success.js +26 -0
  142. package/dist/components/Icons/cfx-icons/Tick.js +4 -5
  143. package/dist/components/Icons/cfx-icons/Transfer.js +7 -8
  144. package/dist/components/Icons/cfx-icons/Trash.js +6 -6
  145. package/dist/components/Icons/cfx-icons/Undo.js +5 -6
  146. package/dist/components/Icons/cfx-icons/UpArrow.js +9 -10
  147. package/dist/components/Icons/cfx-icons/UpChevron.js +4 -5
  148. package/dist/components/Icons/cfx-icons/Upload.js +7 -8
  149. package/dist/components/Icons/cfx-icons/UpvotesBurst.js +10 -10
  150. package/dist/components/Icons/cfx-icons/UpvotesRecurring.js +10 -11
  151. package/dist/components/Icons/cfx-icons/User.js +13 -20
  152. package/dist/components/Icons/cfx-icons/Users.js +13 -32
  153. package/dist/components/Icons/cfx-icons/Verified.js +1 -1
  154. package/dist/components/Icons/cfx-icons/Visibility.js +8 -8
  155. package/dist/components/Icons/cfx-icons/VisibilityOff.js +1 -1
  156. package/dist/components/Icons/cfx-icons/Warning.js +9 -10
  157. package/dist/components/Icons/cfx-iconsXLarge/Cart.d.ts +5 -0
  158. package/dist/components/Icons/cfx-iconsXLarge/Cart.js +26 -0
  159. package/dist/components/Icons/cfx-iconsXLarge/Close.d.ts +5 -0
  160. package/dist/components/Icons/cfx-iconsXLarge/Close.js +26 -0
  161. package/dist/components/Icons/cfx-iconsXLarge/Controller.d.ts +5 -0
  162. package/dist/components/Icons/cfx-iconsXLarge/Controller.js +24 -0
  163. package/dist/components/Icons/cfx-iconsXLarge/Copy.d.ts +5 -0
  164. package/dist/components/Icons/cfx-iconsXLarge/Copy.js +26 -0
  165. package/dist/components/Icons/cfx-iconsXLarge/DownArrow.d.ts +5 -0
  166. package/dist/components/Icons/cfx-iconsXLarge/DownArrow.js +26 -0
  167. package/dist/components/Icons/cfx-iconsXLarge/DownChevron.d.ts +5 -0
  168. package/dist/components/Icons/cfx-iconsXLarge/DownChevron.js +26 -0
  169. package/dist/components/Icons/cfx-iconsXLarge/Download.d.ts +5 -0
  170. package/dist/components/Icons/cfx-iconsXLarge/Download.js +26 -0
  171. package/dist/components/Icons/cfx-iconsXLarge/Expand.d.ts +5 -0
  172. package/dist/components/Icons/cfx-iconsXLarge/Expand.js +26 -0
  173. package/dist/components/Icons/cfx-iconsXLarge/ExternalLink.d.ts +5 -0
  174. package/dist/components/Icons/cfx-iconsXLarge/ExternalLink.js +26 -0
  175. package/dist/components/Icons/cfx-iconsXLarge/Filter.d.ts +5 -0
  176. package/dist/components/Icons/cfx-iconsXLarge/Filter.js +23 -0
  177. package/dist/components/Icons/cfx-iconsXLarge/Folder.d.ts +5 -0
  178. package/dist/components/Icons/cfx-iconsXLarge/Folder.js +24 -0
  179. package/dist/components/Icons/cfx-iconsXLarge/Heart.d.ts +5 -0
  180. package/dist/components/Icons/cfx-iconsXLarge/Heart.js +24 -0
  181. package/dist/components/Icons/cfx-iconsXLarge/HeartFilled.d.ts +5 -0
  182. package/dist/components/Icons/cfx-iconsXLarge/HeartFilled.js +24 -0
  183. package/dist/components/Icons/cfx-iconsXLarge/Help.d.ts +5 -0
  184. package/dist/components/Icons/cfx-iconsXLarge/Help.js +26 -0
  185. package/dist/components/Icons/cfx-iconsXLarge/LeftArrow.d.ts +5 -0
  186. package/dist/components/Icons/cfx-iconsXLarge/LeftArrow.js +26 -0
  187. package/dist/components/Icons/cfx-iconsXLarge/LeftChevron.d.ts +5 -0
  188. package/dist/components/Icons/cfx-iconsXLarge/LeftChevron.js +26 -0
  189. package/dist/components/Icons/cfx-iconsXLarge/Map.d.ts +5 -0
  190. package/dist/components/Icons/cfx-iconsXLarge/Map.js +23 -0
  191. package/dist/components/Icons/cfx-iconsXLarge/Menu.d.ts +5 -0
  192. package/dist/components/Icons/cfx-iconsXLarge/Menu.js +26 -0
  193. package/dist/components/Icons/cfx-iconsXLarge/Minus.d.ts +5 -0
  194. package/dist/components/Icons/{cfx-icons-big/Upload.js → cfx-iconsXLarge/Minus.js} +2 -3
  195. package/dist/components/Icons/cfx-iconsXLarge/More.d.ts +5 -0
  196. package/dist/components/Icons/cfx-iconsXLarge/More.js +26 -0
  197. package/dist/components/Icons/cfx-iconsXLarge/MoreInfo.d.ts +5 -0
  198. package/dist/components/Icons/cfx-iconsXLarge/MoreInfo.js +26 -0
  199. package/dist/components/Icons/cfx-iconsXLarge/Pencil.d.ts +5 -0
  200. package/dist/components/Icons/cfx-iconsXLarge/Pencil.js +25 -0
  201. package/dist/components/Icons/cfx-iconsXLarge/Play.d.ts +5 -0
  202. package/dist/components/Icons/cfx-iconsXLarge/Play.js +25 -0
  203. package/dist/components/Icons/cfx-iconsXLarge/Plus.d.ts +5 -0
  204. package/dist/components/Icons/cfx-iconsXLarge/Plus.js +26 -0
  205. package/dist/components/Icons/cfx-iconsXLarge/Radio.d.ts +5 -0
  206. package/dist/components/Icons/cfx-iconsXLarge/Radio.js +26 -0
  207. package/dist/components/Icons/cfx-iconsXLarge/Refresh.d.ts +5 -0
  208. package/dist/components/Icons/cfx-iconsXLarge/Refresh.js +26 -0
  209. package/dist/components/Icons/cfx-iconsXLarge/RightArrow.d.ts +5 -0
  210. package/dist/components/Icons/cfx-iconsXLarge/RightArrow.js +26 -0
  211. package/dist/components/Icons/cfx-iconsXLarge/RightChevron.d.ts +5 -0
  212. package/dist/components/Icons/cfx-iconsXLarge/RightChevron.js +26 -0
  213. package/dist/components/Icons/cfx-iconsXLarge/Search.d.ts +5 -0
  214. package/dist/components/Icons/cfx-iconsXLarge/Search.js +26 -0
  215. package/dist/components/Icons/cfx-iconsXLarge/ServerList.d.ts +5 -0
  216. package/dist/components/Icons/cfx-iconsXLarge/ServerList.js +24 -0
  217. package/dist/components/Icons/cfx-iconsXLarge/ServerReconnect.d.ts +5 -0
  218. package/dist/components/Icons/cfx-iconsXLarge/ServerReconnect.js +24 -0
  219. package/dist/components/Icons/cfx-iconsXLarge/Sort.d.ts +5 -0
  220. package/dist/components/Icons/cfx-iconsXLarge/Sort.js +26 -0
  221. package/dist/components/Icons/cfx-iconsXLarge/Square.d.ts +5 -0
  222. package/dist/components/Icons/cfx-iconsXLarge/Square.js +23 -0
  223. package/dist/components/Icons/cfx-iconsXLarge/SquareFilled.d.ts +5 -0
  224. package/dist/components/Icons/cfx-iconsXLarge/SquareFilled.js +26 -0
  225. package/dist/components/Icons/cfx-iconsXLarge/SquareTick.d.ts +5 -0
  226. package/dist/components/Icons/cfx-iconsXLarge/SquareTick.js +26 -0
  227. package/dist/components/Icons/cfx-iconsXLarge/Stop.d.ts +5 -0
  228. package/dist/components/Icons/cfx-iconsXLarge/Stop.js +26 -0
  229. package/dist/components/Icons/cfx-iconsXLarge/Success.d.ts +5 -0
  230. package/dist/components/Icons/cfx-iconsXLarge/Success.js +26 -0
  231. package/dist/components/Icons/cfx-iconsXLarge/Tick.d.ts +5 -0
  232. package/dist/components/Icons/cfx-iconsXLarge/Tick.js +26 -0
  233. package/dist/components/Icons/cfx-iconsXLarge/Transfer.d.ts +5 -0
  234. package/dist/components/Icons/cfx-iconsXLarge/Transfer.js +26 -0
  235. package/dist/components/Icons/cfx-iconsXLarge/Trash.d.ts +5 -0
  236. package/dist/components/Icons/cfx-iconsXLarge/Trash.js +23 -0
  237. package/dist/components/Icons/cfx-iconsXLarge/Undo.d.ts +5 -0
  238. package/dist/components/Icons/cfx-iconsXLarge/Undo.js +26 -0
  239. package/dist/components/Icons/cfx-iconsXLarge/UpArrow.d.ts +5 -0
  240. package/dist/components/Icons/cfx-iconsXLarge/UpArrow.js +26 -0
  241. package/dist/components/Icons/cfx-iconsXLarge/UpChevron.d.ts +5 -0
  242. package/dist/components/Icons/cfx-iconsXLarge/UpChevron.js +26 -0
  243. package/dist/components/Icons/cfx-iconsXLarge/Upload.js +26 -0
  244. package/dist/components/Icons/cfx-iconsXLarge/UpvotesBurst.d.ts +5 -0
  245. package/dist/components/Icons/cfx-iconsXLarge/UpvotesBurst.js +26 -0
  246. package/dist/components/Icons/cfx-iconsXLarge/UpvotesRecurring.d.ts +5 -0
  247. package/dist/components/Icons/cfx-iconsXLarge/UpvotesRecurring.js +26 -0
  248. package/dist/components/Icons/cfx-iconsXLarge/User.d.ts +5 -0
  249. package/dist/components/Icons/cfx-iconsXLarge/User.js +24 -0
  250. package/dist/components/Icons/cfx-iconsXLarge/Users.d.ts +5 -0
  251. package/dist/components/Icons/cfx-iconsXLarge/Users.js +24 -0
  252. package/dist/components/Icons/cfx-iconsXLarge/Verified.d.ts +5 -0
  253. package/dist/components/Icons/cfx-iconsXLarge/Verified.js +23 -0
  254. package/dist/components/Icons/cfx-iconsXLarge/Visibility.d.ts +5 -0
  255. package/dist/components/Icons/cfx-iconsXLarge/Visibility.js +23 -0
  256. package/dist/components/Icons/cfx-iconsXLarge/VisibilityOff.d.ts +5 -0
  257. package/dist/components/Icons/cfx-iconsXLarge/VisibilityOff.js +23 -0
  258. package/dist/components/Icons/cfx-iconsXLarge/Warning.js +26 -0
  259. package/dist/components/Icons/cfxIcons.d.ts +6 -1
  260. package/dist/components/Icons/cfxIcons.js +88 -78
  261. package/dist/components/Icons/cfxIconsXLarge.d.ts +52 -0
  262. package/dist/components/Icons/cfxIconsXLarge.js +106 -0
  263. package/dist/components/Icons/index.d.ts +2 -2
  264. package/dist/components/Icons/index.js +3 -3
  265. package/dist/components/InfoPanel/InfoPanel.d.ts +1 -1
  266. package/dist/components/InfoPanel/InfoPanel.js +10 -10
  267. package/dist/components/InfoPanel/InfoPanelShowcase.js +30 -30
  268. package/dist/components/Input/Input.d.ts +3 -3
  269. package/dist/components/Input/Input.js +94 -107
  270. package/dist/components/Input/Input.types.d.ts +1 -1
  271. package/dist/components/Input/InputShowcase.js +80 -64
  272. package/dist/components/Input/RichInput.js +48 -62
  273. package/dist/components/InputDropzone/InputDropzone.js +52 -43
  274. package/dist/components/InputDropzone/ItemPreview.js +23 -21
  275. package/dist/components/Layout/Pad/Pad.d.ts +2 -2
  276. package/dist/components/Layout/Pad/Pad.js +1 -1
  277. package/dist/components/Link/LinkShowcase.js +39 -39
  278. package/dist/components/Loaf/Loaf.d.ts +2 -2
  279. package/dist/components/Loaf/Loaf.js +15 -15
  280. package/dist/components/Modal/Modal.d.ts +3 -3
  281. package/dist/components/Modal/Modal.js +26 -26
  282. package/dist/components/Modal/ModalShowcase.js +13 -13
  283. package/dist/components/Pagination/Pagination.js +5 -5
  284. package/dist/components/RSC/Flex/Flex.d.ts +2 -2
  285. package/dist/components/RSC/Flex/Flex.js +17 -17
  286. package/dist/components/Radio/Radio.d.ts +1 -1
  287. package/dist/components/Radio/Radio.js +19 -19
  288. package/dist/components/Range/RangeShowcase.js +10 -10
  289. package/dist/components/Select/Select.d.ts +0 -3
  290. package/dist/components/Select/Select.js +372 -391
  291. package/dist/components/Select/SelectShowcase.js +20 -47
  292. package/dist/components/Separator/Separator.d.ts +1 -2
  293. package/dist/components/Separator/Separator.js +29 -42
  294. package/dist/components/Skeleton/SkeletonShowcase.js +12 -12
  295. package/dist/components/Slider/SliderShowcase.js +6 -6
  296. package/dist/components/StyledInput/StyledInput.d.ts +3 -3
  297. package/dist/components/StyledInput/StyledInput.js +16 -32
  298. package/dist/components/Switch/Switch.d.ts +6 -0
  299. package/dist/components/Switch/Switch.js +99 -85
  300. package/dist/components/Table/TableBody.js +1 -1
  301. package/dist/components/Table/TableCell.js +1 -1
  302. package/dist/components/Table/TableCellCheckbox.js +1 -1
  303. package/dist/components/Table/TableHeader.js +1 -1
  304. package/dist/components/Table/TableIconButton.js +1 -1
  305. package/dist/components/Table/TableRoot.js +1 -1
  306. package/dist/components/Table/TableRow.d.ts +1 -1
  307. package/dist/components/Table/TableRow.js +8 -8
  308. package/dist/components/TableResponsiveText/TableResponsiveText.js +4 -4
  309. package/dist/components/Tabular/TabularShowcase.js +22 -22
  310. package/dist/components/Text/BodyShowcase.js +261 -48
  311. package/dist/components/Text/HeadingShowcase.js +179 -24
  312. package/dist/components/Text/Text.d.ts +1 -0
  313. package/dist/components/Text/Text.js +62 -57
  314. package/dist/components/Text/Text.types.d.ts +6 -4
  315. package/dist/components/Text/TextShowcase.d.ts +15 -6
  316. package/dist/components/Text/TextShowcase.js +63 -38
  317. package/dist/components/Title/TitleShowcase.js +97 -17
  318. package/dist/components/ToggleGroup/ToggleGroup.d.ts +1 -1
  319. package/dist/components/ToggleGroup/ToggleGroup.js +22 -22
  320. package/dist/components/ToggleGroup/ToggleGroupShowcase.js +76 -40
  321. package/dist/main.d.ts +5 -6
  322. package/dist/main.js +87 -87
  323. package/dist/styles-scss/_ui.scss +94 -14
  324. package/dist/styles-scss/global.scss +17 -15
  325. package/dist/styles-scss/tokens.scss +158 -53
  326. package/dist/utils/ui/index.d.ts +2 -2
  327. package/dist/utils/ui/index.js +12 -10
  328. package/dist/utils/ui/ui.d.ts +7 -2
  329. package/dist/utils/ui/ui.js +64 -46
  330. package/dist/utils/ui/ui.types.d.ts +68 -23
  331. package/dist/utils/ui/ui.types.js +18 -15
  332. package/package.json +1 -1
  333. package/dist/DropdownContent-MvHlrWi6.js +0 -989
  334. package/dist/Table.module-DffST69u.js +0 -17
  335. package/dist/assets/css/IconBig.css +0 -1
  336. package/dist/cfxIcons-B4SQ4Ljd.js +0 -100
  337. package/dist/cfxIconsBig-BLJjMT-Y.js +0 -16
  338. package/dist/components/IconBig/IconBig.d.ts +0 -13
  339. package/dist/components/IconBig/IconBig.js +0 -78
  340. package/dist/components/IconBig/index.d.ts +0 -2
  341. package/dist/components/IconBig/index.js +0 -4
  342. package/dist/components/Icons/cfx-icons/SquareCheck.d.ts +0 -5
  343. package/dist/components/Icons/cfx-icons/SquareCheck.js +0 -27
  344. package/dist/components/Icons/cfx-icons-big/Confirm.d.ts +0 -5
  345. package/dist/components/Icons/cfx-icons-big/Confirm.js +0 -39
  346. package/dist/components/Icons/cfx-icons-big/Like.d.ts +0 -5
  347. package/dist/components/Icons/cfx-icons-big/Like.js +0 -25
  348. package/dist/components/Icons/cfx-icons-big/Subscriptions.d.ts +0 -5
  349. package/dist/components/Icons/cfx-icons-big/Subscriptions.js +0 -33
  350. package/dist/components/Icons/cfx-icons-big/Warning.js +0 -27
  351. package/dist/components/Icons/cfxIconsBig.d.ts +0 -5
  352. package/dist/components/Icons/cfxIconsBig.js +0 -12
  353. /package/dist/components/Icons/{cfx-icons-big → cfx-iconsXLarge}/Upload.d.ts +0 -0
  354. /package/dist/components/Icons/{cfx-icons-big → cfx-iconsXLarge}/Warning.d.ts +0 -0
@@ -1,83 +1,69 @@
1
- import { jsxs as B, jsx as t } from "react/jsx-runtime";
2
- import i from "react";
3
- import D from "../Button/Button.js";
4
- import { clsx as F } from "../../utils/clsx.js";
1
+ import { jsxs as D, jsx as o } from "react/jsx-runtime";
2
+ import r from "react";
3
+ import F from "../Button/Button.js";
4
+ import { clsx as L } from "../../utils/clsx.js";
5
5
  import "../../utils/links.js";
6
- import { useDynamicRef as s } from "../../utils/hooks/useDynamicRef.js";
6
+ import { useDynamicRef as u } from "../../utils/hooks/useDynamicRef.js";
7
7
  import "../../utils/hooks/useGlobalKeyboardEvent.js";
8
8
  import "../../utils/hooks/useKeyboardClose.js";
9
9
  import "../../index-Cl_RnsqN.js";
10
- import { ui as L } from "../../utils/ui/ui.js";
11
- const T = "cfxui__RichInput__root__57e6e", j = "cfxui__RichInput__renderer__8b298", w = "cfxui__RichInput__clear__5538b", c = {
12
- root: T,
13
- renderer: j,
14
- clear: w,
15
- "richinputSizeinitial-large": "cfxui__RichInput__richinputSizeinitial-large__4991c",
16
- "richinputSizeinitial-small": "cfxui__RichInput__richinputSizeinitial-small__cb0af",
17
- "richinputSizesmall-large": "cfxui__RichInput__richinputSizesmall-large__d8bc8",
18
- "richinputSizesmall-small": "cfxui__RichInput__richinputSizesmall-small__2f49a",
19
- "richinputSizesmall-medium-large": "cfxui__RichInput__richinputSizesmall-medium-large__e3523",
20
- "richinputSizesmall-medium-small": "cfxui__RichInput__richinputSizesmall-medium-small__a84f9",
21
- "richinputSizemedium-large": "cfxui__RichInput__richinputSizemedium-large__80e93",
22
- "richinputSizemedium-small": "cfxui__RichInput__richinputSizemedium-small__f42a7",
23
- "richinputSizemedium-large-large": "cfxui__RichInput__richinputSizemedium-large-large__b8650",
24
- "richinputSizemedium-large-small": "cfxui__RichInput__richinputSizemedium-large-small__30be4",
25
- "richinputSizelarge-large": "cfxui__RichInput__richinputSizelarge-large__13d43",
26
- "richinputSizelarge-small": "cfxui__RichInput__richinputSizelarge-small__de800",
27
- "richinputSizexlarge-large": "cfxui__RichInput__richinputSizexlarge-large__fe171",
28
- "richinputSizexlarge-small": "cfxui__RichInput__richinputSizexlarge-small__32365"
10
+ import { ui as T } from "../../utils/ui/ui.js";
11
+ const j = "cfxui__RichInput__root__57e6e", w = "cfxui__RichInput__renderer__8b298", z = "cfxui__RichInput__clear__5538b", c = {
12
+ root: j,
13
+ renderer: w,
14
+ clear: z
29
15
  };
30
- function P(o) {
16
+ function P(f) {
31
17
  const {
32
- size: m = "normal",
18
+ size: m = "medium",
33
19
  value: a,
34
20
  onChange: p,
35
- onFocus: h,
36
- onBlur: f,
37
- onSelect: d,
38
- onKeyDown: g,
39
- className: S,
40
- rendered: z,
41
- placeholder: R,
42
- autoFocus: x,
43
- withClearButton: I = !1,
44
- ref: C
45
- } = o, _ = i.useRef(null), r = i.useRef(null), l = s(p), n = s(d), b = i.useCallback((e) => {
46
- l.current(e.target.value);
47
- }, [l]), k = i.useCallback(() => {
21
+ onFocus: d,
22
+ onBlur: _,
23
+ onSelect: h,
24
+ onKeyDown: C,
25
+ className: R,
26
+ rendered: g,
27
+ placeholder: x,
28
+ autoFocus: S,
29
+ withClearButton: b = !1,
30
+ ref: k
31
+ } = f, i = r.useRef(null), t = r.useRef(null), n = u(p), l = u(h), I = r.useCallback((e) => {
32
+ n.current(e.target.value);
33
+ }, [n]), N = r.useCallback(() => {
48
34
  var e;
49
- l.current(""), (e = _.current) == null || e.focus();
50
- }, [l]), N = i.useCallback((e) => {
51
- if (!n.current || !(e.target instanceof HTMLInputElement))
35
+ n.current(""), (e = i.current) == null || e.focus();
36
+ }, [n]), v = r.useCallback((e) => {
37
+ if (!l.current || !(e.target instanceof HTMLInputElement))
52
38
  return;
53
- const u = e.target;
54
- n.current(u.selectionStart, u.selectionEnd, u.selectionDirection);
55
- }, [n]), v = i.useCallback((e) => {
56
- r.current && (r.current.scrollTop = e.target.scrollTop, r.current.scrollLeft = e.target.scrollLeft);
57
- }, []), y = F(
39
+ const s = e.target;
40
+ l.current(s.selectionStart, s.selectionEnd, s.selectionDirection);
41
+ }, [l]), y = r.useCallback((e) => {
42
+ t.current && (t.current.scrollTop = e.target.scrollTop, t.current.scrollLeft = e.target.scrollLeft);
43
+ }, []), B = L(
58
44
  c.root,
59
- S,
60
- L.getResponsiveFlatClassnames("richinput-size", m).map((e) => c[e])
45
+ R,
46
+ T.getResponsiveFlatClassnames("richinput-size", m).map((e) => c[e])
61
47
  );
62
- return /* @__PURE__ */ B("div", { ref: C, className: y, children: [
63
- /* @__PURE__ */ t(
48
+ return /* @__PURE__ */ D("div", { ref: k, className: B, children: [
49
+ /* @__PURE__ */ o(
64
50
  "input",
65
51
  {
66
- ref: _,
67
- autoFocus: x,
52
+ ref: i,
53
+ autoFocus: S,
68
54
  type: "text",
69
55
  value: a,
70
- onChange: b,
71
- placeholder: R,
72
- onBlur: f,
73
- onFocus: h,
74
- onScroll: v,
75
- onSelect: N,
76
- onKeyDown: g
56
+ onChange: I,
57
+ placeholder: x,
58
+ onBlur: _,
59
+ onFocus: d,
60
+ onScroll: y,
61
+ onSelect: v,
62
+ onKeyDown: C
77
63
  }
78
64
  ),
79
- /* @__PURE__ */ t("div", { ref: r, className: c.renderer, children: z }),
80
- I && a && /* @__PURE__ */ t("div", { className: c.clear, children: /* @__PURE__ */ t(D, { icon: "Close", onClick: k }) })
65
+ /* @__PURE__ */ o("div", { ref: t, className: c.renderer, children: g }),
66
+ b && a && /* @__PURE__ */ o("div", { className: c.clear, children: /* @__PURE__ */ o(F, { icon: "Close", onClick: N }) })
81
67
  ] });
82
68
  }
83
69
  export {
@@ -2,7 +2,7 @@ import { jsxs as wa, jsx as B } from "react/jsx-runtime";
2
2
  import oa, { useMemo as T, useRef as ea, useReducer as hi, useEffect as ka, useCallback as y, forwardRef as yi, useImperativeHandle as wi, Fragment as ki } from "react";
3
3
  import { P as s } from "../../index-DQMInta3.js";
4
4
  import { a as I } from "../../tslib.es6-CtHwNPxX.js";
5
- import { IconBig as ji } from "../IconBig/IconBig.js";
5
+ import { Icon as ji } from "../Icon/Icon.js";
6
6
  import { Text as Na } from "../Text/Text.js";
7
7
  import { clsx as Di } from "../../utils/clsx.js";
8
8
  import Wa from "./ItemPreview.js";
@@ -1436,8 +1436,8 @@ function Ki(a, i) {
1436
1436
  try {
1437
1437
  for (t = t.call(a); !(p = (l = t.next()).done) && (n.push(l.value), !(i && n.length === i)); p = !0)
1438
1438
  ;
1439
- } catch (u) {
1440
- o = !0, r = u;
1439
+ } catch (v) {
1440
+ o = !0, r = v;
1441
1441
  } finally {
1442
1442
  try {
1443
1443
  !p && t.return != null && t.return();
@@ -1491,8 +1491,8 @@ function P(a) {
1491
1491
  }
1492
1492
  function Vi(a) {
1493
1493
  var i = a.files, t = a.accept, n = a.minSize, p = a.maxSize, o = a.multiple, l = a.maxFiles, r = a.validator;
1494
- return !o && i.length > 1 || o && l >= 1 && i.length > l ? !1 : i.every(function(u) {
1495
- var k = oi(u, t), z = U(k, 1), A = z[0], j = ci(u, n, p), _ = U(j, 1), E = _[0], F = r ? r(u) : null;
1494
+ return !o && i.length > 1 || o && l >= 1 && i.length > l ? !1 : i.every(function(v) {
1495
+ var k = oi(v, t), z = U(k, 1), A = z[0], j = ci(v, n, p), _ = U(j, 1), E = _[0], F = r ? r(v) : null;
1496
1496
  return A && E && !F;
1497
1497
  });
1498
1498
  }
@@ -1584,9 +1584,9 @@ function mt(a) {
1584
1584
  if (Array.isArray(a)) return _a(a);
1585
1585
  }
1586
1586
  function Da(a, i) {
1587
- return ft(a) || ut(a, i) || si(a, i) || vt();
1587
+ return ft(a) || vt(a, i) || si(a, i) || ut();
1588
1588
  }
1589
- function vt() {
1589
+ function ut() {
1590
1590
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1591
1591
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1592
1592
  }
@@ -1604,15 +1604,15 @@ function _a(a, i) {
1604
1604
  n[t] = a[t];
1605
1605
  return n;
1606
1606
  }
1607
- function ut(a, i) {
1607
+ function vt(a, i) {
1608
1608
  var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1609
1609
  if (t != null) {
1610
1610
  var n = [], p = !0, o = !1, l, r;
1611
1611
  try {
1612
1612
  for (t = t.call(a); !(p = (l = t.next()).done) && (n.push(l.value), !(i && n.length === i)); p = !0)
1613
1613
  ;
1614
- } catch (u) {
1615
- o = !0, r = u;
1614
+ } catch (v) {
1615
+ o = !0, r = v;
1616
1616
  } finally {
1617
1617
  try {
1618
1618
  !p && t.return != null && t.return();
@@ -1873,7 +1873,7 @@ var Fa = {
1873
1873
  fileRejections: []
1874
1874
  };
1875
1875
  function mi() {
1876
- var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = d(d({}, di), a), t = i.accept, n = i.disabled, p = i.getFilesFromEvent, o = i.maxSize, l = i.minSize, r = i.multiple, u = i.maxFiles, k = i.onDragEnter, z = i.onDragLeave, A = i.onDragOver, j = i.onDrop, _ = i.onDropAccepted, E = i.onDropRejected, F = i.onFileDialogCancel, M = i.onFileDialogOpen, Y = i.useFsAccessApi, G = i.autoFocus, $ = i.preventDropOnDocument, J = i.noClick, K = i.noKeyboard, V = i.noDrag, f = i.noDragEventsBubbling, sa = i.onError, H = i.validator, N = T(function() {
1876
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = d(d({}, di), a), t = i.accept, n = i.disabled, p = i.getFilesFromEvent, o = i.maxSize, l = i.minSize, r = i.multiple, v = i.maxFiles, k = i.onDragEnter, z = i.onDragLeave, A = i.onDragOver, j = i.onDrop, _ = i.onDropAccepted, E = i.onDropRejected, F = i.onFileDialogCancel, M = i.onFileDialogOpen, Y = i.useFsAccessApi, G = i.autoFocus, $ = i.preventDropOnDocument, J = i.noClick, K = i.noKeyboard, V = i.noDrag, f = i.noDragEventsBubbling, sa = i.onError, H = i.validator, N = T(function() {
1877
1877
  return tt(t);
1878
1878
  }, [t]), Pa = T(function() {
1879
1879
  return it(t);
@@ -1881,7 +1881,7 @@ function mi() {
1881
1881
  return typeof M == "function" ? M : ii;
1882
1882
  }, [M]), Q = T(function() {
1883
1883
  return typeof F == "function" ? F : ii;
1884
- }, [F]), x = ea(null), h = ea(null), vi = hi(gt, Fa), Ia = Da(vi, 2), ma = Ia[0], g = Ia[1], ui = ma.isFocused, Ra = ma.isFileDialogActive, X = ea(typeof window < "u" && window.isSecureContext && Y && at()), qa = function() {
1884
+ }, [F]), x = ea(null), h = ea(null), ui = hi(gt, Fa), Ia = Da(ui, 2), ma = Ia[0], g = Ia[1], vi = ma.isFocused, Ra = ma.isFileDialogActive, X = ea(typeof window < "u" && window.isSecureContext && Y && at()), qa = function() {
1885
1885
  !X.current && Ra && setTimeout(function() {
1886
1886
  if (h.current) {
1887
1887
  var c = h.current.files;
@@ -1912,17 +1912,17 @@ function mi() {
1912
1912
  }, [sa]), Sa = y(function(e) {
1913
1913
  e.preventDefault(), e.persist(), ta(e), R.current = [].concat(rt(R.current), [e.target]), pa(e) && Promise.resolve(p(e)).then(function(c) {
1914
1914
  if (!(la(e) && !f)) {
1915
- var m = c.length, v = m > 0 && Vi({
1915
+ var m = c.length, u = m > 0 && Vi({
1916
1916
  files: c,
1917
1917
  accept: N,
1918
1918
  minSize: l,
1919
1919
  maxSize: o,
1920
1920
  multiple: r,
1921
- maxFiles: u,
1921
+ maxFiles: v,
1922
1922
  validator: H
1923
- }), b = m > 0 && !v;
1923
+ }), b = m > 0 && !u;
1924
1924
  g({
1925
- isDragAccept: v,
1925
+ isDragAccept: u,
1926
1926
  isDragReject: b,
1927
1927
  isDragActive: !0,
1928
1928
  type: "setDraggedFiles"
@@ -1931,7 +1931,7 @@ function mi() {
1931
1931
  }).catch(function(c) {
1932
1932
  return O(c);
1933
1933
  });
1934
- }, [p, k, O, f, N, l, o, r, u, H]), Ta = y(function(e) {
1934
+ }, [p, k, O, f, N, l, o, r, v, H]), Ta = y(function(e) {
1935
1935
  e.preventDefault(), e.persist(), ta(e);
1936
1936
  var c = pa(e);
1937
1937
  if (c && e.dataTransfer)
@@ -1942,8 +1942,8 @@ function mi() {
1942
1942
  return c && A && A(e), !1;
1943
1943
  }, [A, f]), La = y(function(e) {
1944
1944
  e.preventDefault(), e.persist(), ta(e);
1945
- var c = R.current.filter(function(v) {
1946
- return x.current && x.current.contains(v);
1945
+ var c = R.current.filter(function(u) {
1946
+ return x.current && x.current.contains(u);
1947
1947
  }), m = c.indexOf(e.target);
1948
1948
  m !== -1 && c.splice(m, 1), R.current = c, !(c.length > 0) && (g({
1949
1949
  type: "setDraggedFiles",
@@ -1952,32 +1952,32 @@ function mi() {
1952
1952
  isDragReject: !1
1953
1953
  }), pa(e) && z && z(e));
1954
1954
  }, [x, z, f]), Z = y(function(e, c) {
1955
- var m = [], v = [];
1955
+ var m = [], u = [];
1956
1956
  e.forEach(function(b) {
1957
- var W = oi(b, N), S = Da(W, 2), ua = S[0], fa = S[1], xa = ci(b, l, o), na = Da(xa, 2), ga = na[0], ba = na[1], ha = H ? H(b) : null;
1958
- if (ua && ga && !ha)
1957
+ var W = oi(b, N), S = Da(W, 2), va = S[0], fa = S[1], xa = ci(b, l, o), na = Da(xa, 2), ga = na[0], ba = na[1], ha = H ? H(b) : null;
1958
+ if (va && ga && !ha)
1959
1959
  m.push(b);
1960
1960
  else {
1961
1961
  var ya = [fa, ba];
1962
- ha && (ya = ya.concat(ha)), v.push({
1962
+ ha && (ya = ya.concat(ha)), u.push({
1963
1963
  file: b,
1964
1964
  errors: ya.filter(function(bi) {
1965
1965
  return bi;
1966
1966
  })
1967
1967
  });
1968
1968
  }
1969
- }), (!r && m.length > 1 || r && u >= 1 && m.length > u) && (m.forEach(function(b) {
1970
- v.push({
1969
+ }), (!r && m.length > 1 || r && v >= 1 && m.length > v) && (m.forEach(function(b) {
1970
+ u.push({
1971
1971
  file: b,
1972
1972
  errors: [Ji]
1973
1973
  });
1974
1974
  }), m.splice(0)), g({
1975
1975
  acceptedFiles: m,
1976
- fileRejections: v,
1977
- isDragReject: v.length > 0,
1976
+ fileRejections: u,
1977
+ isDragReject: u.length > 0,
1978
1978
  type: "setFiles"
1979
- }), j && j(m, v, c), v.length > 0 && E && E(v, c), m.length > 0 && _ && _(m, c);
1980
- }, [g, r, N, l, o, u, j, _, E, H]), aa = y(function(e) {
1979
+ }), j && j(m, u, c), u.length > 0 && E && E(u, c), m.length > 0 && _ && _(m, c);
1980
+ }, [g, r, N, l, o, v, j, _, E, H]), aa = y(function(e) {
1981
1981
  e.preventDefault(), e.persist(), ta(e), R.current = [], pa(e) && Promise.resolve(p(e)).then(function(c) {
1982
1982
  la(e) && !f || Z(c, e);
1983
1983
  }).catch(function(c) {
@@ -2024,7 +2024,7 @@ function mi() {
2024
2024
  J || (Zi() ? setTimeout(q, 0) : q());
2025
2025
  }, [J, q]), C = function(c) {
2026
2026
  return n ? null : c;
2027
- }, va = function(c) {
2027
+ }, ua = function(c) {
2028
2028
  return K ? null : C(c);
2029
2029
  }, ia = function(c) {
2030
2030
  return V ? null : C(c);
@@ -2032,17 +2032,17 @@ function mi() {
2032
2032
  f && c.stopPropagation();
2033
2033
  }, fi = T(function() {
2034
2034
  return function() {
2035
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, m = c === void 0 ? "ref" : c, v = e.role, b = e.onKeyDown, W = e.onFocus, S = e.onBlur, ua = e.onClick, fa = e.onDragEnter, xa = e.onDragOver, na = e.onDragLeave, ga = e.onDrop, ba = ra(e, ct);
2035
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, m = c === void 0 ? "ref" : c, u = e.role, b = e.onKeyDown, W = e.onFocus, S = e.onBlur, va = e.onClick, fa = e.onDragEnter, xa = e.onDragOver, na = e.onDragLeave, ga = e.onDrop, ba = ra(e, ct);
2036
2036
  return d(d(Ea({
2037
- onKeyDown: va(w(b, Ma)),
2038
- onFocus: va(w(W, $a)),
2039
- onBlur: va(w(S, Ka)),
2040
- onClick: C(w(ua, Ha)),
2037
+ onKeyDown: ua(w(b, Ma)),
2038
+ onFocus: ua(w(W, $a)),
2039
+ onBlur: ua(w(S, Ka)),
2040
+ onClick: C(w(va, Ha)),
2041
2041
  onDragEnter: ia(w(fa, Sa)),
2042
2042
  onDragOver: ia(w(xa, Ta)),
2043
2043
  onDragLeave: ia(w(na, La)),
2044
2044
  onDrop: ia(w(ga, aa)),
2045
- role: typeof v == "string" && v !== "" ? v : "presentation"
2045
+ role: typeof u == "string" && u !== "" ? u : "presentation"
2046
2046
  }, m, x), !n && !K ? {
2047
2047
  tabIndex: 0
2048
2048
  } : {}), ba);
@@ -2051,7 +2051,7 @@ function mi() {
2051
2051
  e.stopPropagation();
2052
2052
  }, []), gi = T(function() {
2053
2053
  return function() {
2054
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, m = c === void 0 ? "ref" : c, v = e.onChange, b = e.onClick, W = ra(e, lt), S = Ea({
2054
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, m = c === void 0 ? "ref" : c, u = e.onChange, b = e.onClick, W = ra(e, lt), S = Ea({
2055
2055
  accept: N,
2056
2056
  multiple: r,
2057
2057
  type: "file",
@@ -2067,7 +2067,7 @@ function mi() {
2067
2067
  width: "1px",
2068
2068
  whiteSpace: "nowrap"
2069
2069
  },
2070
- onChange: C(w(v, aa)),
2070
+ onChange: C(w(u, aa)),
2071
2071
  onClick: C(w(b, xi)),
2072
2072
  tabIndex: -1
2073
2073
  }, m, h);
@@ -2075,7 +2075,7 @@ function mi() {
2075
2075
  };
2076
2076
  }, [h, t, r, aa, n]);
2077
2077
  return d(d({}, ma), {}, {
2078
- isFocused: ui && !n,
2078
+ isFocused: vi && !n,
2079
2079
  getRootProps: fi,
2080
2080
  getInputProps: gi,
2081
2081
  rootRef: x,
@@ -2137,7 +2137,7 @@ function jt(a) {
2137
2137
  removeItemAriaLabel: o = "",
2138
2138
  rootAriaLabel: l = "",
2139
2139
  onRemoveFile: r,
2140
- onRemoveRejection: u,
2140
+ onRemoveRejection: v,
2141
2141
  dropzoneItemClassName: k,
2142
2142
  dropzoneClassName: z,
2143
2143
  name: A,
@@ -2153,8 +2153,8 @@ function jt(a) {
2153
2153
  } = mi(j), J = oa.useCallback((f) => {
2154
2154
  r && r(f);
2155
2155
  }, [r]), K = oa.useCallback((f) => {
2156
- u && u(f);
2157
- }, [u]), V = Di(D.dropzone, z, {
2156
+ v && v(f);
2157
+ }, [v]), V = Di(D.dropzone, z, {
2158
2158
  [D.disabled]: j.disabled,
2159
2159
  [D.focused]: _,
2160
2160
  [D.dragActive]: E,
@@ -2172,7 +2172,16 @@ function jt(a) {
2172
2172
  }),
2173
2173
  children: [
2174
2174
  /* @__PURE__ */ B("input", { ...$({ name: A }) }),
2175
- /* @__PURE__ */ B(ji, { name: "Upload" }),
2175
+ /* @__PURE__ */ B(
2176
+ ji,
2177
+ {
2178
+ name: "Upload",
2179
+ size: {
2180
+ large: "xlarge",
2181
+ initial: "medium"
2182
+ }
2183
+ }
2184
+ ),
2176
2185
  /* @__PURE__ */ wa(Na, { className: D.text, children: [
2177
2186
  p ? `${n} ` : n,
2178
2187
  !!p && /* @__PURE__ */ B(
@@ -1,29 +1,31 @@
1
- import { jsxs as l, jsx as c } from "react/jsx-runtime";
2
- import a from "react";
3
- import f from "../IconButton/IconButton.js";
4
- import { Text as n } from "../Text/Text.js";
5
- import { clsx as d } from "../../utils/clsx.js";
6
- const u = "cfxui__ItemPreview__root__bb9bc", h = "cfxui__ItemPreview__failed__98fb7", p = "cfxui__ItemPreview__filePath__54877", o = {
1
+ import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
+ import i from "react";
3
+ import n from "../Flex/Flex.js";
4
+ import { clsx as s } from "../../utils/clsx.js";
5
+ import p from "../IconButton/IconButton.js";
6
+ import { Text as d } from "../Text/Text.js";
7
+ const u = "cfxui__ItemPreview__root__bb9bc", w = "cfxui__ItemPreview__preview__fff25", x = "cfxui__ItemPreview__failed__98fb7", h = "cfxui__ItemPreview__filePath__54877", t = {
7
8
  root: u,
8
- failed: h,
9
- filePath: p
9
+ preview: w,
10
+ failed: x,
11
+ filePath: h
10
12
  };
11
13
  function P({
12
- file: t,
13
- onRemoveFile: r,
14
- removeAriaLabel: e = "",
15
- className: i,
16
- theme: s = "default"
14
+ file: e,
15
+ onRemoveFile: a,
16
+ removeAriaLabel: o = "",
17
+ className: c,
18
+ theme: _ = "default"
17
19
  }) {
18
- const m = a.useCallback(() => {
19
- r(t);
20
- }, [t, r]), _ = a.useMemo(() => `${e}${e ? ", " : ""}${t.path}`, [e, t.path]);
21
- return /* @__PURE__ */ l("div", { className: d(o.root, o[s], i), children: [
22
- /* @__PURE__ */ c(n, { family: "secondary", className: o.filePath, children: t.path }),
23
- /* @__PURE__ */ c(f, { areaSize: "large", ariaLabel: _, name: "Close", onClick: m })
20
+ const f = i.useCallback(() => {
21
+ a(e);
22
+ }, [e, a]), l = i.useMemo(() => `${o}${o ? ", " : ""}${e.path}`, [o, e.path]);
23
+ return /* @__PURE__ */ m(n, { direction: "row", display: "flex", alignItems: "center", className: s(t.root, t[_], c), children: [
24
+ /* @__PURE__ */ r("div", { className: s(t.preview, t[_], c), children: /* @__PURE__ */ r(d, { family: "secondary", className: t.filePath, children: e.path }) }),
25
+ /* @__PURE__ */ r(p, { areaSize: "large", ariaLabel: l, name: "Close", onClick: f })
24
26
  ] });
25
27
  }
26
- const $ = a.memo(P);
28
+ const g = i.memo(P);
27
29
  export {
28
- $ as default
30
+ g as default
29
31
  };
@@ -4,9 +4,9 @@ export interface PadProps {
4
4
  children?: React.ReactNode;
5
5
  className?: string;
6
6
  /**
7
- * 'normal' by default
7
+ * 'medium' by default
8
8
  */
9
- size?: 'none' | 'small' | 'normal' | 'large' | 'xlarge';
9
+ size?: 'none' | 'small' | 'medium' | 'large' | 'xlarge';
10
10
  top?: boolean;
11
11
  left?: boolean;
12
12
  right?: boolean;
@@ -24,7 +24,7 @@ function p(a) {
24
24
  left: t = !1,
25
25
  right: e = !1,
26
26
  bottom: s = !1,
27
- size: l = "normal",
27
+ size: l = "medium",
28
28
  children: n,
29
29
  className: c
30
30
  } = a, o = !(f || t || e || s), i = x(_.root, c, _[`offset-${l}`], {
@@ -1,64 +1,64 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import d from "react";
3
- import l from "../Flex/Flex.js";
4
- import { Text as i } from "../Text/Text.js";
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import n from "react";
3
+ import d from "../Flex/Flex.js";
4
+ import { Text as r } from "../Text/Text.js";
5
5
  import "../../utils/ui/ui.js";
6
6
  import t from "./ButtonLink.js";
7
- import n from "./Link.js";
7
+ import l from "./Link.js";
8
8
  function c() {
9
- return /* @__PURE__ */ r(l, { gap: "large", vertical: !0, children: [
10
- /* @__PURE__ */ r(l, { gap: "normal", vertical: !0, children: [
11
- /* @__PURE__ */ e(i, { children: "Color Default" }),
12
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(n, { href: "/", children: "Link active" }) }),
13
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(n, { href: "/", disabled: !0, children: "Link disable" }) }),
14
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(n, { href: "/", unstyled: !0, children: "Link unstyled" }) })
9
+ return /* @__PURE__ */ i(d, { gap: "large", vertical: !0, children: [
10
+ /* @__PURE__ */ i(d, { gap: "medium", vertical: !0, children: [
11
+ /* @__PURE__ */ e(r, { children: "Color Default" }),
12
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(l, { href: "/", children: "Link active" }) }),
13
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(l, { href: "/", disabled: !0, children: "Link disable" }) }),
14
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(l, { href: "/", unstyled: !0, children: "Link unstyled" }) })
15
15
  ] }),
16
- /* @__PURE__ */ r(l, { gap: "normal", vertical: !0, children: [
17
- /* @__PURE__ */ e(i, { children: "Color secondary" }),
18
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(n, { href: "/", color: "secondary", children: "Link active" }) }),
19
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(n, { href: "/", color: "secondary", disabled: !0, children: "Link disable" }) })
16
+ /* @__PURE__ */ i(d, { gap: "medium", vertical: !0, children: [
17
+ /* @__PURE__ */ e(r, { children: "Color secondary" }),
18
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(l, { href: "/", color: "secondary", children: "Link active" }) }),
19
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(l, { href: "/", color: "secondary", disabled: !0, children: "Link disable" }) })
20
20
  ] }),
21
- /* @__PURE__ */ r(l, { gap: "normal", vertical: !0, children: [
22
- /* @__PURE__ */ e(i, { children: "Color red" }),
23
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(n, { href: "/", color: "red", children: "Link active" }) }),
24
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(n, { href: "/", color: "red", disabled: !0, children: "Link disable" }) })
21
+ /* @__PURE__ */ i(d, { gap: "medium", vertical: !0, children: [
22
+ /* @__PURE__ */ e(r, { children: "Color red" }),
23
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(l, { href: "/", color: "red", children: "Link active" }) }),
24
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(l, { href: "/", color: "red", disabled: !0, children: "Link disable" }) })
25
25
  ] }),
26
- /* @__PURE__ */ r(l, { gap: "normal", vertical: !0, children: [
27
- /* @__PURE__ */ e(i, { children: "ButtonLink - look like link but its button" }),
26
+ /* @__PURE__ */ i(d, { gap: "medium", vertical: !0, children: [
27
+ /* @__PURE__ */ e(r, { children: "ButtonLink - look like link but its button" }),
28
28
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, { children: "Link active" }) }),
29
29
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, { disabled: !0, children: "Link disable" }) })
30
30
  ] }),
31
- /* @__PURE__ */ r(l, { gap: "normal", vertical: !0, children: [
32
- /* @__PURE__ */ e(i, { children: "Inside text" }),
33
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ r(i, { size: "large", as: "h2", children: [
31
+ /* @__PURE__ */ i(d, { gap: "medium", vertical: !0, children: [
32
+ /* @__PURE__ */ e(r, { children: "Inside text" }),
33
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(r, { size: "large", as: "h2", children: [
34
34
  "Out of link text.",
35
35
  " ",
36
- /* @__PURE__ */ e(n, { href: "/", children: "Link text" })
36
+ /* @__PURE__ */ e(l, { href: "/", children: "Link text" })
37
37
  ] }) })
38
38
  ] }),
39
- /* @__PURE__ */ r(l, { gap: "normal", vertical: !0, children: [
40
- /* @__PURE__ */ e(i, { children: "Inside typographic text" }),
41
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ r(i, { size: "large", as: "h2", typographic: !0, children: [
39
+ /* @__PURE__ */ i(d, { gap: "medium", vertical: !0, children: [
40
+ /* @__PURE__ */ e(r, { children: "Inside typographic text" }),
41
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(r, { size: "large", as: "h2", typographic: !0, children: [
42
42
  "Out of link text.",
43
43
  " ",
44
- /* @__PURE__ */ e(n, { href: "/", children: "Link text" })
44
+ /* @__PURE__ */ e(l, { href: "/", children: "Link text" })
45
45
  ] }) })
46
46
  ] }),
47
- /* @__PURE__ */ r(l, { gap: "normal", vertical: !0, children: [
48
- /* @__PURE__ */ e(i, { children: "Row a tag" }),
47
+ /* @__PURE__ */ i(d, { gap: "medium", vertical: !0, children: [
48
+ /* @__PURE__ */ e(r, { children: "Row a tag" }),
49
49
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("a", { href: "/", children: "Link text" }) })
50
50
  ] }),
51
- /* @__PURE__ */ r(l, { gap: "normal", vertical: !0, children: [
52
- /* @__PURE__ */ e(i, { children: "Row a in text" }),
53
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ r(i, { size: "large", as: "h2", children: [
51
+ /* @__PURE__ */ i(d, { gap: "medium", vertical: !0, children: [
52
+ /* @__PURE__ */ e(r, { children: "Row a in text" }),
53
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(r, { size: "large", as: "h2", children: [
54
54
  "Out of link text.",
55
55
  " ",
56
56
  /* @__PURE__ */ e("a", { href: "/", children: "Link text" })
57
57
  ] }) })
58
58
  ] }),
59
- /* @__PURE__ */ r(l, { gap: "normal", vertical: !0, children: [
60
- /* @__PURE__ */ e(i, { children: "Row a in typographic text" }),
61
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ r(i, { size: "large", as: "h2", typographic: !0, children: [
59
+ /* @__PURE__ */ i(d, { gap: "medium", vertical: !0, children: [
60
+ /* @__PURE__ */ e(r, { children: "Row a in typographic text" }),
61
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(r, { size: "large", as: "h2", typographic: !0, children: [
62
62
  "Out of link text.",
63
63
  " ",
64
64
  /* @__PURE__ */ e("a", { href: "/", children: "Link text" })
@@ -66,7 +66,7 @@ function c() {
66
66
  ] })
67
67
  ] });
68
68
  }
69
- const k = d.memo(c);
69
+ const f = n.memo(c);
70
70
  export {
71
- k as default
71
+ f as default
72
72
  };
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- export type LoafSize = 'small' | 'normal' | 'large';
4
- export type LoafColor = 'normal' | 'gold' | 'error';
3
+ export type LoafSize = 'small' | 'medium' | 'large';
4
+ export type LoafColor = 'default' | 'gold' | 'error';
5
5
  export interface LoafProps {
6
6
  size?: LoafSize;
7
7
  color?: LoafColor;
@@ -1,27 +1,27 @@
1
- import { jsx as e } from "react/jsx-runtime";
1
+ import { jsx as a } from "react/jsx-runtime";
2
2
  import { clsx as t } from "../../utils/clsx.js";
3
- const m = "cfxui__Loaf__root__05393", n = "cfxui__Loaf__bright__6638c", o = {
4
- root: m,
5
- "color-normal": "cfxui__Loaf__color-normal__bec17",
6
- bright: n,
3
+ const u = "cfxui__Loaf__root__05393", m = "cfxui__Loaf__bright__6638c", o = {
4
+ root: u,
5
+ "color-default": "cfxui__Loaf__color-default__5b15b",
6
+ bright: m,
7
7
  "color-gold": "cfxui__Loaf__color-gold__4fa59",
8
8
  "color-error": "cfxui__Loaf__color-error__9887b",
9
9
  "size-small": "cfxui__Loaf__size-small__942f7",
10
- "size-normal": "cfxui__Loaf__size-normal__7b2a1",
10
+ "size-medium": "cfxui__Loaf__size-medium__2679d",
11
11
  "size-large": "cfxui__Loaf__size-large__1679c"
12
12
  };
13
13
  function g(_) {
14
14
  const {
15
- size: r = "normal",
16
- color: c = "normal",
17
- bright: a = !1,
18
- children: l,
19
- className: i,
20
- ref: s
21
- } = _, f = t(o.root, o[`size-${r}`], o[`color-${c}`], i, {
22
- [o.bright]: a
15
+ size: r = "medium",
16
+ color: i = "default",
17
+ bright: c = !1,
18
+ children: f,
19
+ className: e,
20
+ ref: l
21
+ } = _, s = t(o.root, o[`size-${r}`], o[`color-${i}`], e, {
22
+ [o.bright]: c
23
23
  });
24
- return /* @__PURE__ */ e("div", { ref: s, className: f, children: l });
24
+ return /* @__PURE__ */ a("div", { ref: l, className: s, children: f });
25
25
  }
26
26
  export {
27
27
  g as Loaf