@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
package/dist/main.js CHANGED
@@ -6,45 +6,44 @@ import { useInstance as l } from "./utils/hooks/useInstance.js";
6
6
  import { useDynamicRef as s } from "./utils/hooks/useDynamicRef.js";
7
7
  import { useGlobalKeyboardEvent as d } from "./utils/hooks/useGlobalKeyboardEvent.js";
8
8
  import { useKeyboardClose as T } from "./utils/hooks/useKeyboardClose.js";
9
- import { useWindowResize as C } from "./utils/hooks/useWindowResize.js";
9
+ import { useWindowResize as E } from "./utils/hooks/useWindowResize.js";
10
10
  import { useOutlet as R } from "./utils/hooks/useOutlet.js";
11
11
  import { CLIPBOARD_TITLE_APPEARANCE as L, useClipboardComponent as S } from "./utils/hooks/useClipboardComponent.js";
12
- import { formatDate as y, formatLocaleDate as D, formatShortDate as O } from "./utils/formatDate.js";
12
+ import { formatDate as B, formatLocaleDate as D, formatShortDate as O } from "./utils/formatDate.js";
13
13
  import { CURRENCY_MAP as A, FREE_PRICE_TEXT as P, formatCurrency as b } from "./utils/formatCurrency.js";
14
14
  import { identity as k, invoke as h, noop as v, returnFalse as M, returnTrue as U } from "./utils/functional.js";
15
- import { Linkify as w, defaultLinkReplacer as z, defaultLinkReplacerx as V, isExternalUrl as Y, linkify as G, linkifyx as H, matchLinkNodes as K, matchLinks as W } from "./utils/links.js";
15
+ import { Linkify as w, defaultLinkReplacer as z, defaultLinkReplacerx as V, isExternalUrl as Y, linkify as G, linkifyx as H, matchLinkNodes as K, matchLinks as X } from "./utils/links.js";
16
16
  import { clamp as Q, clamp01 as j, minmax as J } from "./utils/math.js";
17
17
  import { isFalseString as q, isTrueString as $, normalizeSlashes as oo, replaceRange as eo, splitByIndices as ro, unicodeCharAt as to } from "./utils/string.js";
18
18
  import { debounce as fo, throttle as mo } from "./utils/execution.js";
19
19
  import { getColor as xo } from "./utils/color.js";
20
20
  import { ui as lo } from "./utils/ui/ui.js";
21
- import { BorderRadiusEnum as so, ColorEnum as io, MediaQueryEnum as co, MediaQueryValuesMap as To, OffsetEnum as Io, TextSizeEnum as Co, ZIndexEnum as Eo } from "./utils/ui/ui.types.js";
22
- import { isInEnum as go } from "./utils/enum.js";
23
- import { joaat32 as So } from "./utils/joaat32.js";
24
- import { default as yo } from "./components/IconButton/IconButton.js";
25
- import { Accordion as Oo, AccordionContent as _o, AccordionHeader as Ao, AccordionItem as Po, AccordionTrigger as bo } from "./components/Accordion/Accordion.js";
26
- import { default as ko } from "./components/ClipboardButton/ClipboardButton.js";
27
- import { default as vo } from "./components/Checkbox/Checkbox.js";
28
- import { default as Uo, ButtonContent as No, getButtonClassName as wo } from "./components/Button/Button.js";
29
- import { ButtonBar as Vo } from "./components/Button/ButtonBar.js";
30
- import { LinkButton as Go } from "./components/Button/LinkButton.js";
31
- import { BurgerMenuButton as Ko } from "./components/BurgerMenu/BurgerMenuButton.js";
32
- import { BurgerMenu as Xo } from "./components/BurgerMenu/BurgerMenu.js";
33
- import { default as jo, getLinkClassName as Jo, getLinkStyles as Zo } from "./components/Link/Link.js";
34
- import { default as $o } from "./components/Link/ButtonLink.js";
35
- import { Avatar as ee } from "./components/Avatar/Avatar.js";
36
- import { BACKDROP_OUTLET_ID as te, default as ae } from "./components/BackdropPortal/BackdropPortal.js";
37
- import { Badge as me } from "./components/Badge/Badge.js";
38
- import { default as xe } from "./components/ControlBox/ControlBox.js";
39
- import { default as le } from "./components/CountryFlag/CountryFlag.js";
40
- import { default as se } from "./components/Decorate/Decorate.js";
41
- import { Dot as de } from "./components/Dot/Dot.js";
42
- import { FLYOUT_OUTLET_ID as Te, FLYOUT_ROOT_ID as Ie, FLYOUT_ROOT_SHRINK_CLASSNAME as Ce, Flyout as Ee } from "./components/Flyout/Flyout.js";
43
- import { Logos as ge } from "./components/Logos/index.js";
44
- import { I as Se } from "./cfxIcons-B4SQ4Ljd.js";
45
- import { I as ye } from "./cfxIconsBig-BLJjMT-Y.js";
46
- import { Icon as Oe } from "./components/Icon/Icon.js";
47
- import { IconBig as Ae } from "./components/IconBig/IconBig.js";
21
+ import { BorderRadiusEnum as so, ColorEnum as io, MediaQueryEnum as co, MediaQueryValuesMap as To, OffsetEnum as Io, SpacerEnum as Eo, SpacingEnum as Co, TextSizeEnum as Ro, ZIndexEnum as go } from "./utils/ui/ui.types.js";
22
+ import { isInEnum as So } from "./utils/enum.js";
23
+ import { joaat32 as Bo } from "./utils/joaat32.js";
24
+ import { default as Oo } from "./components/IconButton/IconButton.js";
25
+ import { Accordion as Ao, AccordionContent as Po, AccordionHeader as bo, AccordionItem as Fo, AccordionTrigger as ko } from "./components/Accordion/Accordion.js";
26
+ import { default as vo } from "./components/ClipboardButton/ClipboardButton.js";
27
+ import { default as Uo } from "./components/Checkbox/Checkbox.js";
28
+ import { default as wo, ButtonContent as zo, getButtonClassName as Vo } from "./components/Button/Button.js";
29
+ import { ButtonBar as Go } from "./components/Button/ButtonBar.js";
30
+ import { LinkButton as Ko } from "./components/Button/LinkButton.js";
31
+ import { BurgerMenuButton as Wo } from "./components/BurgerMenu/BurgerMenuButton.js";
32
+ import { BurgerMenu as jo } from "./components/BurgerMenu/BurgerMenu.js";
33
+ import { default as Zo, getLinkClassName as qo, getLinkStyles as $o } from "./components/Link/Link.js";
34
+ import { default as ee } from "./components/Link/ButtonLink.js";
35
+ import { Avatar as te } from "./components/Avatar/Avatar.js";
36
+ import { BACKDROP_OUTLET_ID as fe, default as me } from "./components/BackdropPortal/BackdropPortal.js";
37
+ import { Badge as xe } from "./components/Badge/Badge.js";
38
+ import { default as le } from "./components/ControlBox/ControlBox.js";
39
+ import { default as se } from "./components/CountryFlag/CountryFlag.js";
40
+ import { default as de } from "./components/Decorate/Decorate.js";
41
+ import { Dot as Te } from "./components/Dot/Dot.js";
42
+ import { FLYOUT_OUTLET_ID as Ee, FLYOUT_ROOT_ID as Ce, FLYOUT_ROOT_SHRINK_CLASSNAME as Re, Flyout as ge } from "./components/Flyout/Flyout.js";
43
+ import { Logos as Se } from "./components/Logos/index.js";
44
+ import { I as Be } from "./cfxIcons-0xD_EEXT.js";
45
+ import { I as Oe } from "./cfxIconsXLarge-D0vz6Yd_.js";
46
+ import { Icon as Ae } from "./components/Icon/Icon.js";
48
47
  import { Indicator as be } from "./components/Indicator/Indicator.js";
49
48
  import { default as ke } from "./components/InfoPanel/InfoPanel.js";
50
49
  import { default as ve } from "./components/Input/Input.js";
@@ -52,7 +51,7 @@ import { default as Ue } from "./components/Input/RichInput.js";
52
51
  import { default as we } from "./components/StyledInput/StyledInput.js";
53
52
  import { Interactive as Ve } from "./components/Interactive/Interactive.js";
54
53
  import { Island as Ge, IslandCorner as He } from "./components/Island/Island.js";
55
- import { default as We } from "./components/Box/Box.js";
54
+ import { default as Xe } from "./components/Box/Box.js";
56
55
  import { stringPropFormater as Qe } from "./components/RSC/Box/Box.js";
57
56
  import { Center as Je } from "./components/Layout/Center/Center.js";
58
57
  import { default as qe } from "./components/Flex/Flex.js";
@@ -64,9 +63,9 @@ import { R as ur } from "./Rail-CHFAf3wJ.js";
64
63
  import { Scrollable as ir } from "./components/Scrollable/Scrollable.js";
65
64
  import { VirtualScrollable as cr } from "./components/Scrollable/VirtualScrollable.js";
66
65
  import { Loaf as Ir } from "./components/Loaf/Loaf.js";
67
- import { Modal as Er } from "./components/Modal/Modal.js";
66
+ import { Modal as Cr } from "./components/Modal/Modal.js";
68
67
  import { NavList as gr } from "./components/NavList/NavList.js";
69
- import { OVERLAY_OUTLET_ID as Sr, Overlay as Br } from "./components/Overlay/Overlay.js";
68
+ import { OVERLAY_OUTLET_ID as Sr, Overlay as yr } from "./components/Overlay/Overlay.js";
70
69
  import { default as Dr } from "./components/Pagination/Pagination.js";
71
70
  import { Popover as _r } from "./components/Popover/Popover.js";
72
71
  import { PremiumBadge as Pr } from "./components/PremiumBadge/PremiumBadge.js";
@@ -77,7 +76,7 @@ import { DropdownSelect as Nr } from "./components/DropdownSelect/DropdownSelect
77
76
  import { default as zr } from "./components/DropdownMenu/DropdownMenu.js";
78
77
  import { Separator as Yr } from "./components/Separator/Separator.js";
79
78
  import { Shroud as Hr } from "./components/Shroud/Shroud.js";
80
- import { Slider as Wr } from "./components/Slider/Slider.js";
79
+ import { Slider as Xr } from "./components/Slider/Slider.js";
81
80
  import { default as Qr } from "./components/Range/Range.js";
82
81
  import { default as Jr } from "./components/Range/RangeInput.js";
83
82
  import { default as qr } from "./components/Range/RangeWithInputs.js";
@@ -89,7 +88,7 @@ import { Tabular as nt } from "./components/Tabular/Tabular.js";
89
88
  import { DataTable as ut, DataTableHeaderItem as st, DataTableRow as it } from "./components/DataTable/DataTable.js";
90
89
  import { Table as ct } from "./components/Table/index.js";
91
90
  import { default as It } from "./components/TableResponsiveText/TableResponsiveText.js";
92
- import { DEFAULT_TEXT_COLOR as Et, TEXT_OPACITY_MAP as Rt, Text as gt, TextBlock as Lt, getTextOpacity as St, lineHeightResponsiveValueFormatter as Bt, textSizeResponsiveValueFormatter as yt } from "./components/Text/Text.js";
91
+ import { DEFAULT_TEXT_COLOR as Ct, TEXT_OPACITY_MAP as Rt, Text as gt, TextBlock as Lt, getTextOpacity as St, lineHeightResponsiveValueFormatter as yt, textSizeResponsiveValueFormatter as Bt } from "./components/Text/Text.js";
93
92
  import { default as Ot } from "./components/Label/Label.js";
94
93
  import { Textarea as At } from "./components/Textarea/Textarea.js";
95
94
  import { default as bt } from "./components/StyledTextarea/StyledTextarea.js";
@@ -98,46 +97,46 @@ import { default as Nt } from "./components/InputDropzone/InputDropzone.js";
98
97
  import { default as zt } from "./components/InputDropzone/ItemPreview.js";
99
98
  import { default as Yt } from "./components/Skeleton/Skeleton.js";
100
99
  import { OnScreenSensor as Ht } from "./components/OnScreenSensor.js";
101
- import { Symbols as Wt } from "./components/Symbols.js";
100
+ import { Symbols as Xt } from "./components/Symbols.js";
102
101
  import { default as Qt } from "./components/Table/TableIconButton.js";
103
102
  export {
104
- Oo as Accordion,
105
- _o as AccordionContent,
106
- Ao as AccordionHeader,
107
- Po as AccordionItem,
108
- bo as AccordionTrigger,
109
- ee as Avatar,
110
- te as BACKDROP_OUTLET_ID,
111
- ae as BackdropPortal,
112
- me as Badge,
103
+ Ao as Accordion,
104
+ Po as AccordionContent,
105
+ bo as AccordionHeader,
106
+ Fo as AccordionItem,
107
+ ko as AccordionTrigger,
108
+ te as Avatar,
109
+ fe as BACKDROP_OUTLET_ID,
110
+ me as BackdropPortal,
111
+ xe as Badge,
113
112
  so as BorderRadiusEnum,
114
- We as Box,
115
- Xo as BurgerMenu,
116
- Ko as BurgerMenuButton,
117
- Uo as Button,
118
- Vo as ButtonBar,
119
- No as ButtonContent,
120
- $o as ButtonLink,
113
+ Xe as Box,
114
+ jo as BurgerMenu,
115
+ Wo as BurgerMenuButton,
116
+ wo as Button,
117
+ Go as ButtonBar,
118
+ zo as ButtonContent,
119
+ ee as ButtonLink,
121
120
  L as CLIPBOARD_TITLE_APPEARANCE,
122
121
  A as CURRENCY_MAP,
123
122
  Je as Center,
124
- vo as Checkbox,
125
- ko as ClipboardButton,
123
+ Uo as Checkbox,
124
+ vo as ClipboardButton,
126
125
  io as ColorEnum,
127
- xe as ControlBox,
128
- le as CountryFlag,
129
- Et as DEFAULT_TEXT_COLOR,
126
+ le as ControlBox,
127
+ se as CountryFlag,
128
+ Ct as DEFAULT_TEXT_COLOR,
130
129
  ut as DataTable,
131
130
  st as DataTableHeaderItem,
132
131
  it as DataTableRow,
133
- se as Decorate,
134
- de as Dot,
132
+ de as Decorate,
133
+ Te as Dot,
135
134
  zr as DropdownMenu,
136
135
  Nr as DropdownSelect,
137
136
  zt as DropzoneItemPreview,
138
- Te as FLYOUT_OUTLET_ID,
139
- Ie as FLYOUT_ROOT_ID,
140
- Ce as FLYOUT_ROOT_SHRINK_CLASSNAME,
137
+ Ee as FLYOUT_OUTLET_ID,
138
+ Ce as FLYOUT_ROOT_ID,
139
+ Re as FLYOUT_ROOT_SHRINK_CLASSNAME,
141
140
  P as FREE_PRICE_TEXT,
142
141
  qe as Flex,
143
142
  or as FlexAlignItemsEnum,
@@ -145,12 +144,11 @@ export {
145
144
  rr as FlexJustifyContentEnum,
146
145
  fr as FlexRestricter,
147
146
  tr as FlexWrapEnum,
148
- Ee as Flyout,
149
- Oe as Icon,
150
- Ae as IconBig,
151
- yo as IconButton,
152
- Se as Icons,
153
- ye as IconsBig,
147
+ ge as Flyout,
148
+ Ae as Icon,
149
+ Oo as IconButton,
150
+ Be as Icons,
151
+ Oe as IconsXLarge,
154
152
  be as Indicator,
155
153
  ke as InfoPanel,
156
154
  ve as Input,
@@ -159,19 +157,19 @@ export {
159
157
  Ge as Island,
160
158
  He as IslandCorner,
161
159
  Ot as Label,
162
- jo as Link,
163
- Go as LinkButton,
160
+ Zo as Link,
161
+ Ko as LinkButton,
164
162
  w as Linkify,
165
163
  Ir as Loaf,
166
- ge as Logos,
164
+ Se as Logos,
167
165
  co as MediaQueryEnum,
168
166
  To as MediaQueryValuesMap,
169
- Er as Modal,
167
+ Cr as Modal,
170
168
  gr as NavList,
171
169
  Sr as OVERLAY_OUTLET_ID,
172
170
  Io as OffsetEnum,
173
171
  Ht as OnScreenSensor,
174
- Br as Overlay,
172
+ yr as Overlay,
175
173
  pr as Pad,
176
174
  nr as Page,
177
175
  Dr as Pagination,
@@ -189,13 +187,15 @@ export {
189
187
  Yr as Separator,
190
188
  Hr as Shroud,
191
189
  Yt as Skeleton,
192
- Wr as Slider,
190
+ Xr as Slider,
193
191
  ot as Spacer,
192
+ Eo as SpacerEnum,
193
+ Co as SpacingEnum,
194
194
  rt as Style,
195
195
  we as StyledInput,
196
196
  bt as StyledTextarea,
197
197
  ft as Switch,
198
- Wt as Symbols,
198
+ Xt as Symbols,
199
199
  Rt as TEXT_OPACITY_MAP,
200
200
  kt as TITLE_OUTLET_ID,
201
201
  ct as Table,
@@ -204,12 +204,12 @@ export {
204
204
  nt as Tabular,
205
205
  gt as Text,
206
206
  Lt as TextBlock,
207
- Co as TextSizeEnum,
207
+ Ro as TextSizeEnum,
208
208
  At as Textarea,
209
209
  ht as Title,
210
210
  pt as ToggleGroup,
211
211
  cr as VirtualScrollable,
212
- Eo as ZIndexEnum,
212
+ go as ZIndexEnum,
213
213
  Q as clamp,
214
214
  j as clamp01,
215
215
  a as clsx,
@@ -217,27 +217,27 @@ export {
217
217
  z as defaultLinkReplacer,
218
218
  V as defaultLinkReplacerx,
219
219
  b as formatCurrency,
220
- y as formatDate,
220
+ B as formatDate,
221
221
  D as formatLocaleDate,
222
222
  O as formatShortDate,
223
- wo as getButtonClassName,
223
+ Vo as getButtonClassName,
224
224
  xo as getColor,
225
- Jo as getLinkClassName,
226
- Zo as getLinkStyles,
225
+ qo as getLinkClassName,
226
+ $o as getLinkStyles,
227
227
  St as getTextOpacity,
228
228
  m as getValue,
229
229
  k as identity,
230
230
  h as invoke,
231
231
  Y as isExternalUrl,
232
232
  q as isFalseString,
233
- go as isInEnum,
233
+ So as isInEnum,
234
234
  $ as isTrueString,
235
- So as joaat32,
236
- Bt as lineHeightResponsiveValueFormatter,
235
+ Bo as joaat32,
236
+ yt as lineHeightResponsiveValueFormatter,
237
237
  G as linkify,
238
238
  H as linkifyx,
239
239
  K as matchLinkNodes,
240
- W as matchLinks,
240
+ X as matchLinks,
241
241
  r as mergeRefs,
242
242
  J as minmax,
243
243
  v as noop,
@@ -247,7 +247,7 @@ export {
247
247
  U as returnTrue,
248
248
  ro as splitByIndices,
249
249
  Qe as stringPropFormater,
250
- yt as textSizeResponsiveValueFormatter,
250
+ Bt as textSizeResponsiveValueFormatter,
251
251
  mo as throttle,
252
252
  vt as titleGetCoords,
253
253
  Mt as titleGetCssStyle,
@@ -261,5 +261,5 @@ export {
261
261
  T as useKeyboardClose,
262
262
  R as useOutlet,
263
263
  x as usePopoverController,
264
- C as useWindowResize
264
+ E as useWindowResize
265
265
  };
@@ -51,19 +51,19 @@ $controlHeightsMap: (
51
51
  @return var(--control-height-#{$size});
52
52
  }
53
53
 
54
- @function font-size($size: 'normal') {
54
+ @function font-size($size: 'small') {
55
55
  @return var(--font-size-#{$size});
56
56
  }
57
57
 
58
- @mixin font-size($size: 'normal') {
58
+ @mixin font-size($size: 'small') {
59
59
  font-size: var(--font-size-#{$size});
60
60
  }
61
61
 
62
- @function font-weight($weight: 'normal') {
62
+ @function font-weight($weight: 'small') {
63
63
  @return var(--font-weight-#{$weight});
64
64
  }
65
65
 
66
- @mixin font-weight($weight: 'normal') {
66
+ @mixin font-weight($weight: 'small') {
67
67
  font-weight: var(--font-weight-#{$weight});
68
68
  }
69
69
 
@@ -75,32 +75,33 @@ $controlHeightsMap: (
75
75
  color: color-token($colorToken);
76
76
  }
77
77
 
78
- @mixin letter-spacing($size: 'normal') {
78
+ @mixin letter-spacing($size: 'small') {
79
79
  letter-spacing: var(--letter-spacing-#{$size});
80
80
  }
81
81
 
82
- @function letter-spacing($size: 'normal') {
82
+ @function letter-spacing($size: 'small') {
83
83
  @return var(--letter-spacing-#{$size});
84
84
  }
85
85
 
86
- @mixin line-height($size: 'normal') {
86
+ @mixin line-height($size: 'small') {
87
87
  line-height: var(--line-height-#{$size});
88
88
  }
89
89
 
90
90
  $borderRadiusMap: (
91
91
  'none': 0px,
92
- 'xxsmall': q(0.25),
93
- 'xsmall': q(0.5),
94
- 'small': q(0.75),
95
- 'normal': q(1.5),
92
+ 'xsmall': q(0.25),
93
+ 'small': q(0.5),
94
+ 'medium': q(0.75),
95
+ 'large': q(1),
96
+ 'xlarge': q(1.25),
96
97
  'pill': 9999px,
97
98
  );
98
99
 
99
- @function border-radius($size: 'normal') {
100
+ @function border-radius($size: 'small') {
100
101
  @return var(--border-radius-#{$size});
101
102
  }
102
103
 
103
- @mixin border-radius($size: 'normal') {
104
+ @mixin border-radius($size: 'small') {
104
105
  border-radius: var(--border-radius-#{$size});
105
106
  }
106
107
 
@@ -126,9 +127,10 @@ $cfxuiColorAlpha: (
126
127
  '10': 0.1,
127
128
  );
128
129
 
129
- @mixin define-font-size($name, $size, $line-height: 1.3) {
130
+ @mixin define-font-size($name, $size, $line-height: 1.3, $paragraph-spacing: 0) {
130
131
  @include def('font-size-#{$name}', $size);
131
132
  @include def('line-height-#{$name}', $line-height);
133
+ @include def('paragraph-spacing-#{$name}', $paragraph-spacing);
132
134
  }
133
135
 
134
136
  @mixin define-color($name, $color, $bg, $fg) {
@@ -295,6 +297,84 @@ $offsets: (
295
297
  }
296
298
  }
297
299
 
300
+ $globalScaleMap: (
301
+ 0: q(0),
302
+ 10: q(0.125),
303
+ 15: q(0.25),
304
+ 33: q(0.375),
305
+ 45: q(0.5),
306
+ 50: q(0.625),
307
+ 60: q(0.75),
308
+ 100: q(1),
309
+ 110: q(1.25),
310
+ 120: q(1.5),
311
+ 140: q(1.75),
312
+ 150: q(1.875),
313
+ 160: q(2),
314
+ 180: q(2.25),
315
+ 200: q(2.5),
316
+ 240: q(3),
317
+ 250: q(3.125),
318
+ 300: q(3.75),
319
+ 350: q(4),
320
+ 400: q(5),
321
+ 450: q(6),
322
+ 500: q(6.25),
323
+ 550: q(7),
324
+ 600: q(7.5),
325
+ 700: q(9),
326
+ 800: q(10),
327
+ 900: q(11.25),
328
+ 1000: q(12.5),
329
+ 1100: q(13.75),
330
+ 1200: q(15),
331
+ 1400: q(17.5),
332
+ 1500: q(18.75),
333
+ 1600: q(20),
334
+ 1800: q(22.5),
335
+ 2000: q(25),
336
+ 2400: q(30),
337
+ 3000: q(37.5),
338
+ 3300: q(41.25),
339
+ );
340
+
341
+ @function gs($scale) {
342
+ @return map.get($globalScaleMap, $scale);
343
+ }
344
+
345
+ $spacingMap: (
346
+ 25: gs(45),
347
+ 100: gs(100),
348
+ 110: gs(110),
349
+ 150: gs(120),
350
+ 175: gs(160),
351
+ 200: gs(200),
352
+ 250: gs(240),
353
+ 300: gs(300),
354
+ 400: gs(400),
355
+ 450: gs(450),
356
+ 600: gs(600),
357
+ 700: gs(700),
358
+ 800: gs(800),
359
+ 900: gs(900),
360
+ 1000: gs(1000),
361
+ 1200: gs(1200),
362
+ 1600: gs(1600),
363
+ 2400: gs(2400),
364
+ );
365
+
366
+ @function spacing($num) {
367
+ @return map.get($spacingMap, $num);
368
+ }
369
+
370
+ @function spacer($name) {
371
+ @return var(--spacer-#{$name});
372
+ }
373
+
374
+ @function control-size($name) {
375
+ @return var(--control-size-#{$name});
376
+ }
377
+
298
378
  @mixin webkit-scrollbar() {
299
379
  ::-webkit-scrollbar {
300
380
  width: use('scrollable-thumb-size');
@@ -5,16 +5,16 @@ body {
5
5
  // Set default font styles
6
6
  @include ui.font-color('text');
7
7
  @include ui.font-family('primary');
8
- @include ui.font-weight('normal');
9
- @include ui.line-height('normal');
10
- @include ui.letter-spacing('normal');
8
+ @include ui.font-weight('regular');
9
+ @include ui.line-height('small');
10
+ @include ui.letter-spacing('small');
11
11
 
12
12
  // initiat tokens
13
+ @include tokens.text-tokens;
13
14
  @include tokens.shadow-tokens;
14
15
  @include tokens.flyout-tokens;
15
16
  @include tokens.color-tokens;
16
17
  @include tokens.offset-tokens;
17
- @include tokens.control-tokens;
18
18
  @include tokens.border-radius-tokens;
19
19
  @include tokens.switch-tokens;
20
20
  @include tokens.input-dropzone-tokens;
@@ -34,13 +34,18 @@ body {
34
34
  @include tokens.anchor-tokens;
35
35
  @include tokens.separator-tokens;
36
36
  @include tokens.zindex-tokens;
37
- @include tokens.text-tokens;
37
+
38
+ // !!!conflict
39
+ @include tokens.spacer-tokens;
40
+ @include tokens.text-responsive-tokens;
41
+ @include tokens.control-tokens;
38
42
 
39
43
  // initiat fonts
40
44
  @include typography.font-HelveticaNow;
41
45
 
42
46
  // responsive
43
47
  @include tokens.mp-tokens;
48
+ @include tokens.paragraph-spacing-tokens;
44
49
  @include tokens.responsive-tokens('display');
45
50
  @include tokens.responsive-tokens('width');
46
51
  @include tokens.responsive-tokens('height');
@@ -52,6 +57,7 @@ body {
52
57
  @include tokens.responsive-tokens('flex');
53
58
  @include tokens.responsive-tokens('font-size');
54
59
  @include tokens.responsive-tokens('line-height');
60
+ @include tokens.responsive-tokens('stroke-width');
55
61
  }
56
62
 
57
63
  a {
@@ -59,7 +65,7 @@ a {
59
65
  color: ui.color('tertiary');
60
66
  cursor: pointer;
61
67
  text-decoration: underline;
62
- border-radius: ui.border-radius('xxsmall');
68
+ border-radius: ui.border-radius('xsmall');
63
69
 
64
70
  @include ui.animated;
65
71
 
@@ -121,15 +127,15 @@ h4 {
121
127
  }
122
128
 
123
129
  h5 {
124
- @include ui.font-size('medium');
125
- @include ui.line-height('medium');
130
+ @include ui.font-size('small');
131
+ @include ui.line-height('small');
126
132
  @include ui.font-weight('bold');
127
133
  }
128
134
 
129
135
  h6 {
130
- @include ui.font-size('medium');
131
- @include ui.line-height('medium');
132
- @include ui.font-weight('normal');
136
+ @include ui.font-size('small');
137
+ @include ui.line-height('small');
138
+ @include ui.font-weight('regular');
133
139
  }
134
140
 
135
141
  kbd {
@@ -140,10 +146,6 @@ kbd {
140
146
  border: solid 1px ui.color-token('kbd-border');
141
147
  }
142
148
 
143
- p {
144
- margin: ui.offset('small') 0;
145
- }
146
-
147
149
  li::marker {
148
150
  color: ui.color-token('li-marker');
149
151
  }