@commerce7/admin-ui 2.0.45 → 2.0.47

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 (400) hide show
  1. package/lib/build.js +1 -1
  2. package/lib/types/alert/Alert.d.ts +42 -0
  3. package/lib/types/alert/Alert.styles.d.ts +16 -0
  4. package/lib/types/alert/index.d.ts +3 -0
  5. package/lib/types/alert/theme.d.ts +110 -0
  6. package/lib/types/avatar/Avatar.d.ts +30 -0
  7. package/lib/types/avatar/Avatar.styles.d.ts +12 -0
  8. package/lib/types/avatar/index.d.ts +3 -0
  9. package/lib/types/avatar/theme.d.ts +42 -0
  10. package/lib/types/breadcrumbs/Breadcrumb.d.ts +31 -0
  11. package/lib/types/breadcrumbs/Breadcrumb.styles.d.ts +3 -0
  12. package/lib/types/breadcrumbs/Breadcrumbs.d.ts +17 -0
  13. package/lib/types/breadcrumbs/Breadcrumbs.styles.d.ts +2 -0
  14. package/lib/types/breadcrumbs/index.d.ts +7 -0
  15. package/lib/types/button/Button.d.ts +60 -0
  16. package/lib/types/button/Button.styles.d.ts +26 -0
  17. package/lib/types/button/index.d.ts +3 -0
  18. package/lib/types/button/theme.d.ts +480 -0
  19. package/lib/types/buttonMenu/ButtonMenu.d.ts +39 -0
  20. package/lib/types/buttonMenu/ButtonMenuItem.d.ts +5 -0
  21. package/lib/types/buttonMenu/index.d.ts +7 -0
  22. package/lib/types/card/Card.d.ts +21 -0
  23. package/lib/types/card/Card.styles.d.ts +5 -0
  24. package/lib/types/card/index.d.ts +3 -0
  25. package/lib/types/card/theme.d.ts +21 -0
  26. package/lib/types/cardLink/CardLink.d.ts +41 -0
  27. package/lib/types/cardLink/CardLink.styles.d.ts +14 -0
  28. package/lib/types/cardLink/index.d.ts +3 -0
  29. package/lib/types/cardLink/theme.d.ts +21 -0
  30. package/lib/types/checkbox/Checkbox.d.ts +69 -0
  31. package/lib/types/checkbox/Checkbox.styles.d.ts +9 -0
  32. package/lib/types/checkbox/index.d.ts +3 -0
  33. package/lib/types/checkbox/theme.d.ts +49 -0
  34. package/lib/types/checkboxGroup/CheckboxGroup.d.ts +40 -0
  35. package/lib/types/checkboxGroup/index.d.ts +3 -0
  36. package/lib/types/columns/Column.d.ts +14 -0
  37. package/lib/types/columns/Columns.d.ts +29 -0
  38. package/lib/types/columns/Columns.styles.d.ts +11 -0
  39. package/lib/types/columns/index.d.ts +7 -0
  40. package/lib/types/common/contextMenu/ContextMenuItem.d.ts +39 -0
  41. package/lib/types/common/contextMenu/ContextMenuItem.styles.d.ts +7 -0
  42. package/lib/types/common/contextMenu/theme.d.ts +24 -0
  43. package/lib/types/common/dropdown/DropdownMenu.d.ts +30 -0
  44. package/lib/types/common/dropdown/DropdownMenu.styles.d.ts +6 -0
  45. package/lib/types/common/dropdown/DropdownWrapper.d.ts +17 -0
  46. package/lib/types/common/dropdown/DropdownWrapper.styles.d.ts +2 -0
  47. package/lib/types/common/dropdown/theme.d.ts +85 -0
  48. package/lib/types/common/form/helpers.d.ts +6 -0
  49. package/lib/types/common/form/styles.d.ts +42 -0
  50. package/lib/types/common/form/theme.d.ts +100 -0
  51. package/lib/types/contextMenu/ContextMenu.d.ts +17 -0
  52. package/lib/types/contextMenu/ContextMenu.styles.d.ts +2 -0
  53. package/lib/types/contextMenu/ContextMenuItem.d.ts +3 -0
  54. package/lib/types/contextMenu/ContextMenuMoreActions.d.ts +26 -0
  55. package/lib/types/contextMenu/index.d.ts +9 -0
  56. package/lib/types/dataDisplay/DataDisplay.d.ts +21 -0
  57. package/lib/types/dataDisplay/DataDisplay.styles.d.ts +5 -0
  58. package/lib/types/dataDisplay/index.d.ts +3 -0
  59. package/lib/types/dataDisplay/theme.d.ts +9 -0
  60. package/lib/types/datePicker/DatePicker.d.ts +81 -0
  61. package/lib/types/datePicker/DatePicker.styles.d.ts +3 -0
  62. package/lib/types/datePicker/DayDatePicker.d.ts +78 -0
  63. package/lib/types/datePicker/index.d.ts +4 -0
  64. package/lib/types/datePicker/theme.d.ts +62 -0
  65. package/lib/types/displayIcon/DisplayIcon.d.ts +34 -0
  66. package/lib/types/displayIcon/DisplayIcon.styles.d.ts +6 -0
  67. package/lib/types/displayIcon/IconWrapper.d.ts +22 -0
  68. package/lib/types/displayIcon/index.d.ts +3 -0
  69. package/lib/types/heading/Heading.d.ts +29 -0
  70. package/lib/types/heading/Heading.styles.d.ts +6 -0
  71. package/lib/types/heading/index.d.ts +3 -0
  72. package/lib/types/heading/theme.d.ts +25 -0
  73. package/lib/types/icon/Icon.d.ts +38 -0
  74. package/lib/types/icon/Icon.styles.d.ts +3 -0
  75. package/lib/types/icon/IconWrapper.styles.d.ts +2 -0
  76. package/lib/types/icon/icons/Add.d.ts +2 -0
  77. package/lib/types/icon/icons/AddCart.d.ts +2 -0
  78. package/lib/types/icon/icons/AddUser.d.ts +2 -0
  79. package/lib/types/icon/icons/Adjust.d.ts +2 -0
  80. package/lib/types/icon/icons/AlignCenter.d.ts +2 -0
  81. package/lib/types/icon/icons/AlignLeft.d.ts +2 -0
  82. package/lib/types/icon/icons/AlignRight.d.ts +2 -0
  83. package/lib/types/icon/icons/App.d.ts +2 -0
  84. package/lib/types/icon/icons/Application.d.ts +2 -0
  85. package/lib/types/icon/icons/ApplicationSwitcher.d.ts +2 -0
  86. package/lib/types/icon/icons/Archive.d.ts +2 -0
  87. package/lib/types/icon/icons/ArrowDivert.d.ts +2 -0
  88. package/lib/types/icon/icons/ArrowDown.d.ts +2 -0
  89. package/lib/types/icon/icons/ArrowLeft.d.ts +2 -0
  90. package/lib/types/icon/icons/ArrowRight.d.ts +2 -0
  91. package/lib/types/icon/icons/ArrowSpace.d.ts +2 -0
  92. package/lib/types/icon/icons/ArrowUp.d.ts +2 -0
  93. package/lib/types/icon/icons/Availability.d.ts +2 -0
  94. package/lib/types/icon/icons/Bag.d.ts +2 -0
  95. package/lib/types/icon/icons/Balloon.d.ts +2 -0
  96. package/lib/types/icon/icons/Bell.d.ts +2 -0
  97. package/lib/types/icon/icons/Book.d.ts +2 -0
  98. package/lib/types/icon/icons/Bounce.d.ts +2 -0
  99. package/lib/types/icon/icons/Brush.d.ts +2 -0
  100. package/lib/types/icon/icons/Bundle.d.ts +2 -0
  101. package/lib/types/icon/icons/Button.d.ts +2 -0
  102. package/lib/types/icon/icons/ButtonLine.d.ts +2 -0
  103. package/lib/types/icon/icons/Cake.d.ts +2 -0
  104. package/lib/types/icon/icons/Calendar.d.ts +2 -0
  105. package/lib/types/icon/icons/CalenderAdd.d.ts +2 -0
  106. package/lib/types/icon/icons/CalenderCross.d.ts +2 -0
  107. package/lib/types/icon/icons/Car.d.ts +2 -0
  108. package/lib/types/icon/icons/Carrot.d.ts +2 -0
  109. package/lib/types/icon/icons/Cart.d.ts +2 -0
  110. package/lib/types/icon/icons/Cash.d.ts +2 -0
  111. package/lib/types/icon/icons/Cashier.d.ts +2 -0
  112. package/lib/types/icon/icons/ChartBars.d.ts +2 -0
  113. package/lib/types/icon/icons/Chat.d.ts +2 -0
  114. package/lib/types/icon/icons/Check.d.ts +2 -0
  115. package/lib/types/icon/icons/CheckCircle.d.ts +2 -0
  116. package/lib/types/icon/icons/CheckIn.d.ts +2 -0
  117. package/lib/types/icon/icons/ChevronDown.d.ts +2 -0
  118. package/lib/types/icon/icons/ChevronUp.d.ts +2 -0
  119. package/lib/types/icon/icons/City.d.ts +2 -0
  120. package/lib/types/icon/icons/ClipboardText.d.ts +2 -0
  121. package/lib/types/icon/icons/Close.d.ts +2 -0
  122. package/lib/types/icon/icons/CloseCircle.d.ts +2 -0
  123. package/lib/types/icon/icons/Club.d.ts +2 -0
  124. package/lib/types/icon/icons/Code.d.ts +2 -0
  125. package/lib/types/icon/icons/Coin.d.ts +2 -0
  126. package/lib/types/icon/icons/Combine.d.ts +2 -0
  127. package/lib/types/icon/icons/Comment.d.ts +2 -0
  128. package/lib/types/icon/icons/ComplianceCheck.d.ts +2 -0
  129. package/lib/types/icon/icons/Construction.d.ts +2 -0
  130. package/lib/types/icon/icons/Copy.d.ts +2 -0
  131. package/lib/types/icon/icons/Customer.d.ts +2 -0
  132. package/lib/types/icon/icons/Dashboard.d.ts +2 -0
  133. package/lib/types/icon/icons/Database.d.ts +2 -0
  134. package/lib/types/icon/icons/Department.d.ts +2 -0
  135. package/lib/types/icon/icons/Developer.d.ts +2 -0
  136. package/lib/types/icon/icons/Discount.d.ts +2 -0
  137. package/lib/types/icon/icons/Document.d.ts +2 -0
  138. package/lib/types/icon/icons/DocumentImage.d.ts +2 -0
  139. package/lib/types/icon/icons/Dollar.d.ts +2 -0
  140. package/lib/types/icon/icons/Dolly.d.ts +2 -0
  141. package/lib/types/icon/icons/Download.d.ts +2 -0
  142. package/lib/types/icon/icons/Drag.d.ts +2 -0
  143. package/lib/types/icon/icons/Duplicate.d.ts +2 -0
  144. package/lib/types/icon/icons/Edit.d.ts +2 -0
  145. package/lib/types/icon/icons/Ellipsis.d.ts +2 -0
  146. package/lib/types/icon/icons/Email.d.ts +2 -0
  147. package/lib/types/icon/icons/EmailOpen.d.ts +2 -0
  148. package/lib/types/icon/icons/Enter.d.ts +2 -0
  149. package/lib/types/icon/icons/Euro.d.ts +2 -0
  150. package/lib/types/icon/icons/Exclamation.d.ts +2 -0
  151. package/lib/types/icon/icons/Exit.d.ts +2 -0
  152. package/lib/types/icon/icons/Export.d.ts +2 -0
  153. package/lib/types/icon/icons/Eye.d.ts +2 -0
  154. package/lib/types/icon/icons/EyeCrossed.d.ts +2 -0
  155. package/lib/types/icon/icons/FileExport.d.ts +2 -0
  156. package/lib/types/icon/icons/FileImport.d.ts +2 -0
  157. package/lib/types/icon/icons/Filter.d.ts +2 -0
  158. package/lib/types/icon/icons/Flag.d.ts +2 -0
  159. package/lib/types/icon/icons/Form.d.ts +2 -0
  160. package/lib/types/icon/icons/Gift.d.ts +2 -0
  161. package/lib/types/icon/icons/GiftCard.d.ts +2 -0
  162. package/lib/types/icon/icons/GradHat.d.ts +2 -0
  163. package/lib/types/icon/icons/Group.d.ts +2 -0
  164. package/lib/types/icon/icons/Hammer.d.ts +2 -0
  165. package/lib/types/icon/icons/Hand.d.ts +2 -0
  166. package/lib/types/icon/icons/Heart.d.ts +2 -0
  167. package/lib/types/icon/icons/HeartFilled.d.ts +2 -0
  168. package/lib/types/icon/icons/History.d.ts +2 -0
  169. package/lib/types/icon/icons/Image.d.ts +2 -0
  170. package/lib/types/icon/icons/ImagePlaceholder.d.ts +2 -0
  171. package/lib/types/icon/icons/Import.d.ts +2 -0
  172. package/lib/types/icon/icons/InfoCircle.d.ts +2 -0
  173. package/lib/types/icon/icons/Inventory.d.ts +2 -0
  174. package/lib/types/icon/icons/Language.d.ts +2 -0
  175. package/lib/types/icon/icons/Launch.d.ts +2 -0
  176. package/lib/types/icon/icons/LightBulb.d.ts +2 -0
  177. package/lib/types/icon/icons/Link.d.ts +2 -0
  178. package/lib/types/icon/icons/Loading.d.ts +2 -0
  179. package/lib/types/icon/icons/Location.d.ts +2 -0
  180. package/lib/types/icon/icons/LocationBottom.d.ts +2 -0
  181. package/lib/types/icon/icons/LocationPage.d.ts +2 -0
  182. package/lib/types/icon/icons/LocationTop.d.ts +2 -0
  183. package/lib/types/icon/icons/Lock.d.ts +2 -0
  184. package/lib/types/icon/icons/LogOut.d.ts +2 -0
  185. package/lib/types/icon/icons/Loyalty.d.ts +2 -0
  186. package/lib/types/icon/icons/Map.d.ts +2 -0
  187. package/lib/types/icon/icons/MapMarker.d.ts +2 -0
  188. package/lib/types/icon/icons/Marketing.d.ts +2 -0
  189. package/lib/types/icon/icons/MegaAdmin.d.ts +2 -0
  190. package/lib/types/icon/icons/Menu.d.ts +2 -0
  191. package/lib/types/icon/icons/Merge.d.ts +2 -0
  192. package/lib/types/icon/icons/Minus.d.ts +2 -0
  193. package/lib/types/icon/icons/Moon.d.ts +2 -0
  194. package/lib/types/icon/icons/MoreActions.d.ts +2 -0
  195. package/lib/types/icon/icons/Move.d.ts +2 -0
  196. package/lib/types/icon/icons/Network.d.ts +2 -0
  197. package/lib/types/icon/icons/NewTab.d.ts +2 -0
  198. package/lib/types/icon/icons/Note.d.ts +2 -0
  199. package/lib/types/icon/icons/Notification.d.ts +2 -0
  200. package/lib/types/icon/icons/Onboarding.d.ts +2 -0
  201. package/lib/types/icon/icons/Package.d.ts +2 -0
  202. package/lib/types/icon/icons/PaperPlane.d.ts +2 -0
  203. package/lib/types/icon/icons/PauseCircle.d.ts +2 -0
  204. package/lib/types/icon/icons/Percent.d.ts +2 -0
  205. package/lib/types/icon/icons/Phone.d.ts +2 -0
  206. package/lib/types/icon/icons/Platter.d.ts +2 -0
  207. package/lib/types/icon/icons/PlayCircle.d.ts +2 -0
  208. package/lib/types/icon/icons/Pointer.d.ts +2 -0
  209. package/lib/types/icon/icons/Pos.d.ts +2 -0
  210. package/lib/types/icon/icons/PosProfile.d.ts +2 -0
  211. package/lib/types/icon/icons/Pound.d.ts +2 -0
  212. package/lib/types/icon/icons/Power.d.ts +2 -0
  213. package/lib/types/icon/icons/Print.d.ts +2 -0
  214. package/lib/types/icon/icons/Process.d.ts +2 -0
  215. package/lib/types/icon/icons/Product.d.ts +2 -0
  216. package/lib/types/icon/icons/Qr.d.ts +2 -0
  217. package/lib/types/icon/icons/QuestionCircle.d.ts +2 -0
  218. package/lib/types/icon/icons/Rand.d.ts +2 -0
  219. package/lib/types/icon/icons/Receipt.d.ts +2 -0
  220. package/lib/types/icon/icons/Redo.d.ts +2 -0
  221. package/lib/types/icon/icons/RedoLarge.d.ts +2 -0
  222. package/lib/types/icon/icons/Reload.d.ts +2 -0
  223. package/lib/types/icon/icons/Remove.d.ts +2 -0
  224. package/lib/types/icon/icons/Report.d.ts +2 -0
  225. package/lib/types/icon/icons/Reservation.d.ts +2 -0
  226. package/lib/types/icon/icons/Rocket.d.ts +2 -0
  227. package/lib/types/icon/icons/Screen.d.ts +2 -0
  228. package/lib/types/icon/icons/Search.d.ts +2 -0
  229. package/lib/types/icon/icons/Security.d.ts +2 -0
  230. package/lib/types/icon/icons/Seedling.d.ts +2 -0
  231. package/lib/types/icon/icons/Send.d.ts +2 -0
  232. package/lib/types/icon/icons/Setting.d.ts +2 -0
  233. package/lib/types/icon/icons/Shuffle.d.ts +2 -0
  234. package/lib/types/icon/icons/Smartphone.d.ts +2 -0
  235. package/lib/types/icon/icons/Sparkle.d.ts +2 -0
  236. package/lib/types/icon/icons/Split.d.ts +2 -0
  237. package/lib/types/icon/icons/Star.d.ts +2 -0
  238. package/lib/types/icon/icons/Store.d.ts +2 -0
  239. package/lib/types/icon/icons/Sun.d.ts +2 -0
  240. package/lib/types/icon/icons/Support.d.ts +2 -0
  241. package/lib/types/icon/icons/SwitchUser.d.ts +2 -0
  242. package/lib/types/icon/icons/Sync.d.ts +2 -0
  243. package/lib/types/icon/icons/Table.d.ts +2 -0
  244. package/lib/types/icon/icons/Tag.d.ts +2 -0
  245. package/lib/types/icon/icons/Tasting.d.ts +2 -0
  246. package/lib/types/icon/icons/TextAlignCenter.d.ts +2 -0
  247. package/lib/types/icon/icons/TextAlignLeft.d.ts +2 -0
  248. package/lib/types/icon/icons/TextAlignRight.d.ts +2 -0
  249. package/lib/types/icon/icons/TextBold.d.ts +2 -0
  250. package/lib/types/icon/icons/TextCase.d.ts +2 -0
  251. package/lib/types/icon/icons/TextItalic.d.ts +2 -0
  252. package/lib/types/icon/icons/TextSize.d.ts +2 -0
  253. package/lib/types/icon/icons/ThumbsDown.d.ts +2 -0
  254. package/lib/types/icon/icons/ThumbsUp.d.ts +2 -0
  255. package/lib/types/icon/icons/Ticket.d.ts +2 -0
  256. package/lib/types/icon/icons/Time.d.ts +2 -0
  257. package/lib/types/icon/icons/Title.d.ts +2 -0
  258. package/lib/types/icon/icons/Transfer.d.ts +2 -0
  259. package/lib/types/icon/icons/Trash.d.ts +2 -0
  260. package/lib/types/icon/icons/Truck.d.ts +2 -0
  261. package/lib/types/icon/icons/Undo.d.ts +2 -0
  262. package/lib/types/icon/icons/UndoLarge.d.ts +2 -0
  263. package/lib/types/icon/icons/Upload.d.ts +2 -0
  264. package/lib/types/icon/icons/User.d.ts +2 -0
  265. package/lib/types/icon/icons/Users.d.ts +2 -0
  266. package/lib/types/icon/icons/Video.d.ts +2 -0
  267. package/lib/types/icon/icons/Wallet.d.ts +2 -0
  268. package/lib/types/icon/icons/Wand.d.ts +2 -0
  269. package/lib/types/icon/icons/Warning.d.ts +2 -0
  270. package/lib/types/icon/icons/Wine.d.ts +2 -0
  271. package/lib/types/icon/icons/Write.d.ts +2 -0
  272. package/lib/types/icon/icons/index.d.ts +197 -0
  273. package/lib/types/icon/index.d.ts +3 -0
  274. package/lib/types/icon/theme.d.ts +63 -0
  275. package/lib/types/index.d.ts +88 -0
  276. package/lib/types/infoCard/InfoCard.d.ts +46 -0
  277. package/lib/types/infoCard/InfoCard.styles.d.ts +19 -0
  278. package/lib/types/infoCard/InfoCardGrid.d.ts +17 -0
  279. package/lib/types/infoCard/index.d.ts +7 -0
  280. package/lib/types/infoCard/theme.d.ts +204 -0
  281. package/lib/types/input/ColorInput.d.ts +62 -0
  282. package/lib/types/input/Input.d.ts +93 -0
  283. package/lib/types/input/Input.styles.d.ts +17 -0
  284. package/lib/types/input/index.d.ts +3 -0
  285. package/lib/types/input/theme.d.ts +12 -0
  286. package/lib/types/legend/Legend.d.ts +30 -0
  287. package/lib/types/legend/index.d.ts +3 -0
  288. package/lib/types/lineBreak/LineBreak.d.ts +13 -0
  289. package/lib/types/lineBreak/LineBreak.styles.d.ts +2 -0
  290. package/lib/types/lineBreak/index.d.ts +3 -0
  291. package/lib/types/lineBreak/theme.d.ts +9 -0
  292. package/lib/types/linkButton/LinkButton.d.ts +71 -0
  293. package/lib/types/linkButton/index.d.ts +3 -0
  294. package/lib/types/modal/Modal.d.ts +47 -0
  295. package/lib/types/modal/Modal.styles.d.ts +10 -0
  296. package/lib/types/modal/ModalBody.d.ts +13 -0
  297. package/lib/types/modal/ModalBody.styles.d.ts +2 -0
  298. package/lib/types/modal/ModalContent.d.ts +46 -0
  299. package/lib/types/modal/ModalFooter.d.ts +13 -0
  300. package/lib/types/modal/ModalFooter.styles.d.ts +2 -0
  301. package/lib/types/modal/index.d.ts +9 -0
  302. package/lib/types/modal/theme.d.ts +12 -0
  303. package/lib/types/nav/Nav.d.ts +21 -0
  304. package/lib/types/nav/Nav.styles.d.ts +15 -0
  305. package/lib/types/nav/NavLink.d.ts +41 -0
  306. package/lib/types/nav/SubNav.d.ts +21 -0
  307. package/lib/types/nav/SubNavLink.d.ts +36 -0
  308. package/lib/types/nav/index.d.ts +11 -0
  309. package/lib/types/nav/theme.d.ts +108 -0
  310. package/lib/types/noRecords/NoRecords.d.ts +30 -0
  311. package/lib/types/noRecords/NoRecords.styles.d.ts +6 -0
  312. package/lib/types/noRecords/index.d.ts +3 -0
  313. package/lib/types/picture/Picture.d.ts +30 -0
  314. package/lib/types/picture/Picture.styles.d.ts +9 -0
  315. package/lib/types/picture/index.d.ts +3 -0
  316. package/lib/types/pieChart/Label.d.ts +33 -0
  317. package/lib/types/pieChart/PieChart.d.ts +76 -0
  318. package/lib/types/pieChart/Tooltip.d.ts +26 -0
  319. package/lib/types/pieChart/index.d.ts +3 -0
  320. package/lib/types/progressBar/ProgressBar.d.ts +30 -0
  321. package/lib/types/progressBar/ProgressBar.styles.d.ts +8 -0
  322. package/lib/types/progressBar/index.d.ts +3 -0
  323. package/lib/types/progressBar/theme.d.ts +15 -0
  324. package/lib/types/radio/Radio.d.ts +73 -0
  325. package/lib/types/radio/Radio.styles.d.ts +2 -0
  326. package/lib/types/radio/index.d.ts +3 -0
  327. package/lib/types/radio/theme.d.ts +49 -0
  328. package/lib/types/radioGroup/RadioGroup.d.ts +40 -0
  329. package/lib/types/radioGroup/index.d.ts +3 -0
  330. package/lib/types/region/Region.d.ts +21 -0
  331. package/lib/types/region/Region.styles.d.ts +6 -0
  332. package/lib/types/region/index.d.ts +3 -0
  333. package/lib/types/select/Options.d.ts +18 -0
  334. package/lib/types/select/Select.d.ts +61 -0
  335. package/lib/types/select/Select.styles.d.ts +9 -0
  336. package/lib/types/select/index.d.ts +3 -0
  337. package/lib/types/selectButton/SelectButton.d.ts +53 -0
  338. package/lib/types/selectButton/SelectButton.styles.d.ts +8 -0
  339. package/lib/types/selectButton/index.d.ts +3 -0
  340. package/lib/types/selectButton/theme.d.ts +93 -0
  341. package/lib/types/spinner/Spinner.d.ts +17 -0
  342. package/lib/types/spinner/Spinner.styles.d.ts +6 -0
  343. package/lib/types/spinner/index.d.ts +3 -0
  344. package/lib/types/stepper/Step.d.ts +43 -0
  345. package/lib/types/stepper/Stepper.d.ts +17 -0
  346. package/lib/types/stepper/Stepper.styles.d.ts +15 -0
  347. package/lib/types/stepper/index.d.ts +7 -0
  348. package/lib/types/stepper/theme.d.ts +31 -0
  349. package/lib/types/subMenu/SubMenu.d.ts +26 -0
  350. package/lib/types/subMenu/SubMenu.styles.d.ts +11 -0
  351. package/lib/types/subMenu/SubMenuItem.d.ts +36 -0
  352. package/lib/types/subMenu/index.d.ts +7 -0
  353. package/lib/types/switchComponent/Switch.styles.d.ts +2 -0
  354. package/lib/types/switchComponent/SwitchComponent.d.ts +51 -0
  355. package/lib/types/switchComponent/index.d.ts +3 -0
  356. package/lib/types/switchComponent/theme.d.ts +26 -0
  357. package/lib/types/table/Table.d.ts +17 -0
  358. package/lib/types/table/Table.styles.d.ts +3 -0
  359. package/lib/types/table/Tbody.d.ts +17 -0
  360. package/lib/types/table/Tbody.styles.d.ts +2 -0
  361. package/lib/types/table/Td.d.ts +30 -0
  362. package/lib/types/table/Td.styles.d.ts +2 -0
  363. package/lib/types/table/Tfoot.d.ts +17 -0
  364. package/lib/types/table/Tfoot.styles.d.ts +2 -0
  365. package/lib/types/table/Th.d.ts +26 -0
  366. package/lib/types/table/Th.styles.d.ts +2 -0
  367. package/lib/types/table/Thead.d.ts +18 -0
  368. package/lib/types/table/Thead.styles.d.ts +2 -0
  369. package/lib/types/table/Tr.d.ts +21 -0
  370. package/lib/types/table/Tr.styles.d.ts +2 -0
  371. package/lib/types/table/index.d.ts +17 -0
  372. package/lib/types/table/theme.d.ts +79 -0
  373. package/lib/types/tabs/Tab.d.ts +39 -0
  374. package/lib/types/tabs/TabBody.d.ts +17 -0
  375. package/lib/types/tabs/Tabs.d.ts +18 -0
  376. package/lib/types/tabs/Tabs.styles.d.ts +4 -0
  377. package/lib/types/tabs/index.d.ts +9 -0
  378. package/lib/types/tag/Tag.d.ts +39 -0
  379. package/lib/types/tag/Tag.styles.d.ts +19 -0
  380. package/lib/types/tag/index.d.ts +3 -0
  381. package/lib/types/tag/theme.d.ts +83 -0
  382. package/lib/types/text/Text.d.ts +53 -0
  383. package/lib/types/text/Text.styles.d.ts +2 -0
  384. package/lib/types/text/index.d.ts +3 -0
  385. package/lib/types/text/theme.d.ts +13 -0
  386. package/lib/types/textarea/Textarea.d.ts +67 -0
  387. package/lib/types/textarea/Textarea.styles.d.ts +8 -0
  388. package/lib/types/textarea/index.d.ts +3 -0
  389. package/lib/types/ui/Commerce7AdminUI.d.ts +15 -0
  390. package/lib/types/ui/index.d.ts +4 -0
  391. package/lib/types/ui/theme.d.ts +160 -0
  392. package/lib/types/utils/hooks/useEscKeydown.d.ts +2 -0
  393. package/lib/types/utils/hooks/useOnClickOutside.d.ts +2 -0
  394. package/lib/types/utils/hooks/useWindowSize.d.ts +8 -0
  395. package/lib/types/vividIcon/VividIcon.d.ts +34 -0
  396. package/lib/types/vividIcon/VividIcon.styles.d.ts +9 -0
  397. package/lib/types/vividIcon/index.d.ts +3 -0
  398. package/lib/types/vividIcon/theme.d.ts +108 -0
  399. package/package.json +5 -2
  400. package/tsconfig.build.json +13 -0
@@ -0,0 +1,3 @@
1
+ import Text, { TextProps } from './Text';
2
+ export type { TextProps };
3
+ export default Text;
@@ -0,0 +1,13 @@
1
+ declare const colors: {
2
+ light: {
3
+ errorFontColor: string;
4
+ fontColor: string;
5
+ secondaryFontColor: string;
6
+ };
7
+ dark: {
8
+ errorFontColor: string;
9
+ fontColor: string;
10
+ secondaryFontColor: string;
11
+ };
12
+ };
13
+ export { colors };
@@ -0,0 +1,67 @@
1
+ import React, { ChangeEvent, FocusEvent } from 'react';
2
+ export interface TextareaProps {
3
+ /**
4
+ * Set the element to autoFocus on mount.
5
+ */
6
+ autoFocus?: boolean;
7
+ /**
8
+ * Add className to the outermost element.
9
+ */
10
+ className?: string;
11
+ /**
12
+ * Help text to describe the form field
13
+ */
14
+ description?: string;
15
+ /**
16
+ * Set the element to be disabled.
17
+ */
18
+ disabled?: boolean;
19
+ /**
20
+ * Show an error message and set the component styles to visually show an error.
21
+ */
22
+ errorMessage?: string;
23
+ /**
24
+ * Set the height of the element.
25
+ */
26
+ height?: number;
27
+ /**
28
+ * Set the id of the element.
29
+ * The label uses this id to ensure htmlFor is set correctly.
30
+ */
31
+ id?: string;
32
+ /**
33
+ * The label for the component.
34
+ */
35
+ label?: string;
36
+ /**
37
+ * Callback onBlur.
38
+ */
39
+ onBlur?: (event: FocusEvent<HTMLTextAreaElement>) => void;
40
+ /**
41
+ * Callback onChange.
42
+ */
43
+ onChange: (event: ChangeEvent<HTMLTextAreaElement>) => void;
44
+ /**
45
+ * Callback onFocus.
46
+ */
47
+ onFocus?: (event: FocusEvent<HTMLTextAreaElement>) => void;
48
+ /**
49
+ * The placeholder of the element.
50
+ */
51
+ placeholder?: string;
52
+ /**
53
+ * Set the element to be required.
54
+ * This will show an asterisk in the label and add 'required' to the DOM node.
55
+ */
56
+ required?: boolean;
57
+ /**
58
+ * The value of the element.
59
+ */
60
+ value: string;
61
+ /**
62
+ * Add test attribute to the element. Used internally for testing.
63
+ */
64
+ dataTestId?: string;
65
+ }
66
+ declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
67
+ export default Textarea;
@@ -0,0 +1,8 @@
1
+ interface StyledTextareaProps {
2
+ height: number;
3
+ hasErrorMessage?: boolean;
4
+ }
5
+ declare const StyledTextarea: import("styled-components").StyledComponent<"input", any, import("../common/form/styles").StyledFormItemProps & {
6
+ as: string;
7
+ } & StyledTextareaProps, "as">;
8
+ export { StyledTextarea };
@@ -0,0 +1,3 @@
1
+ import Textarea, { TextareaProps } from './Textarea';
2
+ export type { TextareaProps };
3
+ export default Textarea;
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ interface Commerce7AdminUIProps {
3
+ /**
4
+ * Theme mode for the UI
5
+ * @default 'light'
6
+ */
7
+ mode?: 'light' | 'dark';
8
+ /**
9
+ * Child components to render
10
+ */
11
+ children?: React.ReactNode;
12
+ }
13
+ declare const Commerce7AdminUI: React.FC<Commerce7AdminUIProps>;
14
+ export type { Commerce7AdminUIProps };
15
+ export default Commerce7AdminUI;
@@ -0,0 +1,4 @@
1
+ import Commerce7AdminUI, { Commerce7AdminUIProps } from './Commerce7AdminUI';
2
+ import { Theme } from './theme';
3
+ export type { Commerce7AdminUIProps, Theme };
4
+ export default Commerce7AdminUI;
@@ -0,0 +1,160 @@
1
+ export declare const c7Colors: {
2
+ white: string;
3
+ black: string;
4
+ yellow100: string;
5
+ yellow200: string;
6
+ yellow300: string;
7
+ green100: string;
8
+ green200: string;
9
+ green300: string;
10
+ red100: string;
11
+ red200: string;
12
+ red300: string;
13
+ orange100: string;
14
+ orange200: string;
15
+ orange300: string;
16
+ purple100: string;
17
+ purple200: string;
18
+ purple300: string;
19
+ violet100: string;
20
+ violet200: string;
21
+ violet300: string;
22
+ blue100: string;
23
+ blue200: string;
24
+ blue300: string;
25
+ blue400: string;
26
+ blue500: string;
27
+ blue600: string;
28
+ blueberry100: string;
29
+ blueberry200: string;
30
+ blueberry300: string;
31
+ slate100: string;
32
+ slate200: string;
33
+ slate300: string;
34
+ slate400: string;
35
+ gray100: string;
36
+ gray200: string;
37
+ gray300: string;
38
+ gray400: string;
39
+ gray500: string;
40
+ gray600: string;
41
+ gray700: string;
42
+ gray750: string;
43
+ gray800: string;
44
+ gray900: string;
45
+ gray950: string;
46
+ };
47
+ export declare const fontColors: {
48
+ dark: string;
49
+ light: string;
50
+ };
51
+ export interface Theme {
52
+ c7__ui: {
53
+ mode: 'light' | 'dark';
54
+ fontFamily: string;
55
+ fontSizeBase: string;
56
+ fontSizeSmall: string;
57
+ fontWeightBase: string;
58
+ fontWeightStrong: string;
59
+ fontWeightHeading: string;
60
+ fontColor: string;
61
+ secondaryFontColor: string;
62
+ linkColor: string;
63
+ backgroundColor: string;
64
+ secondaryBackgroundColor: string;
65
+ borderColor: string;
66
+ errorColor: string;
67
+ borderRadius: string;
68
+ borderRadiusMedium: string;
69
+ boxShadow: string;
70
+ colors: typeof c7Colors;
71
+ breakpoints: {
72
+ smallUp: string;
73
+ smallOnly: string;
74
+ mediumUp: string;
75
+ mediumOnly: string;
76
+ largeUp: string;
77
+ largeOnly: string;
78
+ xLargeUp: string;
79
+ };
80
+ };
81
+ }
82
+ export declare const createTheme: (mode: "light" | "dark") => {
83
+ c7__ui: {
84
+ mode: "light" | "dark";
85
+ fontFamily: string;
86
+ fontSizeBase: string;
87
+ fontSizeSmall: string;
88
+ fontWeightBase: string;
89
+ fontWeightStrong: string;
90
+ fontWeightHeading: string;
91
+ fontColor: string;
92
+ secondaryFontColor: string;
93
+ linkColor: string;
94
+ backgroundColor: string;
95
+ secondaryBackgroundColor: string;
96
+ borderColor: string;
97
+ errorColor: string;
98
+ borderRadius: string;
99
+ borderRadiusMedium: string;
100
+ boxShadow: string;
101
+ colors: {
102
+ white: string;
103
+ black: string;
104
+ yellow100: string;
105
+ yellow200: string;
106
+ yellow300: string;
107
+ green100: string;
108
+ green200: string;
109
+ green300: string;
110
+ red100: string;
111
+ red200: string;
112
+ red300: string;
113
+ orange100: string;
114
+ orange200: string;
115
+ orange300: string;
116
+ purple100: string;
117
+ purple200: string;
118
+ purple300: string;
119
+ violet100: string;
120
+ violet200: string;
121
+ violet300: string;
122
+ blue100: string;
123
+ blue200: string;
124
+ blue300: string;
125
+ blue400: string;
126
+ blue500: string;
127
+ blue600: string;
128
+ blueberry100: string;
129
+ blueberry200: string;
130
+ blueberry300: string;
131
+ slate100: string;
132
+ slate200: string;
133
+ slate300: string;
134
+ slate400: string;
135
+ gray100: string;
136
+ gray200: string;
137
+ gray300: string;
138
+ gray400: string;
139
+ gray500: string;
140
+ gray600: string;
141
+ gray700: string;
142
+ gray750: string;
143
+ gray800: string;
144
+ gray900: string;
145
+ gray950: string;
146
+ };
147
+ breakpoints: {
148
+ smallUp: string;
149
+ smallOnly: string;
150
+ mediumUp: string;
151
+ mediumOnly: string;
152
+ largeUp: string;
153
+ largeOnly: string;
154
+ xLargeUp: string;
155
+ };
156
+ };
157
+ };
158
+ export declare const GlobalStyles: import("styled-components").GlobalStyleComponent<{
159
+ theme: Theme;
160
+ }, import("styled-components").DefaultTheme>;
@@ -0,0 +1,2 @@
1
+ export default useEscKeydown;
2
+ declare function useEscKeydown(handler: any): void;
@@ -0,0 +1,2 @@
1
+ export default useOnClickOutside;
2
+ declare function useOnClickOutside(ref: any, handler: any): void;
@@ -0,0 +1,8 @@
1
+ export default useWindowSize;
2
+ declare function useWindowSize(): {
3
+ width: number;
4
+ height: number;
5
+ } | {
6
+ width: null;
7
+ height: null;
8
+ };
@@ -0,0 +1,34 @@
1
+ import React, { MouseEvent } from 'react';
2
+ type VividIconColor = 'pink' | 'blue' | 'green' | 'teal' | 'orange' | 'purple' | 'yellow' | 'gray';
3
+ export interface VividIconProps {
4
+ /**
5
+ * Add className to the outermost element.
6
+ */
7
+ className?: string;
8
+ /**
9
+ * Set the icon to use.
10
+ */
11
+ icon: string;
12
+ /**
13
+ * The label for the component.
14
+ * This should be used when passing in an onClick prop, for accessibility reasons.
15
+ */
16
+ label?: string;
17
+ /**
18
+ * Callback fired when the component is clicked.
19
+ */
20
+ onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
21
+ /**
22
+ * Set the visual property of the component.
23
+ */
24
+ color?: VividIconColor;
25
+ /**
26
+ * Add test attribute to the element. Used internally for testing.
27
+ */
28
+ dataTestId?: string;
29
+ }
30
+ declare const VividIcon: {
31
+ ({ className, label, onClick, icon, color, dataTestId }: VividIconProps): React.JSX.Element;
32
+ displayName: string;
33
+ };
34
+ export default VividIcon;
@@ -0,0 +1,9 @@
1
+ declare const StyledIconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ interface StyledIconProps {
3
+ color: 'pink' | 'blue' | 'green' | 'teal' | 'orange' | 'purple' | 'gray' | 'yellow';
4
+ }
5
+ declare const StyledIcon: import("styled-components").StyledComponent<{
6
+ ({ className, icon, label, onClick, size, variant, dataTestId }: import("../icon").IconProps): import("react").JSX.Element | null;
7
+ displayName: string;
8
+ }, any, StyledIconProps, never>;
9
+ export { StyledIconContainer, StyledIcon };
@@ -0,0 +1,3 @@
1
+ import VividIcon, { VividIconProps } from './VividIcon';
2
+ export type { VividIconProps };
3
+ export default VividIcon;
@@ -0,0 +1,108 @@
1
+ export namespace colors {
2
+ namespace light {
3
+ namespace pink {
4
+ let backgroundColor: string;
5
+ let fillColor: string;
6
+ }
7
+ namespace blue {
8
+ let backgroundColor_1: string;
9
+ export { backgroundColor_1 as backgroundColor };
10
+ let fillColor_1: string;
11
+ export { fillColor_1 as fillColor };
12
+ }
13
+ namespace green {
14
+ let backgroundColor_2: string;
15
+ export { backgroundColor_2 as backgroundColor };
16
+ let fillColor_2: string;
17
+ export { fillColor_2 as fillColor };
18
+ }
19
+ namespace teal {
20
+ let backgroundColor_3: string;
21
+ export { backgroundColor_3 as backgroundColor };
22
+ let fillColor_3: string;
23
+ export { fillColor_3 as fillColor };
24
+ }
25
+ namespace orange {
26
+ let backgroundColor_4: string;
27
+ export { backgroundColor_4 as backgroundColor };
28
+ let fillColor_4: string;
29
+ export { fillColor_4 as fillColor };
30
+ }
31
+ namespace purple {
32
+ let backgroundColor_5: string;
33
+ export { backgroundColor_5 as backgroundColor };
34
+ let fillColor_5: string;
35
+ export { fillColor_5 as fillColor };
36
+ }
37
+ namespace gray {
38
+ let backgroundColor_6: string;
39
+ export { backgroundColor_6 as backgroundColor };
40
+ let fillColor_6: string;
41
+ export { fillColor_6 as fillColor };
42
+ }
43
+ namespace yellow {
44
+ let backgroundColor_7: string;
45
+ export { backgroundColor_7 as backgroundColor };
46
+ let fillColor_7: string;
47
+ export { fillColor_7 as fillColor };
48
+ }
49
+ }
50
+ namespace dark {
51
+ export namespace pink_1 {
52
+ let backgroundColor_8: string;
53
+ export { backgroundColor_8 as backgroundColor };
54
+ let fillColor_8: string;
55
+ export { fillColor_8 as fillColor };
56
+ }
57
+ export { pink_1 as pink };
58
+ export namespace blue_1 {
59
+ let backgroundColor_9: string;
60
+ export { backgroundColor_9 as backgroundColor };
61
+ let fillColor_9: string;
62
+ export { fillColor_9 as fillColor };
63
+ }
64
+ export { blue_1 as blue };
65
+ export namespace green_1 {
66
+ let backgroundColor_10: string;
67
+ export { backgroundColor_10 as backgroundColor };
68
+ let fillColor_10: string;
69
+ export { fillColor_10 as fillColor };
70
+ }
71
+ export { green_1 as green };
72
+ export namespace teal_1 {
73
+ let backgroundColor_11: string;
74
+ export { backgroundColor_11 as backgroundColor };
75
+ let fillColor_11: string;
76
+ export { fillColor_11 as fillColor };
77
+ }
78
+ export { teal_1 as teal };
79
+ export namespace orange_1 {
80
+ let backgroundColor_12: string;
81
+ export { backgroundColor_12 as backgroundColor };
82
+ let fillColor_12: string;
83
+ export { fillColor_12 as fillColor };
84
+ }
85
+ export { orange_1 as orange };
86
+ export namespace purple_1 {
87
+ let backgroundColor_13: string;
88
+ export { backgroundColor_13 as backgroundColor };
89
+ let fillColor_13: string;
90
+ export { fillColor_13 as fillColor };
91
+ }
92
+ export { purple_1 as purple };
93
+ export namespace gray_1 {
94
+ let backgroundColor_14: string;
95
+ export { backgroundColor_14 as backgroundColor };
96
+ let fillColor_14: string;
97
+ export { fillColor_14 as fillColor };
98
+ }
99
+ export { gray_1 as gray };
100
+ export namespace yellow_1 {
101
+ let backgroundColor_15: string;
102
+ export { backgroundColor_15 as backgroundColor };
103
+ let fillColor_15: string;
104
+ export { fillColor_15 as fillColor };
105
+ }
106
+ export { yellow_1 as yellow };
107
+ }
108
+ }
package/package.json CHANGED
@@ -1,14 +1,17 @@
1
1
  {
2
2
  "name": "@commerce7/admin-ui",
3
- "version": "2.0.45",
3
+ "version": "2.0.47",
4
4
  "description": "Commerce7 Admin UI Component Library",
5
5
  "keywords": [
6
6
  "Commerce7"
7
7
  ],
8
8
  "main": "./lib/build.js",
9
+ "types": "./lib/types/index.d.ts",
9
10
  "license": "MIT",
10
11
  "scripts": {
11
- "build": "webpack",
12
+ "build": "npm run build:js && npm run build:types",
13
+ "build:js": "webpack",
14
+ "build:types": "rm -rf lib/types && tsc -p tsconfig.build.json",
12
15
  "storybook": "storybook dev -p 6006",
13
16
  "build-storybook": "storybook build",
14
17
  "pre-commit": "lint-staged",
@@ -0,0 +1,13 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "noEmit": false,
5
+ "declaration": true,
6
+ "emitDeclarationOnly": true,
7
+ "declarationMap": false,
8
+ "rootDir": "./src",
9
+ "outDir": "./lib/types"
10
+ },
11
+ "include": ["src"],
12
+ "exclude": ["node_modules", "src/stories/**/*", "**/*.stories.ts", "**/*.stories.tsx"]
13
+ }