@mrshmllw/smores-react 10.7.0-crumbs-feature-vite-bundling.1 → 10.7.0-crumbs-feature-vite-bundling.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 (378) hide show
  1. package/dist/Accordion/Accordion.d.ts +15 -0
  2. package/dist/Accordion/index.d.ts +1 -0
  3. package/dist/ActionDropdown/ActionDropdown.d.ts +16 -0
  4. package/dist/ActionDropdown/List.d.ts +14 -0
  5. package/dist/ActionDropdown/index.d.ts +1 -0
  6. package/dist/Badge/Badge.d.ts +16 -0
  7. package/dist/Badge/BadgeFallbackImage.d.ts +6 -0
  8. package/dist/Badge/index.d.ts +1 -0
  9. package/dist/BadgeList/BadgeList.d.ts +26 -0
  10. package/dist/BadgeList/index.d.ts +1 -0
  11. package/dist/Banner/BannerContainer.d.ts +7 -0
  12. package/dist/Banner/BannerItem.d.ts +7 -0
  13. package/dist/Banner/hooks.d.ts +3 -0
  14. package/dist/Banner/index.d.ts +2 -0
  15. package/dist/Banner/types.d.ts +19 -0
  16. package/dist/Box/Box.d.ts +14 -0
  17. package/dist/Box/index.d.ts +1 -0
  18. package/dist/BrandCard/BrandCard.d.ts +27 -0
  19. package/dist/BrandCard/index.d.ts +1 -0
  20. package/dist/Button/Button.d.ts +23 -0
  21. package/dist/Button/index.d.ts +1 -0
  22. package/dist/Card/Card.d.ts +38 -0
  23. package/dist/Card/index.d.ts +1 -0
  24. package/dist/CheckBox/CheckBox.d.ts +10 -0
  25. package/dist/CheckBox/index.d.ts +1 -0
  26. package/dist/CheckBoxGroup/CheckBoxGroup.d.ts +15 -0
  27. package/dist/CheckBoxGroup/index.d.ts +1 -0
  28. package/dist/Chip/Chip.d.ts +15 -0
  29. package/dist/Chip/index.d.ts +1 -0
  30. package/dist/CurrencyInput/CurrencyInput.d.ts +24 -0
  31. package/dist/CurrencyInput/index.d.ts +1 -0
  32. package/dist/Datepicker/Datepicker.d.ts +18 -0
  33. package/dist/Datepicker/DatesList.d.ts +9 -0
  34. package/dist/Datepicker/index.d.ts +1 -0
  35. package/dist/Datepicker/types.d.ts +6 -0
  36. package/dist/Divider/Divider.d.ts +9 -0
  37. package/dist/Divider/index.d.ts +1 -0
  38. package/dist/Dropdown/Dropdown.d.ts +32 -0
  39. package/dist/Dropdown/index.d.ts +1 -0
  40. package/dist/Emoji/Emoji.d.ts +13 -0
  41. package/dist/Emoji/index.d.ts +1 -0
  42. package/dist/Icon/Icon.d.ts +17 -0
  43. package/dist/Icon/iconFiles/Aa.d.ts +3 -0
  44. package/dist/Icon/iconFiles/AaInverted.d.ts +3 -0
  45. package/dist/Icon/iconFiles/AccidentalDamage.d.ts +3 -0
  46. package/dist/Icon/iconFiles/AccountBreakdown.d.ts +3 -0
  47. package/dist/Icon/iconFiles/AccountMlp.d.ts +3 -0
  48. package/dist/Icon/iconFiles/ActivityClipboard.d.ts +3 -0
  49. package/dist/Icon/iconFiles/AddOns.d.ts +3 -0
  50. package/dist/Icon/iconFiles/AddressMta.d.ts +3 -0
  51. package/dist/Icon/iconFiles/Ai.d.ts +3 -0
  52. package/dist/Icon/iconFiles/AlbumAudio.d.ts +3 -0
  53. package/dist/Icon/iconFiles/Alert.d.ts +3 -0
  54. package/dist/Icon/iconFiles/AlertEngine.d.ts +3 -0
  55. package/dist/Icon/iconFiles/Amex.d.ts +3 -0
  56. package/dist/Icon/iconFiles/ApplePay.d.ts +3 -0
  57. package/dist/Icon/iconFiles/ApprovedFile.d.ts +3 -0
  58. package/dist/Icon/iconFiles/Archive.d.ts +3 -0
  59. package/dist/Icon/iconFiles/Arrow.d.ts +3 -0
  60. package/dist/Icon/iconFiles/At.d.ts +3 -0
  61. package/dist/Icon/iconFiles/Axa.d.ts +3 -0
  62. package/dist/Icon/iconFiles/Bank.d.ts +3 -0
  63. package/dist/Icon/iconFiles/Basket.d.ts +3 -0
  64. package/dist/Icon/iconFiles/Bicycle.d.ts +3 -0
  65. package/dist/Icon/iconFiles/Boost.d.ts +3 -0
  66. package/dist/Icon/iconFiles/Breakdown.d.ts +3 -0
  67. package/dist/Icon/iconFiles/BreakdownAlt.d.ts +3 -0
  68. package/dist/Icon/iconFiles/Briefcase.d.ts +3 -0
  69. package/dist/Icon/iconFiles/Bullets.d.ts +3 -0
  70. package/dist/Icon/iconFiles/Burger.d.ts +3 -0
  71. package/dist/Icon/iconFiles/Calendar.d.ts +3 -0
  72. package/dist/Icon/iconFiles/Camera.d.ts +3 -0
  73. package/dist/Icon/iconFiles/Cancel.d.ts +3 -0
  74. package/dist/Icon/iconFiles/CancelBw.d.ts +3 -0
  75. package/dist/Icon/iconFiles/Car.d.ts +3 -0
  76. package/dist/Icon/iconFiles/CarMta.d.ts +3 -0
  77. package/dist/Icon/iconFiles/CarRepairs.d.ts +3 -0
  78. package/dist/Icon/iconFiles/CarReplacement.d.ts +3 -0
  79. package/dist/Icon/iconFiles/CarUsage.d.ts +3 -0
  80. package/dist/Icon/iconFiles/Card.d.ts +3 -0
  81. package/dist/Icon/iconFiles/Caret.d.ts +5 -0
  82. package/dist/Icon/iconFiles/CaretUp.d.ts +6 -0
  83. package/dist/Icon/iconFiles/Charge.d.ts +3 -0
  84. package/dist/Icon/iconFiles/Chat.d.ts +3 -0
  85. package/dist/Icon/iconFiles/ChatBubble.d.ts +3 -0
  86. package/dist/Icon/iconFiles/Checkout.d.ts +3 -0
  87. package/dist/Icon/iconFiles/CheckoutWithText.d.ts +3 -0
  88. package/dist/Icon/iconFiles/CircleTick.d.ts +3 -0
  89. package/dist/Icon/iconFiles/City.d.ts +3 -0
  90. package/dist/Icon/iconFiles/Claim.d.ts +3 -0
  91. package/dist/Icon/iconFiles/ClaimLine.d.ts +3 -0
  92. package/dist/Icon/iconFiles/Clipboard.d.ts +3 -0
  93. package/dist/Icon/iconFiles/ClipboardCheck.d.ts +3 -0
  94. package/dist/Icon/iconFiles/Clock.d.ts +3 -0
  95. package/dist/Icon/iconFiles/ClosePanel.d.ts +3 -0
  96. package/dist/Icon/iconFiles/Collapse.d.ts +3 -0
  97. package/dist/Icon/iconFiles/Confused.d.ts +3 -0
  98. package/dist/Icon/iconFiles/ConfusedBlue.d.ts +3 -0
  99. package/dist/Icon/iconFiles/ContactEmail.d.ts +3 -0
  100. package/dist/Icon/iconFiles/Copy.d.ts +3 -0
  101. package/dist/Icon/iconFiles/Crop.d.ts +3 -0
  102. package/dist/Icon/iconFiles/Cross.d.ts +3 -0
  103. package/dist/Icon/iconFiles/DashboardHigh.d.ts +3 -0
  104. package/dist/Icon/iconFiles/DirectDebit.d.ts +3 -0
  105. package/dist/Icon/iconFiles/DocDownload.d.ts +3 -0
  106. package/dist/Icon/iconFiles/DocUpload.d.ts +3 -0
  107. package/dist/Icon/iconFiles/Download.d.ts +3 -0
  108. package/dist/Icon/iconFiles/Earth.d.ts +3 -0
  109. package/dist/Icon/iconFiles/Edit.d.ts +3 -0
  110. package/dist/Icon/iconFiles/EditContact.d.ts +3 -0
  111. package/dist/Icon/iconFiles/EditOutline.d.ts +3 -0
  112. package/dist/Icon/iconFiles/EmailFilled.d.ts +3 -0
  113. package/dist/Icon/iconFiles/Engine.d.ts +3 -0
  114. package/dist/Icon/iconFiles/Europe.d.ts +3 -0
  115. package/dist/Icon/iconFiles/Excluded.d.ts +3 -0
  116. package/dist/Icon/iconFiles/Expand.d.ts +3 -0
  117. package/dist/Icon/iconFiles/Facebook.d.ts +3 -0
  118. package/dist/Icon/iconFiles/FallingItems.d.ts +3 -0
  119. package/dist/Icon/iconFiles/Fence.d.ts +3 -0
  120. package/dist/Icon/iconFiles/File.d.ts +3 -0
  121. package/dist/Icon/iconFiles/FileBadge2.d.ts +3 -0
  122. package/dist/Icon/iconFiles/FileCabinet.d.ts +3 -0
  123. package/dist/Icon/iconFiles/Filter.d.ts +3 -0
  124. package/dist/Icon/iconFiles/Fire.d.ts +3 -0
  125. package/dist/Icon/iconFiles/Flag.d.ts +3 -0
  126. package/dist/Icon/iconFiles/Folder.d.ts +3 -0
  127. package/dist/Icon/iconFiles/FraudAlert.d.ts +3 -0
  128. package/dist/Icon/iconFiles/FreezerFood.d.ts +3 -0
  129. package/dist/Icon/iconFiles/Fuel.d.ts +3 -0
  130. package/dist/Icon/iconFiles/Globe.d.ts +3 -0
  131. package/dist/Icon/iconFiles/GooglePlayBadge.d.ts +3 -0
  132. package/dist/Icon/iconFiles/Gpay.d.ts +3 -0
  133. package/dist/Icon/iconFiles/HelpAboutus.d.ts +3 -0
  134. package/dist/Icon/iconFiles/HelpBuypolicy.d.ts +3 -0
  135. package/dist/Icon/iconFiles/HelpCenter.d.ts +3 -0
  136. package/dist/Icon/iconFiles/HelpIdcheck.d.ts +3 -0
  137. package/dist/Icon/iconFiles/HelpManagePolicy.d.ts +3 -0
  138. package/dist/Icon/iconFiles/HelpNcd.d.ts +3 -0
  139. package/dist/Icon/iconFiles/HelpVerification.d.ts +3 -0
  140. package/dist/Icon/iconFiles/HomeExcluded.d.ts +3 -0
  141. package/dist/Icon/iconFiles/House.d.ts +3 -0
  142. package/dist/Icon/iconFiles/HouseTree.d.ts +3 -0
  143. package/dist/Icon/iconFiles/Id.d.ts +3 -0
  144. package/dist/Icon/iconFiles/Inbox.d.ts +3 -0
  145. package/dist/Icon/iconFiles/Included.d.ts +3 -0
  146. package/dist/Icon/iconFiles/Info.d.ts +3 -0
  147. package/dist/Icon/iconFiles/Injury.d.ts +3 -0
  148. package/dist/Icon/iconFiles/Instagram.d.ts +3 -0
  149. package/dist/Icon/iconFiles/Intercom.d.ts +3 -0
  150. package/dist/Icon/iconFiles/Intercom2.d.ts +3 -0
  151. package/dist/Icon/iconFiles/IosStoreBadge.d.ts +3 -0
  152. package/dist/Icon/iconFiles/Iphone.d.ts +3 -0
  153. package/dist/Icon/iconFiles/Jewellery.d.ts +3 -0
  154. package/dist/Icon/iconFiles/Key.d.ts +3 -0
  155. package/dist/Icon/iconFiles/Laptop.d.ts +3 -0
  156. package/dist/Icon/iconFiles/Leaks.d.ts +3 -0
  157. package/dist/Icon/iconFiles/Lightbulb.d.ts +3 -0
  158. package/dist/Icon/iconFiles/Link.d.ts +3 -0
  159. package/dist/Icon/iconFiles/Linkedin.d.ts +3 -0
  160. package/dist/Icon/iconFiles/LiveChat.d.ts +3 -0
  161. package/dist/Icon/iconFiles/LiveChat2.d.ts +3 -0
  162. package/dist/Icon/iconFiles/Location.d.ts +3 -0
  163. package/dist/Icon/iconFiles/LogOut.d.ts +3 -0
  164. package/dist/Icon/iconFiles/ManageDrivers.d.ts +3 -0
  165. package/dist/Icon/iconFiles/ManagePolicy.d.ts +3 -0
  166. package/dist/Icon/iconFiles/Marshmallow.d.ts +3 -0
  167. package/dist/Icon/iconFiles/Mastercard.d.ts +3 -0
  168. package/dist/Icon/iconFiles/Maximise.d.ts +3 -0
  169. package/dist/Icon/iconFiles/MaximiseWindow.d.ts +3 -0
  170. package/dist/Icon/iconFiles/Medical.d.ts +3 -0
  171. package/dist/Icon/iconFiles/Minimise.d.ts +3 -0
  172. package/dist/Icon/iconFiles/Minus.d.ts +3 -0
  173. package/dist/Icon/iconFiles/MinusCircle.d.ts +3 -0
  174. package/dist/Icon/iconFiles/MoneyBag.d.ts +3 -0
  175. package/dist/Icon/iconFiles/MoneyHeart.d.ts +3 -0
  176. package/dist/Icon/iconFiles/MoreDots.d.ts +3 -0
  177. package/dist/Icon/iconFiles/Mulsanne.d.ts +3 -0
  178. package/dist/Icon/iconFiles/NewWindow.d.ts +3 -0
  179. package/dist/Icon/iconFiles/NoExcess.d.ts +3 -0
  180. package/dist/Icon/iconFiles/Notes.d.ts +3 -0
  181. package/dist/Icon/iconFiles/Notification.d.ts +3 -0
  182. package/dist/Icon/iconFiles/Onfido.d.ts +3 -0
  183. package/dist/Icon/iconFiles/OpenPanel.d.ts +3 -0
  184. package/dist/Icon/iconFiles/Other.d.ts +3 -0
  185. package/dist/Icon/iconFiles/OutOfHome.d.ts +3 -0
  186. package/dist/Icon/iconFiles/Padlock.d.ts +3 -0
  187. package/dist/Icon/iconFiles/PadlockOutline.d.ts +3 -0
  188. package/dist/Icon/iconFiles/Paperclip.d.ts +3 -0
  189. package/dist/Icon/iconFiles/People.d.ts +3 -0
  190. package/dist/Icon/iconFiles/Person.d.ts +3 -0
  191. package/dist/Icon/iconFiles/PhoneFilled.d.ts +3 -0
  192. package/dist/Icon/iconFiles/PhoneOutline.d.ts +3 -0
  193. package/dist/Icon/iconFiles/Photo.d.ts +3 -0
  194. package/dist/Icon/iconFiles/PinCode.d.ts +3 -0
  195. package/dist/Icon/iconFiles/Plus.d.ts +3 -0
  196. package/dist/Icon/iconFiles/PlusCircle.d.ts +3 -0
  197. package/dist/Icon/iconFiles/Policy.d.ts +3 -0
  198. package/dist/Icon/iconFiles/PolicyDetails.d.ts +3 -0
  199. package/dist/Icon/iconFiles/PolicyDoc.d.ts +3 -0
  200. package/dist/Icon/iconFiles/PolicyDocs.d.ts +3 -0
  201. package/dist/Icon/iconFiles/PoundBold.d.ts +3 -0
  202. package/dist/Icon/iconFiles/PoundFilledCircle.d.ts +3 -0
  203. package/dist/Icon/iconFiles/PoundMedium.d.ts +3 -0
  204. package/dist/Icon/iconFiles/PoundOutline.d.ts +3 -0
  205. package/dist/Icon/iconFiles/PoundRegular.d.ts +3 -0
  206. package/dist/Icon/iconFiles/Premfina.d.ts +3 -0
  207. package/dist/Icon/iconFiles/Profile.d.ts +3 -0
  208. package/dist/Icon/iconFiles/Progress.d.ts +2 -0
  209. package/dist/Icon/iconFiles/Prohibited.d.ts +3 -0
  210. package/dist/Icon/iconFiles/Property.d.ts +3 -0
  211. package/dist/Icon/iconFiles/QuestionHelp.d.ts +3 -0
  212. package/dist/Icon/iconFiles/Rac.d.ts +3 -0
  213. package/dist/Icon/iconFiles/Ravelin.d.ts +3 -0
  214. package/dist/Icon/iconFiles/ReferAFriend.d.ts +3 -0
  215. package/dist/Icon/iconFiles/Refund.d.ts +3 -0
  216. package/dist/Icon/iconFiles/RegPlate.d.ts +3 -0
  217. package/dist/Icon/iconFiles/Renewal.d.ts +3 -0
  218. package/dist/Icon/iconFiles/RenewalLine.d.ts +3 -0
  219. package/dist/Icon/iconFiles/RepeatCharge.d.ts +3 -0
  220. package/dist/Icon/iconFiles/Reply.d.ts +3 -0
  221. package/dist/Icon/iconFiles/Return.d.ts +3 -0
  222. package/dist/Icon/iconFiles/ScheduleQuote.d.ts +3 -0
  223. package/dist/Icon/iconFiles/Search.d.ts +3 -0
  224. package/dist/Icon/iconFiles/Security.d.ts +3 -0
  225. package/dist/Icon/iconFiles/SendMessage.d.ts +3 -0
  226. package/dist/Icon/iconFiles/Settings.d.ts +3 -0
  227. package/dist/Icon/iconFiles/Shield.d.ts +3 -0
  228. package/dist/Icon/iconFiles/ShieldCheck.d.ts +3 -0
  229. package/dist/Icon/iconFiles/Shopping.d.ts +3 -0
  230. package/dist/Icon/iconFiles/Sofa.d.ts +3 -0
  231. package/dist/Icon/iconFiles/Stack.d.ts +3 -0
  232. package/dist/Icon/iconFiles/Storm.d.ts +3 -0
  233. package/dist/Icon/iconFiles/Stripe.d.ts +3 -0
  234. package/dist/Icon/iconFiles/Subsidence.d.ts +3 -0
  235. package/dist/Icon/iconFiles/Theft.d.ts +3 -0
  236. package/dist/Icon/iconFiles/ThumbsDown.d.ts +3 -0
  237. package/dist/Icon/iconFiles/ThumbsUp.d.ts +3 -0
  238. package/dist/Icon/iconFiles/Tick.d.ts +3 -0
  239. package/dist/Icon/iconFiles/TowTruck.d.ts +3 -0
  240. package/dist/Icon/iconFiles/TraceAndAccess.d.ts +3 -0
  241. package/dist/Icon/iconFiles/Training.d.ts +3 -0
  242. package/dist/Icon/iconFiles/Trash.d.ts +3 -0
  243. package/dist/Icon/iconFiles/Twitter.d.ts +3 -0
  244. package/dist/Icon/iconFiles/UpDown.d.ts +3 -0
  245. package/dist/Icon/iconFiles/Upload.d.ts +3 -0
  246. package/dist/Icon/iconFiles/UploadDocuments.d.ts +3 -0
  247. package/dist/Icon/iconFiles/UploadEmail.d.ts +3 -0
  248. package/dist/Icon/iconFiles/Vandalism.d.ts +3 -0
  249. package/dist/Icon/iconFiles/Village.d.ts +3 -0
  250. package/dist/Icon/iconFiles/Visa.d.ts +3 -0
  251. package/dist/Icon/iconFiles/Warning.d.ts +3 -0
  252. package/dist/Icon/iconFiles/WarningCircle.d.ts +3 -0
  253. package/dist/Icon/iconFiles/Watch.d.ts +3 -0
  254. package/dist/Icon/iconFiles/Wave.d.ts +3 -0
  255. package/dist/Icon/iconFiles/Wellbeing.d.ts +3 -0
  256. package/dist/Icon/iconFiles/WheelFlat.d.ts +3 -0
  257. package/dist/Icon/iconFiles/Windscreen.d.ts +3 -0
  258. package/dist/Icon/iconFiles/WindscreenRepair.d.ts +3 -0
  259. package/dist/Icon/iconFiles/WindscreenReplacement.d.ts +3 -0
  260. package/dist/Icon/iconsList.d.ts +227 -0
  261. package/dist/Icon/index.d.ts +1 -0
  262. package/dist/IconStrict/IconStrict.d.ts +22 -0
  263. package/dist/IconStrict/index.d.ts +1 -0
  264. package/dist/IconWrapper/IconWrapper.d.ts +18 -0
  265. package/dist/IconWrapper/index.d.ts +1 -0
  266. package/dist/LabelledText/LabelledText.d.ts +8 -0
  267. package/dist/LabelledText/index.d.ts +1 -0
  268. package/dist/Link/Link.d.ts +24 -0
  269. package/dist/Link/index.d.ts +1 -0
  270. package/dist/Loader/Loader.d.ts +7 -0
  271. package/dist/Loader/index.d.ts +1 -0
  272. package/dist/Logo/Logo.d.ts +35 -0
  273. package/dist/Logo/index.d.ts +1 -0
  274. package/dist/Modal/Modal.d.ts +32 -0
  275. package/dist/Modal/index.d.ts +1 -0
  276. package/dist/NumberInput/NumberInput.d.ts +25 -0
  277. package/dist/NumberInput/index.d.ts +1 -0
  278. package/dist/Pagination/Pagination.d.ts +13 -0
  279. package/dist/Pagination/index.d.ts +1 -0
  280. package/dist/RadioGroup/RadioElement.d.ts +12 -0
  281. package/dist/RadioGroup/RadioGroup.d.ts +23 -0
  282. package/dist/RadioGroup/RadioItem.d.ts +20 -0
  283. package/dist/RadioGroup/constants.d.ts +1 -0
  284. package/dist/RadioGroup/index.d.ts +1 -0
  285. package/dist/RadioGroup/types.d.ts +3 -0
  286. package/dist/RichText/RichText.d.ts +6 -0
  287. package/dist/RichText/index.d.ts +1 -0
  288. package/dist/RichTextEditor/RichTextEditor.d.ts +10 -0
  289. package/dist/RichTextEditor/index.d.ts +1 -0
  290. package/dist/RichTextEditor/plugins/AutoLinkPlugin.d.ts +2 -0
  291. package/dist/RichTextEditor/plugins/EditorDefaultUpdatePlugin.d.ts +4 -0
  292. package/dist/RichTextEditor/plugins/EditorUpdatePlugin.d.ts +4 -0
  293. package/dist/RichTextEditor/plugins/ToolbarPlugin.d.ts +2 -0
  294. package/dist/RichTextEditor/plugins/index.d.ts +1 -0
  295. package/dist/RichTextEditor/utils.d.ts +2 -0
  296. package/dist/Row/Row.d.ts +18 -0
  297. package/dist/Row/index.d.ts +1 -0
  298. package/dist/SearchInput/SearchInput.d.ts +50 -0
  299. package/dist/SearchInput/components/EmptyResults.d.ts +8 -0
  300. package/dist/SearchInput/components/SearchOptions.d.ts +23 -0
  301. package/dist/SearchInput/index.d.ts +1 -0
  302. package/dist/SegmentedControl/SegmentedControl.d.ts +35 -0
  303. package/dist/SegmentedControl/ToggleButton.d.ts +11 -0
  304. package/dist/SegmentedControl/index.d.ts +1 -0
  305. package/dist/SliderInput/SliderInput.d.ts +9 -0
  306. package/dist/SliderInput/index.d.ts +1 -0
  307. package/dist/Snackbar/SnackbarContainer.d.ts +7 -0
  308. package/dist/Snackbar/SnackbarItem.d.ts +7 -0
  309. package/dist/Snackbar/hooks.d.ts +3 -0
  310. package/dist/Snackbar/index.d.ts +2 -0
  311. package/dist/Snackbar/types.d.ts +13 -0
  312. package/dist/SupportMessage/SupportMessage.d.ts +16 -0
  313. package/dist/SupportMessage/index.d.ts +1 -0
  314. package/dist/Table/Table.d.ts +16 -0
  315. package/dist/Table/components/RowActions.d.ts +3 -0
  316. package/dist/Table/components/TableHeader.d.ts +3 -0
  317. package/dist/Table/components/TableRow.d.ts +3 -0
  318. package/dist/Table/components/commonComponents.d.ts +6 -0
  319. package/dist/Table/helpers.d.ts +2 -0
  320. package/dist/Table/index.d.ts +2 -0
  321. package/dist/Table/types.d.ts +114 -0
  322. package/dist/Tag/Tag.d.ts +11 -0
  323. package/dist/Tag/index.d.ts +1 -0
  324. package/dist/Text/Text.d.ts +21 -0
  325. package/dist/Text/fontMapping.d.ts +2 -0
  326. package/dist/Text/index.d.ts +1 -0
  327. package/dist/TextDateOfBirthInput/TextDateOfBirthInput.d.ts +36 -0
  328. package/dist/TextDateOfBirthInput/index.d.ts +1 -0
  329. package/dist/TextInput/TextInput.d.ts +39 -0
  330. package/dist/TextInput/index.d.ts +1 -0
  331. package/dist/Textarea/Textarea.d.ts +27 -0
  332. package/dist/Textarea/index.d.ts +1 -0
  333. package/dist/Toggle/Toggle.d.ts +12 -0
  334. package/dist/Toggle/index.d.ts +1 -0
  335. package/dist/Tooltip/Tooltip.d.ts +33 -0
  336. package/dist/Tooltip/index.d.ts +1 -0
  337. package/dist/fields/Field/Field.d.ts +7 -0
  338. package/dist/fields/Field/index.d.ts +1 -0
  339. package/dist/fields/Fieldset/Fieldset.d.ts +5 -0
  340. package/dist/fields/Fieldset/index.d.ts +1 -0
  341. package/dist/fields/commonFieldTypes.d.ts +19 -0
  342. package/dist/fields/components/CommonInput.d.ts +30 -0
  343. package/dist/fields/components/InternalField.d.ts +10 -0
  344. package/dist/fields/components/Placeholder.d.ts +2 -0
  345. package/dist/fontStyle.d.ts +1 -0
  346. package/dist/hooks/index.d.ts +5 -0
  347. package/dist/hooks/useBodyScrollLock/index.d.ts +4 -0
  348. package/dist/hooks/useClickOutside/index.d.ts +6 -0
  349. package/dist/hooks/useEventListener/index.d.ts +8 -0
  350. package/dist/hooks/useScript/index.d.ts +4 -0
  351. package/dist/hooks/useTimeout/index.d.ts +1 -0
  352. package/dist/index.d.ts +53 -0
  353. package/dist/index.js +11750 -0
  354. package/dist/index.js.map +1 -0
  355. package/dist/theme.d.ts +98 -0
  356. package/dist/types.d.ts +4 -0
  357. package/dist/utils/date.d.ts +1 -0
  358. package/dist/utils/dateOfBirth/dateOfBirthValidator.d.ts +11 -0
  359. package/dist/utils/dateOfBirth/dateOfBirthValidator.utils.d.ts +18 -0
  360. package/dist/utils/dateOfBirth/schema.d.ts +11 -0
  361. package/dist/utils/debounce.d.ts +7 -0
  362. package/dist/utils/deprecated.d.ts +9 -0
  363. package/dist/utils/flex.d.ts +19 -0
  364. package/dist/utils/focusOutline.d.ts +4 -0
  365. package/dist/utils/id.d.ts +2 -0
  366. package/dist/utils/isReactElement.d.ts +2 -0
  367. package/dist/utils/measure.d.ts +13 -0
  368. package/dist/utils/noop.d.ts +1 -0
  369. package/dist/utils/responsiveProp.d.ts +10 -0
  370. package/dist/utils/space.d.ts +30 -0
  371. package/dist/utils/useControlledState.d.ts +5 -0
  372. package/dist/utils/utilTypes.d.ts +7 -0
  373. package/dist/utils/visuallyHidden.d.ts +5 -0
  374. package/package.json +2 -1
  375. package/dist/smores-react.js +0 -26333
  376. package/dist/smores-react.js.map +0 -1
  377. package/dist/smores-react.umd.cjs +0 -2413
  378. package/dist/smores-react.umd.cjs.map +0 -1
@@ -0,0 +1,22 @@
1
+ import { ButtonHTMLAttributes, FC, FormEvent } from 'react';
2
+ import { Icons } from '../Icon/iconsList';
3
+ import { Color } from '../theme';
4
+ import { MarginProps } from '../utils/space';
5
+ export type IconStrictProps = {
6
+ id?: string;
7
+ /** className attribute to apply classes from props */
8
+ className?: string;
9
+ /** set size of the Icon (including background) */
10
+ size?: 16 | 24 | 36 | 48;
11
+ /** specify what Icon to render */
12
+ render: Icons;
13
+ /** set icon colour */
14
+ iconColor?: Color;
15
+ /** set background colour */
16
+ backgroundColor?: Color;
17
+ /** function to handle click */
18
+ handleClick?: (e: FormEvent<HTMLButtonElement>) => void;
19
+ /** rotation degrees */
20
+ rotate?: number;
21
+ } & MarginProps & Partial<ButtonHTMLAttributes<HTMLButtonElement>>;
22
+ export declare const IconStrict: FC<IconStrictProps>;
@@ -0,0 +1 @@
1
+ export * from './IconStrict';
@@ -0,0 +1,18 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { Icons } from '../Icon/iconsList';
3
+ import { MarginProps } from '../utils/space';
4
+ export type IconWrapperProps = {
5
+ /** className attribute to apply classes from props */
6
+ className?: string;
7
+ children: ReactNode;
8
+ /** specify what Icon to render */
9
+ render: Icons;
10
+ /** set size of the Icon */
11
+ size?: number;
12
+ /** TOP-RIGHT-BOTTOM-LEFT position of the Icon */
13
+ t?: string;
14
+ r?: string;
15
+ b?: string;
16
+ l?: string;
17
+ } & MarginProps;
18
+ export declare const IconWrapper: FC<IconWrapperProps>;
@@ -0,0 +1 @@
1
+ export { IconWrapper } from './IconWrapper';
@@ -0,0 +1,8 @@
1
+ import { FC, JSX, ReactNode } from 'react';
2
+ import { MarginProps } from '../utils/space';
3
+ export type LabelledTextProps = {
4
+ children: ReactNode;
5
+ label: string | JSX.Element;
6
+ labelMargin?: 2 | 4 | 8 | number;
7
+ } & MarginProps;
8
+ export declare const LabelledText: FC<LabelledTextProps>;
@@ -0,0 +1 @@
1
+ export { LabelledText } from './LabelledText';
@@ -0,0 +1,24 @@
1
+ import { FC, MouseEventHandler, ReactNode } from 'react';
2
+ import { Icons } from '../Icon/iconsList';
3
+ type LinkTypo = 'regular' | 'small';
4
+ export type LinkProps = {
5
+ className?: string;
6
+ href: string;
7
+ onClick?: MouseEventHandler;
8
+ openInNewTab?: boolean;
9
+ children?: ReactNode;
10
+ download?: boolean;
11
+ typo?: LinkTypo;
12
+ highlight?: boolean;
13
+ iconToRender?: Icons;
14
+ isTrailingIcon?: boolean;
15
+ };
16
+ export declare const Link: FC<LinkProps>;
17
+ /**
18
+ * Internal utility to override styling in other components (see Text)
19
+ * @internal
20
+ */
21
+ export declare const linkStyleOverride: ({ color }: {
22
+ color: string;
23
+ }) => import('styled-components').RuleSet<object>;
24
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Link';
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import { Color } from '../theme';
3
+ export type LoaderProps = {
4
+ height: string;
5
+ color?: Color;
6
+ };
7
+ export declare const Loader: FC<LoaderProps>;
@@ -0,0 +1 @@
1
+ export { Loader } from './Loader';
@@ -0,0 +1,35 @@
1
+ import { FC } from 'react';
2
+ declare const typeColorScheme: {
3
+ positive1: {
4
+ text: string;
5
+ logo: {
6
+ body: string;
7
+ eyes: string;
8
+ pupils: string;
9
+ };
10
+ };
11
+ positive2: {
12
+ text: string;
13
+ logo: {
14
+ body: string;
15
+ eyes: string;
16
+ pupils: string;
17
+ };
18
+ };
19
+ negative1: {
20
+ text: string;
21
+ logo: {
22
+ body: string;
23
+ eyes: string;
24
+ pupils: string;
25
+ };
26
+ };
27
+ };
28
+ type LogoType = keyof typeof typeColorScheme;
29
+ export type LogoProps = {
30
+ type?: LogoType;
31
+ showText?: boolean;
32
+ small?: boolean;
33
+ };
34
+ export declare const Logo: FC<LogoProps>;
35
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Logo';
@@ -0,0 +1,32 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { TextProps } from '../Text';
3
+ export type ModalProps = {
4
+ /**
5
+ * Title of the modal
6
+ * @default "" (empty string)
7
+ *
8
+ * @example
9
+ * ```tsx
10
+ * <Modal title="MultiCar Account" />
11
+ * ```
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * <Modal title={{ typo: 'hero', children: 'MultiCar Account' }} />
16
+ * ```
17
+ */
18
+ title?: string | TitleProps;
19
+ icon?: string;
20
+ children?: ReactNode;
21
+ rightPanel?: ReactNode;
22
+ showModal?: boolean;
23
+ handleClick: () => void;
24
+ drawer?: boolean;
25
+ cross?: boolean;
26
+ width?: string;
27
+ containerClass?: string;
28
+ portalContainer?: Element | DocumentFragment;
29
+ closeOnOverlayClick?: boolean;
30
+ };
31
+ export type TitleProps = TextProps;
32
+ export declare const Modal: FC<ModalProps>;
@@ -0,0 +1 @@
1
+ export { Modal } from './Modal';
@@ -0,0 +1,25 @@
1
+ import { default as React, FocusEvent, FormEvent } from 'react';
2
+ import { CommonFieldProps } from '../fields/commonFieldTypes';
3
+ export interface Props extends CommonFieldProps {
4
+ type?: 'number';
5
+ placeholder: string;
6
+ name?: string;
7
+ value: string;
8
+ onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
9
+ min?: number;
10
+ max?: number;
11
+ step?: number;
12
+ }
13
+ /** on change or on input required */
14
+ type InputProps = {
15
+ /** on change is required and on input optional */
16
+ onChange: (e: string | number) => void;
17
+ onInputChange?: (e: FormEvent<HTMLInputElement>) => void;
18
+ } | {
19
+ /** on input is required and on change optional */
20
+ onChange?: (e: string | number) => void;
21
+ onInputChange: (e: FormEvent<HTMLInputElement>) => void;
22
+ };
23
+ export type NumberInputProps = Props & InputProps;
24
+ export declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
25
+ export {};
@@ -0,0 +1 @@
1
+ export { NumberInput } from './NumberInput';
@@ -0,0 +1,13 @@
1
+ import { FC } from 'react';
2
+ import { MarginProps } from '../utils/space';
3
+ export type PaginationProps = {
4
+ /** Total number of records */
5
+ total: number;
6
+ /** Number of records per page */
7
+ partition: number;
8
+ /** Handle page change */
9
+ handlePageChange: (page: number) => void;
10
+ /** Sets current page number */
11
+ currentPage?: number;
12
+ } & MarginProps;
13
+ export declare const Pagination: FC<PaginationProps>;
@@ -0,0 +1 @@
1
+ export * from './Pagination';
@@ -0,0 +1,12 @@
1
+ import { default as React, FocusEvent } from 'react';
2
+ import { MarginProps } from '../utils/space';
3
+ import { BaseValueType } from './types';
4
+ export declare const RadioElement: React.ForwardRefExoticComponent<{
5
+ name: string;
6
+ id: string;
7
+ value: BaseValueType;
8
+ checked: boolean;
9
+ onChange: (value: BaseValueType) => void;
10
+ onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
11
+ isError: boolean;
12
+ } & MarginProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,23 @@
1
+ import { default as React, FocusEvent, ReactElement } from 'react';
2
+ import { CommonFieldProps } from '../fields/commonFieldTypes';
3
+ import { Icons } from '../Icon/iconsList';
4
+ import { BaseValueType, DisplayType, IconPosition } from './types';
5
+ export type RadioGroupProps<Value extends BaseValueType = BaseValueType> = {
6
+ options: Array<{
7
+ visual?: string;
8
+ icon?: Icons;
9
+ iconPosition?: IconPosition;
10
+ label: string;
11
+ value: Value;
12
+ bodyCopy?: string;
13
+ }>;
14
+ onChange: (value: Value) => void;
15
+ onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
16
+ value: Value;
17
+ displayType?: DisplayType;
18
+ fallbackStyle?: boolean;
19
+ } & CommonFieldProps;
20
+ export type RadioGroupElement = {
21
+ focus: VoidFunction;
22
+ };
23
+ export declare const RadioGroup: <Value extends BaseValueType = BaseValueType>(p: RadioGroupProps<Value> & React.RefAttributes<HTMLInputElement>) => ReactElement<any> | null;
@@ -0,0 +1,20 @@
1
+ import { default as React, FocusEvent } from 'react';
2
+ import { Icons } from '../Icon/iconsList';
3
+ import { BaseValueType, DisplayType, IconPosition } from './types';
4
+ type RadioItemProps = {
5
+ name: string;
6
+ visual?: string;
7
+ icon?: Icons;
8
+ iconPosition?: IconPosition;
9
+ value: BaseValueType;
10
+ label: string;
11
+ checked: boolean;
12
+ onChange: (value: BaseValueType) => void;
13
+ onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
14
+ displayType: DisplayType;
15
+ isError: boolean;
16
+ fallbackStyle?: boolean;
17
+ bodyCopy?: string;
18
+ };
19
+ export declare const RadioItem: React.ForwardRefExoticComponent<RadioItemProps & React.RefAttributes<HTMLInputElement>>;
20
+ export {};
@@ -0,0 +1 @@
1
+ export declare const ITEM_GAP = 12;
@@ -0,0 +1 @@
1
+ export * from './RadioGroup';
@@ -0,0 +1,3 @@
1
+ export type IconPosition = 'center' | 'start';
2
+ export type DisplayType = 'normal' | 'vertical-card' | 'horizontal-card';
3
+ export type BaseValueType = string | boolean | null;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ import { MarginProps } from '../utils/space';
3
+ export interface RichTextProps extends MarginProps {
4
+ htmlString: string;
5
+ }
6
+ export declare const RichText: React.ForwardRefExoticComponent<RichTextProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export { RichText } from './RichText';
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { MarginProps } from '../utils/space';
3
+ export interface RichTextEditorProps extends MarginProps {
4
+ defaultValue?: string;
5
+ maxHeight?: string;
6
+ height?: string;
7
+ outline?: boolean;
8
+ onChange: (e: string) => void;
9
+ }
10
+ export declare const RichTextEditor: FC<RichTextEditorProps>;
@@ -0,0 +1 @@
1
+ export { RichTextEditor } from './RichTextEditor';
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export default function CustomAutoLinkPlugin(): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ export declare const EditorDefaultUpdatePlugin: FC<{
3
+ defaultValue?: string;
4
+ }>;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ export declare const EditorUpdatePlugin: FC<{
3
+ onChange: (value: string) => void;
4
+ }>;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export default function ToolbarPlugin(): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './AutoLinkPlugin';
@@ -0,0 +1,2 @@
1
+ import { LexicalNode, RootNode } from 'lexical';
2
+ export declare const appendNodes: (root: RootNode, nodes: LexicalNode[]) => void;
@@ -0,0 +1,18 @@
1
+ import { FC } from 'react';
2
+ import { Icons } from '../Icon/iconsList';
3
+ import { Color } from '../theme';
4
+ import { MarginProps } from '../utils/space';
5
+ export type RowProps = {
6
+ iconLeft?: Icons;
7
+ iconLeftColor?: Color;
8
+ iconRight?: Icons;
9
+ iconRightColor?: Color;
10
+ handleClick?: () => void;
11
+ heading: string;
12
+ subHeading?: string;
13
+ type?: 'first' | 'last' | 'curved';
14
+ borderTop?: boolean;
15
+ borderBottom?: boolean;
16
+ boldHeading?: boolean;
17
+ } & MarginProps;
18
+ export declare const Row: FC<RowProps>;
@@ -0,0 +1 @@
1
+ export * from './Row';
@@ -0,0 +1,50 @@
1
+ import { IFuseOptions } from 'fuse.js';
2
+ import { default as React, FocusEvent, ReactNode } from 'react';
3
+ import { CommonFieldProps } from '../fields/commonFieldTypes';
4
+ export type SearchInputItem = {
5
+ label: string;
6
+ value: string;
7
+ tags?: any[];
8
+ };
9
+ export interface SearchInputProps extends CommonFieldProps {
10
+ /** Optional input className */
11
+ name?: string;
12
+ /** Optional placeholder text */
13
+ placeholder?: string;
14
+ /** List of input items to search on*/
15
+ searchList: SearchInputItem[];
16
+ /** callback to handle found item click */
17
+ onFound: (element: string) => void;
18
+ /** optional callback to run when no results found */
19
+ onNotFound?: (searchTerm: string) => void;
20
+ /** optional Component to render when no results found */
21
+ notFoundComponent?: (searchTerm: string) => ReactNode;
22
+ /** optional boolean to show search icon */
23
+ showIcon?: boolean;
24
+ /** optional boolean to show a clear search button */
25
+ clearSearch?: boolean;
26
+ /** Optional callback to run on blur */
27
+ onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
28
+ /** Optional default value for input */
29
+ value?: string;
30
+ /** Optional boolean to move results to a realtive position */
31
+ resultsRelativePosition?: boolean;
32
+ /** optional boolean to add border to results */
33
+ resultsBorder?: boolean;
34
+ /** optional boolean to enable fuzzy search via fuse.js */
35
+ enableFuzzySearch?: boolean;
36
+ /** optional config of fuzzy search
37
+ * passing a value to this prop, automatically enables fuzzy search
38
+ */
39
+ fuzzySearchOptions?: IFuseOptions<SearchInputItem>;
40
+ }
41
+ export declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
42
+ export declare const Icons: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('..').MarginProps & import('..').PaddingProps & import('../utils/flex').FlexProps & import('../utils/measure').MeasureProps & React.HTMLAttributes<HTMLElement> & {
43
+ as?: React.ElementType;
44
+ forwardedAs?: React.ElementType;
45
+ } & React.RefAttributes<HTMLDivElement>, {
46
+ $clearSearch: boolean;
47
+ }>> & string & Omit<React.ForwardRefExoticComponent<import('..').MarginProps & import('..').PaddingProps & import('../utils/flex').FlexProps & import('../utils/measure').MeasureProps & React.HTMLAttributes<HTMLElement> & {
48
+ as?: React.ElementType;
49
+ forwardedAs?: React.ElementType;
50
+ } & React.RefAttributes<HTMLDivElement>>, keyof React.Component<any, {}, any>>;
@@ -0,0 +1,8 @@
1
+ import { FC, ReactNode } from 'react';
2
+ interface Props {
3
+ onNotFound?: (searchTerm: string) => void;
4
+ searchTerm: string;
5
+ notFoundComponent?: ReactNode;
6
+ }
7
+ export declare const EmptyResults: FC<Props>;
8
+ export {};
@@ -0,0 +1,23 @@
1
+ import { FC, ReactNode } from 'react';
2
+ type Option = {
3
+ label: string;
4
+ value: string;
5
+ };
6
+ type SearchOptionsProps = {
7
+ displayedList: Array<Option>;
8
+ selectedValue: string | null;
9
+ highlightedIndex: number;
10
+ setHighlightedIndex: (arg: number) => void;
11
+ onSelect: (option: Option) => void;
12
+ onKeyDown: (e: {
13
+ key: string;
14
+ preventDefault: () => void;
15
+ }) => void;
16
+ positionRelative: boolean;
17
+ resultsBorder: boolean;
18
+ onNotFound?: (searchTerm: string) => void;
19
+ searchTerm: string;
20
+ notFoundComponent?: ReactNode;
21
+ };
22
+ export declare const SearchOptions: FC<SearchOptionsProps>;
23
+ export {};
@@ -0,0 +1 @@
1
+ export * from './SearchInput';
@@ -0,0 +1,35 @@
1
+ import { Color } from '../theme';
2
+ import { default as React } from 'react';
3
+ export type SegmentedControlOption<T = string | number> = {
4
+ label: string;
5
+ /** value needs to be number or string */
6
+ value: T;
7
+ /** optional tag able to show in the toggle if showTag prop is passed */
8
+ tag?: string;
9
+ isDisabled?: boolean;
10
+ };
11
+ type StylingOptions = {
12
+ toggle?: Color;
13
+ background?: Color;
14
+ text?: Color;
15
+ selectedText?: Color;
16
+ tagBg?: Color;
17
+ tagBorder?: Color;
18
+ tagText?: Color;
19
+ };
20
+ export type SegmentedControlProps<T> = {
21
+ /** you can pass more than 2 options */
22
+ options: SegmentedControlOption<T>[];
23
+ value: T;
24
+ onChange: (value: T) => void;
25
+ /** pass this prop if you want to show the tag in the toggle */
26
+ showTag?: boolean;
27
+ /** pass a StylingOptions object with the needed styles if you want to style the SegmentedControl */
28
+ styles?: StylingOptions;
29
+ };
30
+ /**
31
+ * ### How do I pass state to the `SegmentedControl` component?
32
+ * We recommend pulling the state up to at least the component that renders `SegmentedControl` up to at least the component that renders `SegmentedControl`, this should make it easier to pass state to the `SegmentedControl` component
33
+ */
34
+ export declare const SegmentedControl: <T>({ options, value, onChange, showTag, styles: { tagBorder, tagText, tagBg, selectedText, text, background, toggle, }, }: SegmentedControlProps<T>) => React.JSX.Element;
35
+ export {};
@@ -0,0 +1,11 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ type ToggleButtonProps<Value> = {
3
+ name: string;
4
+ value: Value;
5
+ onChange: (value: Value) => void;
6
+ isSelected: boolean;
7
+ isDisabled?: boolean;
8
+ children: ReactNode;
9
+ };
10
+ export declare const ToggleButton: <Value>({ name, value, onChange, isSelected, isDisabled, children, }: ToggleButtonProps<Value>) => React.JSX.Element;
11
+ export {};
@@ -0,0 +1 @@
1
+ export * from './SegmentedControl';
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { MarginProps } from '../utils/space';
3
+ export declare const SliderInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "type" | "value"> & MarginProps & {
4
+ onChange: (value: number) => void;
5
+ value: number;
6
+ min?: number;
7
+ max?: number;
8
+ step?: number;
9
+ } & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export * from './SliderInput';
@@ -0,0 +1,7 @@
1
+ import { default as React, FC, ReactNode } from 'react';
2
+ import { SnackbarContextType } from './types';
3
+ export declare const SnackbarContext: React.Context<SnackbarContextType>;
4
+ export declare const useSnackbarContext: () => SnackbarContextType;
5
+ export declare const SnackbarContainer: FC<{
6
+ children?: ReactNode;
7
+ }>;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import { Snackbar } from './types';
3
+ interface Props extends Snackbar {
4
+ deleteSnack: (id: string) => void;
5
+ }
6
+ export declare const SnackbarItem: FC<Props>;
7
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const useSnackbar: () => {
2
+ addSnackbar: (snackbar: import('./types').CreateSnack) => void;
3
+ };
@@ -0,0 +1,2 @@
1
+ export * from './SnackbarContainer';
2
+ export * from './hooks';
@@ -0,0 +1,13 @@
1
+ import { Icons } from '../Icon/iconsList';
2
+ export interface Snackbar {
3
+ id: string;
4
+ message: string;
5
+ autoCloseTime?: 4 | 5 | 6 | 7 | 8 | 9 | 10;
6
+ leadingIcon?: Icons;
7
+ canManuallyClose?: boolean;
8
+ showCloseIcon?: boolean;
9
+ }
10
+ export type CreateSnack = Omit<Snackbar, 'id'>;
11
+ export interface SnackbarContextType {
12
+ addSnackbar: (snackbar: CreateSnack) => void;
13
+ }
@@ -0,0 +1,16 @@
1
+ import { FC, MouseEventHandler, ReactElement } from 'react';
2
+ import { MarginProps } from '../utils/space';
3
+ type SupportMessageType = 'info' | 'fallbackStyle' | 'alert' | 'warning' | 'success';
4
+ export type SupportMessageProps = {
5
+ className?: string;
6
+ description: string | ReactElement<any>;
7
+ onClick?: MouseEventHandler;
8
+ /**
9
+ * Right side content, usually an icon or a button
10
+ */
11
+ rightSideComponent?: ReactElement<any>;
12
+ type: SupportMessageType;
13
+ title?: string;
14
+ } & MarginProps;
15
+ export declare const SupportMessage: FC<SupportMessageProps>;
16
+ export {};
@@ -0,0 +1 @@
1
+ export * from './SupportMessage';
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ import { TableProps } from './types';
3
+ /**
4
+ * A table component that displays data with various features such as expandable rows, striped rows, and fixed headers.
5
+ *
6
+ * ## Caveats:
7
+ * - `subRows` should always have the same columns as the Parent table
8
+ * - `stripedColor` wont be applied to `subRows` or `subTables`
9
+ * - `rowActions` will always need an `onClick`, this will be automatically passed onto the `ReactNode` you place & will be selectable
10
+ * - Rows will scale depending on the cell content size
11
+ * - Using `clickableRow` with clickable cells, ensure you use `e.stopPropagation` in your cells `onClick`
12
+ *
13
+ * ## Improvements:
14
+ * - It would be nice if we expandable logic inside this component, e.g the presence of certain props would automatically add this
15
+ */
16
+ export declare const Table: <T extends object>({ columns, data, fixedHeader, hasKeyline, expandable, subTable, subRows, headerHeight, headerColor, rowColor, stripedColor, rowBorderColor, rowActions, clickableRow, rowPadding, columnPadding, noDataContent, hideTableHeader, }: TableProps<T>) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { RowActionsProps } from '../types';
3
+ export declare const RowActions: <T extends object>({ rowData, rowActions, expandable, isExpanded, toggleExpansion, }: RowActionsProps<T>) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { TableHeaderProps } from '../types';
3
+ export declare const TableHeader: <T extends object>({ columns, fixedHeader, headerColor, rowActions, headerHeight, columnPadding, expandable, hasKeyline, }: TableHeaderProps<T>) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { TableRowProps } from '../types';
3
+ export declare const TableRow: <T extends object>({ rowData, rowIndex, columns, subRows, subTable, stripedColor, rowActions, rowColor, rowBorderColor, rowPadding, columnPadding, showActions, expandable, clickableRow, }: TableRowProps<T>) => React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { TransientProps } from 'utils/utilTypes';
2
+ import { TableStylesProps } from '../types';
3
+ export declare const StyledTable: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, never>> & string;
4
+ export declare const StyledHeaderCell: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, TransientProps<TableStylesProps>>> & string;
5
+ export declare const StyledCell: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, TransientProps<TableStylesProps>>> & string;
6
+ export declare const StyledRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, TransientProps<TableStylesProps>>> & string;