@cfx-dev/ui-components 4.5.22 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +67 -22
  331. package/dist/utils/ui/ui.types.js +10 -7
  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,10 +1,10 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import o from "react";
2
+ import d from "react";
3
3
  import a from "../Flex/Flex.js";
4
4
  import { Text as i } from "../Text/Text.js";
5
5
  import "../../utils/ui/ui.js";
6
- import { Select as n } from "./Select.js";
7
- const t = [
6
+ import { Select as t } from "./Select.js";
7
+ const u = [
8
8
  {
9
9
  value: "value",
10
10
  label: "Label"
@@ -38,85 +38,58 @@ const t = [
38
38
  label: "Label7"
39
39
  }
40
40
  ];
41
- function d() {
42
- const [c, r] = o.useState("value");
41
+ function n() {
42
+ const [c, r] = d.useState("value");
43
43
  return /* @__PURE__ */ l(a, { gap: "large", vertical: !0, children: [
44
- /* @__PURE__ */ l(a, { gap: "normal", vertical: !0, children: [
45
- /* @__PURE__ */ e(i, { children: "Size small" }),
44
+ /* @__PURE__ */ l(a, { gap: "medium", vertical: !0, children: [
45
+ /* @__PURE__ */ e(i, { children: "Default" }),
46
46
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
47
- n,
47
+ t,
48
48
  {
49
- size: "small",
50
49
  value: c,
51
50
  onChange: r,
52
- options: t
51
+ options: u
53
52
  }
54
53
  ) })
55
54
  ] }),
56
- /* @__PURE__ */ l(a, { gap: "normal", vertical: !0, children: [
57
- /* @__PURE__ */ e(i, { children: "Size normal" }),
58
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
59
- n,
60
- {
61
- value: c,
62
- onChange: r,
63
- options: t
64
- }
65
- ) })
66
- ] }),
67
- /* @__PURE__ */ l(a, { gap: "normal", vertical: !0, children: [
68
- /* @__PURE__ */ e(i, { children: "Size large" }),
69
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
70
- n,
71
- {
72
- size: "large",
73
- value: c,
74
- onChange: r,
75
- options: t
76
- }
77
- ) })
78
- ] }),
79
- /* @__PURE__ */ l(a, { gap: "normal", vertical: !0, children: [
55
+ /* @__PURE__ */ l(a, { gap: "medium", vertical: !0, children: [
80
56
  /* @__PURE__ */ e(i, { children: "Placeholder" }),
81
57
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
82
- n,
58
+ t,
83
59
  {
84
60
  placeholder: "Placeholder",
85
- size: "large",
86
61
  onChange: r,
87
- options: t
62
+ options: u
88
63
  }
89
64
  ) })
90
65
  ] }),
91
- /* @__PURE__ */ l(a, { gap: "normal", vertical: !0, children: [
66
+ /* @__PURE__ */ l(a, { gap: "medium", vertical: !0, children: [
92
67
  /* @__PURE__ */ e(i, { children: "Disabled" }),
93
68
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
94
- n,
69
+ t,
95
70
  {
96
71
  disabled: !0,
97
- size: "large",
98
72
  value: c,
99
73
  onChange: r,
100
- options: t
74
+ options: u
101
75
  }
102
76
  ) })
103
77
  ] }),
104
- /* @__PURE__ */ l(a, { gap: "normal", vertical: !0, children: [
78
+ /* @__PURE__ */ l(a, { gap: "medium", vertical: !0, children: [
105
79
  /* @__PURE__ */ e(i, { children: "Full Width" }),
106
80
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
107
- n,
81
+ t,
108
82
  {
109
83
  fullWidth: !0,
110
- size: "large",
111
84
  value: c,
112
85
  onChange: r,
113
- options: t
86
+ options: u
114
87
  }
115
88
  ) })
116
89
  ] })
117
90
  ] });
118
91
  }
119
- const b = o.memo(d);
92
+ const s = d.memo(n);
120
93
  export {
121
- b as default
94
+ s as default
122
95
  };
@@ -1,10 +1,9 @@
1
1
  import { default as React } from 'react';
2
- import { MPProps, OffsetType } from '../../utils/ui';
2
+ import { MPProps } from '../../utils/ui';
3
3
 
4
4
  export interface SeparatorProps extends MPProps {
5
5
  thin?: boolean;
6
6
  vertical?: boolean;
7
7
  content?: React.ReactNode;
8
- offset?: OffsetType;
9
8
  }
10
9
  export declare function Separator(props: SeparatorProps): import("react/jsx-runtime").JSX.Element;
@@ -1,50 +1,37 @@
1
- import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
- import l from "react";
3
- import { clsx as x } from "../../utils/clsx.js";
4
- import { ui as s } from "../../utils/ui/ui.js";
5
- const m = "cfxui__Separator__root__3aea3", u = "cfxui__Separator__separator__5dbbd", d = "cfxui__Separator__content__7ade9", S = "cfxui__Separator__thin__628fd", h = "cfxui__Separator__text__d02da", v = "cfxui__Separator__vertical__8bd90", a = {
6
- root: m,
7
- "separator-offset-none": "cfxui__Separator__separator-offset-none__f2b70",
8
- "separator-offset-hairthin": "cfxui__Separator__separator-offset-hairthin__56e9d",
9
- "separator-offset-thin": "cfxui__Separator__separator-offset-thin__36d86",
10
- "separator-offset-xxsmall": "cfxui__Separator__separator-offset-xxsmall__84364",
11
- "separator-offset-xsmall": "cfxui__Separator__separator-offset-xsmall__6dba9",
12
- "separator-offset-small": "cfxui__Separator__separator-offset-small__872f2",
13
- "separator-offset-normal": "cfxui__Separator__separator-offset-normal__60e53",
14
- "separator-offset-medium": "cfxui__Separator__separator-offset-medium__032b1",
15
- "separator-offset-large": "cfxui__Separator__separator-offset-large__918a2",
16
- "separator-offset-xlarge": "cfxui__Separator__separator-offset-xlarge__01c53",
17
- "separator-offset-safezone": "cfxui__Separator__separator-offset-safezone__d28af",
18
- separator: u,
19
- content: d,
20
- thin: S,
21
- text: h,
22
- vertical: v
1
+ import { jsxs as l, jsx as a } from "react/jsx-runtime";
2
+ import p from "react";
3
+ import { clsx as m } from "../../utils/clsx.js";
4
+ import { ui as c } from "../../utils/ui/ui.js";
5
+ const d = "cfxui__Separator__root__3aea3", f = "cfxui__Separator__separator__5dbbd", x = "cfxui__Separator__content__7ade9", u = "cfxui__Separator__thin__628fd", v = "cfxui__Separator__text__d02da", h = "cfxui__Separator__vertical__8bd90", t = {
6
+ root: d,
7
+ separator: f,
8
+ content: x,
9
+ thin: u,
10
+ text: v,
11
+ vertical: h
23
12
  };
24
- function M(f) {
13
+ function M(_) {
25
14
  const {
26
- content: r,
27
- thin: p = !1,
15
+ content: e,
16
+ thin: n = !1,
28
17
  vertical: i = !1,
29
- offset: c = "none",
30
- ...e
31
- } = f, o = x(
32
- a.root,
33
- a[`separator-offset-${c}`],
34
- s.getAllMPClassnames(e),
18
+ ...r
19
+ } = _, o = m(
20
+ t.root,
21
+ c.getAllMPClassnames(r),
35
22
  {
36
- [a.text]: !!r,
37
- [a.thin]: p,
38
- [a.vertical]: i
23
+ [t.text]: !!e,
24
+ [t.thin]: n,
25
+ [t.vertical]: i
39
26
  }
40
- ), _ = l.useMemo(() => ({
41
- ...s.getAllMPStyles(e)
42
- }), [e]);
43
- return r ? /* @__PURE__ */ n("div", { className: o, style: _, children: [
44
- /* @__PURE__ */ t("div", { className: a.separator }),
45
- /* @__PURE__ */ t("div", { className: a.content, children: r }),
46
- /* @__PURE__ */ t("div", { className: a.separator })
47
- ] }) : /* @__PURE__ */ t("div", { className: o, style: _, children: /* @__PURE__ */ t("div", { className: a.separator }) });
27
+ ), s = p.useMemo(() => ({
28
+ ...c.getAllMPStyles(r)
29
+ }), [r]);
30
+ return e ? /* @__PURE__ */ l("div", { className: o, style: s, children: [
31
+ /* @__PURE__ */ a("div", { className: t.separator }),
32
+ /* @__PURE__ */ a("div", { className: t.content, children: e }),
33
+ /* @__PURE__ */ a("div", { className: t.separator })
34
+ ] }) : /* @__PURE__ */ a("div", { className: o, style: s, children: /* @__PURE__ */ a("div", { className: t.separator }) });
48
35
  }
49
36
  export {
50
37
  M as Separator
@@ -1,5 +1,5 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import f, { useState as n, useEffect as u } from "react";
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ import u, { useState as n, useEffect as f } from "react";
3
3
  import { Badge as t } from "../Badge/Badge.js";
4
4
  import p from "../Button/Button.js";
5
5
  import "../../utils/links.js";
@@ -16,7 +16,7 @@ const g = [
16
16
  { text: "Item" }
17
17
  ];
18
18
  function S() {
19
- const [l, a] = n(!0), [d, s] = n([]), o = () => {
19
+ const [l, a] = n(!0), [d, s] = n([]), i = () => {
20
20
  a(!0);
21
21
  const h = setTimeout(() => {
22
22
  s([
@@ -27,30 +27,30 @@ function S() {
27
27
  }, 5e3);
28
28
  return () => clearTimeout(h);
29
29
  };
30
- return u(() => {
31
- o();
32
- }, []), /* @__PURE__ */ i(m, { gap: "large", vertical: !0, children: [
30
+ return f(() => {
31
+ i();
32
+ }, []), /* @__PURE__ */ o(m, { gap: "large", vertical: !0, children: [
33
33
  /* @__PURE__ */ e(r, { children: "Skeleton within Table" }),
34
- /* @__PURE__ */ e(m, { gap: "normal", vertical: !0, children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
34
+ /* @__PURE__ */ e(m, { gap: "medium", vertical: !0, children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
35
35
  x,
36
36
  {
37
37
  loading: l,
38
38
  includeRadio: !0,
39
39
  headers: g,
40
- data: l ? Array(3).fill(Array(5).fill(/* @__PURE__ */ e(c, { width: "100%", height: "normal" }))) : d
40
+ data: l ? Array(3).fill(Array(5).fill(/* @__PURE__ */ e(c, { width: "100%", height: "small" }))) : d
41
41
  }
42
42
  ) }) }),
43
43
  /* @__PURE__ */ e(r, { children: "Skeleton in Text" }),
44
- /* @__PURE__ */ i(r, { children: [
44
+ /* @__PURE__ */ o(r, { children: [
45
45
  "This is a",
46
- /* @__PURE__ */ e(c, { width: "200px", height: "normal" }),
46
+ /* @__PURE__ */ e(c, { width: "200px", height: "small" }),
47
47
  " ",
48
48
  "in Text"
49
49
  ] }),
50
- /* @__PURE__ */ e(p, { theme: "secondary", onClick: o, text: "Restart Timer" })
50
+ /* @__PURE__ */ e(p, { theme: "secondary", onClick: i, text: "Restart Timer" })
51
51
  ] });
52
52
  }
53
- const y = f.memo(S);
53
+ const y = u.memo(S);
54
54
  export {
55
55
  y as default
56
56
  };
@@ -4,12 +4,12 @@ import a from "../Flex/Flex.js";
4
4
  import { Text as t } from "../Text/Text.js";
5
5
  import "../../utils/ui/ui.js";
6
6
  import { Slider as l } from "./Slider.js";
7
- const m = "cfxui__SliderShowcase__track__9ceda", o = {
7
+ const m = "cfxui__SliderShowcase__track__9ceda", s = {
8
8
  track: m
9
9
  };
10
- function s() {
10
+ function c() {
11
11
  return /* @__PURE__ */ r(a, { gap: "large", vertical: !0, children: [
12
- /* @__PURE__ */ r(a, { gap: "normal", vertical: !0, children: [
12
+ /* @__PURE__ */ r(a, { gap: "medium", vertical: !0, children: [
13
13
  /* @__PURE__ */ e(t, { children: "Default Slider" }),
14
14
  /* @__PURE__ */ e(
15
15
  "div",
@@ -26,14 +26,14 @@ function s() {
26
26
  step: 1,
27
27
  ariaLabel: "Volume",
28
28
  className: "",
29
- trackClassName: o.track,
29
+ trackClassName: s.track,
30
30
  name: "volume"
31
31
  }
32
32
  )
33
33
  }
34
34
  )
35
35
  ] }),
36
- /* @__PURE__ */ r(a, { gap: "normal", vertical: !0, children: [
36
+ /* @__PURE__ */ r(a, { gap: "medium", vertical: !0, children: [
37
37
  /* @__PURE__ */ e(t, { children: "Custom Slider" }),
38
38
  /* @__PURE__ */ e(
39
39
  "div",
@@ -59,7 +59,7 @@ function s() {
59
59
  ] })
60
60
  ] });
61
61
  }
62
- const x = i.memo(s);
62
+ const x = i.memo(c);
63
63
  export {
64
64
  x as default
65
65
  };
@@ -1,12 +1,12 @@
1
1
  import { default as React } from 'react';
2
- import { InputSize, InputTheme } from '../Input/Input.types';
3
- import { ResponsiveValueType } from '../../utils/ui';
2
+ import { InputTheme } from '../Input/Input.types';
4
3
 
4
+ export type StateType = 'default' | 'success' | 'error';
5
5
  export interface StyledInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
6
6
  className?: string;
7
- size?: ResponsiveValueType<InputSize>;
8
7
  theme?: InputTheme;
9
8
  ref?: React.Ref<HTMLInputElement>;
9
+ state?: StateType;
10
10
  }
11
11
  declare function StyledInput(props: StyledInputProps): import("react/jsx-runtime").JSX.Element;
12
12
  export default StyledInput;
@@ -1,46 +1,30 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { clsx as m } from "../../utils/clsx.js";
3
- import { ui as p } from "../../utils/ui/ui.js";
4
- const s = "cfxui__StyledInput__root__37064", S = "cfxui__StyledInput__small__0f240", r = "cfxui__StyledInput__large__a3ad2", d = "cfxui__StyledInput__onlight__dcd8f", l = {
5
- root: s,
6
- small: S,
7
- large: r,
8
- onlight: d,
9
- "inputSize-initial-large": "cfxui__StyledInput__inputSize-initial-large__43033",
10
- "inputSize-initial-small": "cfxui__StyledInput__inputSize-initial-small__6e9de",
11
- "inputSize-small-large": "cfxui__StyledInput__inputSize-small-large__77186",
12
- "inputSize-small-small": "cfxui__StyledInput__inputSize-small-small__968a4",
13
- "inputSize-small-medium-large": "cfxui__StyledInput__inputSize-small-medium-large__96f91",
14
- "inputSize-small-medium-small": "cfxui__StyledInput__inputSize-small-medium-small__0a42b",
15
- "inputSize-medium-large": "cfxui__StyledInput__inputSize-medium-large__e552f",
16
- "inputSize-medium-small": "cfxui__StyledInput__inputSize-medium-small__28227",
17
- "inputSize-medium-large-large": "cfxui__StyledInput__inputSize-medium-large-large__0c8e8",
18
- "inputSize-medium-large-small": "cfxui__StyledInput__inputSize-medium-large-small__35702",
19
- "inputSize-large-large": "cfxui__StyledInput__inputSize-large-large__7dfe8",
20
- "inputSize-large-small": "cfxui__StyledInput__inputSize-large-small__69180",
21
- "inputSize-xlarge-large": "cfxui__StyledInput__inputSize-xlarge-large__f4d6e",
22
- "inputSize-xlarge-small": "cfxui__StyledInput__inputSize-xlarge-small__b60c7"
2
+ import { clsx as l } from "../../utils/clsx.js";
3
+ const u = "cfxui__StyledInput__root__37064", a = "cfxui__StyledInput__onlight__dcd8f", t = {
4
+ root: u,
5
+ onlight: a,
6
+ "state-error": "cfxui__StyledInput__state-error__79815"
23
7
  };
24
- function z(i) {
8
+ function i(o) {
25
9
  const {
26
10
  className: e,
27
- size: _ = "normal",
28
- theme: t = "default",
29
- ...u
30
- } = i;
11
+ theme: r = "default",
12
+ state: s = "default",
13
+ ..._
14
+ } = o;
31
15
  return /* @__PURE__ */ n(
32
16
  "input",
33
17
  {
34
- className: m(
18
+ className: l(
35
19
  e,
36
- l.root,
37
- l[t],
38
- p.getResponsiveFlatClassnames("inputSize", _).map((a) => l[a])
20
+ t.root,
21
+ t[r],
22
+ t[`state-${s}`]
39
23
  ),
40
- ...u
24
+ ..._
41
25
  }
42
26
  );
43
27
  }
44
28
  export {
45
- z as default
29
+ i as default
46
30
  };
@@ -1,8 +1,14 @@
1
1
  import { default as React } from 'react';
2
2
  import * as SwitchUi from '@radix-ui/react-switch';
3
+ export type ThemeType = 'primary' | 'secondary';
4
+ export type ViewType = 'default' | 'alternative';
5
+ export declare function getSwitchClassNames(classNameRoot?: string, theme?: ThemeType, view?: ViewType): string;
6
+ export declare function getSwitchThumbClassNames(classNameThumb?: string, theme?: ThemeType, view?: ViewType): string;
3
7
  export interface SwitchProps extends SwitchUi.SwitchProps {
4
8
  classNameRoot?: string;
5
9
  classNameThumb?: string;
10
+ theme?: ThemeType;
11
+ view?: ViewType;
6
12
  }
7
13
  declare const _default: React.NamedExoticComponent<SwitchProps>;
8
14
  export default _default;
@@ -1,112 +1,112 @@
1
- import { jsxs as P, jsx as i } from "react/jsx-runtime";
2
- import * as r from "react";
1
+ import { jsxs as x, jsx as l } from "react/jsx-runtime";
2
+ import * as u from "react";
3
3
  import M from "react";
4
- import { b as x, u as H, c as j, P as y, a as A, d as q } from "../../index-CfQtbUfi.js";
4
+ import { b as R, u as H, c as j, P as k, a as A, d as q } from "../../index-CfQtbUfi.js";
5
5
  import { u as z } from "../../index-BZPx6jYI.js";
6
- import { clsx as k } from "../../utils/clsx.js";
7
- var w = "Switch", [L, et] = j(w), [O, $] = L(w), T = r.forwardRef(
8
- (e, s) => {
6
+ import { clsx as N } from "../../utils/clsx.js";
7
+ var S = "Switch", [L, at] = j(S), [O, $] = L(S), P = u.forwardRef(
8
+ (e, c) => {
9
9
  const {
10
10
  __scopeSwitch: t,
11
11
  name: o,
12
- checked: c,
13
- defaultChecked: u,
14
- required: h,
15
- disabled: n,
16
- value: d = "on",
17
- onCheckedChange: _,
18
- form: a,
19
- ...S
20
- } = e, [p, l] = r.useState(null), b = x(s, (m) => l(m)), v = r.useRef(!1), R = p ? a || !!p.closest("form") : !0, [f, U] = H({
21
- prop: c,
22
- defaultProp: u ?? !1,
23
- onChange: _,
24
- caller: w
12
+ checked: s,
13
+ defaultChecked: h,
14
+ required: a,
15
+ disabled: r,
16
+ value: i = "on",
17
+ onCheckedChange: f,
18
+ form: d,
19
+ ...b
20
+ } = e, [p, m] = u.useState(null), v = R(c, (w) => m(w)), y = u.useRef(!1), C = p ? d || !!p.closest("form") : !0, [_, U] = H({
21
+ prop: s,
22
+ defaultProp: h ?? !1,
23
+ onChange: f,
24
+ caller: S
25
25
  });
26
- return /* @__PURE__ */ P(O, { scope: t, checked: f, disabled: n, children: [
27
- /* @__PURE__ */ i(
28
- y.button,
26
+ return /* @__PURE__ */ x(O, { scope: t, checked: _, disabled: r, children: [
27
+ /* @__PURE__ */ l(
28
+ k.button,
29
29
  {
30
30
  type: "button",
31
31
  role: "switch",
32
- "aria-checked": f,
33
- "aria-required": h,
34
- "data-state": B(f),
35
- "data-disabled": n ? "" : void 0,
36
- disabled: n,
37
- value: d,
38
- ...S,
39
- ref: b,
40
- onClick: A(e.onClick, (m) => {
41
- U((I) => !I), R && (v.current = m.isPropagationStopped(), v.current || m.stopPropagation());
32
+ "aria-checked": _,
33
+ "aria-required": a,
34
+ "data-state": B(_),
35
+ "data-disabled": r ? "" : void 0,
36
+ disabled: r,
37
+ value: i,
38
+ ...b,
39
+ ref: v,
40
+ onClick: A(e.onClick, (w) => {
41
+ U((I) => !I), C && (y.current = w.isPropagationStopped(), y.current || w.stopPropagation());
42
42
  })
43
43
  }
44
44
  ),
45
- R && /* @__PURE__ */ i(
46
- g,
45
+ C && /* @__PURE__ */ l(
46
+ E,
47
47
  {
48
48
  control: p,
49
- bubbles: !v.current,
49
+ bubbles: !y.current,
50
50
  name: o,
51
- value: d,
52
- checked: f,
53
- required: h,
54
- disabled: n,
55
- form: a,
51
+ value: i,
52
+ checked: _,
53
+ required: a,
54
+ disabled: r,
55
+ form: d,
56
56
  style: { transform: "translateX(-100%)" }
57
57
  }
58
58
  )
59
59
  ] });
60
60
  }
61
61
  );
62
- T.displayName = w;
63
- var N = "SwitchThumb", E = r.forwardRef(
64
- (e, s) => {
65
- const { __scopeSwitch: t, ...o } = e, c = $(N, t);
66
- return /* @__PURE__ */ i(
67
- y.span,
62
+ P.displayName = S;
63
+ var T = "SwitchThumb", g = u.forwardRef(
64
+ (e, c) => {
65
+ const { __scopeSwitch: t, ...o } = e, s = $(T, t);
66
+ return /* @__PURE__ */ l(
67
+ k.span,
68
68
  {
69
- "data-state": B(c.checked),
70
- "data-disabled": c.disabled ? "" : void 0,
69
+ "data-state": B(s.checked),
70
+ "data-disabled": s.disabled ? "" : void 0,
71
71
  ...o,
72
- ref: s
72
+ ref: c
73
73
  }
74
74
  );
75
75
  }
76
76
  );
77
- E.displayName = N;
78
- var D = "SwitchBubbleInput", g = r.forwardRef(
77
+ g.displayName = T;
78
+ var D = "SwitchBubbleInput", E = u.forwardRef(
79
79
  ({
80
80
  __scopeSwitch: e,
81
- control: s,
81
+ control: c,
82
82
  checked: t,
83
83
  bubbles: o = !0,
84
- ...c
85
- }, u) => {
86
- const h = r.useRef(null), n = x(h, u), d = z(t), _ = q(s);
87
- return r.useEffect(() => {
88
- const a = h.current;
89
- if (!a) return;
90
- const S = window.HTMLInputElement.prototype, l = Object.getOwnPropertyDescriptor(
91
- S,
84
+ ...s
85
+ }, h) => {
86
+ const a = u.useRef(null), r = R(a, h), i = z(t), f = q(c);
87
+ return u.useEffect(() => {
88
+ const d = a.current;
89
+ if (!d) return;
90
+ const b = window.HTMLInputElement.prototype, m = Object.getOwnPropertyDescriptor(
91
+ b,
92
92
  "checked"
93
93
  ).set;
94
- if (d !== t && l) {
95
- const b = new Event("click", { bubbles: o });
96
- l.call(a, t), a.dispatchEvent(b);
94
+ if (i !== t && m) {
95
+ const v = new Event("click", { bubbles: o });
96
+ m.call(d, t), d.dispatchEvent(v);
97
97
  }
98
- }, [d, t, o]), /* @__PURE__ */ i(
98
+ }, [i, t, o]), /* @__PURE__ */ l(
99
99
  "input",
100
100
  {
101
101
  type: "checkbox",
102
102
  "aria-hidden": !0,
103
103
  defaultChecked: t,
104
- ...c,
104
+ ...s,
105
105
  tabIndex: -1,
106
- ref: n,
106
+ ref: r,
107
107
  style: {
108
- ...c.style,
109
- ..._,
108
+ ...s.style,
109
+ ...f,
110
110
  position: "absolute",
111
111
  pointerEvents: "none",
112
112
  opacity: 0,
@@ -116,37 +116,51 @@ var D = "SwitchBubbleInput", g = r.forwardRef(
116
116
  );
117
117
  }
118
118
  );
119
- g.displayName = D;
119
+ E.displayName = D;
120
120
  function B(e) {
121
121
  return e ? "checked" : "unchecked";
122
122
  }
123
- var F = T, W = E;
124
- const X = "cfxui__Switch__switchUnset__c8b03", G = "cfxui__Switch__switchRoot__f2911", J = "cfxui__Switch__switchThumb__9cbf5", C = {
123
+ var F = P, W = g;
124
+ const X = "cfxui__Switch__switchUnset__c8b03", G = "cfxui__Switch__switchRoot__f2911", J = "cfxui__Switch__primary__2653f", K = "cfxui__Switch__secondary__7f1cf", Q = "cfxui__Switch__alternative__33f60", V = "cfxui__Switch__switchThumb__9cbf5", n = {
125
125
  switchUnset: X,
126
126
  switchRoot: G,
127
- switchThumb: J
127
+ primary: J,
128
+ secondary: K,
129
+ default: "cfxui__Switch__default__4e727",
130
+ alternative: Q,
131
+ switchThumb: V
128
132
  };
129
- function K(e) {
133
+ function Y(e, c = "primary", t = "default") {
134
+ return N(n.switchRoot, n.switchUnset, e, n[c], n[t]);
135
+ }
136
+ function Z(e, c = "primary", t = "default") {
137
+ return N(n.switchThumb, e, n[c], n[t]);
138
+ }
139
+ function tt(e) {
130
140
  const {
131
- classNameRoot: s,
141
+ classNameRoot: c,
132
142
  classNameThumb: t,
133
- name: o,
134
- checked: c,
135
- ...u
136
- } = e;
137
- return /* @__PURE__ */ P(F, { ...u, className: k(C.switchRoot, C.switchUnset, s), children: [
138
- o && /* @__PURE__ */ i(
143
+ theme: o = "primary",
144
+ view: s = "default",
145
+ name: h,
146
+ checked: a,
147
+ ...r
148
+ } = e, i = Y(c, o, s), f = Z(t, o, s);
149
+ return /* @__PURE__ */ x(F, { ...r, className: i, children: [
150
+ h && /* @__PURE__ */ l(
139
151
  "input",
140
152
  {
141
153
  type: "hidden",
142
- name: o,
143
- value: c ? "on" : ""
154
+ name: h,
155
+ value: a ? "on" : ""
144
156
  }
145
157
  ),
146
- /* @__PURE__ */ i(W, { className: k(C.switchThumb, t) })
158
+ /* @__PURE__ */ l(W, { className: f })
147
159
  ] });
148
160
  }
149
- const ot = M.memo(K);
161
+ const it = M.memo(tt);
150
162
  export {
151
- ot as default
163
+ it as default,
164
+ Y as getSwitchClassNames,
165
+ Z as getSwitchThumbClassNames
152
166
  };