@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.
- package/README.md +21 -43
- package/dist/index.css +1385 -0
- package/dist/index.d.mts +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +246 -0
- package/dist/index.mjs +157 -0
- package/package.json +48 -115
- package/.github/workflows/hawa-actions.yml +0 -112
- package/.github/workflows/hawa-publish-push.yml +0 -74
- package/.github/workflows/hawa-publish.yml +0 -48
- package/.prettierrc +0 -28
- package/_config.yml +0 -1
- package/dist/styles.css +0 -3511
- package/es/blocks/Account/HawaApiBox.d.ts +0 -8
- package/es/blocks/Account/UserProfileForm.d.ts +0 -8
- package/es/blocks/Account/UserSettingsForm.d.ts +0 -9
- package/es/blocks/Account/index.d.ts +0 -2
- package/es/blocks/AuthForms/AppLanding.d.ts +0 -14
- package/es/blocks/AuthForms/CodeConfirmation.d.ts +0 -22
- package/es/blocks/AuthForms/NewPasswordForm.d.ts +0 -18
- package/es/blocks/AuthForms/ResetPasswordForm.d.ts +0 -18
- package/es/blocks/AuthForms/SignInBlock.d.ts +0 -2
- package/es/blocks/AuthForms/SignInForm.d.ts +0 -51
- package/es/blocks/AuthForms/SignInPhone.d.ts +0 -13
- package/es/blocks/AuthForms/SignUpForm.d.ts +0 -55
- package/es/blocks/AuthForms/index.d.ts +0 -8
- package/es/blocks/Misc/EmptyState.d.ts +0 -11
- package/es/blocks/Misc/LeadGenerator.d.ts +0 -12
- package/es/blocks/Misc/Newsletter.d.ts +0 -12
- package/es/blocks/Misc/NoPermission.d.ts +0 -10
- package/es/blocks/Misc/NotFound.d.ts +0 -11
- package/es/blocks/Misc/Testimonial.d.ts +0 -6
- package/es/blocks/Misc/index.d.ts +0 -6
- package/es/blocks/Payment/ChargeWalletForm.d.ts +0 -12
- package/es/blocks/Payment/CheckoutForm.d.ts +0 -27
- package/es/blocks/Payment/Confirmation.d.ts +0 -38
- package/es/blocks/Payment/CreditCardForm.d.ts +0 -7
- package/es/blocks/Payment/PayWithWallet.d.ts +0 -8
- package/es/blocks/Payment/SelectPayment.d.ts +0 -26
- package/es/blocks/Payment/index.d.ts +0 -6
- package/es/blocks/Pricing/ComparingPlans.d.ts +0 -39
- package/es/blocks/Pricing/HorizontalPricing.d.ts +0 -47
- package/es/blocks/Pricing/PricingPlans.d.ts +0 -47
- package/es/blocks/Pricing/index.d.ts +0 -3
- package/es/blocks/Referral/ReferralAccount.d.ts +0 -7
- package/es/blocks/Referral/ReferralSettlement.d.ts +0 -8
- package/es/blocks/Referral/ReferralStats.d.ts +0 -8
- package/es/blocks/Referral/index.d.ts +0 -3
- package/es/blocks/index.d.ts +0 -6
- package/es/countries.d.ts +0 -2
- package/es/elements/ArrowCarousel.d.ts +0 -13
- package/es/elements/AutoCompleteField.d.ts +0 -8
- package/es/elements/BackToTop.d.ts +0 -10
- package/es/elements/Breadcrumb.d.ts +0 -12
- package/es/elements/Button.d.ts +0 -12
- package/es/elements/Card.d.ts +0 -10
- package/es/elements/DragDropImages.d.ts +0 -28
- package/es/elements/DraggableCard.d.ts +0 -6
- package/es/elements/FloatingComment.d.ts +0 -32
- package/es/elements/FloatingCommentExec.d.ts +0 -4
- package/es/elements/FloatingCommentSlate.d.ts +0 -19
- package/es/elements/HawaAccordion.d.ts +0 -11
- package/es/elements/HawaAdCard.d.ts +0 -10
- package/es/elements/HawaAlert.d.ts +0 -23
- package/es/elements/HawaButton.d.ts +0 -21
- package/es/elements/HawaCardInput.d.ts +0 -25
- package/es/elements/HawaCheckbox.d.ts +0 -11
- package/es/elements/HawaChip.d.ts +0 -17
- package/es/elements/HawaCodeBlock.d.ts +0 -15
- package/es/elements/HawaColorPicker.d.ts +0 -9
- package/es/elements/HawaCopyrights.d.ts +0 -15
- package/es/elements/HawaDatepicker.d.ts +0 -4
- package/es/elements/HawaDropdownMenu.d.ts +0 -7
- package/es/elements/HawaIconCount.d.ts +0 -9
- package/es/elements/HawaInlineCode.d.ts +0 -6
- package/es/elements/HawaItemCard.d.ts +0 -32
- package/es/elements/HawaLandingCard.d.ts +0 -18
- package/es/elements/HawaLoading.d.ts +0 -8
- package/es/elements/HawaLogoButton.d.ts +0 -10
- package/es/elements/HawaMenu.d.ts +0 -24
- package/es/elements/HawaModal.d.ts +0 -21
- package/es/elements/HawaPanelTabs.d.ts +0 -13
- package/es/elements/HawaPhoneInput.d.ts +0 -11
- package/es/elements/HawaPinInput.d.ts +0 -10
- package/es/elements/HawaPricingCard.d.ts +0 -21
- package/es/elements/HawaRadio.d.ts +0 -16
- package/es/elements/HawaRange.d.ts +0 -12
- package/es/elements/HawaSearchBar.d.ts +0 -4
- package/es/elements/HawaSelect.d.ts +0 -23
- package/es/elements/HawaSettingsRow.d.ts +0 -44
- package/es/elements/HawaSnackbar.d.ts +0 -19
- package/es/elements/HawaStats.d.ts +0 -14
- package/es/elements/HawaStepper.d.ts +0 -8
- package/es/elements/HawaStoreButtons.d.ts +0 -7
- package/es/elements/HawaSwitch.d.ts +0 -7
- package/es/elements/HawaTable.d.ts +0 -45
- package/es/elements/HawaTabs.d.ts +0 -13
- package/es/elements/HawaTextField.d.ts +0 -31
- package/es/elements/HawaTooltip.d.ts +0 -12
- package/es/elements/HawaTypography.d.ts +0 -7
- package/es/elements/Icons.d.ts +0 -19
- package/es/elements/Input.d.ts +0 -5
- package/es/elements/InvoiceAccordion.d.ts +0 -31
- package/es/elements/Label.d.ts +0 -5
- package/es/elements/SubsectionList.d.ts +0 -19
- package/es/elements/TabPanel.d.ts +0 -8
- package/es/elements/Timeline.d.ts +0 -13
- package/es/elements/UsageCard.d.ts +0 -9
- package/es/elements/UserFeedback.d.ts +0 -14
- package/es/elements/index.d.ts +0 -52
- package/es/hooks/index.d.ts +0 -2
- package/es/hooks/useBreakpoint.d.ts +0 -2
- package/es/hooks/useDiscloser.d.ts +0 -7
- package/es/hooks/useHover.d.ts +0 -3
- package/es/hooks/useScrollPosition.d.ts +0 -2
- package/es/hooks/useTable.d.ts +0 -5
- package/es/index.d.ts +0 -4
- package/es/index.es.js +0 -16
- package/es/layout/AppSidebar.d.ts +0 -11
- package/es/layout/Banner.d.ts +0 -14
- package/es/layout/Box.d.ts +0 -2
- package/es/layout/Footer.d.ts +0 -20
- package/es/layout/HawaAppLayout.d.ts +0 -31
- package/es/layout/HawaAppLayoutSimplified.d.ts +0 -33
- package/es/layout/HawaBottomAppBar.d.ts +0 -8
- package/es/layout/HawaContainer.d.ts +0 -10
- package/es/layout/HawaGrid.d.ts +0 -6
- package/es/layout/HawaSiteLayout.d.ts +0 -23
- package/es/layout/index.d.ts +0 -10
- package/es/stories/ElementsStories/Breadcrumb.stories.d.ts +0 -6
- package/es/stories/ManualStories/BlocksIntroduction.stories.d.ts +0 -21
- package/es/stories/ManualStories/Customization.stories.d.ts +0 -21
- package/es/stories/ManualStories/ElementsIntroduction.stories.d.ts +0 -21
- package/es/stories/ManualStories/Installation.stories.d.ts +0 -21
- package/es/stories/ManualStories/LayoutIntroduction.stories.d.ts +0 -21
- package/es/stories/ManualStories/Overview.stories.d.ts +0 -22
- package/es/stories/ManualStories/Usage.stories.d.ts +0 -21
- package/es/util.d.ts +0 -10
- package/lib/blocks/Account/HawaApiBox.d.ts +0 -8
- package/lib/blocks/Account/UserProfileForm.d.ts +0 -8
- package/lib/blocks/Account/UserSettingsForm.d.ts +0 -9
- package/lib/blocks/Account/index.d.ts +0 -2
- package/lib/blocks/AuthForms/AppLanding.d.ts +0 -14
- package/lib/blocks/AuthForms/CodeConfirmation.d.ts +0 -22
- package/lib/blocks/AuthForms/NewPasswordForm.d.ts +0 -18
- package/lib/blocks/AuthForms/ResetPasswordForm.d.ts +0 -18
- package/lib/blocks/AuthForms/SignInBlock.d.ts +0 -2
- package/lib/blocks/AuthForms/SignInForm.d.ts +0 -51
- package/lib/blocks/AuthForms/SignInPhone.d.ts +0 -13
- package/lib/blocks/AuthForms/SignUpForm.d.ts +0 -55
- package/lib/blocks/AuthForms/index.d.ts +0 -8
- package/lib/blocks/Misc/EmptyState.d.ts +0 -11
- package/lib/blocks/Misc/LeadGenerator.d.ts +0 -12
- package/lib/blocks/Misc/Newsletter.d.ts +0 -12
- package/lib/blocks/Misc/NoPermission.d.ts +0 -10
- package/lib/blocks/Misc/NotFound.d.ts +0 -11
- package/lib/blocks/Misc/Testimonial.d.ts +0 -6
- package/lib/blocks/Misc/index.d.ts +0 -6
- package/lib/blocks/Payment/ChargeWalletForm.d.ts +0 -12
- package/lib/blocks/Payment/CheckoutForm.d.ts +0 -27
- package/lib/blocks/Payment/Confirmation.d.ts +0 -38
- package/lib/blocks/Payment/CreditCardForm.d.ts +0 -7
- package/lib/blocks/Payment/PayWithWallet.d.ts +0 -8
- package/lib/blocks/Payment/SelectPayment.d.ts +0 -26
- package/lib/blocks/Payment/index.d.ts +0 -6
- package/lib/blocks/Pricing/ComparingPlans.d.ts +0 -39
- package/lib/blocks/Pricing/HorizontalPricing.d.ts +0 -47
- package/lib/blocks/Pricing/PricingPlans.d.ts +0 -47
- package/lib/blocks/Pricing/index.d.ts +0 -3
- package/lib/blocks/Referral/ReferralAccount.d.ts +0 -7
- package/lib/blocks/Referral/ReferralSettlement.d.ts +0 -8
- package/lib/blocks/Referral/ReferralStats.d.ts +0 -8
- package/lib/blocks/Referral/index.d.ts +0 -3
- package/lib/blocks/index.d.ts +0 -6
- package/lib/countries.d.ts +0 -2
- package/lib/elements/ArrowCarousel.d.ts +0 -13
- package/lib/elements/AutoCompleteField.d.ts +0 -8
- package/lib/elements/BackToTop.d.ts +0 -10
- package/lib/elements/Breadcrumb.d.ts +0 -12
- package/lib/elements/Button.d.ts +0 -12
- package/lib/elements/Card.d.ts +0 -10
- package/lib/elements/DragDropImages.d.ts +0 -28
- package/lib/elements/DraggableCard.d.ts +0 -6
- package/lib/elements/FloatingComment.d.ts +0 -32
- package/lib/elements/FloatingCommentExec.d.ts +0 -4
- package/lib/elements/FloatingCommentSlate.d.ts +0 -19
- package/lib/elements/HawaAccordion.d.ts +0 -11
- package/lib/elements/HawaAdCard.d.ts +0 -10
- package/lib/elements/HawaAlert.d.ts +0 -23
- package/lib/elements/HawaButton.d.ts +0 -21
- package/lib/elements/HawaCardInput.d.ts +0 -25
- package/lib/elements/HawaCheckbox.d.ts +0 -11
- package/lib/elements/HawaChip.d.ts +0 -17
- package/lib/elements/HawaCodeBlock.d.ts +0 -15
- package/lib/elements/HawaColorPicker.d.ts +0 -9
- package/lib/elements/HawaCopyrights.d.ts +0 -15
- package/lib/elements/HawaDatepicker.d.ts +0 -4
- package/lib/elements/HawaDropdownMenu.d.ts +0 -7
- package/lib/elements/HawaIconCount.d.ts +0 -9
- package/lib/elements/HawaInlineCode.d.ts +0 -6
- package/lib/elements/HawaItemCard.d.ts +0 -32
- package/lib/elements/HawaLandingCard.d.ts +0 -18
- package/lib/elements/HawaLoading.d.ts +0 -8
- package/lib/elements/HawaLogoButton.d.ts +0 -10
- package/lib/elements/HawaMenu.d.ts +0 -24
- package/lib/elements/HawaModal.d.ts +0 -21
- package/lib/elements/HawaPanelTabs.d.ts +0 -13
- package/lib/elements/HawaPhoneInput.d.ts +0 -11
- package/lib/elements/HawaPinInput.d.ts +0 -10
- package/lib/elements/HawaPricingCard.d.ts +0 -21
- package/lib/elements/HawaRadio.d.ts +0 -16
- package/lib/elements/HawaRange.d.ts +0 -12
- package/lib/elements/HawaSearchBar.d.ts +0 -4
- package/lib/elements/HawaSelect.d.ts +0 -23
- package/lib/elements/HawaSettingsRow.d.ts +0 -44
- package/lib/elements/HawaSnackbar.d.ts +0 -19
- package/lib/elements/HawaStats.d.ts +0 -14
- package/lib/elements/HawaStepper.d.ts +0 -8
- package/lib/elements/HawaStoreButtons.d.ts +0 -7
- package/lib/elements/HawaSwitch.d.ts +0 -7
- package/lib/elements/HawaTable.d.ts +0 -45
- package/lib/elements/HawaTabs.d.ts +0 -13
- package/lib/elements/HawaTextField.d.ts +0 -31
- package/lib/elements/HawaTooltip.d.ts +0 -12
- package/lib/elements/HawaTypography.d.ts +0 -7
- package/lib/elements/Icons.d.ts +0 -19
- package/lib/elements/Input.d.ts +0 -5
- package/lib/elements/InvoiceAccordion.d.ts +0 -31
- package/lib/elements/Label.d.ts +0 -5
- package/lib/elements/SubsectionList.d.ts +0 -19
- package/lib/elements/TabPanel.d.ts +0 -8
- package/lib/elements/Timeline.d.ts +0 -13
- package/lib/elements/UsageCard.d.ts +0 -9
- package/lib/elements/UserFeedback.d.ts +0 -14
- package/lib/elements/index.d.ts +0 -52
- package/lib/hooks/index.d.ts +0 -2
- package/lib/hooks/useBreakpoint.d.ts +0 -2
- package/lib/hooks/useDiscloser.d.ts +0 -7
- package/lib/hooks/useHover.d.ts +0 -3
- package/lib/hooks/useScrollPosition.d.ts +0 -2
- package/lib/hooks/useTable.d.ts +0 -5
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -16
- package/lib/layout/AppSidebar.d.ts +0 -11
- package/lib/layout/Banner.d.ts +0 -14
- package/lib/layout/Box.d.ts +0 -2
- package/lib/layout/Footer.d.ts +0 -20
- package/lib/layout/HawaAppLayout.d.ts +0 -31
- package/lib/layout/HawaAppLayoutSimplified.d.ts +0 -33
- package/lib/layout/HawaBottomAppBar.d.ts +0 -8
- package/lib/layout/HawaContainer.d.ts +0 -10
- package/lib/layout/HawaGrid.d.ts +0 -6
- package/lib/layout/HawaSiteLayout.d.ts +0 -23
- package/lib/layout/index.d.ts +0 -10
- package/lib/stories/ElementsStories/Breadcrumb.stories.d.ts +0 -6
- package/lib/stories/ManualStories/BlocksIntroduction.stories.d.ts +0 -21
- package/lib/stories/ManualStories/Customization.stories.d.ts +0 -21
- package/lib/stories/ManualStories/ElementsIntroduction.stories.d.ts +0 -21
- package/lib/stories/ManualStories/Installation.stories.d.ts +0 -21
- package/lib/stories/ManualStories/LayoutIntroduction.stories.d.ts +0 -21
- package/lib/stories/ManualStories/Overview.stories.d.ts +0 -22
- package/lib/stories/ManualStories/Usage.stories.d.ts +0 -21
- package/lib/util.d.ts +0 -10
- package/postcss.config.js +0 -6
- package/rollup.config.js +0 -61
- package/src/blocks/Account/HawaApiBox.tsx +0 -12
- package/src/blocks/Account/UserProfileForm.tsx +0 -113
- package/src/blocks/Account/UserSettingsForm.tsx +0 -27
- package/src/blocks/Account/index.ts +0 -2
- package/src/blocks/AuthForms/AppLanding.tsx +0 -34
- package/src/blocks/AuthForms/CodeConfirmation.tsx +0 -71
- package/src/blocks/AuthForms/NewPasswordForm.tsx +0 -101
- package/src/blocks/AuthForms/ResetPasswordForm.tsx +0 -89
- package/src/blocks/AuthForms/SignInBlock.tsx +0 -60
- package/src/blocks/AuthForms/SignInForm.tsx +0 -230
- package/src/blocks/AuthForms/SignInPhone.tsx +0 -56
- package/src/blocks/AuthForms/SignUpForm.tsx +0 -342
- package/src/blocks/AuthForms/index.ts +0 -8
- package/src/blocks/Misc/EmptyState.tsx +0 -43
- package/src/blocks/Misc/LeadGenerator.tsx +0 -44
- package/src/blocks/Misc/Newsletter.tsx +0 -50
- package/src/blocks/Misc/NoPermission.tsx +0 -40
- package/src/blocks/Misc/NotFound.tsx +0 -34
- package/src/blocks/Misc/Testimonial.tsx +0 -44
- package/src/blocks/Misc/index.ts +0 -6
- package/src/blocks/Payment/ChargeWalletForm.tsx +0 -82
- package/src/blocks/Payment/CheckoutForm.tsx +0 -260
- package/src/blocks/Payment/Confirmation.tsx +0 -94
- package/src/blocks/Payment/CreditCardForm.tsx +0 -109
- package/src/blocks/Payment/PayWithWallet.tsx +0 -26
- package/src/blocks/Payment/SelectPayment.tsx +0 -84
- package/src/blocks/Payment/index.ts +0 -6
- package/src/blocks/Pricing/ComparingPlans.tsx +0 -154
- package/src/blocks/Pricing/HorizontalPricing.tsx +0 -148
- package/src/blocks/Pricing/PricingPlans.tsx +0 -81
- package/src/blocks/Pricing/index.ts +0 -3
- package/src/blocks/Referral/ReferralAccount.tsx +0 -65
- package/src/blocks/Referral/ReferralSettlement.tsx +0 -170
- package/src/blocks/Referral/ReferralStats.tsx +0 -85
- package/src/blocks/Referral/index.ts +0 -3
- package/src/blocks/index.ts +0 -6
- package/src/countries.ts +0 -1940
- package/src/elements/ArrowCarousel.tsx +0 -94
- package/src/elements/AutoCompleteField.tsx +0 -37
- package/src/elements/BackToTop.tsx +0 -129
- package/src/elements/Breadcrumb.tsx +0 -41
- package/src/elements/Button.tsx +0 -77
- package/src/elements/Card.tsx +0 -87
- package/src/elements/DragDropImages.tsx +0 -251
- package/src/elements/DraggableCard.tsx +0 -27
- package/src/elements/FloatingComment.tsx +0 -1107
- package/src/elements/FloatingCommentExec.tsx +0 -106
- package/src/elements/FloatingCommentSlate.tsx +0 -149
- package/src/elements/HawaAccordion.tsx +0 -57
- package/src/elements/HawaAdCard.tsx +0 -49
- package/src/elements/HawaAlert.tsx +0 -195
- package/src/elements/HawaButton.tsx +0 -241
- package/src/elements/HawaCardInput.tsx +0 -318
- package/src/elements/HawaCheckbox.tsx +0 -54
- package/src/elements/HawaChip.tsx +0 -59
- package/src/elements/HawaCodeBlock.tsx +0 -156
- package/src/elements/HawaColorPicker.tsx +0 -40
- package/src/elements/HawaCopyrights.tsx +0 -30
- package/src/elements/HawaDatepicker.tsx +0 -23
- package/src/elements/HawaDropdownMenu.tsx +0 -267
- package/src/elements/HawaIconCount.tsx +0 -17
- package/src/elements/HawaInlineCode.tsx +0 -9
- package/src/elements/HawaItemCard.tsx +0 -157
- package/src/elements/HawaLandingCard.tsx +0 -68
- package/src/elements/HawaLoading.tsx +0 -83
- package/src/elements/HawaLogoButton.tsx +0 -154
- package/src/elements/HawaMenu.tsx +0 -226
- package/src/elements/HawaModal.tsx +0 -89
- package/src/elements/HawaPanelTabs.tsx +0 -57
- package/src/elements/HawaPhoneInput.tsx +0 -171
- package/src/elements/HawaPinInput.tsx +0 -78
- package/src/elements/HawaPricingCard.tsx +0 -107
- package/src/elements/HawaRadio.tsx +0 -180
- package/src/elements/HawaRange.tsx +0 -49
- package/src/elements/HawaSearchBar.tsx +0 -7
- package/src/elements/HawaSelect.tsx +0 -209
- package/src/elements/HawaSettingsRow.tsx +0 -74
- package/src/elements/HawaSnackbar.tsx +0 -137
- package/src/elements/HawaStats.tsx +0 -72
- package/src/elements/HawaStepper.tsx +0 -109
- package/src/elements/HawaStoreButtons.tsx +0 -129
- package/src/elements/HawaSwitch.tsx +0 -41
- package/src/elements/HawaTable.tsx +0 -587
- package/src/elements/HawaTabs.tsx +0 -143
- package/src/elements/HawaTextField.tsx +0 -148
- package/src/elements/HawaTooltip.tsx +0 -137
- package/src/elements/HawaTypography.tsx +0 -9
- package/src/elements/Icons.tsx +0 -145
- package/src/elements/Input.tsx +0 -25
- package/src/elements/InvoiceAccordion.tsx +0 -155
- package/src/elements/Label.tsx +0 -26
- package/src/elements/SubsectionList.tsx +0 -77
- package/src/elements/TabPanel.tsx +0 -25
- package/src/elements/Timeline.tsx +0 -35
- package/src/elements/UsageCard.tsx +0 -45
- package/src/elements/UserFeedback.tsx +0 -126
- package/src/elements/index.ts +0 -55
- package/src/hooks/index.ts +0 -2
- package/src/hooks/useBreakpoint.ts +0 -24
- package/src/hooks/useDiscloser.ts +0 -21
- package/src/hooks/useHover.ts +0 -25
- package/src/hooks/useScrollPosition.ts +0 -30
- package/src/hooks/useTable.ts +0 -159
- package/src/index.ts +0 -4
- package/src/layout/AppSidebar.tsx +0 -39
- package/src/layout/Banner.tsx +0 -122
- package/src/layout/Box.tsx +0 -5
- package/src/layout/Footer.tsx +0 -71
- package/src/layout/HawaAppLayout.tsx +0 -527
- package/src/layout/HawaAppLayoutSimplified.tsx +0 -568
- package/src/layout/HawaBottomAppBar.tsx +0 -55
- package/src/layout/HawaContainer.tsx +0 -43
- package/src/layout/HawaGrid.tsx +0 -15
- package/src/layout/HawaSiteLayout.tsx +0 -159
- package/src/layout/index.ts +0 -10
- package/src/styles.css +0 -3511
- package/src/tailwind.css +0 -179
- package/src/translations/ar.json +0 -30
- package/src/translations/en.json +0 -29
- package/src/translations/i18n.js +0 -15
- package/src/util.ts +0 -149
- package/tailwind.config.js +0 -227
- package/tools/build-styles.js +0 -17
- package/tsconfig.json +0 -31
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState, FC } from "react"
|
|
2
|
-
import clsx from "clsx"
|
|
3
|
-
|
|
4
|
-
type Item = {
|
|
5
|
-
label?: string
|
|
6
|
-
icon?: JSX.Element
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type ComponentTypes = {
|
|
10
|
-
items: Item[]
|
|
11
|
-
index?: number
|
|
12
|
-
arrowSize?: number
|
|
13
|
-
labelSize?: "small" | "medium" | "big"
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const Arrow = (props: {
|
|
17
|
-
icon?: any
|
|
18
|
-
size?: number
|
|
19
|
-
onClick?: () => void
|
|
20
|
-
disabled?: boolean
|
|
21
|
-
direction?: "right" | "left"
|
|
22
|
-
}) => {
|
|
23
|
-
return (
|
|
24
|
-
<svg
|
|
25
|
-
onClick={props.onClick || (() => {})}
|
|
26
|
-
className={clsx(
|
|
27
|
-
"h-6 w-6 shrink-0 transition-all disabled:bg-gray-200",
|
|
28
|
-
props.direction === "right" ? "-rotate-90" : "rotate-90",
|
|
29
|
-
props.disabled ? "text-gray-300" : "cursor-pointer hover:scale-150"
|
|
30
|
-
)}
|
|
31
|
-
fill={props.disabled && "grey"}
|
|
32
|
-
viewBox="0 0 20 20"
|
|
33
|
-
>
|
|
34
|
-
<path
|
|
35
|
-
fillRule="evenodd"
|
|
36
|
-
d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
|
|
37
|
-
clipRule="evenodd"
|
|
38
|
-
></path>
|
|
39
|
-
</svg>
|
|
40
|
-
)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export const ArrowCarousel: FC<ComponentTypes> = (props) => {
|
|
44
|
-
const [index, setIndex] = useState(props.index || 0)
|
|
45
|
-
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
console.log(`INDEX CHANGED TO: ${index}`)
|
|
48
|
-
}, [index])
|
|
49
|
-
|
|
50
|
-
const sizes = {
|
|
51
|
-
small: ["", -8],
|
|
52
|
-
medium: ["2", -11],
|
|
53
|
-
big: ["3", -16],
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return (
|
|
57
|
-
<div className="align-center box-boorder relative flex h-min w-min flex-row items-center justify-center rounded bg-layoutPrimary-500 p-4 py-0 pb-2 pt-2 shadow-md">
|
|
58
|
-
<Arrow
|
|
59
|
-
direction="left"
|
|
60
|
-
// size={props.arrowSize || 48}
|
|
61
|
-
disabled={index == 0}
|
|
62
|
-
onClick={() => {
|
|
63
|
-
if (index != 0) setIndex(index - 1)
|
|
64
|
-
}}
|
|
65
|
-
/>
|
|
66
|
-
|
|
67
|
-
<div
|
|
68
|
-
className={`relative m-5 my-0 box-border flex h-full flex-col items-center justify-center py-6 pt-0 `}
|
|
69
|
-
>
|
|
70
|
-
<div>{props.items[index].icon}</div>
|
|
71
|
-
<div
|
|
72
|
-
className={"absolute bottom-1 mb-0 mt-2 select-none"}
|
|
73
|
-
// {`absolute bottom-0 text-${
|
|
74
|
-
// sizes[props.labelSize || "small"][0]
|
|
75
|
-
// }xl `}
|
|
76
|
-
// style={{
|
|
77
|
-
// marginBottom: sizes[props.labelSize || "small"][1],
|
|
78
|
-
// }}
|
|
79
|
-
>
|
|
80
|
-
{props.items[index].label}
|
|
81
|
-
</div>
|
|
82
|
-
</div>
|
|
83
|
-
|
|
84
|
-
<Arrow
|
|
85
|
-
direction="right"
|
|
86
|
-
// size={props.arrowSize || 48}
|
|
87
|
-
disabled={index == props.items.length - 1}
|
|
88
|
-
onClick={() => {
|
|
89
|
-
if (index != props.items.length - 1) setIndex(index + 1)
|
|
90
|
-
}}
|
|
91
|
-
/>
|
|
92
|
-
</div>
|
|
93
|
-
)
|
|
94
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React, { FC } from "react"
|
|
2
|
-
import { Controller, useFormContext } from "react-hook-form"
|
|
3
|
-
|
|
4
|
-
type TAutoCompleteFieldTypes = {
|
|
5
|
-
name: string
|
|
6
|
-
rules: any
|
|
7
|
-
shouldUnregister: boolean
|
|
8
|
-
}
|
|
9
|
-
export const AutoCompleteField: FC<TAutoCompleteFieldTypes> = (props) => {
|
|
10
|
-
const { control } = useFormContext()
|
|
11
|
-
const { name, rules, shouldUnregister } = props
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<>
|
|
15
|
-
<Controller
|
|
16
|
-
// className="theme_form_input"
|
|
17
|
-
name={name}
|
|
18
|
-
rules={rules}
|
|
19
|
-
control={control}
|
|
20
|
-
shouldUnregister={shouldUnregister}
|
|
21
|
-
render={({ field: { onChange, value } }) => {
|
|
22
|
-
return (
|
|
23
|
-
<input type="text" />
|
|
24
|
-
// <Autocomplete
|
|
25
|
-
// onChange={(e, data) => {
|
|
26
|
-
// onChange(data);
|
|
27
|
-
// }}
|
|
28
|
-
// value={value ?? ""}
|
|
29
|
-
// {...props}
|
|
30
|
-
// className={"theme_form_input"}
|
|
31
|
-
// />
|
|
32
|
-
)
|
|
33
|
-
}}
|
|
34
|
-
/>
|
|
35
|
-
</>
|
|
36
|
-
)
|
|
37
|
-
}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import React, { FC, RefObject, useState, useEffect, useRef } from "react"
|
|
2
|
-
import { clsx } from "clsx"
|
|
3
|
-
|
|
4
|
-
type ComponentTypes = {
|
|
5
|
-
paddingX?: number // Horizontal padding relative to the attached corner
|
|
6
|
-
paddingY?: number // Vertical padding relative to the attached corner
|
|
7
|
-
paddingThreshold?: number // Increase to the threshold of the scroll value that has to be passed for the button to appear
|
|
8
|
-
corner?: "top-left" | "top-right" | "bottom-left" | "bottom-right"
|
|
9
|
-
anchor: RefObject<HTMLInputElement>
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export const BackToTop: FC<ComponentTypes> = ({ ...props }) => {
|
|
13
|
-
const [visible, setVisible] = useState<boolean>(false)
|
|
14
|
-
const [rect, _setRect] = useState<DOMRect>(null)
|
|
15
|
-
const _rect = useRef(rect)
|
|
16
|
-
const setRect = (data) => {
|
|
17
|
-
_rect.current = data
|
|
18
|
-
_setRect(data)
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const self = useRef(null)
|
|
22
|
-
|
|
23
|
-
const getCoords = () => {
|
|
24
|
-
let anchor = props.anchor.current
|
|
25
|
-
return [anchor.scrollTop, anchor.scrollLeft]
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const onScroll = () => {
|
|
29
|
-
let [scrollTop, scrollLeft] = getCoords()
|
|
30
|
-
|
|
31
|
-
let rect = props.anchor.current.getBoundingClientRect()
|
|
32
|
-
|
|
33
|
-
setVisible(scrollTop >= rect.height + (props.paddingThreshold || 100))
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const backToTop = () => {
|
|
37
|
-
props.anchor.current.scrollTo(0, 0)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// FIXME: Observers and listeners run twice
|
|
41
|
-
useEffect(() => {
|
|
42
|
-
if (!props.anchor.current) return
|
|
43
|
-
|
|
44
|
-
props.anchor.current.addEventListener("scroll", onScroll)
|
|
45
|
-
|
|
46
|
-
// Listens to rect changes. Alternatives like ResizeObserver & IntersectionObserver fail to detect positional changes consistently
|
|
47
|
-
let interval = setInterval(() => {
|
|
48
|
-
if (!props.anchor.current) return
|
|
49
|
-
|
|
50
|
-
let newRect = props.anchor.current.getBoundingClientRect()
|
|
51
|
-
if (_rect.current == null) return setRect(newRect)
|
|
52
|
-
|
|
53
|
-
if (
|
|
54
|
-
!(
|
|
55
|
-
_rect.current.top == newRect.top &&
|
|
56
|
-
_rect.current.left == newRect.left &&
|
|
57
|
-
_rect.current.width == newRect.width &&
|
|
58
|
-
_rect.current.height == newRect.height
|
|
59
|
-
)
|
|
60
|
-
) {
|
|
61
|
-
setRect(newRect)
|
|
62
|
-
}
|
|
63
|
-
}, 1)
|
|
64
|
-
|
|
65
|
-
return () => {
|
|
66
|
-
props.anchor.current?.removeEventListener("scroll", onScroll)
|
|
67
|
-
clearInterval(interval)
|
|
68
|
-
}
|
|
69
|
-
}, [])
|
|
70
|
-
|
|
71
|
-
const getStyles = () => {
|
|
72
|
-
if (!props.anchor.current) return {}
|
|
73
|
-
|
|
74
|
-
let corner = props.corner || "bottom-right"
|
|
75
|
-
let [vertical, horizontal] = corner.split("-")
|
|
76
|
-
|
|
77
|
-
let anchorRect = props.anchor.current.getBoundingClientRect()
|
|
78
|
-
let selfRect = self.current.getBoundingClientRect()
|
|
79
|
-
|
|
80
|
-
let width = horizontal == "right" ? anchorRect.width - selfRect.width : 0
|
|
81
|
-
let height = vertical == "bottom" ? anchorRect.height - selfRect.height : 0
|
|
82
|
-
|
|
83
|
-
let style = {
|
|
84
|
-
top:
|
|
85
|
-
anchorRect.y +
|
|
86
|
-
height +
|
|
87
|
-
(vertical == "bottom" ? -1 : 1) * (props.paddingX || 10),
|
|
88
|
-
left:
|
|
89
|
-
anchorRect.x +
|
|
90
|
-
width +
|
|
91
|
-
(horizontal == "right" ? -1 : 1) * (props.paddingX || 25),
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
return style
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
return (
|
|
98
|
-
<div
|
|
99
|
-
className={clsx(
|
|
100
|
-
"fixed w-fit rounded bg-blue-300 p-2 text-black transition-all hover:bg-blue-500",
|
|
101
|
-
`${
|
|
102
|
-
visible
|
|
103
|
-
? "pointer-events-all opacity-100"
|
|
104
|
-
: "pointer-events-none opacity-0"
|
|
105
|
-
}`
|
|
106
|
-
)}
|
|
107
|
-
style={{
|
|
108
|
-
...getStyles(),
|
|
109
|
-
transitionProperty: "opacity, background-color",
|
|
110
|
-
}}
|
|
111
|
-
onClick={backToTop}
|
|
112
|
-
ref={self}
|
|
113
|
-
>
|
|
114
|
-
{/* Back to top arrow 👇*/}
|
|
115
|
-
<svg
|
|
116
|
-
className={clsx(
|
|
117
|
-
"h-6 w-6 shrink-0 rotate-180 transition-all disabled:bg-gray-200"
|
|
118
|
-
)}
|
|
119
|
-
viewBox="0 0 20 20"
|
|
120
|
-
>
|
|
121
|
-
<path
|
|
122
|
-
fillRule="evenodd"
|
|
123
|
-
d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
|
|
124
|
-
clipRule="evenodd"
|
|
125
|
-
></path>
|
|
126
|
-
</svg>
|
|
127
|
-
</div>
|
|
128
|
-
)
|
|
129
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React, { FC, ReactNode } from "react"
|
|
2
|
-
|
|
3
|
-
type TBreadcrumb = {
|
|
4
|
-
/** The array of crumbs, each one with a label and a href link */
|
|
5
|
-
breadcrumbLinks: [{ label: string; href: string }]
|
|
6
|
-
/** The separator between each crumb, can be character or React Node. The default is ">" */
|
|
7
|
-
separator?: string | ReactNode
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const HawaBreadcrumb: FC<TBreadcrumb> = ({
|
|
11
|
-
breadcrumbLinks,
|
|
12
|
-
separator = ">",
|
|
13
|
-
}) => {
|
|
14
|
-
return (
|
|
15
|
-
<div className="flex flex-row items-center gap-2 text-sm">
|
|
16
|
-
{breadcrumbLinks.map((singleBreadcrumbLink, index) => (
|
|
17
|
-
<div className="flex flex-row items-center justify-center gap-2">
|
|
18
|
-
<a
|
|
19
|
-
href={singleBreadcrumbLink.href}
|
|
20
|
-
className={
|
|
21
|
-
index + 1 === breadcrumbLinks.length
|
|
22
|
-
? "pointer-events-none"
|
|
23
|
-
: "underline-offset-4 transition-all hover:text-buttonPrimary-500 hover:underline hover:decoration-2"
|
|
24
|
-
}
|
|
25
|
-
>
|
|
26
|
-
{singleBreadcrumbLink.label}
|
|
27
|
-
</a>
|
|
28
|
-
{index != breadcrumbLinks.length - 1 ? (
|
|
29
|
-
typeof separator == "string" ? (
|
|
30
|
-
<div>{separator}</div>
|
|
31
|
-
) : (
|
|
32
|
-
<div>{separator}</div>
|
|
33
|
-
)
|
|
34
|
-
) : null}
|
|
35
|
-
</div>
|
|
36
|
-
))}
|
|
37
|
-
</div>
|
|
38
|
-
)
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export default HawaBreadcrumb
|
package/src/elements/Button.tsx
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
// import { Slot } from "@radix-ui/react-slot"
|
|
3
|
-
import { cva, type VariantProps } from "class-variance-authority"
|
|
4
|
-
|
|
5
|
-
import { cn } from "../util"
|
|
6
|
-
import { HawaLoading } from "./HawaLoading"
|
|
7
|
-
|
|
8
|
-
const buttonVariants = cva(
|
|
9
|
-
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
10
|
-
{
|
|
11
|
-
variants: {
|
|
12
|
-
variant: {
|
|
13
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
14
|
-
destructive:
|
|
15
|
-
"bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
16
|
-
outline:
|
|
17
|
-
"border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
18
|
-
secondary:
|
|
19
|
-
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
20
|
-
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
21
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
22
|
-
},
|
|
23
|
-
size: {
|
|
24
|
-
default: "h-10 px-4 py-2",
|
|
25
|
-
sm: "h-9 rounded-md px-3",
|
|
26
|
-
lg: "h-11 rounded-md px-8",
|
|
27
|
-
icon: "h-10 w-10",
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
defaultVariants: {
|
|
31
|
-
variant: "default",
|
|
32
|
-
size: "default",
|
|
33
|
-
},
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
|
|
37
|
-
export interface ButtonProps
|
|
38
|
-
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
39
|
-
VariantProps<typeof buttonVariants> {
|
|
40
|
-
asChild?: boolean
|
|
41
|
-
isLoading?: boolean
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
45
|
-
(
|
|
46
|
-
{
|
|
47
|
-
className,
|
|
48
|
-
variant,
|
|
49
|
-
size,
|
|
50
|
-
asChild = false,
|
|
51
|
-
isLoading,
|
|
52
|
-
children,
|
|
53
|
-
...props
|
|
54
|
-
},
|
|
55
|
-
ref
|
|
56
|
-
) => {
|
|
57
|
-
// const Comp = asChild ? Slot : "button"
|
|
58
|
-
const Comp = "button"
|
|
59
|
-
return (
|
|
60
|
-
<Comp
|
|
61
|
-
className={cn(buttonVariants({ variant, size, className }))}
|
|
62
|
-
ref={ref}
|
|
63
|
-
{...props}
|
|
64
|
-
>
|
|
65
|
-
{isLoading ? (
|
|
66
|
-
// Replace with your loading icon component
|
|
67
|
-
<HawaLoading design="dots-pulse" size="button" />
|
|
68
|
-
) : (
|
|
69
|
-
children
|
|
70
|
-
)}
|
|
71
|
-
</Comp>
|
|
72
|
-
)
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
Button.displayName = "Button"
|
|
76
|
-
|
|
77
|
-
export { Button, buttonVariants }
|
package/src/elements/Card.tsx
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
import { cn } from "../util"
|
|
3
|
-
|
|
4
|
-
const Card = React.forwardRef<
|
|
5
|
-
HTMLDivElement,
|
|
6
|
-
React.HTMLAttributes<HTMLDivElement>
|
|
7
|
-
>(({ className, ...props }, ref) => (
|
|
8
|
-
<div
|
|
9
|
-
ref={ref}
|
|
10
|
-
className={cn(
|
|
11
|
-
"rounded-lg border bg-card text-card-foreground shadow-sm",
|
|
12
|
-
className
|
|
13
|
-
)}
|
|
14
|
-
{...props}
|
|
15
|
-
/>
|
|
16
|
-
))
|
|
17
|
-
Card.displayName = "Card"
|
|
18
|
-
|
|
19
|
-
const CardHeader = React.forwardRef<
|
|
20
|
-
HTMLDivElement,
|
|
21
|
-
React.HTMLAttributes<HTMLDivElement>
|
|
22
|
-
>(({ className, ...props }, ref) => (
|
|
23
|
-
<div
|
|
24
|
-
ref={ref}
|
|
25
|
-
className={cn("flex flex-col space-y-1.5 p-6", className)}
|
|
26
|
-
{...props}
|
|
27
|
-
/>
|
|
28
|
-
))
|
|
29
|
-
CardHeader.displayName = "CardHeader"
|
|
30
|
-
|
|
31
|
-
const CardTitle = React.forwardRef<
|
|
32
|
-
HTMLParagraphElement,
|
|
33
|
-
React.HTMLAttributes<HTMLHeadingElement>
|
|
34
|
-
>(({ className, ...props }, ref) => (
|
|
35
|
-
<h3
|
|
36
|
-
ref={ref}
|
|
37
|
-
className={cn(
|
|
38
|
-
"text-2xl font-semibold leading-none tracking-tight",
|
|
39
|
-
className
|
|
40
|
-
)}
|
|
41
|
-
{...props}
|
|
42
|
-
/>
|
|
43
|
-
))
|
|
44
|
-
CardTitle.displayName = "CardTitle"
|
|
45
|
-
|
|
46
|
-
const CardDescription = React.forwardRef<
|
|
47
|
-
HTMLParagraphElement,
|
|
48
|
-
React.HTMLAttributes<HTMLParagraphElement>
|
|
49
|
-
>(({ className, ...props }, ref) => (
|
|
50
|
-
<p
|
|
51
|
-
ref={ref}
|
|
52
|
-
className={cn("text-sm text-muted-foreground", className)}
|
|
53
|
-
{...props}
|
|
54
|
-
/>
|
|
55
|
-
))
|
|
56
|
-
CardDescription.displayName = "CardDescription"
|
|
57
|
-
|
|
58
|
-
type CardContentProps = {
|
|
59
|
-
headless?: boolean
|
|
60
|
-
} & React.HTMLAttributes<HTMLDivElement>
|
|
61
|
-
|
|
62
|
-
const CardContent = React.forwardRef<
|
|
63
|
-
HTMLDivElement,
|
|
64
|
-
CardContentProps
|
|
65
|
-
// React.HTMLAttributes<HTMLDivElement>
|
|
66
|
-
>(({ className, ...props }, ref) => (
|
|
67
|
-
<div
|
|
68
|
-
ref={ref}
|
|
69
|
-
className={cn("p-6", props.headless ? "pt-6" : "pt-0", className)}
|
|
70
|
-
{...props}
|
|
71
|
-
/>
|
|
72
|
-
))
|
|
73
|
-
CardContent.displayName = "CardContent"
|
|
74
|
-
|
|
75
|
-
const CardFooter = React.forwardRef<
|
|
76
|
-
HTMLDivElement,
|
|
77
|
-
React.HTMLAttributes<HTMLDivElement>
|
|
78
|
-
>(({ className, ...props }, ref) => (
|
|
79
|
-
<div
|
|
80
|
-
ref={ref}
|
|
81
|
-
className={cn("flex items-center p-6 pt-0", className)}
|
|
82
|
-
{...props}
|
|
83
|
-
/>
|
|
84
|
-
))
|
|
85
|
-
CardFooter.displayName = "CardFooter"
|
|
86
|
-
|
|
87
|
-
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }
|