@sikka/hawa 0.1.1 → 0.1.2-next

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 (389) hide show
  1. package/README.md +21 -43
  2. package/dist/index.css +1385 -0
  3. package/dist/index.d.mts +15 -0
  4. package/dist/index.d.ts +15 -0
  5. package/dist/index.js +246 -0
  6. package/dist/index.mjs +157 -0
  7. package/package.json +48 -115
  8. package/.github/workflows/hawa-actions.yml +0 -112
  9. package/.github/workflows/hawa-publish-push.yml +0 -74
  10. package/.github/workflows/hawa-publish.yml +0 -48
  11. package/.prettierrc +0 -28
  12. package/_config.yml +0 -1
  13. package/dist/styles.css +0 -3511
  14. package/es/blocks/Account/HawaApiBox.d.ts +0 -8
  15. package/es/blocks/Account/UserProfileForm.d.ts +0 -8
  16. package/es/blocks/Account/UserSettingsForm.d.ts +0 -9
  17. package/es/blocks/Account/index.d.ts +0 -2
  18. package/es/blocks/AuthForms/AppLanding.d.ts +0 -14
  19. package/es/blocks/AuthForms/CodeConfirmation.d.ts +0 -22
  20. package/es/blocks/AuthForms/NewPasswordForm.d.ts +0 -18
  21. package/es/blocks/AuthForms/ResetPasswordForm.d.ts +0 -18
  22. package/es/blocks/AuthForms/SignInBlock.d.ts +0 -2
  23. package/es/blocks/AuthForms/SignInForm.d.ts +0 -51
  24. package/es/blocks/AuthForms/SignInPhone.d.ts +0 -13
  25. package/es/blocks/AuthForms/SignUpForm.d.ts +0 -55
  26. package/es/blocks/AuthForms/index.d.ts +0 -8
  27. package/es/blocks/Misc/EmptyState.d.ts +0 -11
  28. package/es/blocks/Misc/LeadGenerator.d.ts +0 -12
  29. package/es/blocks/Misc/Newsletter.d.ts +0 -12
  30. package/es/blocks/Misc/NoPermission.d.ts +0 -10
  31. package/es/blocks/Misc/NotFound.d.ts +0 -11
  32. package/es/blocks/Misc/Testimonial.d.ts +0 -6
  33. package/es/blocks/Misc/index.d.ts +0 -6
  34. package/es/blocks/Payment/ChargeWalletForm.d.ts +0 -12
  35. package/es/blocks/Payment/CheckoutForm.d.ts +0 -27
  36. package/es/blocks/Payment/Confirmation.d.ts +0 -38
  37. package/es/blocks/Payment/CreditCardForm.d.ts +0 -7
  38. package/es/blocks/Payment/PayWithWallet.d.ts +0 -8
  39. package/es/blocks/Payment/SelectPayment.d.ts +0 -26
  40. package/es/blocks/Payment/index.d.ts +0 -6
  41. package/es/blocks/Pricing/ComparingPlans.d.ts +0 -39
  42. package/es/blocks/Pricing/HorizontalPricing.d.ts +0 -47
  43. package/es/blocks/Pricing/PricingPlans.d.ts +0 -47
  44. package/es/blocks/Pricing/index.d.ts +0 -3
  45. package/es/blocks/Referral/ReferralAccount.d.ts +0 -7
  46. package/es/blocks/Referral/ReferralSettlement.d.ts +0 -8
  47. package/es/blocks/Referral/ReferralStats.d.ts +0 -8
  48. package/es/blocks/Referral/index.d.ts +0 -3
  49. package/es/blocks/index.d.ts +0 -6
  50. package/es/countries.d.ts +0 -2
  51. package/es/elements/ArrowCarousel.d.ts +0 -13
  52. package/es/elements/AutoCompleteField.d.ts +0 -8
  53. package/es/elements/BackToTop.d.ts +0 -10
  54. package/es/elements/Breadcrumb.d.ts +0 -12
  55. package/es/elements/Button.d.ts +0 -12
  56. package/es/elements/Card.d.ts +0 -10
  57. package/es/elements/DragDropImages.d.ts +0 -28
  58. package/es/elements/DraggableCard.d.ts +0 -6
  59. package/es/elements/FloatingComment.d.ts +0 -32
  60. package/es/elements/FloatingCommentExec.d.ts +0 -4
  61. package/es/elements/FloatingCommentSlate.d.ts +0 -19
  62. package/es/elements/HawaAccordion.d.ts +0 -11
  63. package/es/elements/HawaAdCard.d.ts +0 -10
  64. package/es/elements/HawaAlert.d.ts +0 -23
  65. package/es/elements/HawaButton.d.ts +0 -21
  66. package/es/elements/HawaCardInput.d.ts +0 -25
  67. package/es/elements/HawaCheckbox.d.ts +0 -11
  68. package/es/elements/HawaChip.d.ts +0 -17
  69. package/es/elements/HawaCodeBlock.d.ts +0 -15
  70. package/es/elements/HawaColorPicker.d.ts +0 -9
  71. package/es/elements/HawaCopyrights.d.ts +0 -15
  72. package/es/elements/HawaDatepicker.d.ts +0 -4
  73. package/es/elements/HawaDropdownMenu.d.ts +0 -7
  74. package/es/elements/HawaIconCount.d.ts +0 -9
  75. package/es/elements/HawaInlineCode.d.ts +0 -6
  76. package/es/elements/HawaItemCard.d.ts +0 -32
  77. package/es/elements/HawaLandingCard.d.ts +0 -18
  78. package/es/elements/HawaLoading.d.ts +0 -8
  79. package/es/elements/HawaLogoButton.d.ts +0 -10
  80. package/es/elements/HawaMenu.d.ts +0 -24
  81. package/es/elements/HawaModal.d.ts +0 -21
  82. package/es/elements/HawaPanelTabs.d.ts +0 -13
  83. package/es/elements/HawaPhoneInput.d.ts +0 -11
  84. package/es/elements/HawaPinInput.d.ts +0 -10
  85. package/es/elements/HawaPricingCard.d.ts +0 -21
  86. package/es/elements/HawaRadio.d.ts +0 -16
  87. package/es/elements/HawaRange.d.ts +0 -12
  88. package/es/elements/HawaSearchBar.d.ts +0 -4
  89. package/es/elements/HawaSelect.d.ts +0 -23
  90. package/es/elements/HawaSettingsRow.d.ts +0 -44
  91. package/es/elements/HawaSnackbar.d.ts +0 -19
  92. package/es/elements/HawaStats.d.ts +0 -14
  93. package/es/elements/HawaStepper.d.ts +0 -8
  94. package/es/elements/HawaStoreButtons.d.ts +0 -7
  95. package/es/elements/HawaSwitch.d.ts +0 -7
  96. package/es/elements/HawaTable.d.ts +0 -45
  97. package/es/elements/HawaTabs.d.ts +0 -13
  98. package/es/elements/HawaTextField.d.ts +0 -31
  99. package/es/elements/HawaTooltip.d.ts +0 -12
  100. package/es/elements/HawaTypography.d.ts +0 -7
  101. package/es/elements/Icons.d.ts +0 -19
  102. package/es/elements/Input.d.ts +0 -5
  103. package/es/elements/InvoiceAccordion.d.ts +0 -31
  104. package/es/elements/Label.d.ts +0 -5
  105. package/es/elements/SubsectionList.d.ts +0 -19
  106. package/es/elements/TabPanel.d.ts +0 -8
  107. package/es/elements/Timeline.d.ts +0 -13
  108. package/es/elements/UsageCard.d.ts +0 -9
  109. package/es/elements/UserFeedback.d.ts +0 -14
  110. package/es/elements/index.d.ts +0 -52
  111. package/es/hooks/index.d.ts +0 -2
  112. package/es/hooks/useBreakpoint.d.ts +0 -2
  113. package/es/hooks/useDiscloser.d.ts +0 -7
  114. package/es/hooks/useHover.d.ts +0 -3
  115. package/es/hooks/useScrollPosition.d.ts +0 -2
  116. package/es/hooks/useTable.d.ts +0 -5
  117. package/es/index.d.ts +0 -4
  118. package/es/index.es.js +0 -16
  119. package/es/layout/AppSidebar.d.ts +0 -11
  120. package/es/layout/Banner.d.ts +0 -14
  121. package/es/layout/Box.d.ts +0 -2
  122. package/es/layout/Footer.d.ts +0 -20
  123. package/es/layout/HawaAppLayout.d.ts +0 -31
  124. package/es/layout/HawaAppLayoutSimplified.d.ts +0 -33
  125. package/es/layout/HawaBottomAppBar.d.ts +0 -8
  126. package/es/layout/HawaContainer.d.ts +0 -10
  127. package/es/layout/HawaGrid.d.ts +0 -6
  128. package/es/layout/HawaSiteLayout.d.ts +0 -23
  129. package/es/layout/index.d.ts +0 -10
  130. package/es/stories/ElementsStories/Breadcrumb.stories.d.ts +0 -6
  131. package/es/stories/ManualStories/BlocksIntroduction.stories.d.ts +0 -21
  132. package/es/stories/ManualStories/Customization.stories.d.ts +0 -21
  133. package/es/stories/ManualStories/ElementsIntroduction.stories.d.ts +0 -21
  134. package/es/stories/ManualStories/Installation.stories.d.ts +0 -21
  135. package/es/stories/ManualStories/LayoutIntroduction.stories.d.ts +0 -21
  136. package/es/stories/ManualStories/Overview.stories.d.ts +0 -22
  137. package/es/stories/ManualStories/Usage.stories.d.ts +0 -21
  138. package/es/util.d.ts +0 -10
  139. package/lib/blocks/Account/HawaApiBox.d.ts +0 -8
  140. package/lib/blocks/Account/UserProfileForm.d.ts +0 -8
  141. package/lib/blocks/Account/UserSettingsForm.d.ts +0 -9
  142. package/lib/blocks/Account/index.d.ts +0 -2
  143. package/lib/blocks/AuthForms/AppLanding.d.ts +0 -14
  144. package/lib/blocks/AuthForms/CodeConfirmation.d.ts +0 -22
  145. package/lib/blocks/AuthForms/NewPasswordForm.d.ts +0 -18
  146. package/lib/blocks/AuthForms/ResetPasswordForm.d.ts +0 -18
  147. package/lib/blocks/AuthForms/SignInBlock.d.ts +0 -2
  148. package/lib/blocks/AuthForms/SignInForm.d.ts +0 -51
  149. package/lib/blocks/AuthForms/SignInPhone.d.ts +0 -13
  150. package/lib/blocks/AuthForms/SignUpForm.d.ts +0 -55
  151. package/lib/blocks/AuthForms/index.d.ts +0 -8
  152. package/lib/blocks/Misc/EmptyState.d.ts +0 -11
  153. package/lib/blocks/Misc/LeadGenerator.d.ts +0 -12
  154. package/lib/blocks/Misc/Newsletter.d.ts +0 -12
  155. package/lib/blocks/Misc/NoPermission.d.ts +0 -10
  156. package/lib/blocks/Misc/NotFound.d.ts +0 -11
  157. package/lib/blocks/Misc/Testimonial.d.ts +0 -6
  158. package/lib/blocks/Misc/index.d.ts +0 -6
  159. package/lib/blocks/Payment/ChargeWalletForm.d.ts +0 -12
  160. package/lib/blocks/Payment/CheckoutForm.d.ts +0 -27
  161. package/lib/blocks/Payment/Confirmation.d.ts +0 -38
  162. package/lib/blocks/Payment/CreditCardForm.d.ts +0 -7
  163. package/lib/blocks/Payment/PayWithWallet.d.ts +0 -8
  164. package/lib/blocks/Payment/SelectPayment.d.ts +0 -26
  165. package/lib/blocks/Payment/index.d.ts +0 -6
  166. package/lib/blocks/Pricing/ComparingPlans.d.ts +0 -39
  167. package/lib/blocks/Pricing/HorizontalPricing.d.ts +0 -47
  168. package/lib/blocks/Pricing/PricingPlans.d.ts +0 -47
  169. package/lib/blocks/Pricing/index.d.ts +0 -3
  170. package/lib/blocks/Referral/ReferralAccount.d.ts +0 -7
  171. package/lib/blocks/Referral/ReferralSettlement.d.ts +0 -8
  172. package/lib/blocks/Referral/ReferralStats.d.ts +0 -8
  173. package/lib/blocks/Referral/index.d.ts +0 -3
  174. package/lib/blocks/index.d.ts +0 -6
  175. package/lib/countries.d.ts +0 -2
  176. package/lib/elements/ArrowCarousel.d.ts +0 -13
  177. package/lib/elements/AutoCompleteField.d.ts +0 -8
  178. package/lib/elements/BackToTop.d.ts +0 -10
  179. package/lib/elements/Breadcrumb.d.ts +0 -12
  180. package/lib/elements/Button.d.ts +0 -12
  181. package/lib/elements/Card.d.ts +0 -10
  182. package/lib/elements/DragDropImages.d.ts +0 -28
  183. package/lib/elements/DraggableCard.d.ts +0 -6
  184. package/lib/elements/FloatingComment.d.ts +0 -32
  185. package/lib/elements/FloatingCommentExec.d.ts +0 -4
  186. package/lib/elements/FloatingCommentSlate.d.ts +0 -19
  187. package/lib/elements/HawaAccordion.d.ts +0 -11
  188. package/lib/elements/HawaAdCard.d.ts +0 -10
  189. package/lib/elements/HawaAlert.d.ts +0 -23
  190. package/lib/elements/HawaButton.d.ts +0 -21
  191. package/lib/elements/HawaCardInput.d.ts +0 -25
  192. package/lib/elements/HawaCheckbox.d.ts +0 -11
  193. package/lib/elements/HawaChip.d.ts +0 -17
  194. package/lib/elements/HawaCodeBlock.d.ts +0 -15
  195. package/lib/elements/HawaColorPicker.d.ts +0 -9
  196. package/lib/elements/HawaCopyrights.d.ts +0 -15
  197. package/lib/elements/HawaDatepicker.d.ts +0 -4
  198. package/lib/elements/HawaDropdownMenu.d.ts +0 -7
  199. package/lib/elements/HawaIconCount.d.ts +0 -9
  200. package/lib/elements/HawaInlineCode.d.ts +0 -6
  201. package/lib/elements/HawaItemCard.d.ts +0 -32
  202. package/lib/elements/HawaLandingCard.d.ts +0 -18
  203. package/lib/elements/HawaLoading.d.ts +0 -8
  204. package/lib/elements/HawaLogoButton.d.ts +0 -10
  205. package/lib/elements/HawaMenu.d.ts +0 -24
  206. package/lib/elements/HawaModal.d.ts +0 -21
  207. package/lib/elements/HawaPanelTabs.d.ts +0 -13
  208. package/lib/elements/HawaPhoneInput.d.ts +0 -11
  209. package/lib/elements/HawaPinInput.d.ts +0 -10
  210. package/lib/elements/HawaPricingCard.d.ts +0 -21
  211. package/lib/elements/HawaRadio.d.ts +0 -16
  212. package/lib/elements/HawaRange.d.ts +0 -12
  213. package/lib/elements/HawaSearchBar.d.ts +0 -4
  214. package/lib/elements/HawaSelect.d.ts +0 -23
  215. package/lib/elements/HawaSettingsRow.d.ts +0 -44
  216. package/lib/elements/HawaSnackbar.d.ts +0 -19
  217. package/lib/elements/HawaStats.d.ts +0 -14
  218. package/lib/elements/HawaStepper.d.ts +0 -8
  219. package/lib/elements/HawaStoreButtons.d.ts +0 -7
  220. package/lib/elements/HawaSwitch.d.ts +0 -7
  221. package/lib/elements/HawaTable.d.ts +0 -45
  222. package/lib/elements/HawaTabs.d.ts +0 -13
  223. package/lib/elements/HawaTextField.d.ts +0 -31
  224. package/lib/elements/HawaTooltip.d.ts +0 -12
  225. package/lib/elements/HawaTypography.d.ts +0 -7
  226. package/lib/elements/Icons.d.ts +0 -19
  227. package/lib/elements/Input.d.ts +0 -5
  228. package/lib/elements/InvoiceAccordion.d.ts +0 -31
  229. package/lib/elements/Label.d.ts +0 -5
  230. package/lib/elements/SubsectionList.d.ts +0 -19
  231. package/lib/elements/TabPanel.d.ts +0 -8
  232. package/lib/elements/Timeline.d.ts +0 -13
  233. package/lib/elements/UsageCard.d.ts +0 -9
  234. package/lib/elements/UserFeedback.d.ts +0 -14
  235. package/lib/elements/index.d.ts +0 -52
  236. package/lib/hooks/index.d.ts +0 -2
  237. package/lib/hooks/useBreakpoint.d.ts +0 -2
  238. package/lib/hooks/useDiscloser.d.ts +0 -7
  239. package/lib/hooks/useHover.d.ts +0 -3
  240. package/lib/hooks/useScrollPosition.d.ts +0 -2
  241. package/lib/hooks/useTable.d.ts +0 -5
  242. package/lib/index.d.ts +0 -4
  243. package/lib/index.js +0 -16
  244. package/lib/layout/AppSidebar.d.ts +0 -11
  245. package/lib/layout/Banner.d.ts +0 -14
  246. package/lib/layout/Box.d.ts +0 -2
  247. package/lib/layout/Footer.d.ts +0 -20
  248. package/lib/layout/HawaAppLayout.d.ts +0 -31
  249. package/lib/layout/HawaAppLayoutSimplified.d.ts +0 -33
  250. package/lib/layout/HawaBottomAppBar.d.ts +0 -8
  251. package/lib/layout/HawaContainer.d.ts +0 -10
  252. package/lib/layout/HawaGrid.d.ts +0 -6
  253. package/lib/layout/HawaSiteLayout.d.ts +0 -23
  254. package/lib/layout/index.d.ts +0 -10
  255. package/lib/stories/ElementsStories/Breadcrumb.stories.d.ts +0 -6
  256. package/lib/stories/ManualStories/BlocksIntroduction.stories.d.ts +0 -21
  257. package/lib/stories/ManualStories/Customization.stories.d.ts +0 -21
  258. package/lib/stories/ManualStories/ElementsIntroduction.stories.d.ts +0 -21
  259. package/lib/stories/ManualStories/Installation.stories.d.ts +0 -21
  260. package/lib/stories/ManualStories/LayoutIntroduction.stories.d.ts +0 -21
  261. package/lib/stories/ManualStories/Overview.stories.d.ts +0 -22
  262. package/lib/stories/ManualStories/Usage.stories.d.ts +0 -21
  263. package/lib/util.d.ts +0 -10
  264. package/postcss.config.js +0 -6
  265. package/rollup.config.js +0 -61
  266. package/src/blocks/Account/HawaApiBox.tsx +0 -12
  267. package/src/blocks/Account/UserProfileForm.tsx +0 -113
  268. package/src/blocks/Account/UserSettingsForm.tsx +0 -27
  269. package/src/blocks/Account/index.ts +0 -2
  270. package/src/blocks/AuthForms/AppLanding.tsx +0 -34
  271. package/src/blocks/AuthForms/CodeConfirmation.tsx +0 -71
  272. package/src/blocks/AuthForms/NewPasswordForm.tsx +0 -101
  273. package/src/blocks/AuthForms/ResetPasswordForm.tsx +0 -89
  274. package/src/blocks/AuthForms/SignInBlock.tsx +0 -60
  275. package/src/blocks/AuthForms/SignInForm.tsx +0 -230
  276. package/src/blocks/AuthForms/SignInPhone.tsx +0 -56
  277. package/src/blocks/AuthForms/SignUpForm.tsx +0 -342
  278. package/src/blocks/AuthForms/index.ts +0 -8
  279. package/src/blocks/Misc/EmptyState.tsx +0 -43
  280. package/src/blocks/Misc/LeadGenerator.tsx +0 -44
  281. package/src/blocks/Misc/Newsletter.tsx +0 -50
  282. package/src/blocks/Misc/NoPermission.tsx +0 -40
  283. package/src/blocks/Misc/NotFound.tsx +0 -34
  284. package/src/blocks/Misc/Testimonial.tsx +0 -44
  285. package/src/blocks/Misc/index.ts +0 -6
  286. package/src/blocks/Payment/ChargeWalletForm.tsx +0 -82
  287. package/src/blocks/Payment/CheckoutForm.tsx +0 -260
  288. package/src/blocks/Payment/Confirmation.tsx +0 -94
  289. package/src/blocks/Payment/CreditCardForm.tsx +0 -109
  290. package/src/blocks/Payment/PayWithWallet.tsx +0 -26
  291. package/src/blocks/Payment/SelectPayment.tsx +0 -84
  292. package/src/blocks/Payment/index.ts +0 -6
  293. package/src/blocks/Pricing/ComparingPlans.tsx +0 -154
  294. package/src/blocks/Pricing/HorizontalPricing.tsx +0 -148
  295. package/src/blocks/Pricing/PricingPlans.tsx +0 -81
  296. package/src/blocks/Pricing/index.ts +0 -3
  297. package/src/blocks/Referral/ReferralAccount.tsx +0 -65
  298. package/src/blocks/Referral/ReferralSettlement.tsx +0 -170
  299. package/src/blocks/Referral/ReferralStats.tsx +0 -85
  300. package/src/blocks/Referral/index.ts +0 -3
  301. package/src/blocks/index.ts +0 -6
  302. package/src/countries.ts +0 -1940
  303. package/src/elements/ArrowCarousel.tsx +0 -94
  304. package/src/elements/AutoCompleteField.tsx +0 -37
  305. package/src/elements/BackToTop.tsx +0 -129
  306. package/src/elements/Breadcrumb.tsx +0 -41
  307. package/src/elements/Button.tsx +0 -77
  308. package/src/elements/Card.tsx +0 -87
  309. package/src/elements/DragDropImages.tsx +0 -251
  310. package/src/elements/DraggableCard.tsx +0 -27
  311. package/src/elements/FloatingComment.tsx +0 -1107
  312. package/src/elements/FloatingCommentExec.tsx +0 -106
  313. package/src/elements/FloatingCommentSlate.tsx +0 -149
  314. package/src/elements/HawaAccordion.tsx +0 -57
  315. package/src/elements/HawaAdCard.tsx +0 -49
  316. package/src/elements/HawaAlert.tsx +0 -195
  317. package/src/elements/HawaButton.tsx +0 -241
  318. package/src/elements/HawaCardInput.tsx +0 -318
  319. package/src/elements/HawaCheckbox.tsx +0 -54
  320. package/src/elements/HawaChip.tsx +0 -59
  321. package/src/elements/HawaCodeBlock.tsx +0 -156
  322. package/src/elements/HawaColorPicker.tsx +0 -40
  323. package/src/elements/HawaCopyrights.tsx +0 -30
  324. package/src/elements/HawaDatepicker.tsx +0 -23
  325. package/src/elements/HawaDropdownMenu.tsx +0 -267
  326. package/src/elements/HawaIconCount.tsx +0 -17
  327. package/src/elements/HawaInlineCode.tsx +0 -9
  328. package/src/elements/HawaItemCard.tsx +0 -157
  329. package/src/elements/HawaLandingCard.tsx +0 -68
  330. package/src/elements/HawaLoading.tsx +0 -83
  331. package/src/elements/HawaLogoButton.tsx +0 -154
  332. package/src/elements/HawaMenu.tsx +0 -226
  333. package/src/elements/HawaModal.tsx +0 -89
  334. package/src/elements/HawaPanelTabs.tsx +0 -57
  335. package/src/elements/HawaPhoneInput.tsx +0 -171
  336. package/src/elements/HawaPinInput.tsx +0 -78
  337. package/src/elements/HawaPricingCard.tsx +0 -107
  338. package/src/elements/HawaRadio.tsx +0 -180
  339. package/src/elements/HawaRange.tsx +0 -49
  340. package/src/elements/HawaSearchBar.tsx +0 -7
  341. package/src/elements/HawaSelect.tsx +0 -209
  342. package/src/elements/HawaSettingsRow.tsx +0 -74
  343. package/src/elements/HawaSnackbar.tsx +0 -137
  344. package/src/elements/HawaStats.tsx +0 -72
  345. package/src/elements/HawaStepper.tsx +0 -109
  346. package/src/elements/HawaStoreButtons.tsx +0 -129
  347. package/src/elements/HawaSwitch.tsx +0 -41
  348. package/src/elements/HawaTable.tsx +0 -587
  349. package/src/elements/HawaTabs.tsx +0 -143
  350. package/src/elements/HawaTextField.tsx +0 -148
  351. package/src/elements/HawaTooltip.tsx +0 -137
  352. package/src/elements/HawaTypography.tsx +0 -9
  353. package/src/elements/Icons.tsx +0 -145
  354. package/src/elements/Input.tsx +0 -25
  355. package/src/elements/InvoiceAccordion.tsx +0 -155
  356. package/src/elements/Label.tsx +0 -26
  357. package/src/elements/SubsectionList.tsx +0 -77
  358. package/src/elements/TabPanel.tsx +0 -25
  359. package/src/elements/Timeline.tsx +0 -35
  360. package/src/elements/UsageCard.tsx +0 -45
  361. package/src/elements/UserFeedback.tsx +0 -126
  362. package/src/elements/index.ts +0 -55
  363. package/src/hooks/index.ts +0 -2
  364. package/src/hooks/useBreakpoint.ts +0 -24
  365. package/src/hooks/useDiscloser.ts +0 -21
  366. package/src/hooks/useHover.ts +0 -25
  367. package/src/hooks/useScrollPosition.ts +0 -30
  368. package/src/hooks/useTable.ts +0 -159
  369. package/src/index.ts +0 -4
  370. package/src/layout/AppSidebar.tsx +0 -39
  371. package/src/layout/Banner.tsx +0 -122
  372. package/src/layout/Box.tsx +0 -5
  373. package/src/layout/Footer.tsx +0 -71
  374. package/src/layout/HawaAppLayout.tsx +0 -527
  375. package/src/layout/HawaAppLayoutSimplified.tsx +0 -568
  376. package/src/layout/HawaBottomAppBar.tsx +0 -55
  377. package/src/layout/HawaContainer.tsx +0 -43
  378. package/src/layout/HawaGrid.tsx +0 -15
  379. package/src/layout/HawaSiteLayout.tsx +0 -159
  380. package/src/layout/index.ts +0 -10
  381. package/src/styles.css +0 -3511
  382. package/src/tailwind.css +0 -179
  383. package/src/translations/ar.json +0 -30
  384. package/src/translations/en.json +0 -29
  385. package/src/translations/i18n.js +0 -15
  386. package/src/util.ts +0 -149
  387. package/tailwind.config.js +0 -227
  388. package/tools/build-styles.js +0 -17
  389. package/tsconfig.json +0 -31
@@ -1,49 +0,0 @@
1
- import React, { FC, useState } from "react"
2
-
3
- type RangeTypes = {
4
- value?: any
5
- handleChange?: any
6
- startElement?: any
7
- endElement?: any
8
- label?: string
9
- min?: any
10
- max?: any
11
- }
12
-
13
- export const HawaRange: FC<RangeTypes> = ({
14
- value,
15
- handleChange,
16
- startElement,
17
- endElement,
18
- label,
19
- ...props
20
- }) => {
21
- const [rangeValue, setRangeValue] = useState(value)
22
-
23
- return (
24
- <div {...props}>
25
- {label && (
26
- <label
27
- htmlFor="default-range"
28
- className="mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"
29
- >
30
- {label}
31
- </label>
32
- )}
33
- <div className="flex w-fit flex-row items-center justify-center">
34
- <div className="mr-2">{startElement}</div>{" "}
35
- <input
36
- id="default-range"
37
- type="range"
38
- value={rangeValue}
39
- onChange={(e) => {
40
- setRangeValue(e.target.value)
41
- handleChange(e)
42
- }}
43
- className="h-2 w-fit cursor-pointer appearance-none rounded bg-gray-200 dark:bg-gray-700"
44
- />
45
- <div className="ml-2">{endElement}</div>{" "}
46
- </div>
47
- </div>
48
- )
49
- }
@@ -1,7 +0,0 @@
1
- import React, { FC } from "react"
2
- import { HawaTextField } from "./HawaTextField"
3
-
4
- type SearchBarTypes = {}
5
- export const HawaSearchBar: FC<SearchBarTypes> = (props) => {
6
- return <HawaTextField type={"search"} {...props} />
7
- }
@@ -1,209 +0,0 @@
1
- import clsx from "clsx"
2
- import React, { FC } from "react"
3
- import Select from "react-select"
4
- import CreatableSelect from "react-select/creatable"
5
-
6
- // The select bar
7
- type ControlTypes = {
8
- cx: any
9
- children: any
10
- getStyles: any
11
- innerProps: any
12
- innerRef: any
13
- size?: "small" | "normal" | "large"
14
- }
15
- const Control: FC<ControlTypes> = ({
16
- cx,
17
- children,
18
- getStyles,
19
- innerProps,
20
- innerRef,
21
- size = "normal",
22
- ...props
23
- }) => {
24
- let sizeStyles = {
25
- small: "h-7 text-xs",
26
- normal: "h-[2.36rem] text-sm",
27
- large: "",
28
- }
29
- return (
30
- <div
31
- ref={innerRef}
32
- className={clsx(
33
- sizeStyles[size],
34
- "flex w-full rounded border bg-background text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:focus:ring-blue-500"
35
- )}
36
- {...innerProps}
37
- // {...props}
38
- >
39
- {children}
40
- </div>
41
- )
42
- }
43
- // The options container
44
- type MenuTypes = {
45
- cx: any
46
- children: any
47
- getStyles: any
48
- innerProps: any
49
- innerRef: any
50
- }
51
- const Menu: FC<MenuTypes> = ({
52
- cx,
53
- children,
54
- getStyles,
55
- innerProps,
56
- innerRef,
57
- ...props
58
- }) => {
59
- return (
60
- <div
61
- className="absolute z-10 mt-2 flex w-full flex-col justify-start rounded border bg-background p-1 px-1.5"
62
- ref={innerRef}
63
- {...innerProps}
64
- // {...props}
65
- >
66
- {children}
67
- </div>
68
- )
69
- }
70
- // The single options
71
- type OptionTypes = {
72
- cx: any
73
- children: any
74
- getStyles: any
75
- innerProps: any
76
- innerRef: any
77
- size?: "small" | "normal" | "large"
78
- }
79
- const Option: FC<OptionTypes> = ({
80
- cx,
81
- children,
82
- getStyles,
83
- innerProps,
84
- innerRef,
85
- size = "normal",
86
- ...props
87
- }) => (
88
- <div
89
- ref={innerRef}
90
- className="flex flex-row items-center justify-between rounded-inner p-1 px-2 hover:bg-buttonPrimary-500/50 hover:text-white"
91
- {...innerProps}
92
- >
93
- {children}
94
- </div>
95
- )
96
- // The main element
97
- type SelectTypes = {
98
- label?: string
99
- options?: {
100
- value: any
101
- label: any
102
- }[]
103
- isCreatable?: boolean
104
- isClearable?: boolean
105
- isMulti?: boolean
106
- isSearchable?: boolean
107
- onChange?: any
108
- helperText?: any
109
- onInputChange?: any
110
- native?: any
111
- width?: "full" | "small"
112
- value?: any
113
- children?: any
114
- getOptionLabel?: any
115
- disabled?: boolean
116
- }
117
- export const HawaSelect: FC<SelectTypes> = (props) => {
118
- return (
119
- <div className=" w-full">
120
- {props.label && (
121
- <div className="mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300">
122
- {props.label}
123
- </div>
124
- )}
125
- {!props.isCreatable && (
126
- <Select
127
- classNames={{
128
- // control: () => "bg-blue-500 w-full",
129
- // container: () => "bg-red-500 w-full",
130
- placeholder: () => "px-2 text-muted-foreground",
131
- input: () => "text-white px-2",
132
- valueContainer: () => "text-white dark:text-muted-foreground",
133
- singleValue: () => "text-black dark:text-white px-2",
134
- indicatorsContainer: () =>
135
- " px-2 cursor-pointer text-muted-foreground",
136
- }}
137
- unstyled
138
- isDisabled={props.disabled}
139
- options={props.options}
140
- isClearable={props.isClearable}
141
- isMulti={props.isMulti}
142
- isSearchable={props.isSearchable}
143
- onChange={(newValue: any, action) =>
144
- // props.onChange(newValue.label, action)
145
- props.onChange(newValue, action)
146
- }
147
- components={{
148
- Control,
149
- Option,
150
- Menu,
151
- }}
152
- getOptionLabel={props.getOptionLabel}
153
- />
154
- )}
155
- {props.isCreatable && (
156
- <CreatableSelect
157
- styles={{
158
- input: (base) => ({
159
- ...base,
160
- "input:focus": {
161
- boxShadow: "none",
162
- },
163
- }),
164
-
165
- control: (base) => ({
166
- ...base,
167
- borderRadius: "0.75rem",
168
- }),
169
- menu: (base) => ({
170
- ...base,
171
- borderRadius: "0.75rem",
172
- padding: 0,
173
- display: "flex",
174
- justifyContent: "center",
175
- }),
176
- menuList: (base) => ({
177
- ...base,
178
- display: "flex",
179
- flexDirection: "column",
180
- justifyContent: "center",
181
- alignItems: "center",
182
- width: "100%",
183
- }),
184
- option: (base) => ({
185
- ...base,
186
- borderRadius: "0.75rem",
187
- margin: 3,
188
- width: "98%",
189
- }),
190
- }}
191
- options={props.options}
192
- isClearable={props.isClearable}
193
- isMulti={props.isMulti}
194
- isSearchable={props.isSearchable}
195
- onCreateOption={() => console.log("im changing")}
196
- onChange={(newValue, action) => props.onChange(newValue, action)}
197
- onInputChange={(newValue, action) =>
198
- props.onInputChange(newValue, action)
199
- }
200
- />
201
- )}
202
- {props.helperText && (
203
- <p className="mt-2 text-sm text-red-600 dark:text-red-500">
204
- {props.helperText}
205
- </p>
206
- )}
207
- </div>
208
- )
209
- }
@@ -1,74 +0,0 @@
1
- import React, { FC } from "react"
2
- import { HawaTextField } from "./HawaTextField"
3
- import { HawaSwitch } from "./HawaSwitch"
4
- import { HawaColorPicker } from "./HawaColorPicker"
5
- import { HawaRange } from "./HawaRange"
6
- import { HawaRadio } from "./HawaRadio"
7
- import { HawaSelect } from "./HawaSelect"
8
-
9
- type SettingsRowTypes = {
10
- settingsLabel: string
11
- settingsType: "text" | "radio" | "boolean" | "color" | "range" | "select"
12
- settingsDescription?: string
13
- radioProps: {
14
- defaultValue: any
15
- onChangeTab: any
16
- options: [{ label: string; value: any }]
17
- }
18
- colorProps: {
19
- color?: any
20
- handleChange?: any
21
- }
22
- rangeProps: {
23
- min?: any
24
- max?: any
25
- }
26
- switchProps: {
27
- size: "small" | "normal" | "large"
28
- }
29
- selectProps: {
30
- label?: string
31
- options?: any[any]
32
- isCreatable?: boolean
33
- isClearable?: boolean
34
- isMulti?: boolean
35
- isSearchable?: boolean
36
- onChange?: any
37
- helperText?: any
38
- onInputChange?: any
39
- native?: any
40
- fullWidth?: any
41
- value?: any
42
- children?: any
43
- getOptionLabel?: any
44
- disabled?: boolean
45
- }
46
- }
47
-
48
- export const HawaSettingsRow: FC<SettingsRowTypes> = ({
49
- settingsLabel,
50
- settingsType,
51
- settingsDescription,
52
- colorProps,
53
- rangeProps,
54
- radioProps,
55
- switchProps,
56
- selectProps,
57
- }) => {
58
- return (
59
- <div className="flex max-h-fit flex-row items-center justify-between rounded align-middle">
60
- <div>
61
- <div className="text-sm">{settingsLabel}</div>
62
- {settingsDescription && (
63
- <div className="text-xs">{settingsDescription}</div>
64
- )}{" "}
65
- </div>
66
- {settingsType === "text" && <HawaTextField margin="none" width="small" />}
67
- {settingsType === "boolean" && <HawaSwitch {...switchProps} />}
68
- {settingsType === "range" && <HawaRange {...rangeProps} />}
69
- {settingsType === "color" && <HawaColorPicker {...colorProps} />}
70
- {settingsType === "radio" && <HawaRadio {...radioProps} />}
71
- {settingsType === "select" && <HawaSelect {...selectProps} />}
72
- </div>
73
- )
74
- }
@@ -1,137 +0,0 @@
1
- import React, { FC, useEffect, useRef, useState } from "react"
2
- import clsx from "clsx"
3
- import { HawaButton } from "./HawaButton"
4
-
5
- type THawaSnackBar = {
6
- severity: "info" | "warning" | "error" | "success" | "none"
7
- title: string
8
- description: string
9
- onCloseSnakbar?: () => void
10
- duration?: number
11
- position?:
12
- | "top-left"
13
- | "top-center"
14
- | "top-right"
15
- | "bottom-right"
16
- | "bottom-center"
17
- | "bottom-left"
18
- actions?: [
19
- {
20
- icon?: any
21
- label: string
22
- onClick: any
23
- variant: "contained" | "outlined"
24
- }
25
- ]
26
- }
27
-
28
- export const HawaSnackbar: FC<THawaSnackBar> = ({
29
- title,
30
- description,
31
- severity = "info",
32
- position = "bottom-left",
33
- actions,
34
- onCloseSnakbar,
35
- // handleClose,
36
- duration,
37
- }) => {
38
- let defaultStyle =
39
- "fixed flex flex-row items-top p-1 w-full max-w-xs rounded shadow dark:text-gray-400 dark:bg-gray-800"
40
- let severities = {
41
- info: "text-blue-700 bg-blue-100",
42
- warning: "text-yellow-700 bg-yellow-100",
43
- error: "text-red-700 bg-red-100",
44
- success: "text-green-700 bg-green-100",
45
- none: "text-gray-500 bg-white ",
46
- }
47
- let positions = {
48
- "top-left": "top-4",
49
- "top-right": "top-4 right-4",
50
- "top-center": "top-4 left-1/2 -translate-x-1/2",
51
- "bottom-left": "bottom-4",
52
- "bottom-right": "bottom-4 right-4",
53
- "bottom-center": "bottom-4 left-1/2 -translate-x-1/2",
54
- }
55
-
56
- const [closed, setClosed] = useState(false)
57
- const toastRef = useRef(null)
58
- useEffect(() => {
59
- if (duration) {
60
- //To change opacity and hide the component
61
- const timeoutHide = setTimeout(() => {
62
- setClosed(true)
63
- }, duration)
64
- //To destroy the component after hiding it
65
- const timeoutDestroy = setTimeout(() => {
66
- setClosed(true)
67
- toastRef.current.removeChild(toastRef.current.children[0])
68
- }, duration + 1000)
69
-
70
- return () => {
71
- clearTimeout(timeoutHide)
72
- clearTimeout(timeoutDestroy)
73
- }
74
- }
75
- }, [duration])
76
-
77
- return (
78
- <div ref={toastRef}>
79
- <div
80
- id="toast-default"
81
- role="alert"
82
- className={clsx(
83
- defaultStyle,
84
- severities[severity],
85
- positions[position],
86
- "p-2 transition-all",
87
- closed ? "opacity-0" : "opacity-100"
88
- )}
89
- >
90
- <div className="flex w-full flex-col gap-2 p-3">
91
- <div className="text-sm font-bold">{title}</div>
92
- <div className="text-sm font-normal">{description}</div>
93
- {actions && (
94
- <div className="mt-2 flex flex-row gap-2">
95
- {actions.map((act, i) => (
96
- <HawaButton
97
- key={i}
98
- variant={act.variant}
99
- onClick={act.onClick()}
100
- margins="none"
101
- >
102
- {act.icon && act.icon}
103
- {act.label}
104
- </HawaButton>
105
- ))}
106
- </div>
107
- )}
108
- </div>
109
- <button
110
- type="button"
111
- className="right-0 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 transition-all hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white"
112
- data-dismiss-target="#toast-default"
113
- aria-label="Close"
114
- onClick={() => {
115
- onCloseSnakbar()
116
- setClosed(true)
117
- }}
118
- >
119
- <span className="sr-only">Close</span>
120
- <svg
121
- aria-label="Close Button"
122
- aria-hidden="true"
123
- className="h-5 w-5"
124
- fill="currentColor"
125
- viewBox="0 0 20 20"
126
- >
127
- <path
128
- fillRule="evenodd"
129
- d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
130
- clipRule="evenodd"
131
- ></path>
132
- </svg>
133
- </button>
134
- </div>
135
- </div>
136
- )
137
- }
@@ -1,72 +0,0 @@
1
- import React, { FC } from "react"
2
- import clsx from "clsx"
3
- import { HawaLoading } from "./HawaLoading"
4
- // import { BsFilesAlt } from "react-icons/bs"
5
-
6
- type StatTypes = {
7
- label?: string
8
- color?: string
9
- number?: string
10
- helperText?: string
11
- icon?: any
12
- variant?:
13
- | "default"
14
- | "plain"
15
- | "contained"
16
- | "outlined"
17
- | "brutalist"
18
- | "dropshadow"
19
- width?: "full" | "min" | "normal"
20
- isLoading?: boolean
21
- handleClick?: () => void
22
- }
23
- export const HawaStats: FC<StatTypes> = ({ variant = "default", ...props }) => {
24
- let defaultStyle =
25
- "flex transition-all flex-col gap-1 rounded p-4 text-sm h-fit max-h-fit"
26
- let statStyles = {
27
- plain: "",
28
- default: "border bg-card text-card-foreground shadow-sm",
29
- contained: "bg-layoutPrimary-500",
30
- outlined: "ring-2 w-fit",
31
- neobrutalism: "shadow-neobrutalism border-4 border-black bg-white",
32
- dropshadow: "bg-white drop-shadow-md",
33
- }
34
- let widthStyles = {
35
- full: "w-full",
36
- min: "w-fit",
37
- normal: "w-full max-w-[200px]",
38
- }
39
-
40
- return (
41
- <div
42
- onClick={props.handleClick}
43
- className={clsx(
44
- defaultStyle,
45
- widthStyles[props.width],
46
- statStyles[variant],
47
- props.handleClick ? "cursor-pointer" : "cursor-default",
48
- props.handleClick && variant === "dropshadow"
49
- ? "hover:drop-shadow-lg"
50
- : ""
51
- )}
52
- style={{
53
- backgroundColor: props.color
54
- ? props.color
55
- : variant === "contained"
56
- ? "var(--layout-primary-500)"
57
- : "",
58
- }}
59
- >
60
- {props.icon && <div className="mb-2">{props.icon} </div>}
61
- <div>{props.label}</div>
62
- {props.isLoading ? (
63
- <HawaLoading />
64
- ) : (
65
- <div className="text-2xl font-bold">{props.number}</div>
66
- )}
67
- {props.helperText ? (
68
- <div className="text-xs text-muted-foreground">{props.helperText}</div>
69
- ) : null}
70
- </div>
71
- )
72
- }
@@ -1,109 +0,0 @@
1
- import React, { FC } from "react"
2
- import clsx from "clsx"
3
-
4
- type THawaTimeline = {
5
- steps: any[any]
6
- currentStep: any
7
- orientation: "vertical" | "horizontal"
8
- }
9
-
10
- export const HawaStepper: FC<THawaTimeline> = ({
11
- orientation = "horizontal",
12
- ...props
13
- }) => {
14
- let orientationStyles = {
15
- vertical: "flex flex-col items-start w-fit",
16
- horizontal: "flex flex-row",
17
- }
18
- let lineStyles = {
19
- vertical: "w-1 h-32 rounded bg-red-200 ml-6 my-2",
20
- horizontal: "h-0.5 flex w-full rounded bg-red-200",
21
- }
22
- return (
23
- <div
24
- className={clsx(
25
- orientationStyles[orientation],
26
- " flex-wrap justify-start gap-4"
27
- )}
28
- >
29
- {props.steps.map((step: any, i: number) => {
30
- return (
31
- <div
32
- key={i}
33
- className="my-2 flex w-auto flex-row flex-wrap justify-start "
34
- >
35
- <div
36
- className={
37
- orientation === "vertical"
38
- ? "flex w-full flex-row items-center"
39
- : i + 1 === props.steps.length
40
- ? "flex w-full flex-row items-center justify-start gap-2"
41
- : "flex flex-row items-center justify-start gap-2 after:mx-2 after:hidden after:h-1 after:w-10 after:border-b after:border-gray-200 dark:after:border-gray-700 sm:after:inline-block sm:after:content-[''] md:w-full xl:after:mx-10"
42
- }
43
- >
44
- <div className="flex flex-row gap-2 ">
45
- {/* Icon */}
46
- <div
47
- className={clsx(
48
- "ring-buttonPrimary-200 flex h-6 w-6 min-w-[24px] items-center justify-center rounded ring-2 ring-offset-2",
49
- i + 1 <= props.currentStep
50
- ? "bg-buttonPrimary-500 text-white"
51
- : "bg-buttonPrimary-200"
52
- )}
53
- >
54
- {i + 1 <= props.currentStep ? (
55
- <svg
56
- aria-label="Check Mark"
57
- stroke="currentColor"
58
- fill="white"
59
- stroke-width="0"
60
- viewBox="0 0 512 512"
61
- height="0.60em"
62
- width="0.60em"
63
- >
64
- <path d="M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"></path>
65
- </svg>
66
- ) : (
67
- i + 1
68
- )}
69
- </div>
70
- {/* Text */}
71
- <div className="whitespace-nowrap">{step}</div>
72
- </div>
73
- </div>
74
- </div>
75
- )
76
- })}
77
- </div>
78
- )
79
- }
80
-
81
- // const TimelineStep = (props) => {
82
- // let defaultStyles = {
83
- // vertical: "",
84
- // horizontal: "",
85
- // }
86
- // return (
87
- // <div
88
- // className={
89
- // props.orientation === "vertical"
90
- // ? "flex w-full flex-row items-center"
91
- // : props.stepNumber === props.steps
92
- // ? "flex items-center"
93
- // : "after:border-1 flex items-center after:mx-6 after:hidden after:h-1 after:w-10 after:border-b after:border-gray-200 dark:after:border-gray-700 sm:after:inline-block sm:after:content-[''] md:w-full xl:after:mx-10"
94
- // }
95
- // >
96
- // <div
97
- // className={clsx(
98
- // "ring-buttonPrimary-200 m-2 mr-4 flex h-6 w-6 items-center justify-center rounded ring-2 ring-offset-2",
99
- // props.current
100
- // ? "bg-buttonPrimary-500 text-white"
101
- // : "bg-buttonPrimary-200"
102
- // )}
103
- // >
104
- // {props.current ? <FaCheck fontSize={11} /> : props.stepNumber}
105
- // </div>
106
- // <div className="whitespace-nowrap">{props.stepName}</div>
107
- // </div>
108
- // )
109
- // }