@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,33 +1,174 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import r from "react";
3
- import i from "../Box/Box.js";
4
- import "../../utils/ui/ui.js";
5
- import h from "./Checkbox.js";
6
- const n = "cfxui__CheckboxShowcase__root__5c0e0", _ = "cfxui__CheckboxShowcase__checked__e49f9", k = "cfxui__CheckboxShowcase__icon__686ec", e = {
7
- root: n,
8
- checked: _,
9
- icon: k
1
+ import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
+ import a from "react";
3
+ import r from "../Flex/Flex.js";
4
+ import "../Icons/cfx-icons/Close.js";
5
+ import "../Icons/cfx-icons/Controller.js";
6
+ import "../Icons/cfx-icons/Copy.js";
7
+ import "../Icons/cfx-icons/DownArrow.js";
8
+ import "../Icons/cfx-icons/DownChevron.js";
9
+ import "../Icons/cfx-icons/Download.js";
10
+ import "../Icons/cfx-icons/Expand.js";
11
+ import "../Icons/cfx-icons/ExternalLink.js";
12
+ import "../Icons/cfx-icons/Filter.js";
13
+ import "../Icons/cfx-icons/Folder.js";
14
+ import "../Icons/cfx-icons/Heart.js";
15
+ import "../Icons/cfx-icons/HeartFilled.js";
16
+ import "../Icons/cfx-icons/Help.js";
17
+ import "../Icons/cfx-icons/LeftArrow.js";
18
+ import "../Icons/cfx-icons/LeftChevron.js";
19
+ import "../Icons/cfx-icons/Map.js";
20
+ import "../Icons/cfx-icons/Menu.js";
21
+ import "../Icons/cfx-icons/Minus.js";
22
+ import "../Icons/cfx-icons/More.js";
23
+ import "../Icons/cfx-icons/MoreInfo.js";
24
+ import "../Icons/cfx-icons/Pencil.js";
25
+ import "../Icons/cfx-icons/Play.js";
26
+ import "../Icons/cfx-icons/Plus.js";
27
+ import "../Icons/cfx-icons/Radio.js";
28
+ import "../Icons/cfx-icons/Refresh.js";
29
+ import "../Icons/cfx-icons/RightArrow.js";
30
+ import "../Icons/cfx-icons/RightChevron.js";
31
+ import "../Icons/cfx-icons/Search.js";
32
+ import "../Icons/cfx-icons/ServerList.js";
33
+ import "../Icons/cfx-icons/ServerReconnect.js";
34
+ import "../Icons/cfx-icons/Sort.js";
35
+ import "../Icons/cfx-icons/Square.js";
36
+ import "../Icons/cfx-icons/SquareFilled.js";
37
+ import "../Icons/cfx-icons/SquareTick.js";
38
+ import "../Icons/cfx-icons/Stop.js";
39
+ import "../Icons/cfx-icons/Success.js";
40
+ import n from "../Icons/cfx-icons/Tick.js";
41
+ import "../Icons/cfx-icons/Transfer.js";
42
+ import "../Icons/cfx-icons/Trash.js";
43
+ import "../Icons/cfx-icons/Undo.js";
44
+ import "../Icons/cfx-icons/UpArrow.js";
45
+ import "../Icons/cfx-icons/UpChevron.js";
46
+ import "../Icons/cfx-icons/Upload.js";
47
+ import "../Icons/cfx-icons/Users.js";
48
+ import "../Icons/cfx-icons/Visibility.js";
49
+ import "../Icons/cfx-icons/VisibilityOff.js";
50
+ import "../Icons/cfx-icons/Warning.js";
51
+ import "../Icons/cfx-icons/Cart.js";
52
+ import "../Icons/cfx-icons/User.js";
53
+ import "../Icons/cfx-icons/Verified.js";
54
+ import "../Icons/cfx-icons/UpvotesBurst.js";
55
+ import "../Icons/cfx-icons/UpvotesRecurring.js";
56
+ import "../Icons/cfx-iconsXLarge/Close.js";
57
+ import "../Icons/cfx-iconsXLarge/Controller.js";
58
+ import "../Icons/cfx-iconsXLarge/Copy.js";
59
+ import "../Icons/cfx-iconsXLarge/DownArrow.js";
60
+ import "../Icons/cfx-iconsXLarge/DownChevron.js";
61
+ import "../Icons/cfx-iconsXLarge/Download.js";
62
+ import "../Icons/cfx-iconsXLarge/Expand.js";
63
+ import "../Icons/cfx-iconsXLarge/ExternalLink.js";
64
+ import "../Icons/cfx-iconsXLarge/Filter.js";
65
+ import "../Icons/cfx-iconsXLarge/Folder.js";
66
+ import "../Icons/cfx-iconsXLarge/Heart.js";
67
+ import "../Icons/cfx-iconsXLarge/HeartFilled.js";
68
+ import "../Icons/cfx-iconsXLarge/Help.js";
69
+ import "../Icons/cfx-iconsXLarge/LeftArrow.js";
70
+ import "../Icons/cfx-iconsXLarge/LeftChevron.js";
71
+ import "../Icons/cfx-iconsXLarge/Map.js";
72
+ import "../Icons/cfx-iconsXLarge/Menu.js";
73
+ import "../Icons/cfx-iconsXLarge/Minus.js";
74
+ import "../Icons/cfx-iconsXLarge/More.js";
75
+ import "../Icons/cfx-iconsXLarge/MoreInfo.js";
76
+ import "../Icons/cfx-iconsXLarge/Pencil.js";
77
+ import "../Icons/cfx-iconsXLarge/Play.js";
78
+ import "../Icons/cfx-iconsXLarge/Plus.js";
79
+ import "../Icons/cfx-iconsXLarge/Radio.js";
80
+ import "../Icons/cfx-iconsXLarge/Refresh.js";
81
+ import "../Icons/cfx-iconsXLarge/RightArrow.js";
82
+ import "../Icons/cfx-iconsXLarge/RightChevron.js";
83
+ import "../Icons/cfx-iconsXLarge/Search.js";
84
+ import "../Icons/cfx-iconsXLarge/ServerList.js";
85
+ import "../Icons/cfx-iconsXLarge/ServerReconnect.js";
86
+ import "../Icons/cfx-iconsXLarge/Sort.js";
87
+ import "../Icons/cfx-iconsXLarge/Square.js";
88
+ import "../Icons/cfx-iconsXLarge/SquareFilled.js";
89
+ import "../Icons/cfx-iconsXLarge/SquareTick.js";
90
+ import "../Icons/cfx-iconsXLarge/Stop.js";
91
+ import "../Icons/cfx-iconsXLarge/Success.js";
92
+ import "../Icons/cfx-iconsXLarge/Tick.js";
93
+ import "../Icons/cfx-iconsXLarge/Transfer.js";
94
+ import "../Icons/cfx-iconsXLarge/Trash.js";
95
+ import "../Icons/cfx-iconsXLarge/Undo.js";
96
+ import "../Icons/cfx-iconsXLarge/UpArrow.js";
97
+ import "../Icons/cfx-iconsXLarge/UpChevron.js";
98
+ import "../Icons/cfx-iconsXLarge/Upload.js";
99
+ import "../Icons/cfx-iconsXLarge/Users.js";
100
+ import "../Icons/cfx-iconsXLarge/Visibility.js";
101
+ import "../Icons/cfx-iconsXLarge/VisibilityOff.js";
102
+ import "../Icons/cfx-iconsXLarge/Warning.js";
103
+ import "../Icons/cfx-iconsXLarge/Cart.js";
104
+ import "../Icons/cfx-iconsXLarge/User.js";
105
+ import "../Icons/cfx-iconsXLarge/Verified.js";
106
+ import "../Icons/cfx-iconsXLarge/UpvotesBurst.js";
107
+ import "../Icons/cfx-iconsXLarge/UpvotesRecurring.js";
108
+ import t from "./Checkbox.js";
109
+ const h = "cfxui__CheckboxShowcase__root__5c0e0", d = "cfxui__CheckboxShowcase__checked__e49f9", s = "cfxui__CheckboxShowcase__icon__686ec", m = {
110
+ root: h,
111
+ checked: d,
112
+ icon: s
10
113
  };
11
- function l(s) {
12
- const [a, c] = r.useState(!1);
13
- return /* @__PURE__ */ o(i, { p: 2, children: /* @__PURE__ */ o(
14
- h,
15
- {
16
- ...s,
17
- id: "checkbox1",
18
- name: "checkbox1",
19
- checked: a,
20
- onCheckedChange: c,
21
- onClick: () => c((t) => !t),
22
- size: "normal",
23
- rootClassName: e.root,
24
- indicatorClassName: e.indicator,
25
- iconClassName: e.icon,
26
- checkedClassName: e.checked,
27
- squareClassName: e.square
28
- }
29
- ) });
114
+ function ki(l) {
115
+ const [e, p] = a.useState(!1);
116
+ return /* @__PURE__ */ i(r, { direction: "column", gap: "large", children: [
117
+ /* @__PURE__ */ i(r, { direction: "column", gap: "small", children: [
118
+ /* @__PURE__ */ o("h4", { children: "Small" }),
119
+ /* @__PURE__ */ o(t, { size: "small" })
120
+ ] }),
121
+ /* @__PURE__ */ i(r, { direction: "column", gap: "small", children: [
122
+ /* @__PURE__ */ o("h4", { children: "Medium" }),
123
+ /* @__PURE__ */ o(t, { size: "medium" })
124
+ ] }),
125
+ /* @__PURE__ */ i(r, { direction: "column", gap: "small", children: [
126
+ /* @__PURE__ */ o("h4", { children: "Large" }),
127
+ /* @__PURE__ */ o(t, { size: "large" })
128
+ ] }),
129
+ /* @__PURE__ */ i(r, { direction: "column", gap: "small", children: [
130
+ /* @__PURE__ */ o("h4", { children: "Color Accent" }),
131
+ /* @__PURE__ */ o(t, { color: "accent" })
132
+ ] }),
133
+ /* @__PURE__ */ i(r, { direction: "column", gap: "small", children: [
134
+ /* @__PURE__ */ o("h4", { children: "Tick" }),
135
+ /* @__PURE__ */ o(t, { iconIndicator: n })
136
+ ] }),
137
+ /* @__PURE__ */ i(r, { direction: "column", gap: "small", children: [
138
+ /* @__PURE__ */ o("h4", { children: "Secondary" }),
139
+ /* @__PURE__ */ o(
140
+ t,
141
+ {
142
+ iconIndicator: n,
143
+ theme: "secondary",
144
+ onCheckedChange: p,
145
+ onClick: () => p((c) => !c),
146
+ checked: e
147
+ }
148
+ )
149
+ ] }),
150
+ /* @__PURE__ */ i(r, { direction: "column", gap: "small", children: [
151
+ /* @__PURE__ */ o("h4", { children: "Custom" }),
152
+ /* @__PURE__ */ o(
153
+ t,
154
+ {
155
+ ...l,
156
+ id: "checkbox1",
157
+ name: "checkbox1",
158
+ checked: e,
159
+ onCheckedChange: p,
160
+ onClick: () => p((c) => !c),
161
+ size: "medium",
162
+ rootClassName: m.root,
163
+ indicatorClassName: m.indicator,
164
+ iconClassName: m.icon,
165
+ checkedClassName: m.checked,
166
+ squareClassName: m.square
167
+ }
168
+ )
169
+ ] })
170
+ ] });
30
171
  }
31
172
  export {
32
- l as default
173
+ ki as default
33
174
  };
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- export type ControlBoxSize = 'small' | 'normal' | 'large';
3
+ export type ControlBoxSize = 'small' | 'medium' | 'large';
4
4
  export interface ControlBoxProps {
5
5
  size?: ControlBoxSize;
6
6
  className?: string;
@@ -1,23 +1,23 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import c from "react";
3
- import { clsx as m } from "../../utils/clsx.js";
4
- const e = "cfxui__ControlBox__root__6a08c", x = "cfxui__ControlBox__small__8beb2", f = "cfxui__ControlBox__normal__e3aa5", i = "cfxui__ControlBox__large__1039d", o = {
5
- root: e,
6
- small: x,
7
- normal: f,
8
- large: i
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import e from "react";
3
+ import { clsx as n } from "../../utils/clsx.js";
4
+ const a = "cfxui__ControlBox__root__6a08c", i = "cfxui__ControlBox__small__8beb2", x = "cfxui__ControlBox__medium__628cd", u = "cfxui__ControlBox__large__1039d", o = {
5
+ root: a,
6
+ small: i,
7
+ medium: x,
8
+ large: u
9
9
  };
10
- function u(r) {
10
+ function f(t) {
11
11
  const {
12
- size: t = "normal",
13
- className: l,
14
- children: _,
15
- ref: a
16
- } = r, n = m(o.root, l, o[t]);
17
- return /* @__PURE__ */ s("div", { ref: a, className: n, children: _ });
12
+ size: _ = "medium",
13
+ className: r,
14
+ children: l,
15
+ ref: m
16
+ } = t, s = n(o.root, r, o[_]);
17
+ return /* @__PURE__ */ c("div", { ref: m, className: s, children: l });
18
18
  }
19
- const p = c.memo(u);
19
+ const p = e.memo(f);
20
20
  export {
21
- u as ControlBox,
21
+ f as ControlBox,
22
22
  p as default
23
23
  };
@@ -6,7 +6,7 @@ import { Scrollable as c } from "../Scrollable/Scrollable.js";
6
6
  import { Text as r } from "../Text/Text.js";
7
7
  import "../../utils/ui/ui.js";
8
8
  import { DataTable as o } from "./DataTable.js";
9
- const n = [
9
+ const i = [
10
10
  [
11
11
  "Cell 1",
12
12
  "Cell 2",
@@ -26,7 +26,7 @@ const n = [
26
26
  ["Cell 7", "Cell 8", "Cell 9", new Date(2023, 2, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "3")],
27
27
  ["Cell 4", "Cell 5", "Cell 6", new Date(2023, 1, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "2")],
28
28
  ["Cell 7", "Cell 8", "Cell 9", new Date(2023, 2, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "3")]
29
- ], i = [
29
+ ], n = [
30
30
  { text: "Header 1" },
31
31
  { text: "Header 2" },
32
32
  { text: "Header 3" },
@@ -35,9 +35,9 @@ const n = [
35
35
  ];
36
36
  function C() {
37
37
  return /* @__PURE__ */ t(a, { gap: "large", vertical: !0, children: [
38
- /* @__PURE__ */ t(a, { gap: "normal", vertical: !0, children: [
38
+ /* @__PURE__ */ t(a, { gap: "medium", vertical: !0, children: [
39
39
  /* @__PURE__ */ e(r, { children: "Table" }),
40
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(o, { headers: i, data: n }) })
40
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(o, { headers: n, data: i }) })
41
41
  ] }),
42
42
  /* @__PURE__ */ t(a, { fullWidth: !0, vertical: !0, children: [
43
43
  /* @__PURE__ */ e(r, { children: "Table with scroll" }),
@@ -48,7 +48,7 @@ function C() {
48
48
  height: "400px",
49
49
  overflow: "hidden"
50
50
  },
51
- children: /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(o, { includeRadio: !0, headers: i, data: n }) })
51
+ children: /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(o, { includeRadio: !0, headers: n, data: i }) })
52
52
  }
53
53
  )
54
54
  ] })
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { GetColorProps } from '../../utils/color';
3
3
 
4
- export type DotSize = 'small' | 'normal' | 'large';
4
+ export type DotSize = 'small' | 'medium' | 'large';
5
5
  export interface DotProps extends GetColorProps {
6
6
  size?: DotSize;
7
7
  className?: string;
@@ -1,28 +1,28 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { clsx as l } from "../../utils/clsx.js";
3
- import { getColor as a } from "../../utils/color.js";
4
- const m = "cfxui__Dot__root__9bed3", r = {
5
- root: m,
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { clsx as m } from "../../utils/clsx.js";
3
+ import { getColor as c } from "../../utils/color.js";
4
+ const l = "cfxui__Dot__root__9bed3", _ = {
5
+ root: l,
6
6
  "size-small": "cfxui__Dot__size-small__b7d03",
7
- "size-normal": "cfxui__Dot__size-normal__e73b3",
7
+ "size-medium": "cfxui__Dot__size-medium__27fc4",
8
8
  "size-large": "cfxui__Dot__size-large__4fe0a"
9
9
  };
10
10
  function z(o) {
11
11
  const {
12
- color: _ = "primary",
13
- size: e = "normal",
14
- className: s,
15
- ref: t
12
+ color: e = "primary",
13
+ size: i = "medium",
14
+ className: r,
15
+ ref: s
16
16
  } = o;
17
- return /* @__PURE__ */ i(
17
+ return /* @__PURE__ */ t(
18
18
  "div",
19
19
  {
20
- ref: t,
21
- className: l(r.root, r[`size-${e}`], s),
20
+ ref: s,
21
+ className: m(_.root, _[`size-${i}`], r),
22
22
  style: {
23
- backgroundColor: a({
23
+ backgroundColor: c({
24
24
  ...o,
25
- color: _
25
+ color: e
26
26
  })
27
27
  }
28
28
  }
@@ -1,24 +1,20 @@
1
1
  import { default as React } from 'react';
2
- import { InputSize } from '../Input';
3
- import { ResponsiveValueType } from '../../utils/ui';
4
2
 
5
3
  export interface DropdownOption<T extends string> {
6
4
  value: T;
7
5
  label: React.ReactNode;
8
6
  disabled?: boolean;
9
7
  }
10
- export type ExtraClassNameTyape = 'content' | 'trigger';
8
+ export type ExtraClassNameType = 'content' | 'trigger';
11
9
  export type DropdownContentOption = DropdownOption<string>;
12
10
  export interface DropdownContentProps {
13
11
  options: DropdownContentOption[];
14
12
  className?: string;
15
13
  itemClassName?: string;
16
14
  triggerWidth?: React.CSSProperties['width'];
17
- size?: ResponsiveValueType<InputSize>;
18
15
  fullWidth?: boolean;
19
16
  onSelect: (value: string) => void;
20
17
  }
21
- export declare function getDropdownContentSizeClassNames(size?: DropdownContentProps['size'], extraClassName?: ExtraClassNameTyape): string;
22
18
  declare function DropdownContent(props: DropdownContentProps): import("react/jsx-runtime").JSX.Element;
23
19
  declare const _default: React.MemoExoticComponent<typeof DropdownContent>;
24
20
  export default _default;
@@ -1,9 +1,8 @@
1
1
  import "react/jsx-runtime";
2
- import { D as a, g as i } from "../../DropdownContent-MvHlrWi6.js";
2
+ import { D as a } from "../../DropdownContent-BMfQCuaP.js";
3
3
  import "react";
4
4
  import "../../utils/clsx.js";
5
5
  import "../../utils/ui/ui.js";
6
6
  export {
7
- a as default,
8
- i as getDropdownContentSizeClassNames
7
+ a as default
9
8
  };
@@ -1,2 +1,2 @@
1
- export { default as DropdownContent, getDropdownContentSizeClassNames, } from './DropdownContent';
1
+ export { default as DropdownContent } from './DropdownContent';
2
2
  export type { DropdownContentProps, DropdownContentOption, } from './DropdownContent';
@@ -1,5 +1,4 @@
1
- import { D as n, g as t } from "../../DropdownContent-MvHlrWi6.js";
1
+ import { D as r } from "../../DropdownContent-BMfQCuaP.js";
2
2
  export {
3
- n as DropdownContent,
4
- t as getDropdownContentSizeClassNames
3
+ r as DropdownContent
5
4
  };
@@ -1,9 +1,8 @@
1
1
  import { default as React } from 'react';
2
2
  import { DropdownContentProps } from '../DropdownContent';
3
3
 
4
- export interface DropdownMenuProps extends React.PropsWithChildren, Omit<DropdownContentProps, 'className' | 'size'> {
4
+ export interface DropdownMenuProps extends React.PropsWithChildren, Omit<DropdownContentProps, 'className'> {
5
5
  contentClassName?: string;
6
- contentSize?: DropdownContentProps['size'];
7
6
  dir?: 'ltr' | 'rtl';
8
7
  }
9
8
  declare function DropdownMenu(props: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
@@ -1,33 +1,31 @@
1
1
  import { jsxs as d, jsx as o } from "react/jsx-runtime";
2
- import { R as m, T as p, D as f } from "../../DropdownContent-MvHlrWi6.js";
3
- import u from "react";
4
- function h(t) {
2
+ import { R as m, T as c, D as p } from "../../DropdownContent-BMfQCuaP.js";
3
+ import f from "react";
4
+ function u(t) {
5
5
  const {
6
- options: e,
7
- onSelect: r,
6
+ options: r,
7
+ onSelect: e,
8
8
  contentClassName: n,
9
- contentSize: s,
10
- fullWidth: a = !1,
11
- dir: i = "ltr",
9
+ fullWidth: s = !1,
10
+ dir: a = "ltr",
12
11
  children: l,
13
- ...c
12
+ ...i
14
13
  } = t;
15
- return /* @__PURE__ */ d(m, { dir: i, children: [
16
- /* @__PURE__ */ o(p, { asChild: !0, children: l }),
14
+ return /* @__PURE__ */ d(m, { dir: a, children: [
15
+ /* @__PURE__ */ o(c, { asChild: !0, children: l }),
17
16
  /* @__PURE__ */ o(
18
- f,
17
+ p,
19
18
  {
20
- options: e,
21
- size: s,
22
- fullWidth: a,
23
- onSelect: r,
19
+ options: r,
20
+ fullWidth: s,
21
+ onSelect: e,
24
22
  className: n,
25
- ...c
23
+ ...i
26
24
  }
27
25
  )
28
26
  ] });
29
27
  }
30
- const C = u.memo(h);
28
+ const x = f.memo(u);
31
29
  export {
32
- C as default
30
+ x as default
33
31
  };
@@ -1,16 +1,11 @@
1
1
  import { default as React } from 'react';
2
2
  import { DropdownContentOption } from '../DropdownContent';
3
- import { IconSize } from '../Icon';
4
- import { InputSize } from '../Input';
5
- import { ResponsiveValueType } from '../../utils/ui';
6
3
 
7
- export declare const ICON_SIZE_MAP: Record<InputSize, IconSize>;
8
4
  export interface DropdownSelectProps<T = string> {
9
5
  options: DropdownContentOption[];
10
6
  value?: T;
11
7
  onChange: (value: T) => void;
12
8
  placeholder?: React.ReactNode;
13
- size?: ResponsiveValueType<InputSize>;
14
9
  disabled?: boolean;
15
10
  ref?: React.Ref<HTMLButtonElement>;
16
11
  fullWidth?: boolean;
@@ -1,84 +1,76 @@
1
- import { jsxs as f, jsx as l } from "react/jsx-runtime";
2
- import { g as W, R as N, T as R, D as v } from "../../DropdownContent-MvHlrWi6.js";
3
- import _, { useRef as b, useState as z, useEffect as I } from "react";
4
- import T from "../Flex/Flex.js";
5
- import { clsx as j } from "../../utils/clsx.js";
6
- import { Icon as y } from "../Icon/Icon.js";
7
- import { mergeRefs as E } from "../../utils/mergeRefs.js";
8
- const M = "cfxui__DropdownSelect__icon__d05b8", O = "cfxui__DropdownSelect__trigger__c03df", k = "cfxui__DropdownSelect__onlight__f0191", A = "cfxui__DropdownSelect__fullWidth__dce56", B = "cfxui__DropdownSelect__placeholder__e0d89", e = {
9
- icon: M,
10
- trigger: O,
11
- onlight: k,
12
- fullWidth: A,
13
- placeholder: B
14
- }, K = {
15
- small: "xxsmall",
16
- normal: "xsmall",
17
- large: "normal"
1
+ import { jsxs as f, jsx as r } from "react/jsx-runtime";
2
+ import { R as D, T as W, D as C } from "../../DropdownContent-BMfQCuaP.js";
3
+ import a, { useRef as R, useState as v, useEffect as b } from "react";
4
+ import N from "../Flex/Flex.js";
5
+ import { clsx as T } from "../../utils/clsx.js";
6
+ import { Icon as j } from "../Icon/Icon.js";
7
+ import { mergeRefs as y } from "../../utils/mergeRefs.js";
8
+ const k = "cfxui__DropdownSelect__icon__d05b8", B = "cfxui__DropdownSelect__trigger__c03df", E = "cfxui__DropdownSelect__onlight__f0191", F = "cfxui__DropdownSelect__fullWidth__dce56", I = "cfxui__DropdownSelect__placeholder__e0d89", e = {
9
+ icon: k,
10
+ trigger: B,
11
+ onlight: E,
12
+ fullWidth: F,
13
+ placeholder: I
18
14
  };
19
- function L(g) {
15
+ function J(_) {
20
16
  const {
21
- options: r,
17
+ options: l,
22
18
  value: t,
23
- onChange: c,
24
- size: i = "normal",
19
+ onChange: i,
25
20
  fullWidth: o = !1,
26
- onlight: m = !1,
27
- disabled: p,
28
- placeholder: u = "Select...",
21
+ onlight: u = !1,
22
+ disabled: g,
23
+ placeholder: p = "Select...",
29
24
  ref: h,
30
- name: a
31
- } = g, n = b(null), [x, S] = z(void 0), w = W(i, "trigger"), C = j(
32
- w,
25
+ name: s
26
+ } = _, n = R(null), [m, x] = v(void 0), S = T(
33
27
  e.trigger,
34
28
  {
35
29
  [e.placeholder]: !t,
36
30
  [e.fullWidth]: o,
37
- [e.onlight]: m
31
+ [e.onlight]: u
38
32
  }
39
- ), D = _.useCallback((s) => {
40
- c(s);
41
- }, [c]), d = _.useMemo(
42
- () => r.find((s) => s.value === t),
43
- [r, t]
33
+ ), w = a.useCallback((c) => {
34
+ i(c);
35
+ }, [i]), d = a.useMemo(
36
+ () => l.find((c) => c.value === t),
37
+ [l, t]
44
38
  );
45
- return I(() => {
46
- o && n.current && S(n.current.offsetWidth);
47
- }, [o]), /* @__PURE__ */ f(N, { children: [
48
- a && /* @__PURE__ */ l(
39
+ return b(() => {
40
+ o && n.current && x(n.current.offsetWidth);
41
+ }, [o]), /* @__PURE__ */ f(D, { children: [
42
+ s && /* @__PURE__ */ r(
49
43
  "input",
50
44
  {
51
45
  type: "hidden",
52
- name: a,
46
+ name: s,
53
47
  value: t
54
48
  }
55
49
  ),
56
- /* @__PURE__ */ l(
57
- R,
50
+ /* @__PURE__ */ r(
51
+ W,
58
52
  {
59
- ref: E(h, n),
60
- className: C,
61
- disabled: p,
62
- children: /* @__PURE__ */ f(T, { gap: "small", centered: !0, spaceBetween: !0, children: [
63
- d !== void 0 ? d.label : u,
64
- /* @__PURE__ */ l(y, { className: e.icon, name: "DownChevron" })
53
+ ref: y(h, n),
54
+ className: S,
55
+ disabled: g,
56
+ children: /* @__PURE__ */ f(N, { gap: "small", centered: !0, spaceBetween: !0, children: [
57
+ d !== void 0 ? d.label : p,
58
+ /* @__PURE__ */ r(j, { className: e.icon, name: "DownChevron" })
65
59
  ] })
66
60
  }
67
61
  ),
68
- /* @__PURE__ */ l(
69
- v,
62
+ /* @__PURE__ */ r(
63
+ C,
70
64
  {
71
- triggerWidth: x,
72
- options: r,
73
- size: i,
65
+ triggerWidth: m,
66
+ options: l,
74
67
  fullWidth: o,
75
- onSelect: D
68
+ onSelect: w
76
69
  }
77
70
  )
78
71
  ] });
79
72
  }
80
73
  export {
81
- L as DropdownSelect,
82
- K as ICON_SIZE_MAP,
83
- L as default
74
+ J as DropdownSelect,
75
+ J as default
84
76
  };