@cfx-dev/ui-components 1.0.0 → 2.0.0

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 (479) hide show
  1. package/README.md +1 -1
  2. package/dist/{Combination-Dp_plIQU.js → Combination-BRUj3CHE.js} +42 -43
  3. package/dist/Logos.types-Bdec3F0Q.js +6 -0
  4. package/dist/Rail-rtPENZs2.js +81 -0
  5. package/dist/assets/Avatar.css +1 -1
  6. package/dist/assets/Badge.css +1 -1
  7. package/dist/assets/Button.css +1 -1
  8. package/dist/assets/ButtonBar.css +1 -0
  9. package/dist/assets/Checkbox.css +1 -1
  10. package/dist/assets/ClipboardButton.css +1 -0
  11. package/dist/assets/ColorShowcase.css +1 -0
  12. package/dist/assets/ColorVariationsShowcase.css +1 -0
  13. package/dist/assets/ColorsShowcase.css +1 -0
  14. package/dist/assets/ControlHeightShowcase.css +1 -0
  15. package/dist/assets/Dot.css +1 -1
  16. package/dist/assets/Flex.css +1 -1
  17. package/dist/assets/Flyout.css +1 -1
  18. package/dist/assets/IconBig.css +1 -0
  19. package/dist/assets/IconButton.css +1 -0
  20. package/dist/assets/InfoPanel.css +1 -1
  21. package/dist/assets/Input.css +1 -1
  22. package/dist/assets/InputDropzone.css +1 -1
  23. package/dist/assets/Island.css +1 -1
  24. package/dist/assets/ItemPreview.css +1 -1
  25. package/dist/assets/Modal.css +1 -1
  26. package/dist/assets/NavList.css +1 -1
  27. package/dist/assets/OffsetShowcase.css +1 -0
  28. package/dist/assets/Pad.css +1 -1
  29. package/dist/assets/Popover.css +1 -1
  30. package/dist/assets/PopoverShowcase.css +1 -0
  31. package/dist/assets/Prose.css +1 -1
  32. package/dist/assets/QuantShowcase.css +1 -0
  33. package/dist/assets/Radio.css +1 -1
  34. package/dist/assets/Rail.css +1 -1
  35. package/dist/assets/RichInput.css +1 -1
  36. package/dist/assets/Select.css +1 -1
  37. package/dist/assets/Separator.css +1 -1
  38. package/dist/assets/Spacer.css +1 -1
  39. package/dist/assets/Switch.css +1 -1
  40. package/dist/assets/Tabular.css +1 -1
  41. package/dist/assets/Text.css +1 -1
  42. package/dist/assets/TextShowcase.css +1 -0
  43. package/dist/assets/Textarea.css +1 -1
  44. package/dist/assets/Title.css +1 -1
  45. package/dist/assets/ToggleGroup.css +1 -0
  46. package/dist/assets/global.css +1 -1
  47. package/dist/assets/themes.css +1 -1
  48. package/dist/cfxIcons-BlbKR-zU.js +86 -0
  49. package/dist/cfxIconsBig-CNY8zL27.js +14 -0
  50. package/dist/components/Avatar/Avatar.d.ts +5 -1
  51. package/dist/components/Avatar/Avatar.js +31 -16
  52. package/dist/components/Avatar/AvatarShowcase.d.ts +5 -0
  53. package/dist/components/Avatar/AvatarShowcase.js +33 -0
  54. package/dist/components/Avatar/index.d.ts +2 -0
  55. package/dist/components/Avatar/index.js +4 -0
  56. package/dist/components/BackdropPortal/BackdropPortal.js +9 -6
  57. package/dist/components/Badge/Badge.d.ts +4 -1
  58. package/dist/components/Badge/Badge.js +23 -13
  59. package/dist/components/Badge/BadgeShowcase.d.ts +5 -0
  60. package/dist/components/Badge/BadgeShowcase.js +56 -0
  61. package/dist/components/Badge/index.d.ts +2 -0
  62. package/dist/components/Badge/index.js +4 -0
  63. package/dist/components/Button/Button.d.ts +4 -6
  64. package/dist/components/Button/Button.js +84 -84
  65. package/dist/components/Button/ButtonBar.d.ts +3 -2
  66. package/dist/components/Button/ButtonBar.js +27 -9
  67. package/dist/components/Button/ButtonShowcase.d.ts +5 -0
  68. package/dist/components/Button/ButtonShowcase.js +89 -0
  69. package/dist/components/Button/index.d.ts +6 -0
  70. package/dist/components/Button/index.js +10 -0
  71. package/dist/components/Checkbox/Checkbox.d.ts +10 -9
  72. package/dist/components/Checkbox/Checkbox.js +249 -37
  73. package/dist/components/Checkbox/index.d.ts +2 -0
  74. package/dist/components/Checkbox/index.js +4 -0
  75. package/dist/components/ClipboardButton/ClipboardButton.d.ts +16 -0
  76. package/dist/components/ClipboardButton/ClipboardButton.js +50 -0
  77. package/dist/components/ClipboardButton/index.d.ts +0 -0
  78. package/dist/components/ClipboardButton/index.js +1 -0
  79. package/dist/components/Dot/Dot.d.ts +5 -2
  80. package/dist/components/Dot/Dot.js +25 -10
  81. package/dist/components/Dot/index.d.ts +2 -0
  82. package/dist/components/Dot/index.js +4 -0
  83. package/dist/components/Flyout/Flyout.js +47 -46
  84. package/dist/components/Icon/Icon.d.ts +7 -6
  85. package/dist/components/Icon/Icon.js +31 -19
  86. package/dist/components/Icon/index.d.ts +3 -0
  87. package/dist/components/Icon/index.js +4 -0
  88. package/dist/components/IconBig/IconBig.d.ts +12 -0
  89. package/dist/components/IconBig/IconBig.js +69 -0
  90. package/dist/components/IconBig/index.d.ts +2 -0
  91. package/dist/components/IconBig/index.js +4 -0
  92. package/dist/components/IconButton/IconButton.d.ts +16 -0
  93. package/dist/components/IconButton/IconButton.js +35 -0
  94. package/dist/components/IconButton/index.d.ts +2 -0
  95. package/dist/components/IconButton/index.js +4 -0
  96. package/dist/components/Icons/Icons.types.d.ts +4 -0
  97. package/dist/components/Icons/Icons.types.js +1 -0
  98. package/dist/components/Icons/IconsShowcase.js +101 -0
  99. package/dist/components/Icons/cfx-icons/Close.d.ts +5 -0
  100. package/dist/components/Icons/cfx-icons/Close.js +27 -0
  101. package/dist/components/Icons/cfx-icons/Controller.d.ts +5 -0
  102. package/dist/components/Icons/cfx-icons/Controller.js +31 -0
  103. package/dist/components/Icons/cfx-icons/Copy.d.ts +5 -0
  104. package/dist/components/Icons/cfx-icons/Copy.js +27 -0
  105. package/dist/components/Icons/cfx-icons/DownArrow.d.ts +5 -0
  106. package/dist/components/Icons/cfx-icons/DownArrow.js +27 -0
  107. package/dist/components/Icons/cfx-icons/DownChevron.d.ts +5 -0
  108. package/dist/components/Icons/cfx-icons/DownChevron.js +27 -0
  109. package/dist/components/Icons/cfx-icons/Download.d.ts +5 -0
  110. package/dist/components/Icons/cfx-icons/Download.js +27 -0
  111. package/dist/components/Icons/cfx-icons/Expand.d.ts +5 -0
  112. package/dist/components/Icons/cfx-icons/Expand.js +26 -0
  113. package/dist/components/Icons/cfx-icons/ExternalLink.d.ts +5 -0
  114. package/dist/components/Icons/cfx-icons/ExternalLink.js +27 -0
  115. package/dist/components/Icons/cfx-icons/Heart.d.ts +5 -0
  116. package/dist/components/Icons/cfx-icons/Heart.js +25 -0
  117. package/dist/components/Icons/cfx-icons/HeartFilled.d.ts +5 -0
  118. package/dist/components/Icons/cfx-icons/HeartFilled.js +25 -0
  119. package/dist/components/Icons/cfx-icons/Help.d.ts +5 -0
  120. package/dist/components/Icons/cfx-icons/Help.js +27 -0
  121. package/dist/components/Icons/cfx-icons/LeftArrow.d.ts +5 -0
  122. package/dist/components/Icons/cfx-icons/LeftArrow.js +27 -0
  123. package/dist/components/Icons/cfx-icons/LeftChevron.d.ts +5 -0
  124. package/dist/components/Icons/cfx-icons/LeftChevron.js +27 -0
  125. package/dist/components/Icons/cfx-icons/Map.d.ts +5 -0
  126. package/dist/components/Icons/cfx-icons/Map.js +39 -0
  127. package/dist/components/Icons/cfx-icons/Menu.d.ts +5 -0
  128. package/dist/components/Icons/cfx-icons/Menu.js +49 -0
  129. package/dist/components/Icons/cfx-icons/Minus.d.ts +5 -0
  130. package/dist/components/Icons/cfx-icons/Minus.js +27 -0
  131. package/dist/components/Icons/cfx-icons/More.d.ts +5 -0
  132. package/dist/components/Icons/cfx-icons/More.js +27 -0
  133. package/dist/components/Icons/cfx-icons/MoreInfo.d.ts +5 -0
  134. package/dist/components/Icons/cfx-icons/MoreInfo.js +27 -0
  135. package/dist/components/Icons/cfx-icons/Pencil.d.ts +5 -0
  136. package/dist/components/Icons/cfx-icons/Pencil.js +25 -0
  137. package/dist/components/Icons/cfx-icons/Play.d.ts +5 -0
  138. package/dist/components/Icons/cfx-icons/Play.js +25 -0
  139. package/dist/components/Icons/cfx-icons/Plus.d.ts +5 -0
  140. package/dist/components/Icons/cfx-icons/Plus.js +27 -0
  141. package/dist/components/Icons/cfx-icons/Refresh.d.ts +5 -0
  142. package/dist/components/Icons/cfx-icons/Refresh.js +27 -0
  143. package/dist/components/Icons/cfx-icons/RightArrow.d.ts +5 -0
  144. package/dist/components/Icons/cfx-icons/RightArrow.js +27 -0
  145. package/dist/components/Icons/cfx-icons/RightChevron.d.ts +5 -0
  146. package/dist/components/Icons/cfx-icons/RightChevron.js +27 -0
  147. package/dist/components/Icons/cfx-icons/Search.d.ts +5 -0
  148. package/dist/components/Icons/cfx-icons/Search.js +27 -0
  149. package/dist/components/Icons/cfx-icons/Sort.d.ts +5 -0
  150. package/dist/components/Icons/cfx-icons/Sort.js +27 -0
  151. package/dist/components/Icons/cfx-icons/Square.d.ts +5 -0
  152. package/dist/components/Icons/cfx-icons/Square.js +18 -0
  153. package/dist/components/Icons/cfx-icons/SquareCheck.d.ts +5 -0
  154. package/dist/components/Icons/cfx-icons/SquareCheck.js +27 -0
  155. package/dist/components/Icons/cfx-icons/Stop.d.ts +5 -0
  156. package/dist/components/Icons/cfx-icons/Stop.js +27 -0
  157. package/dist/components/Icons/cfx-icons/Tick.d.ts +5 -0
  158. package/dist/components/Icons/cfx-icons/Tick.js +27 -0
  159. package/dist/components/Icons/cfx-icons/Transfer.d.ts +5 -0
  160. package/dist/components/Icons/cfx-icons/Transfer.js +27 -0
  161. package/dist/components/Icons/cfx-icons/Trash.d.ts +5 -0
  162. package/dist/components/Icons/cfx-icons/Trash.js +23 -0
  163. package/dist/components/Icons/cfx-icons/Undo.d.ts +5 -0
  164. package/dist/components/Icons/cfx-icons/Undo.js +27 -0
  165. package/dist/components/Icons/cfx-icons/UpArrow.d.ts +5 -0
  166. package/dist/components/Icons/cfx-icons/UpArrow.js +27 -0
  167. package/dist/components/Icons/cfx-icons/UpChevron.d.ts +5 -0
  168. package/dist/components/Icons/cfx-icons/UpChevron.js +27 -0
  169. package/dist/components/Icons/cfx-icons/Upload.d.ts +5 -0
  170. package/dist/components/Icons/cfx-icons/Upload.js +27 -0
  171. package/dist/components/Icons/cfx-icons/Users.d.ts +5 -0
  172. package/dist/components/Icons/cfx-icons/Users.js +43 -0
  173. package/dist/components/Icons/cfx-icons/Visibility.d.ts +5 -0
  174. package/dist/components/Icons/cfx-icons/Visibility.js +23 -0
  175. package/dist/components/Icons/cfx-icons/VisibilityOff.d.ts +5 -0
  176. package/dist/components/Icons/cfx-icons/VisibilityOff.js +23 -0
  177. package/dist/components/Icons/cfx-icons/Warning.d.ts +5 -0
  178. package/dist/components/Icons/cfx-icons/Warning.js +27 -0
  179. package/dist/components/Icons/cfx-icons-big/Like.d.ts +5 -0
  180. package/dist/components/Icons/cfx-icons-big/Like.js +25 -0
  181. package/dist/components/Icons/cfx-icons-big/Subscriptions.d.ts +5 -0
  182. package/dist/components/Icons/cfx-icons-big/Subscriptions.js +33 -0
  183. package/dist/components/Icons/cfx-icons-big/Upload.d.ts +5 -0
  184. package/dist/components/Icons/cfx-icons-big/Upload.js +27 -0
  185. package/dist/components/Icons/cfx-icons-big/Warning.d.ts +5 -0
  186. package/dist/components/Icons/cfx-icons-big/Warning.js +27 -0
  187. package/dist/components/Icons/cfxIcons.d.ts +40 -0
  188. package/dist/components/Icons/cfxIcons.js +82 -0
  189. package/dist/components/Icons/cfxIconsBig.d.ts +4 -0
  190. package/dist/components/Icons/cfxIconsBig.js +10 -0
  191. package/dist/components/Icons/index.d.ts +3 -0
  192. package/dist/components/Icons/index.js +6 -0
  193. package/dist/components/InfoPanel/InfoPanel.d.ts +10 -7
  194. package/dist/components/InfoPanel/InfoPanel.js +50 -28
  195. package/dist/components/InfoPanel/InfoPanelShowcase.d.ts +5 -0
  196. package/dist/components/InfoPanel/InfoPanelShowcase.js +47 -0
  197. package/dist/components/InfoPanel/index.d.ts +2 -0
  198. package/dist/components/InfoPanel/index.js +4 -0
  199. package/dist/components/Input/Input.d.ts +16 -19
  200. package/dist/components/Input/Input.js +73 -81
  201. package/dist/components/Input/InputShowcase.d.ts +5 -0
  202. package/dist/components/Input/InputShowcase.js +90 -0
  203. package/dist/components/Input/RichInput.d.ts +2 -1
  204. package/dist/components/Input/RichInput.js +37 -35
  205. package/dist/components/Input/index.d.ts +4 -0
  206. package/dist/components/Input/index.js +6 -0
  207. package/dist/components/InputDropzone/InputDropzone.d.ts +6 -3
  208. package/dist/components/InputDropzone/InputDropzone.js +260 -259
  209. package/dist/components/InputDropzone/InputDropzoneShowcase.d.ts +5 -0
  210. package/dist/components/InputDropzone/InputDropzoneShowcase.js +27 -0
  211. package/dist/components/InputDropzone/ItemPreview.d.ts +5 -1
  212. package/dist/components/InputDropzone/ItemPreview.js +20 -17
  213. package/dist/components/InputDropzone/index.d.ts +4 -0
  214. package/dist/components/InputDropzone/index.js +6 -0
  215. package/dist/components/Interactive/Interactive.d.ts +1 -0
  216. package/dist/components/Interactive/Interactive.js +10 -9
  217. package/dist/components/Island/Island.js +23 -23
  218. package/dist/components/Layout/Flex/Flex.js +46 -43
  219. package/dist/components/Layout/Pad/Pad.js +29 -26
  220. package/dist/components/Layout/Scrollable/Rail.d.ts +1 -2
  221. package/dist/components/Layout/Scrollable/Rail.js +2 -3
  222. package/dist/components/Layout/Scrollable/Scrollable.js +23 -23
  223. package/dist/components/Layout/Scrollable/ScrollableShowcase.d.ts +5 -0
  224. package/dist/components/Layout/Scrollable/ScrollableShowcase.js +112 -0
  225. package/dist/components/Layout/Scrollable/VirtualScrollable.js +6 -7
  226. package/dist/components/Layout/Scrollable/index.d.ts +6 -0
  227. package/dist/components/Layout/Scrollable/index.js +8 -0
  228. package/dist/components/Logos/Logos.types.d.ts +26 -0
  229. package/dist/components/Logos/Logos.types.js +1 -0
  230. package/dist/components/Logos/LogosShowcase.d.ts +5 -0
  231. package/dist/components/Logos/LogosShowcase.js +430 -0
  232. package/dist/components/Logos/cfx/CompositeLogo.d.ts +5 -0
  233. package/dist/components/Logos/cfx/CompositeLogo.js +91 -0
  234. package/dist/components/Logos/cfx/Icon.d.ts +5 -0
  235. package/dist/components/Logos/cfx/Icon.js +23 -0
  236. package/dist/components/Logos/cfx/Logo.d.ts +5 -0
  237. package/dist/components/Logos/cfx/Logo.js +70 -0
  238. package/dist/components/Logos/cfx/Wordmark.d.ts +5 -0
  239. package/dist/components/Logos/cfx/Wordmark.js +60 -0
  240. package/dist/components/Logos/cfx/index.d.ts +4 -0
  241. package/dist/components/Logos/cfx/index.js +10 -0
  242. package/dist/components/Logos/cfxbazaar/CompositeLogo.d.ts +5 -0
  243. package/dist/components/Logos/cfxbazaar/CompositeLogo.js +102 -0
  244. package/dist/components/Logos/cfxbazaar/Wordmark.d.ts +5 -0
  245. package/dist/components/Logos/cfxbazaar/Wordmark.js +81 -0
  246. package/dist/components/Logos/cfxbazaar/index.d.ts +2 -0
  247. package/dist/components/Logos/cfxbazaar/index.js +6 -0
  248. package/dist/components/Logos/discord/Icon.d.ts +5 -0
  249. package/dist/components/Logos/discord/Icon.js +23 -0
  250. package/dist/components/Logos/discord/index.d.ts +1 -0
  251. package/dist/components/Logos/discord/index.js +4 -0
  252. package/dist/components/Logos/esx/Icon.d.ts +5 -0
  253. package/dist/components/Logos/esx/Icon.js +26 -0
  254. package/dist/components/Logos/esx/index.d.ts +1 -0
  255. package/dist/components/Logos/esx/index.js +4 -0
  256. package/dist/components/Logos/fivem/CompositeLogo.d.ts +5 -0
  257. package/dist/components/Logos/fivem/CompositeLogo.js +98 -0
  258. package/dist/components/Logos/fivem/Icon.d.ts +5 -0
  259. package/dist/components/Logos/fivem/Icon.js +39 -0
  260. package/dist/components/Logos/fivem/LockupLandscape.d.ts +5 -0
  261. package/dist/components/Logos/fivem/LockupLandscape.js +81 -0
  262. package/dist/components/Logos/fivem/LockupPortrait.d.ts +5 -0
  263. package/dist/components/Logos/fivem/LockupPortrait.js +140 -0
  264. package/dist/components/Logos/fivem/Logo.d.ts +5 -0
  265. package/dist/components/Logos/fivem/Logo.js +63 -0
  266. package/dist/components/Logos/fivem/Wordmark.d.ts +5 -0
  267. package/dist/components/Logos/fivem/Wordmark.js +39 -0
  268. package/dist/components/Logos/fivem/index.d.ts +6 -0
  269. package/dist/components/Logos/fivem/index.js +14 -0
  270. package/dist/components/Logos/google/Icon.d.ts +5 -0
  271. package/dist/components/Logos/google/Icon.js +46 -0
  272. package/dist/components/Logos/google/Wordmark.d.ts +5 -0
  273. package/dist/components/Logos/google/Wordmark.js +63 -0
  274. package/dist/components/Logos/google/index.d.ts +2 -0
  275. package/dist/components/Logos/google/index.js +6 -0
  276. package/dist/components/Logos/index.d.ts +29 -0
  277. package/dist/components/Logos/index.js +33 -0
  278. package/dist/components/Logos/patreon/Icon.d.ts +5 -0
  279. package/dist/components/Logos/patreon/Icon.js +23 -0
  280. package/dist/components/Logos/patreon/Wordmark.d.ts +5 -0
  281. package/dist/components/Logos/patreon/Wordmark.js +32 -0
  282. package/dist/components/Logos/patreon/index.d.ts +2 -0
  283. package/dist/components/Logos/patreon/index.js +6 -0
  284. package/dist/components/Logos/qbcore/Icon.d.ts +5 -0
  285. package/dist/components/Logos/qbcore/Icon.js +26 -0
  286. package/dist/components/Logos/qbcore/index.d.ts +1 -0
  287. package/dist/components/Logos/qbcore/index.js +4 -0
  288. package/dist/components/Logos/redemrp/Icon.d.ts +5 -0
  289. package/dist/components/Logos/redemrp/Icon.js +26 -0
  290. package/dist/components/Logos/redemrp/index.d.ts +1 -0
  291. package/dist/components/Logos/redemrp/index.js +4 -0
  292. package/dist/components/Logos/redm/CompositeLogo.d.ts +5 -0
  293. package/dist/components/Logos/redm/CompositeLogo.js +250 -0
  294. package/dist/components/Logos/redm/Icon.d.ts +5 -0
  295. package/dist/components/Logos/redm/Icon.js +88 -0
  296. package/dist/components/Logos/redm/LockupLandscape.d.ts +5 -0
  297. package/dist/components/Logos/redm/LockupLandscape.js +231 -0
  298. package/dist/components/Logos/redm/LockupPortrait.d.ts +5 -0
  299. package/dist/components/Logos/redm/LockupPortrait.js +182 -0
  300. package/dist/components/Logos/redm/Logo.d.ts +5 -0
  301. package/dist/components/Logos/redm/Logo.js +214 -0
  302. package/dist/components/Logos/redm/Wordmark.d.ts +5 -0
  303. package/dist/components/Logos/redm/Wordmark.js +35 -0
  304. package/dist/components/Logos/redm/index.d.ts +6 -0
  305. package/dist/components/Logos/redm/index.js +14 -0
  306. package/dist/components/Logos/rockstar/Icon.d.ts +5 -0
  307. package/dist/components/Logos/rockstar/Icon.js +32 -0
  308. package/dist/components/Logos/rockstar/index.d.ts +1 -0
  309. package/dist/components/Logos/rockstar/index.js +4 -0
  310. package/dist/components/Logos/tebex/Icon.d.ts +5 -0
  311. package/dist/components/Logos/tebex/Icon.js +23 -0
  312. package/dist/components/Logos/tebex/Wordmark.d.ts +5 -0
  313. package/dist/components/Logos/tebex/Wordmark.js +34 -0
  314. package/dist/components/Logos/tebex/index.d.ts +2 -0
  315. package/dist/components/Logos/tebex/index.js +6 -0
  316. package/dist/components/Logos/vorpcore/Icon.d.ts +5 -0
  317. package/dist/components/Logos/vorpcore/Icon.js +26 -0
  318. package/dist/components/Logos/vorpcore/index.d.ts +1 -0
  319. package/dist/components/Logos/vorpcore/index.js +4 -0
  320. package/dist/components/Modal/Modal.d.ts +13 -6
  321. package/dist/components/Modal/Modal.js +75 -34
  322. package/dist/components/Modal/ModalShowcase.d.ts +5 -0
  323. package/dist/components/Modal/ModalShowcase.js +52 -0
  324. package/dist/components/Modal/index.d.ts +2 -0
  325. package/dist/components/Modal/index.js +4 -0
  326. package/dist/components/NavList/NavList.js +5 -5
  327. package/dist/components/OnScreenSensor.js +13 -10
  328. package/dist/components/Overlay/Overlay.js +10 -8
  329. package/dist/components/Popover/Popover.d.ts +5 -3
  330. package/dist/components/Popover/Popover.js +32 -26
  331. package/dist/components/Popover/PopoverShowcase.d.ts +5 -0
  332. package/dist/components/Popover/PopoverShowcase.js +53 -0
  333. package/dist/components/Popover/index.d.ts +2 -0
  334. package/dist/components/Popover/index.js +4 -0
  335. package/dist/components/Prose/Prose.js +1 -1
  336. package/dist/components/Radio/Radio.js +20 -20
  337. package/dist/components/Select/Select.d.ts +5 -3
  338. package/dist/components/Select/Select.js +1997 -2230
  339. package/dist/components/Select/SelectShowcase.d.ts +5 -0
  340. package/dist/components/Select/SelectShowcase.js +121 -0
  341. package/dist/components/Select/index.d.ts +2 -0
  342. package/dist/components/Select/index.js +4 -0
  343. package/dist/components/Separator/Separator.d.ts +2 -0
  344. package/dist/components/Separator/Separator.js +33 -22
  345. package/dist/components/Shroud/Shroud.js +11 -8
  346. package/dist/components/Spacer/Spacer.d.ts +3 -1
  347. package/dist/components/Spacer/Spacer.js +22 -18
  348. package/dist/components/Switch/Switch.d.ts +6 -15
  349. package/dist/components/Switch/Switch.js +119 -62
  350. package/dist/components/Switch/index.d.ts +2 -0
  351. package/dist/components/Switch/index.js +4 -0
  352. package/dist/components/Table/Table.js +41 -35
  353. package/dist/components/Tabular/Tabular.d.ts +20 -15
  354. package/dist/components/Tabular/Tabular.js +84 -54
  355. package/dist/components/Tabular/TabularShowcase.d.ts +5 -0
  356. package/dist/components/Tabular/TabularShowcase.js +47 -0
  357. package/dist/components/Tabular/index.d.ts +2 -0
  358. package/dist/components/Tabular/index.js +4 -0
  359. package/dist/components/Text/BodyShowcase.d.ts +5 -0
  360. package/dist/components/Text/BodyShowcase.js +133 -0
  361. package/dist/components/Text/HeadingShowcase.d.ts +5 -0
  362. package/dist/components/Text/HeadingShowcase.js +101 -0
  363. package/dist/components/Text/Text.d.ts +5 -3
  364. package/dist/components/Text/Text.js +59 -47
  365. package/dist/components/Text/Text.types.d.ts +11 -9
  366. package/dist/components/Text/TextShowcase.d.ts +12 -0
  367. package/dist/components/Text/TextShowcase.js +46 -0
  368. package/dist/components/Text/index.d.ts +2 -0
  369. package/dist/components/Text/index.js +8 -0
  370. package/dist/components/Textarea/Textarea.js +35 -35
  371. package/dist/components/Title/Title.d.ts +6 -2
  372. package/dist/components/Title/Title.js +89 -83
  373. package/dist/components/Title/TitleShowcase.d.ts +5 -0
  374. package/dist/components/Title/TitleShowcase.js +22 -0
  375. package/dist/components/ToggleGroup/ToggleGroup.d.ts +17 -0
  376. package/dist/components/ToggleGroup/ToggleGroup.js +65 -0
  377. package/dist/iconBase-C6DV9qqL.js +60 -0
  378. package/dist/{index-C1KmDBa6.js → index-2hJuj4UN.js} +939 -939
  379. package/dist/index-BCMIaGt2.js +10 -0
  380. package/dist/index-BFDtbr-9.js +8 -0
  381. package/dist/index-BgyFvlVL.js +14 -0
  382. package/dist/index-Bj7QGXdt.js +10 -0
  383. package/dist/index-CjWRnNpt.js +210 -0
  384. package/dist/index-CndZSWbO.js +8 -0
  385. package/dist/index-Cy4ZbWBL.js +8 -0
  386. package/dist/index-D7JPdg13.js +18 -0
  387. package/dist/index-DXAZagKA.js +8 -0
  388. package/dist/index-DmiGJpGO.js +8 -0
  389. package/dist/index-DwfZyjnS.js +8 -0
  390. package/dist/index-Jh-MtE10.js +18 -0
  391. package/dist/index-kbBuAY0m.js +10 -0
  392. package/dist/index-zDYfHjPd.js +10 -0
  393. package/dist/inheritsLoose-CyjgKRgL.js +21 -0
  394. package/dist/main.d.ts +36 -19
  395. package/dist/main.js +166 -148
  396. package/dist/style-guide/Colors/ColorShowcase.d.ts +21 -0
  397. package/dist/style-guide/Colors/ColorShowcase.js +1881 -0
  398. package/dist/style-guide/Colors/ColorVariationsShowcase.d.ts +5 -0
  399. package/dist/style-guide/Colors/ColorVariationsShowcase.js +43 -0
  400. package/dist/style-guide/Colors/ColorsShowcase.d.ts +5 -0
  401. package/dist/style-guide/Colors/ColorsShowcase.js +43 -0
  402. package/dist/style-guide/Layout/ControlHeightShowcase.d.ts +5 -0
  403. package/dist/style-guide/Layout/ControlHeightShowcase.js +27 -0
  404. package/dist/style-guide/Layout/OffsetShowcase.d.ts +5 -0
  405. package/dist/style-guide/Layout/OffsetShowcase.js +32 -0
  406. package/dist/style-guide/Layout/QuantShowcase.d.ts +5 -0
  407. package/dist/style-guide/Layout/QuantShowcase.js +36 -0
  408. package/dist/styles-scss/_typography.scss +52 -0
  409. package/dist/styles-scss/_ui.scss +126 -9
  410. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowDisplay.ttf +0 -0
  411. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowDisplay.woff +0 -0
  412. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowDisplay.woff2 +0 -0
  413. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowDisplayBold.ttf +0 -0
  414. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowDisplayBold.woff +0 -0
  415. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowDisplayBold.woff2 +0 -0
  416. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowText.ttf +0 -0
  417. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowText.woff +0 -0
  418. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowText.woff2 +0 -0
  419. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowTextBold.ttf +0 -0
  420. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowTextBold.woff +0 -0
  421. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowTextBold.woff2 +0 -0
  422. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowTextIt.ttf +0 -0
  423. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowTextIt.woff +0 -0
  424. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowTextIt.woff2 +0 -0
  425. package/dist/styles-scss/global.scss +94 -41
  426. package/dist/styles-scss/themes/theme_cfx.scss +32 -0
  427. package/dist/styles-scss/themes/theme_fivem.scss +32 -0
  428. package/dist/styles-scss/themes/theme_redm.scss +32 -0
  429. package/dist/styles-scss/themes/theme_wireframe.scss +32 -0
  430. package/dist/styles-scss/themes.scss +4 -2
  431. package/dist/styles-scss/tokens.scss +269 -190
  432. package/dist/types/Offset.d.ts +1 -0
  433. package/dist/types/Offset.js +1 -0
  434. package/dist/utils/color.d.ts +9 -0
  435. package/dist/utils/color.js +18 -0
  436. package/dist/utils/hooks/index.d.ts +8 -0
  437. package/dist/utils/hooks/index.js +16 -0
  438. package/dist/utils/hooks/useDynamicRef.d.ts +3 -0
  439. package/dist/utils/hooks/useDynamicRef.js +8 -0
  440. package/dist/utils/hooks/useGlobalKeyboardEvent.d.ts +6 -0
  441. package/dist/utils/hooks/useGlobalKeyboardEvent.js +29 -0
  442. package/dist/utils/hooks/useInstance.d.ts +1 -0
  443. package/dist/utils/hooks/useInstance.js +9 -0
  444. package/dist/utils/hooks/useKeyboardClose.d.ts +4 -0
  445. package/dist/utils/hooks/useKeyboardClose.js +12 -0
  446. package/dist/utils/hooks/useOutlet.d.ts +4 -0
  447. package/dist/utils/hooks/useOutlet.js +26 -0
  448. package/dist/utils/hooks/usePopoverController.d.ts +9 -0
  449. package/dist/utils/hooks/usePopoverController.js +35 -0
  450. package/dist/utils/hooks/useWindowResize.d.ts +1 -0
  451. package/dist/utils/hooks/useWindowResize.js +12 -0
  452. package/dist/utils/loremipsum.d.ts +1 -0
  453. package/dist/utils/loremipsum.js +4 -0
  454. package/dist/utils/random.d.ts +3 -0
  455. package/dist/utils/random.js +14 -0
  456. package/package.json +5 -6
  457. package/dist/Button.module-Z6njvP9Z.js +0 -17
  458. package/dist/Icons-BlBKvJD8.js +0 -104
  459. package/dist/Rail-CCuyJpf6.js +0 -89
  460. package/dist/extends-hS2Bh-Yp.js +0 -12
  461. package/dist/index.esm-BkynlSN6.js +0 -72
  462. package/dist/inheritsLoose-A8WKSWDx.js +0 -11
  463. package/dist/style-guide/Colours/DarkThemeSwatches.d.ts +0 -2
  464. package/dist/style-guide/Colours/DarkThemeSwatches.js +0 -110
  465. package/dist/style-guide/Colours/LightThemeSwatches.d.ts +0 -2
  466. package/dist/style-guide/Colours/LightThemeSwatches.js +0 -105
  467. package/dist/style-guide/Colours/Swatches.d.ts +0 -6
  468. package/dist/style-guide/Colours/Swatches.js +0 -48
  469. package/dist/style-guide/Icons/IconDisplayGrid.js +0 -42
  470. package/dist/style-guide/Icons/Icons.d.ts +0 -38
  471. package/dist/style-guide/Icons/Icons.js +0 -7
  472. package/dist/styles-scss/assets/images/bgpat.png +0 -0
  473. package/dist/styles-scss/assets/images/checkered_dark.svg +0 -7
  474. package/dist/styles-scss/assets/images/checkered_light.svg +0 -7
  475. package/dist/styles-scss/theme_dark.scss +0 -24
  476. package/dist/styles-scss/theme_light.scss +0 -54
  477. package/dist/utils/hooks.d.ts +0 -15
  478. package/dist/utils/hooks.js +0 -79
  479. /package/dist/{style-guide/Icons/IconDisplayGrid.d.ts → components/Icons/IconsShowcase.d.ts} +0 -0
@@ -1,9 +1,12 @@
1
- export type TextColor = 'inherit' | 'main' | 'primary' | 'teal' | 'success' | 'warning' | 'error';
2
- export type TextSize = 'xsmall' | 'small' | 'normal' | 'large' | 'xlarge' | 'xxlarge';
1
+ import { GetColorProps } from '../../utils/color';
2
+
3
+ export type TextSize = 'xxsmall' | 'xsmall' | 'small' | 'normal' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge';
3
4
  export type TextWeight = 'thin' | 'normal' | 'bold' | 'bolder';
4
5
  export type TextOpacity = '0' | '25' | '50' | '75' | '100';
6
+ export type TextAs = 'span' | 'div' | 'p' | 'label' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
7
+ export type TextLetterSpacing = 'normal' | 'large';
5
8
  interface TextPropsBase {
6
- asDiv?: boolean;
9
+ as?: TextAs;
7
10
  centered?: boolean;
8
11
  truncated?: boolean;
9
12
  /**
@@ -15,18 +18,17 @@ interface TextPropsBase {
15
18
  */
16
19
  userSelectable?: boolean;
17
20
  uppercase?: boolean;
21
+ underlined?: boolean;
18
22
  size?: TextSize;
19
23
  weight?: TextWeight;
20
- family?: 'primary' | 'secondary' | 'monospace';
24
+ letterSpacing?: TextLetterSpacing;
25
+ family?: 'primary' | 'secondary';
21
26
  children?: React.ReactNode;
22
27
  className?: string;
23
28
  }
24
- interface TextPropsFullControl extends TextPropsBase {
25
- color?: TextColor;
29
+ export interface TextColorProps extends GetColorProps {
26
30
  opacity?: TextOpacity;
27
31
  }
28
- interface TextPropsColorToken extends TextPropsBase {
29
- colorToken: string;
32
+ export interface TextProps extends TextPropsBase, TextColorProps {
30
33
  }
31
- export type TextProps = TextPropsFullControl | TextPropsColorToken;
32
34
  export {};
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { TextProps } from './Text.types';
3
+
4
+ interface TextShowcaseProps {
5
+ items: {
6
+ textProps: TextProps;
7
+ title: string;
8
+ descriptions: string[];
9
+ }[];
10
+ }
11
+ declare const _default: React.NamedExoticComponent<TextShowcaseProps>;
12
+ export default _default;
@@ -0,0 +1,46 @@
1
+ import { jsx as o, jsxs as t, Fragment as e } from "react/jsx-runtime";
2
+ import a from "react";
3
+ import { Text as c } from "./Text.js";
4
+ import { Separator as d } from "../Separator/Separator.js";
5
+ import '../../assets/TextShowcase.css';const h = "_root_18nng_1", f = {
6
+ root: h
7
+ }, T = "The quick brown fox jumps over the lazy dog.", m = "How vexingly quick daft zebras jump.";
8
+ function u() {
9
+ return /* @__PURE__ */ t(e, { children: [
10
+ T,
11
+ /* @__PURE__ */ o("br", {}),
12
+ m
13
+ ] });
14
+ }
15
+ const _ = {
16
+ color: "secondary"
17
+ };
18
+ function x(l) {
19
+ const {
20
+ items: p
21
+ } = l;
22
+ return /* @__PURE__ */ o("div", { className: f.root, children: p.map((r) => /* @__PURE__ */ t(e, { children: [
23
+ /* @__PURE__ */ t("div", { children: [
24
+ /* @__PURE__ */ o(c, { ...r.textProps, children: r.title }),
25
+ /* @__PURE__ */ o("br", {}),
26
+ /* @__PURE__ */ t(c, { ..._, children: [
27
+ r.descriptions.map((n, s) => /* @__PURE__ */ t(e, { children: [
28
+ n,
29
+ s < r.descriptions.length - 1 && /* @__PURE__ */ o("br", {})
30
+ ] })),
31
+ Object.entries(r.textProps).map(([n, s], i) => /* @__PURE__ */ t(e, { children: [
32
+ r.descriptions.length > 0 && i === 0 && /* @__PURE__ */ o(d, { content: "props", offset: "large" }),
33
+ n,
34
+ ": ",
35
+ s.toString(),
36
+ i < r.descriptions.length - 1 && /* @__PURE__ */ o("br", {})
37
+ ] }))
38
+ ] })
39
+ ] }),
40
+ /* @__PURE__ */ o(c, { ...r.textProps, children: /* @__PURE__ */ o(u, {}) })
41
+ ] })) });
42
+ }
43
+ const j = a.memo(x);
44
+ export {
45
+ j as default
46
+ };
@@ -0,0 +1,2 @@
1
+ export { Text, TextBlock, TEXT_OPACITY_MAP, DEFAULT_TEXT_COLOR, getTextOpacity, } from './Text';
2
+ export type { TextSize, TextWeight, TextOpacity, TextAs, TextLetterSpacing, TextProps, TextColorProps, } from './Text.types';
@@ -0,0 +1,8 @@
1
+ import { DEFAULT_TEXT_COLOR as e, TEXT_OPACITY_MAP as x, Text as O, TextBlock as _, getTextOpacity as o } from "./Text.js";
2
+ export {
3
+ e as DEFAULT_TEXT_COLOR,
4
+ x as TEXT_OPACITY_MAP,
5
+ O as Text,
6
+ _ as TextBlock,
7
+ o as getTextOpacity
8
+ };
@@ -1,57 +1,57 @@
1
- import { jsx as t, jsxs as z } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as f } from "react/jsx-runtime";
2
2
  import _ from "react";
3
3
  import { clsx as p } from "../../utils/clsx.js";
4
- import '../../assets/Textarea.css';const k = "_root_1gmfx_1", v = "_small_1gmfx_7", C = "_large_1gmfx_11", N = "_error_1gmfx_15", w = "_disabled_1gmfx_19", e = {
5
- root: k,
6
- "full-width": "_full-width_1gmfx_4",
7
- small: v,
8
- large: C,
9
- error: N,
10
- disabled: w,
11
- "resize-none": "_resize-none_1gmfx_57",
12
- "resize-vertical": "_resize-vertical_1gmfx_60",
13
- "resize-horizontal": "_resize-horizontal_1gmfx_63",
14
- "resize-both": "_resize-both_1gmfx_66",
15
- "backdrop-blur": "_backdrop-blur_1gmfx_83"
4
+ import '../../assets/Textarea.css';const g = "_root_1ayj5_1", x = "_small_1ayj5_7", k = "_large_1ayj5_11", v = "_error_1ayj5_15", C = "_disabled_1ayj5_19", e = {
5
+ root: g,
6
+ "full-width": "_full-width_1ayj5_4",
7
+ small: x,
8
+ large: k,
9
+ error: v,
10
+ disabled: C,
11
+ "resize-none": "_resize-none_1ayj5_63",
12
+ "resize-vertical": "_resize-vertical_1ayj5_66",
13
+ "resize-horizontal": "_resize-horizontal_1ayj5_69",
14
+ "resize-both": "_resize-both_1ayj5_72",
15
+ "backdrop-blur": "_backdrop-blur_1ayj5_110"
16
16
  };
17
- function B(n) {
17
+ function I(n) {
18
18
  const {
19
19
  value: c,
20
- onChange: r,
21
- label: o,
20
+ onChange: a,
21
+ label: r,
22
22
  placeholder: i,
23
23
  rows: d,
24
- resize: m = "none",
25
- disabled: a = !1,
26
- autofocus: f,
27
- className: g,
28
- backdropBlur: x = !1
29
- } = n, b = _.useCallback(
30
- (h) => {
31
- r(h.target.value);
24
+ resize: b = "none",
25
+ disabled: o = !1,
26
+ autofocus: u,
27
+ className: h,
28
+ backdropBlur: m = !1
29
+ } = n, j = _.useCallback(
30
+ (y) => {
31
+ a(y.target.value);
32
32
  },
33
- [r]
33
+ [a]
34
34
  ), l = _.useId(), s = /* @__PURE__ */ t(
35
35
  "textarea",
36
36
  {
37
- autoFocus: f,
37
+ autoFocus: u,
38
38
  id: l,
39
- className: e[`resize-${m}`],
39
+ className: e[`resize-${b}`],
40
40
  rows: d,
41
41
  value: c,
42
- disabled: a,
43
- onChange: b,
42
+ disabled: o,
43
+ onChange: j,
44
44
  placeholder: i
45
45
  }
46
- ), u = p(e.root, g, {
47
- [e.disabled]: a,
48
- [e["backdrop-blur"]]: x
46
+ ), z = p(e.root, h, {
47
+ [e.disabled]: o,
48
+ [e["backdrop-blur"]]: m
49
49
  });
50
- return /* @__PURE__ */ t("div", { className: u, children: o ? /* @__PURE__ */ z("label", { htmlFor: l, children: [
51
- o,
50
+ return /* @__PURE__ */ t("div", { className: z, children: r ? /* @__PURE__ */ f("label", { htmlFor: l, children: [
51
+ r,
52
52
  s
53
53
  ] }) : s });
54
54
  }
55
55
  export {
56
- B as Textarea
56
+ I as Textarea
57
57
  };
@@ -1,14 +1,18 @@
1
1
  import { default as React } from 'react';
2
2
 
3
3
  export declare const TITLE_OUTLET_ID = "title-outlet";
4
- type FixedOn = 'top' | 'top-left' | 'right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left';
4
+ export type FixedOn = 'top' | 'top-left' | 'right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left';
5
5
  type TitleChildren = ((ref: React.RefObject<any>) => React.ReactNode) | React.ReactElement;
6
6
  export interface TitleProps {
7
+ children: TitleChildren;
7
8
  title?: React.ReactNode;
8
9
  delay?: number;
9
10
  animated?: boolean;
11
+ suppressMouseActivation?: boolean;
10
12
  fixedOn?: FixedOn;
11
- children: TitleChildren;
13
+ active?: boolean;
14
+ className?: string;
15
+ rootClassName?: string;
12
16
  }
13
17
  export declare function Title(props: TitleProps): import("react/jsx-runtime").JSX.Element;
14
18
  export {};
@@ -1,114 +1,120 @@
1
- import { jsxs as T, Fragment as w, jsx as p } from "react/jsx-runtime";
2
- import f from "react";
3
- import { clsx as O } from "../../utils/clsx.js";
4
- import { useOutlet as k } from "../../utils/hooks.js";
5
- import { mergeRefs as y } from "../../utils/mergeRefs.js";
6
- import '../../assets/Title.css';const C = "_wrapper_1l1sn_1", R = "_appearance_1l1sn_1", $ = "_animated_1l1sn_26", M = "_root_1l1sn_71", N = "_shortcut_1l1sn_84", m = {
7
- wrapper: C,
8
- appearance: R,
9
- animated: $,
10
- "fixed-on-top": "_fixed-on-top_1l1sn_29",
11
- "fixed-on-top-left": "_fixed-on-top-left_1l1sn_35",
12
- "fixed-on-bottom": "_fixed-on-bottom_1l1sn_41",
13
- "fixed-on-bottom-left": "_fixed-on-bottom-left_1l1sn_47",
14
- "fixed-on-bottom-right": "_fixed-on-bottom-right_1l1sn_53",
15
- "fixed-on-left": "_fixed-on-left_1l1sn_59",
16
- "fixed-on-right": "_fixed-on-right_1l1sn_65",
17
- root: M,
18
- shortcut: N
19
- }, i = 10, S = "title-outlet";
20
- function F(l, a, [e, n]) {
21
- const r = l ? n : n - 20, s = l ? e : e + 16;
1
+ import { jsx as h, jsxs as O, Fragment as R } from "react/jsx-runtime";
2
+ import i from "react";
3
+ import { clsx as L } from "../../utils/clsx.js";
4
+ import "../../utils/hooks/useGlobalKeyboardEvent.js";
5
+ import "../../utils/hooks/useKeyboardClose.js";
6
+ import { useOutlet as M } from "../../utils/hooks/useOutlet.js";
7
+ import { mergeRefs as C } from "../../utils/mergeRefs.js";
8
+ import '../../assets/Title.css';const N = "_wrapper_11ky5_1", $ = "_appearance_11ky5_1", A = "_animated_11ky5_26", F = "_root_11ky5_71", I = "_shortcut_11ky5_84", _ = {
9
+ wrapper: N,
10
+ appearance: $,
11
+ animated: A,
12
+ "fixed-on-top": "_fixed-on-top_11ky5_29",
13
+ "fixed-on-top-left": "_fixed-on-top-left_11ky5_35",
14
+ "fixed-on-bottom": "_fixed-on-bottom_11ky5_41",
15
+ "fixed-on-bottom-left": "_fixed-on-bottom-left_11ky5_47",
16
+ "fixed-on-bottom-right": "_fixed-on-bottom-right_11ky5_53",
17
+ "fixed-on-left": "_fixed-on-left_11ky5_59",
18
+ "fixed-on-right": "_fixed-on-right_11ky5_65",
19
+ root: F,
20
+ shortcut: I
21
+ }, f = 10, S = "title-outlet";
22
+ function j(u, a, [e, r]) {
23
+ const n = u ? r : r - 20, s = u ? e : e + 16;
22
24
  return {
23
- // Prefer top and left for element to snap to the pixel grid
24
- // as when using transform it will become blurry in most of the cases as top and left values are floats
25
- top: `${r}px`,
25
+ top: `${n}px`,
26
26
  left: `${s}px`,
27
- // transform: `translate(${left}px, ${top}px)`,
28
27
  maxWidth: `calc(100vw - ${s}px - 10px)`,
29
28
  animationDelay: `${a}ms`
30
29
  };
31
30
  }
32
- function I(l, a) {
31
+ function D(u, a) {
33
32
  const {
34
33
  x: e,
35
- y: n,
36
- width: r,
34
+ y: r,
35
+ width: n,
37
36
  height: s
38
- } = l.getBoundingClientRect();
39
- let t = 0, c = 0;
37
+ } = u.getBoundingClientRect();
38
+ let c = 0, t = 0;
40
39
  switch (a) {
41
- case "top": {
42
- t = e + r / 2, c = n - i;
40
+ case "top":
41
+ c = e + n / 2, t = r - f;
43
42
  break;
44
- }
45
- case "top-left": {
46
- t = e, c = n - i;
43
+ case "top-left":
44
+ c = e, t = r - f;
47
45
  break;
48
- }
49
- case "bottom": {
50
- t = e + r / 2, c = n + s + i;
46
+ case "bottom":
47
+ c = e + n / 2, t = r + s + f;
51
48
  break;
52
- }
53
- case "bottom-left": {
54
- t = e, c = n + s + i;
49
+ case "bottom-left":
50
+ c = e, t = r + s + f;
55
51
  break;
56
- }
57
- case "bottom-right": {
58
- t = e + r, c = n + s + i;
52
+ case "bottom-right":
53
+ c = e + n, t = r + s + f;
59
54
  break;
60
- }
61
- case "left": {
62
- t = e - i, c = n + s / 2;
55
+ case "left":
56
+ c = e - f, t = r + s / 2;
63
57
  break;
64
- }
65
- case "right": {
66
- t = e + r + i, c = n + s / 2;
58
+ case "right":
59
+ c = e + n + f, t = r + s / 2;
67
60
  break;
68
- }
69
61
  }
70
- return [t, c];
62
+ return [c, t];
71
63
  }
72
- function B(l) {
64
+ function G(u) {
73
65
  const {
74
66
  title: a,
75
67
  children: e,
76
- animated: n = !0,
77
- fixedOn: r = "bottom",
78
- delay: s = 0
79
- } = l, t = f.useRef(r);
80
- t.current = r;
81
- const c = k(S), o = f.useRef(null), [g, x] = f.useState(!1), [E, _] = f.useState([0, 0]);
82
- f.useEffect(() => {
68
+ animated: r = !0,
69
+ fixedOn: n = "bottom",
70
+ delay: s = 0,
71
+ className: c = "",
72
+ suppressMouseActivation: t = !1,
73
+ active: v = !1,
74
+ rootClassName: k = ""
75
+ } = u, m = i.useRef(n), d = i.useRef([0, 0]);
76
+ m.current = n;
77
+ const y = M(S), o = i.useRef(null), [b, x] = i.useState(!1);
78
+ i.useEffect(() => {
79
+ t && x(v);
80
+ }, [v, t]), i.useEffect(() => {
83
81
  if (!o.current)
84
82
  return;
85
- const d = (u) => {
86
- t.current && o.current ? _(I(o.current, t.current)) : _([u.clientX, u.clientY]), x(!0);
87
- }, v = () => {
88
- x(!1);
89
- }, b = (u) => {
90
- t.current || _([u.clientX, u.clientY]);
83
+ const p = (l) => {
84
+ m.current && o.current ? d.current = D(o.current, m.current) : d.current = [l.clientX, l.clientY], t || x(!0);
85
+ }, E = () => {
86
+ t || x(!1);
87
+ }, g = (l) => {
88
+ m.current || (d.current = [l.clientX, l.clientY]);
91
89
  };
92
- return o.current.addEventListener("mouseenter", d), o.current.addEventListener("mouseleave", v), o.current.addEventListener("mousemove", b), () => {
93
- o.current && (o.current.removeEventListener("mouseenter", d), o.current.removeEventListener("mouseleave", v), o.current.removeEventListener("mousemove", b));
90
+ return o.current.addEventListener("mouseenter", p), o.current.addEventListener("mouseleave", E), o.current.addEventListener("mousemove", g), () => {
91
+ o.current && (o.current.removeEventListener("mouseenter", p), o.current.removeEventListener("mouseleave", E), o.current.removeEventListener("mousemove", g));
94
92
  };
95
- }, []);
96
- let h = null;
97
- if (g && a) {
98
- const d = O(m.wrapper, m[`fixed-on-${r}`], {
99
- [m.animated]: n
100
- });
101
- h = /* @__PURE__ */ p(c, { children: /* @__PURE__ */ p("div", { className: d, style: F(!!r, s, E), children: /* @__PURE__ */ p("div", { className: m.root, children: a }) }) });
102
- }
103
- const L = typeof e == "function" ? e(o) : f.cloneElement(e, {
104
- ref: y(o, e.props.ref)
105
- });
106
- return /* @__PURE__ */ T(w, { children: [
107
- L,
108
- h
93
+ }, [t]);
94
+ const T = i.useMemo(() => {
95
+ if (!b || !a)
96
+ return null;
97
+ const p = L(
98
+ _.wrapper,
99
+ _[`fixed-on-${n}`],
100
+ {
101
+ [_.animated]: r
102
+ },
103
+ c
104
+ );
105
+ return /* @__PURE__ */ h(y, { children: /* @__PURE__ */ h("div", { className: p, style: j(!!n, s, d.current), children: /* @__PURE__ */ h("div", { className: L(_.root, k), children: a }) }) });
106
+ }, [b, a, n, r, y, s, c, k]), w = i.useMemo(
107
+ () => typeof e == "function" ? e(o) : i.cloneElement(e, {
108
+ ref: C(o, e.props.ref)
109
+ }),
110
+ [e, o]
111
+ );
112
+ return /* @__PURE__ */ O(R, { children: [
113
+ w,
114
+ T
109
115
  ] });
110
116
  }
111
117
  export {
112
118
  S as TITLE_OUTLET_ID,
113
- B as Title
119
+ G as Title
114
120
  };
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare function TitleShowcase(): import("react/jsx-runtime").JSX.Element;
4
+ declare const _default: React.MemoExoticComponent<typeof TitleShowcase>;
5
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ import i from "react";
3
+ import { Flex as r } from "../Layout/Flex/Flex.js";
4
+ import { Text as o } from "../Text/Text.js";
5
+ import { Title as l } from "./Title.js";
6
+ function a() {
7
+ return /* @__PURE__ */ e(r, { gap: "large", vertical: !0, children: /* @__PURE__ */ t(r, { gap: "normal", vertical: !0, children: [
8
+ /* @__PURE__ */ e(o, { children: "Hover case" }),
9
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
10
+ l,
11
+ {
12
+ title: "This is a title",
13
+ fixedOn: "bottom",
14
+ children: /* @__PURE__ */ e("span", { style: { marginTop: "100px" }, children: "Hover me" })
15
+ }
16
+ ) })
17
+ ] }) });
18
+ }
19
+ const d = i.memo(a);
20
+ export {
21
+ d as default
22
+ };
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface ToggleGroupOption {
4
+ value: string;
5
+ label: React.ReactNode;
6
+ icon?: React.ReactNode;
7
+ description?: string;
8
+ }
9
+ export interface ToggleGroupProps {
10
+ value: string;
11
+ options: ToggleGroupOption[];
12
+ onChange: <T extends string>(value: T) => void;
13
+ className?: string;
14
+ disabled?: boolean;
15
+ multiline?: boolean;
16
+ }
17
+ export declare const ToggleGroup: React.NamedExoticComponent<ToggleGroupProps>;
@@ -0,0 +1,65 @@
1
+ import { jsxs as d, jsx as p } from "react/jsx-runtime";
2
+ import l from "react";
3
+ import { Interactive as g } from "../Interactive/Interactive.js";
4
+ import { clsx as _ } from "../../utils/clsx.js";
5
+ import '../../assets/ToggleGroup.css';const x = "_root_11k2w_1", D = "_disabled_11k2w_7", j = "_descripted_11k2w_11", E = "_multiline_11k2w_14", L = "_options_11k2w_18", O = "_option_11k2w_18", S = "_description_11k2w_25", G = "_active_11k2w_70", e = {
6
+ root: x,
7
+ disabled: D,
8
+ descripted: j,
9
+ multiline: E,
10
+ options: L,
11
+ option: O,
12
+ description: S,
13
+ active: G
14
+ }, m = (a, i) => {
15
+ var o;
16
+ return ((o = i.find((t) => t.value === a)) == null ? void 0 : o.description) || "";
17
+ }, y = l.memo(function(i) {
18
+ const {
19
+ value: o,
20
+ options: t,
21
+ onChange: r,
22
+ className: u = "",
23
+ disabled: v = !1,
24
+ multiline: f = !1
25
+ } = i, [n, c] = l.useState(m(o, t)), k = l.useMemo(
26
+ () => t.map((s, w) => {
27
+ const N = () => {
28
+ r(s.value);
29
+ }, b = () => {
30
+ c(s.description || "");
31
+ }, C = () => {
32
+ c(m(o, t));
33
+ }, M = _(e.option, {
34
+ [e.active]: s.value === o
35
+ });
36
+ return /* @__PURE__ */ d(
37
+ g,
38
+ {
39
+ className: M,
40
+ tabIndex: w,
41
+ onClick: N,
42
+ onMouseEnter: b,
43
+ onMouseLeave: C,
44
+ children: [
45
+ s.icon || null,
46
+ s.label
47
+ ]
48
+ },
49
+ s.value
50
+ );
51
+ }),
52
+ [o, t, r, c]
53
+ ), h = _(e.root, u, {
54
+ [e.disabled]: v,
55
+ [e.descripted]: n,
56
+ [e.multiline]: f
57
+ });
58
+ return /* @__PURE__ */ d("div", { className: h, children: [
59
+ /* @__PURE__ */ p("div", { className: e.options, children: k }),
60
+ n && /* @__PURE__ */ p("div", { className: e.description, children: n })
61
+ ] });
62
+ });
63
+ export {
64
+ y as ToggleGroup
65
+ };
@@ -0,0 +1,60 @@
1
+ import i from "react";
2
+ var s = {
3
+ color: void 0,
4
+ size: void 0,
5
+ className: void 0,
6
+ style: void 0,
7
+ attr: void 0
8
+ }, f = i.createContext && i.createContext(s), l = function() {
9
+ return l = Object.assign || function(e) {
10
+ for (var n, t = 1, r = arguments.length; t < r; t++) {
11
+ n = arguments[t];
12
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
13
+ }
14
+ return e;
15
+ }, l.apply(this, arguments);
16
+ }, y = function(e, n) {
17
+ var t = {};
18
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && n.indexOf(r) < 0 && (t[r] = e[r]);
19
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
20
+ n.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (t[r[a]] = e[r[a]]);
21
+ return t;
22
+ };
23
+ function m(e) {
24
+ return e && e.map(function(n, t) {
25
+ return i.createElement(n.tag, l({
26
+ key: t
27
+ }, n.attr), m(n.child));
28
+ });
29
+ }
30
+ function h(e) {
31
+ return function(n) {
32
+ return i.createElement(g, l({
33
+ attr: l({}, e.attr)
34
+ }, n), m(e.child));
35
+ };
36
+ }
37
+ function g(e) {
38
+ var n = function(t) {
39
+ var r = e.attr, a = e.size, c = e.title, d = y(e, ["attr", "size", "title"]), o = a || t.size || "1em", u;
40
+ return t.className && (u = t.className), e.className && (u = (u ? u + " " : "") + e.className), i.createElement("svg", l({
41
+ stroke: "currentColor",
42
+ fill: "currentColor",
43
+ strokeWidth: "0"
44
+ }, t.attr, r, d, {
45
+ className: u,
46
+ style: l(l({
47
+ color: e.color || t.color
48
+ }, t.style), e.style),
49
+ height: o,
50
+ width: o,
51
+ xmlns: "http://www.w3.org/2000/svg"
52
+ }), c && i.createElement("title", null, c), e.children);
53
+ };
54
+ return f !== void 0 ? i.createElement(f.Consumer, null, function(t) {
55
+ return n(t);
56
+ }) : n(s);
57
+ }
58
+ export {
59
+ h as G
60
+ };