@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
@@ -0,0 +1,110 @@
1
+ import r from "./components/Icons/cfx-icons/Close.js";
2
+ import o from "./components/Icons/cfx-icons/Controller.js";
3
+ import m from "./components/Icons/cfx-icons/Copy.js";
4
+ import t from "./components/Icons/cfx-icons/DownArrow.js";
5
+ import i from "./components/Icons/cfx-icons/DownChevron.js";
6
+ import p from "./components/Icons/cfx-icons/Download.js";
7
+ import f from "./components/Icons/cfx-icons/Expand.js";
8
+ import e from "./components/Icons/cfx-icons/ExternalLink.js";
9
+ import n from "./components/Icons/cfx-icons/Filter.js";
10
+ import l from "./components/Icons/cfx-icons/Folder.js";
11
+ import a from "./components/Icons/cfx-icons/Heart.js";
12
+ import s from "./components/Icons/cfx-icons/HeartFilled.js";
13
+ import c from "./components/Icons/cfx-icons/Help.js";
14
+ import u from "./components/Icons/cfx-icons/LeftArrow.js";
15
+ import d from "./components/Icons/cfx-icons/LeftChevron.js";
16
+ import S from "./components/Icons/cfx-icons/Map.js";
17
+ import h from "./components/Icons/cfx-icons/Menu.js";
18
+ import v from "./components/Icons/cfx-icons/Minus.js";
19
+ import C from "./components/Icons/cfx-icons/More.js";
20
+ import U from "./components/Icons/cfx-icons/MoreInfo.js";
21
+ import w from "./components/Icons/cfx-icons/Pencil.js";
22
+ import g from "./components/Icons/cfx-icons/Play.js";
23
+ import y from "./components/Icons/cfx-icons/Plus.js";
24
+ import M from "./components/Icons/cfx-icons/Radio.js";
25
+ import R from "./components/Icons/cfx-icons/Refresh.js";
26
+ import b from "./components/Icons/cfx-icons/RightArrow.js";
27
+ import T from "./components/Icons/cfx-icons/RightChevron.js";
28
+ import A from "./components/Icons/cfx-icons/Search.js";
29
+ import F from "./components/Icons/cfx-icons/ServerList.js";
30
+ import L from "./components/Icons/cfx-icons/ServerReconnect.js";
31
+ import P from "./components/Icons/cfx-icons/Sort.js";
32
+ import _ from "./components/Icons/cfx-icons/Square.js";
33
+ import k from "./components/Icons/cfx-icons/SquareFilled.js";
34
+ import q from "./components/Icons/cfx-icons/SquareTick.js";
35
+ import x from "./components/Icons/cfx-icons/Stop.js";
36
+ import D from "./components/Icons/cfx-icons/Success.js";
37
+ import H from "./components/Icons/cfx-icons/Tick.js";
38
+ import I from "./components/Icons/cfx-icons/Transfer.js";
39
+ import O from "./components/Icons/cfx-icons/Trash.js";
40
+ import V from "./components/Icons/cfx-icons/Undo.js";
41
+ import j from "./components/Icons/cfx-icons/UpArrow.js";
42
+ import E from "./components/Icons/cfx-icons/UpChevron.js";
43
+ import z from "./components/Icons/cfx-icons/Upload.js";
44
+ import B from "./components/Icons/cfx-icons/Users.js";
45
+ import W from "./components/Icons/cfx-icons/Visibility.js";
46
+ import G from "./components/Icons/cfx-icons/VisibilityOff.js";
47
+ import J from "./components/Icons/cfx-icons/Warning.js";
48
+ import K from "./components/Icons/cfx-icons/Cart.js";
49
+ import N from "./components/Icons/cfx-icons/User.js";
50
+ import Q from "./components/Icons/cfx-icons/Verified.js";
51
+ import X from "./components/Icons/cfx-icons/UpvotesBurst.js";
52
+ import Y from "./components/Icons/cfx-icons/UpvotesRecurring.js";
53
+ const Xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
54
+ __proto__: null,
55
+ Cart: K,
56
+ Close: r,
57
+ Controller: o,
58
+ Copy: m,
59
+ DownArrow: t,
60
+ DownChevron: i,
61
+ Download: p,
62
+ Expand: f,
63
+ ExternalLink: e,
64
+ Filter: n,
65
+ Folder: l,
66
+ Heart: a,
67
+ HeartFilled: s,
68
+ Help: c,
69
+ LeftArrow: u,
70
+ LeftChevron: d,
71
+ Map: S,
72
+ Menu: h,
73
+ Minus: v,
74
+ More: C,
75
+ MoreInfo: U,
76
+ Pencil: w,
77
+ Play: g,
78
+ Plus: y,
79
+ Radio: M,
80
+ Refresh: R,
81
+ RightArrow: b,
82
+ RightChevron: T,
83
+ Search: A,
84
+ ServerList: F,
85
+ ServerReconnect: L,
86
+ Sort: P,
87
+ Square: _,
88
+ SquareFilled: k,
89
+ SquareTick: q,
90
+ Stop: x,
91
+ Success: D,
92
+ Tick: H,
93
+ Transfer: I,
94
+ Trash: O,
95
+ Undo: V,
96
+ UpArrow: j,
97
+ UpChevron: E,
98
+ Upload: z,
99
+ UpvotesBurst: X,
100
+ UpvotesRecurring: Y,
101
+ User: N,
102
+ Users: B,
103
+ Verified: Q,
104
+ Visibility: W,
105
+ VisibilityOff: G,
106
+ Warning: J
107
+ }, Symbol.toStringTag, { value: "Module" }));
108
+ export {
109
+ Xr as I
110
+ };
@@ -0,0 +1,110 @@
1
+ import r from "./components/Icons/cfx-iconsXLarge/Close.js";
2
+ import o from "./components/Icons/cfx-iconsXLarge/Controller.js";
3
+ import m from "./components/Icons/cfx-iconsXLarge/Copy.js";
4
+ import t from "./components/Icons/cfx-iconsXLarge/DownArrow.js";
5
+ import i from "./components/Icons/cfx-iconsXLarge/DownChevron.js";
6
+ import p from "./components/Icons/cfx-iconsXLarge/Download.js";
7
+ import f from "./components/Icons/cfx-iconsXLarge/Expand.js";
8
+ import e from "./components/Icons/cfx-iconsXLarge/ExternalLink.js";
9
+ import n from "./components/Icons/cfx-iconsXLarge/Filter.js";
10
+ import l from "./components/Icons/cfx-iconsXLarge/Folder.js";
11
+ import a from "./components/Icons/cfx-iconsXLarge/Heart.js";
12
+ import s from "./components/Icons/cfx-iconsXLarge/HeartFilled.js";
13
+ import c from "./components/Icons/cfx-iconsXLarge/Help.js";
14
+ import u from "./components/Icons/cfx-iconsXLarge/LeftArrow.js";
15
+ import d from "./components/Icons/cfx-iconsXLarge/LeftChevron.js";
16
+ import S from "./components/Icons/cfx-iconsXLarge/Map.js";
17
+ import h from "./components/Icons/cfx-iconsXLarge/Menu.js";
18
+ import v from "./components/Icons/cfx-iconsXLarge/Minus.js";
19
+ import C from "./components/Icons/cfx-iconsXLarge/More.js";
20
+ import U from "./components/Icons/cfx-iconsXLarge/MoreInfo.js";
21
+ import g from "./components/Icons/cfx-iconsXLarge/Pencil.js";
22
+ import w from "./components/Icons/cfx-iconsXLarge/Play.js";
23
+ import y from "./components/Icons/cfx-iconsXLarge/Plus.js";
24
+ import M from "./components/Icons/cfx-iconsXLarge/Radio.js";
25
+ import R from "./components/Icons/cfx-iconsXLarge/Refresh.js";
26
+ import b from "./components/Icons/cfx-iconsXLarge/RightArrow.js";
27
+ import L from "./components/Icons/cfx-iconsXLarge/RightChevron.js";
28
+ import T from "./components/Icons/cfx-iconsXLarge/Search.js";
29
+ import A from "./components/Icons/cfx-iconsXLarge/ServerList.js";
30
+ import F from "./components/Icons/cfx-iconsXLarge/ServerReconnect.js";
31
+ import P from "./components/Icons/cfx-iconsXLarge/Sort.js";
32
+ import _ from "./components/Icons/cfx-iconsXLarge/Square.js";
33
+ import k from "./components/Icons/cfx-iconsXLarge/SquareFilled.js";
34
+ import q from "./components/Icons/cfx-iconsXLarge/SquareTick.js";
35
+ import x from "./components/Icons/cfx-iconsXLarge/Stop.js";
36
+ import D from "./components/Icons/cfx-iconsXLarge/Success.js";
37
+ import H from "./components/Icons/cfx-iconsXLarge/Tick.js";
38
+ import I from "./components/Icons/cfx-iconsXLarge/Transfer.js";
39
+ import O from "./components/Icons/cfx-iconsXLarge/Trash.js";
40
+ import V from "./components/Icons/cfx-iconsXLarge/Undo.js";
41
+ import j from "./components/Icons/cfx-iconsXLarge/UpArrow.js";
42
+ import E from "./components/Icons/cfx-iconsXLarge/UpChevron.js";
43
+ import z from "./components/Icons/cfx-iconsXLarge/Upload.js";
44
+ import B from "./components/Icons/cfx-iconsXLarge/Users.js";
45
+ import W from "./components/Icons/cfx-iconsXLarge/Visibility.js";
46
+ import X from "./components/Icons/cfx-iconsXLarge/VisibilityOff.js";
47
+ import G from "./components/Icons/cfx-iconsXLarge/Warning.js";
48
+ import J from "./components/Icons/cfx-iconsXLarge/Cart.js";
49
+ import K from "./components/Icons/cfx-iconsXLarge/User.js";
50
+ import N from "./components/Icons/cfx-iconsXLarge/Verified.js";
51
+ import Q from "./components/Icons/cfx-iconsXLarge/UpvotesBurst.js";
52
+ import Y from "./components/Icons/cfx-iconsXLarge/UpvotesRecurring.js";
53
+ const Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
54
+ __proto__: null,
55
+ Cart: J,
56
+ Close: r,
57
+ Controller: o,
58
+ Copy: m,
59
+ DownArrow: t,
60
+ DownChevron: i,
61
+ Download: p,
62
+ Expand: f,
63
+ ExternalLink: e,
64
+ Filter: n,
65
+ Folder: l,
66
+ Heart: a,
67
+ HeartFilled: s,
68
+ Help: c,
69
+ LeftArrow: u,
70
+ LeftChevron: d,
71
+ Map: S,
72
+ Menu: h,
73
+ Minus: v,
74
+ More: C,
75
+ MoreInfo: U,
76
+ Pencil: g,
77
+ Play: w,
78
+ Plus: y,
79
+ Radio: M,
80
+ Refresh: R,
81
+ RightArrow: b,
82
+ RightChevron: L,
83
+ Search: T,
84
+ ServerList: A,
85
+ ServerReconnect: F,
86
+ Sort: P,
87
+ Square: _,
88
+ SquareFilled: k,
89
+ SquareTick: q,
90
+ Stop: x,
91
+ Success: D,
92
+ Tick: H,
93
+ Transfer: I,
94
+ Trash: O,
95
+ Undo: V,
96
+ UpArrow: j,
97
+ UpChevron: E,
98
+ Upload: z,
99
+ UpvotesBurst: Q,
100
+ UpvotesRecurring: Y,
101
+ User: K,
102
+ Users: B,
103
+ Verified: N,
104
+ Visibility: W,
105
+ VisibilityOff: X,
106
+ Warning: G
107
+ }, Symbol.toStringTag, { value: "Module" }));
108
+ export {
109
+ Qr as I
110
+ };
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
- import { IconName } from '../Icon';
3
2
  import { BoxDisplayType } from '../RSC/Box/Box.types';
4
3
 
5
4
  export interface AccordionProps {
@@ -10,8 +9,6 @@ export declare const AccordionItem: React.FC<React.PropsWithChildren>;
10
9
  export declare const AccordionHeader: React.FC<React.PropsWithChildren>;
11
10
  export interface AccordionTriggerProps {
12
11
  text: string;
13
- iconLeft?: IconName;
14
- iconLeftClassName?: string;
15
12
  iconRightClassName?: string;
16
13
  className?: string;
17
14
  textClassName?: string;
@@ -1,174 +1,170 @@
1
- import { jsx as i, jsxs as D } from "react/jsx-runtime";
1
+ import { jsx as d, jsxs as T } from "react/jsx-runtime";
2
2
  import e from "react";
3
- import { Icon as y } from "../Icon/Icon.js";
4
- import { Text as N } from "../Text/Text.js";
5
- import { ui as E } from "../../utils/ui/ui.js";
3
+ import { Icon as N } from "../Icon/Icon.js";
4
+ import { Text as v } from "../Text/Text.js";
5
+ import { ui as k } from "../../utils/ui/ui.js";
6
6
  import { clsx as g } from "../../utils/clsx.js";
7
- import { debounce as L } from "../../utils/execution.js";
8
- import { minmax as U } from "../../utils/math.js";
9
- const F = "cfxui__Accordion__iconFlip__367de", $ = "cfxui__Accordion__triggerContainer__b92c1", S = "cfxui__Accordion__iconUp__28d27", W = "cfxui__Accordion__iconDown__b9e95", z = "cfxui__Accordion__text__03dc4", H = "cfxui__Accordion__iconLeft__e348b", M = "cfxui__Accordion__iconRight__bbf0c", O = "cfxui__Accordion__content__5ecaf", j = "cfxui__Accordion__contentText__1384b", B = "cfxui__Accordion__open__ed604", K = "cfxui__Accordion__closed__be897", o = {
10
- iconFlip: F,
11
- triggerContainer: $,
12
- iconUp: S,
13
- iconDown: W,
14
- text: z,
15
- iconLeft: H,
16
- iconRight: M,
17
- content: O,
18
- contentText: j,
19
- open: B,
20
- closed: K
21
- }, I = e.createContext(void 0), Z = function(r) {
7
+ import { debounce as D } from "../../utils/execution.js";
8
+ import { minmax as E } from "../../utils/math.js";
9
+ const U = "cfxui__Accordion__iconFlip__367de", F = "cfxui__Accordion__triggerContainer__b92c1", $ = "cfxui__Accordion__iconUp__28d27", S = "cfxui__Accordion__iconDown__b9e95", W = "cfxui__Accordion__text__03dc4", z = "cfxui__Accordion__iconRight__bbf0c", H = "cfxui__Accordion__content__5ecaf", M = "cfxui__Accordion__contentText__1384b", O = "cfxui__Accordion__open__ed604", j = "cfxui__Accordion__closed__be897", t = {
10
+ iconFlip: U,
11
+ triggerContainer: F,
12
+ iconUp: $,
13
+ iconDown: S,
14
+ text: W,
15
+ iconRight: z,
16
+ content: H,
17
+ contentText: M,
18
+ open: O,
19
+ closed: j
20
+ }, w = e.createContext(void 0), Q = function(i) {
22
21
  const {
23
- children: s,
24
- className: h
25
- } = r, [p, x] = e.useState({}), [_, l] = e.useState(null), c = e.useRef(null), d = e.useCallback((t) => {
26
- x((u) => ({
27
- ...u,
28
- [t]: !u[t]
22
+ children: r,
23
+ className: x
24
+ } = i, [h, p] = e.useState({}), [m, s] = e.useState(null), n = e.useRef(null), u = e.useCallback((a) => {
25
+ p((c) => ({
26
+ ...c,
27
+ [a]: !c[a]
29
28
  }));
30
- }, []), n = e.useCallback((t) => {
31
- x((u) => ({
32
- ...u,
33
- [t]: !1
29
+ }, []), l = e.useCallback((a) => {
30
+ p((c) => ({
31
+ ...c,
32
+ [a]: !1
34
33
  }));
35
34
  }, []), f = e.useMemo(() => ({
36
- openItems: p,
37
- toggleItem: d,
38
- closeItem: n,
39
- rootWidth: _
35
+ openItems: h,
36
+ toggleItem: u,
37
+ closeItem: l,
38
+ rootWidth: m
40
39
  }), [
41
- p,
42
- d,
43
- n,
44
- _
45
- ]), m = e.useCallback(() => {
46
- c.current && l(c.current.getBoundingClientRect().width);
47
- }, []), a = e.useMemo(() => L(m, 250), [m]);
48
- return e.useEffect(() => (window.addEventListener("resize", a), () => {
49
- window.removeEventListener("resize", a);
50
- }), [a]), /* @__PURE__ */ i(I.Provider, { value: f, children: /* @__PURE__ */ i("div", { ref: c, className: h, role: "presentation", children: s }) });
51
- }, v = e.createContext(""), ee = function({
52
- children: r
40
+ h,
41
+ u,
42
+ l,
43
+ m
44
+ ]), o = e.useCallback(() => {
45
+ n.current && s(n.current.getBoundingClientRect().width);
46
+ }, []), _ = e.useMemo(() => D(o, 250), [o]);
47
+ return e.useEffect(() => (window.addEventListener("resize", _), () => {
48
+ window.removeEventListener("resize", _);
49
+ }), [_]), /* @__PURE__ */ d(w.Provider, { value: f, children: /* @__PURE__ */ d("div", { ref: n, className: x, role: "presentation", children: r }) });
50
+ }, I = e.createContext(""), X = function({
51
+ children: i
53
52
  }) {
54
- const s = e.useId();
55
- return /* @__PURE__ */ i(v.Provider, { value: s, children: /* @__PURE__ */ i("div", { className: o.item, id: s, role: "region", "aria-labelledby": `${s}-header`, children: r }) });
56
- }, ne = function({
57
- children: r
53
+ const r = e.useId();
54
+ return /* @__PURE__ */ d(I.Provider, { value: r, children: /* @__PURE__ */ d("div", { className: t.item, id: r, role: "region", "aria-labelledby": `${r}-header`, children: i }) });
55
+ }, Y = function({
56
+ children: i
58
57
  }) {
59
- return /* @__PURE__ */ i("div", { className: o.header, children: r });
60
- }, te = function(r) {
58
+ return /* @__PURE__ */ d("div", { className: t.header, children: i });
59
+ }, Z = function(i) {
61
60
  const {
62
- text: s,
63
- iconLeft: h,
64
- iconRightClassName: p,
65
- iconLeftClassName: x,
66
- className: _,
67
- textClassName: l,
68
- preopen: c = !1
69
- } = r, d = e.useContext(I), n = e.useContext(v);
70
- if (!d)
61
+ text: r,
62
+ iconRightClassName: x,
63
+ className: h,
64
+ textClassName: p,
65
+ preopen: m = !1
66
+ } = i, s = e.useContext(w), n = e.useContext(I);
67
+ if (!s)
71
68
  throw new Error("AccordionTrigger must be used within an Accordion");
72
69
  const {
73
- toggleItem: f,
74
- closeItem: m,
75
- openItems: a
76
- } = d, t = typeof a[n] > "u" ? c : a[n], [u, R] = e.useState(!1), [b, T] = e.useState(t ? "UpChevron" : "DownChevron"), w = e.useCallback(() => {
77
- if (t) {
78
- m(n);
70
+ toggleItem: u,
71
+ closeItem: l,
72
+ openItems: f
73
+ } = s, o = typeof f[n] > "u" ? m : f[n], [_, a] = e.useState(!1), [c, R] = e.useState(o ? "UpChevron" : "DownChevron"), b = e.useCallback(() => {
74
+ if (o) {
75
+ l(n);
79
76
  return;
80
77
  }
81
- f(n);
82
- }, [t, f, n, m]), k = e.useCallback((A) => {
83
- (A.key === "Enter" || A.key === " ") && w();
84
- }, [w]);
78
+ u(n);
79
+ }, [o, u, n, l]), y = e.useCallback((A) => {
80
+ (A.key === "Enter" || A.key === " ") && b();
81
+ }, [b]);
85
82
  return e.useEffect(() => {
86
83
  const A = setTimeout(() => {
87
- T(t ? "UpChevron" : "DownChevron"), R(!1);
84
+ R(o ? "UpChevron" : "DownChevron"), a(!1);
88
85
  }, 300);
89
- return R(!0), () => clearTimeout(A);
90
- }, [t]), /* @__PURE__ */ D(
86
+ return a(!0), () => clearTimeout(A);
87
+ }, [o]), /* @__PURE__ */ T(
91
88
  "div",
92
89
  {
93
- className: g(o.triggerContainer, _),
94
- onClick: w,
95
- onKeyDown: k,
90
+ className: g(t.triggerContainer, h),
91
+ onClick: b,
92
+ onKeyDown: y,
96
93
  role: "button",
97
94
  tabIndex: 0,
98
- "aria-expanded": t,
95
+ "aria-expanded": o,
99
96
  "aria-controls": `${n}-content`,
100
97
  id: `${n}-header`,
101
98
  children: [
102
- h && /* @__PURE__ */ i(y, { name: h, className: g(o.iconLeft, x) }),
103
- /* @__PURE__ */ i(N, { size: "normal", className: g(o.text, l), children: s }),
104
- /* @__PURE__ */ i(
105
- y,
99
+ /* @__PURE__ */ d(v, { size: "small", className: g(t.text, p), children: r }),
100
+ /* @__PURE__ */ d(
101
+ N,
106
102
  {
107
- className: g(o.iconRight, p, {
108
- [o.iconFlip]: u,
109
- [o.iconUp]: b === "UpChevron",
110
- [o.iconDown]: b === "DownChevron"
103
+ className: g(t.iconRight, x, {
104
+ [t.iconFlip]: _,
105
+ [t.iconUp]: c === "UpChevron",
106
+ [t.iconDown]: c === "DownChevron"
111
107
  }),
112
- name: b
108
+ name: c
113
109
  }
114
110
  )
115
111
  ]
116
112
  }
117
113
  );
118
- }, oe = function({
119
- children: r,
120
- className: s,
121
- innerClassName: h,
122
- contentDisplay: p = "inline-block",
123
- preopen: x = !1
114
+ }, ee = function({
115
+ children: i,
116
+ className: r,
117
+ innerClassName: x,
118
+ contentDisplay: h = "inline-block",
119
+ preopen: p = !1
124
120
  }) {
125
- const _ = e.useContext(I), l = e.useContext(v), [c, d] = e.useState(null), n = e.useRef(null);
126
- if (!_)
121
+ const m = e.useContext(w), s = e.useContext(I), [n, u] = e.useState(null), l = e.useRef(null);
122
+ if (!m)
127
123
  throw new Error("AccordionContent must be used within an Accordion");
128
124
  const {
129
125
  openItems: f,
130
- rootWidth: m
131
- } = _, a = typeof f[l] > "u" ? x : f[l], t = e.useMemo(() => c === null ? 250 : U(c / 150 * 250, 350, 500), [c]);
126
+ rootWidth: o
127
+ } = m, _ = typeof f[s] > "u" ? p : f[s], a = e.useMemo(() => n === null ? 250 : E(n / 150 * 250, 350, 500), [n]);
132
128
  return e.useEffect(() => {
133
- d(null);
134
- }, [m]), e.useEffect(() => {
135
- if (c === null && n.current) {
136
- const u = n.current.getBoundingClientRect().height;
137
- d(u);
129
+ u(null);
130
+ }, [o]), e.useEffect(() => {
131
+ if (n === null && l.current) {
132
+ const c = l.current.getBoundingClientRect().height;
133
+ u(c);
138
134
  }
139
- }, [c]), /* @__PURE__ */ i(
135
+ }, [n]), /* @__PURE__ */ d(
140
136
  "div",
141
137
  {
142
- id: `${l}-content`,
138
+ id: `${s}-content`,
143
139
  role: "region",
144
- "aria-labelledby": `${l}-header`,
145
- className: g(o.content, s, {
146
- [o.open]: a,
147
- [o.closed]: !a
140
+ "aria-labelledby": `${s}-header`,
141
+ className: g(t.content, r, {
142
+ [t.open]: _,
143
+ [t.closed]: !_
148
144
  }),
149
145
  style: {
150
- "--content-display": p,
151
- "--content-height": E.q(100),
152
- "--content-animation-time": `${t}ms`
146
+ "--content-display": h,
147
+ "--content-height": k.q(200),
148
+ "--content-animation-time": `${a}ms`
153
149
  },
154
- children: /* @__PURE__ */ i(
155
- N,
150
+ children: /* @__PURE__ */ d(
151
+ v,
156
152
  {
157
153
  color: "secondary",
158
- size: "normal",
154
+ size: "small",
159
155
  typographic: !0,
160
- className: g(o.contentText, h),
161
- ref: n,
162
- children: r
156
+ className: g(t.contentText, x),
157
+ ref: l,
158
+ children: i
163
159
  }
164
160
  )
165
161
  }
166
162
  );
167
163
  };
168
164
  export {
169
- Z as Accordion,
170
- oe as AccordionContent,
171
- ne as AccordionHeader,
172
- ee as AccordionItem,
173
- te as AccordionTrigger
165
+ Q as Accordion,
166
+ ee as AccordionContent,
167
+ Y as AccordionHeader,
168
+ X as AccordionItem,
169
+ Z as AccordionTrigger
174
170
  };
@@ -3,7 +3,7 @@ import s from "react";
3
3
  import a from "../Flex/Flex.js";
4
4
  import { Text as h } from "../Text/Text.js";
5
5
  import "../../utils/ui/ui.js";
6
- import { Accordion as l, AccordionItem as o, AccordionHeader as r, AccordionTrigger as i, AccordionContent as n } from "./Accordion.js";
6
+ import { Accordion as l, AccordionItem as o, AccordionHeader as r, AccordionTrigger as n, AccordionContent as i } from "./Accordion.js";
7
7
  const u = "cfxui__AccordionShowcase__customTrigger__50550", d = "cfxui__AccordionShowcase__customTriggerIconRight__29b74", g = "cfxui__AccordionShowcase__customTriggerText__6f61c", y = "cfxui__AccordionShowcase__customContent__f7c2f", m = "cfxui__AccordionShowcase__customContentInner__f3d0e", c = {
8
8
  customTrigger: u,
9
9
  customTriggerIconRight: d,
@@ -18,12 +18,12 @@ function v() {
18
18
  /* @__PURE__ */ t(l, { children: [
19
19
  /* @__PURE__ */ t(o, { children: [
20
20
  /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
21
- i,
21
+ n,
22
22
  {
23
23
  text: "Will I get banned from GTA:O?"
24
24
  }
25
25
  ) }),
26
- /* @__PURE__ */ t(n, { children: [
26
+ /* @__PURE__ */ t(i, { children: [
27
27
  "Nope!",
28
28
  " ",
29
29
  /* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
@@ -33,42 +33,39 @@ function v() {
33
33
  ] }),
34
34
  /* @__PURE__ */ t(o, { children: [
35
35
  /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
36
- i,
36
+ n,
37
37
  {
38
- text: "Can I cheat on FiveM?",
39
- iconLeft: "Heart"
38
+ text: "Can I cheat on FiveM?"
40
39
  }
41
40
  ) }),
42
- /* @__PURE__ */ e(n, { children: "Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned!" })
41
+ /* @__PURE__ */ e(i, { children: "Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned!" })
43
42
  ] }),
44
43
  /* @__PURE__ */ t(o, { children: [
45
44
  /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
46
- i,
45
+ n,
47
46
  {
48
- text: "Is this accordion any good?",
49
- iconLeft: "Pencil"
47
+ text: "Is this accordion any good?"
50
48
  }
51
49
  ) }),
52
- /* @__PURE__ */ e(n, { children: "Obviously!" })
50
+ /* @__PURE__ */ e(i, { children: "Obviously!" })
53
51
  ] }),
54
52
  /* @__PURE__ */ t(o, { children: [
55
53
  /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
56
- i,
54
+ n,
57
55
  {
58
56
  text: "Who said?"
59
57
  }
60
58
  ) }),
61
- /* @__PURE__ */ e(n, { children: "Me!" })
59
+ /* @__PURE__ */ e(i, { children: "Me!" })
62
60
  ] }),
63
61
  /* @__PURE__ */ t(o, { children: [
64
62
  /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
65
- i,
63
+ n,
66
64
  {
67
- text: "Long long text, Long long text, Long long text, Long long text, Long long text, Long long text to test the overflow, will it work? Let's see!",
68
- iconLeft: "MoreInfo"
65
+ text: "Long long text, Long long text, Long long text, Long long text, Long long text, Long long text to test the overflow, will it work? Let's see!"
69
66
  }
70
67
  ) }),
71
- /* @__PURE__ */ t(n, { children: [
68
+ /* @__PURE__ */ t(i, { children: [
72
69
  "Nope!",
73
70
  " ",
74
71
  /* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
@@ -78,12 +75,12 @@ function v() {
78
75
  ] }),
79
76
  /* @__PURE__ */ t(o, { children: [
80
77
  /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
81
- i,
78
+ n,
82
79
  {
83
- text: "Long long text, Long long text, Long long text, Long long text, Long long text, Long long text to test the overflow, will it work? Let's see!"
80
+ text: "Long long text, Long long text, Long long text, Long long text, Long long text, Long long Long long text, Long long text, Long long text, Long long text, Long long text, Long long Long long text, Long long text, Long long text, Long long text, Long long text, Long long text to test the overflow, will it work? Let's see!"
84
81
  }
85
82
  ) }),
86
- /* @__PURE__ */ t(n, { children: [
83
+ /* @__PURE__ */ t(i, { children: [
87
84
  "Nope!",
88
85
  " ",
89
86
  /* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
@@ -110,7 +107,7 @@ function v() {
110
107
  /* @__PURE__ */ t(l, { children: [
111
108
  /* @__PURE__ */ t(o, { children: [
112
109
  /* @__PURE__ */ e(
113
- i,
110
+ n,
114
111
  {
115
112
  text: "Will I get banned from GTA:O?",
116
113
  className: c.customTrigger,
@@ -119,7 +116,7 @@ function v() {
119
116
  }
120
117
  ),
121
118
  /* @__PURE__ */ t(
122
- n,
119
+ i,
123
120
  {
124
121
  className: c.customContent,
125
122
  innerClassName: c.customContentInner,
@@ -135,14 +132,13 @@ function v() {
135
132
  ] }),
136
133
  /* @__PURE__ */ t(o, { children: [
137
134
  /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
138
- i,
135
+ n,
139
136
  {
140
- text: "Can I cheat on FiveM?",
141
- iconLeft: "Heart",
137
+ text: "Can I cheat on FiveM? (This should be preopened)",
142
138
  preopen: !0
143
139
  }
144
140
  ) }),
145
- /* @__PURE__ */ e(n, { preopen: !0, children: "Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned!" })
141
+ /* @__PURE__ */ e(i, { preopen: !0, children: "Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned!" })
146
142
  ] })
147
143
  ] })
148
144
  ] })