@sikka/hawa 0.1.2 → 0.1.3-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 +1064 -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 -3532
- 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 -15
- 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/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 -5
- 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 -15
- 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/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 -5
- 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 -118
- package/src/blocks/Account/UserSettingsForm.tsx +0 -21
- package/src/blocks/Account/index.ts +0 -2
- package/src/blocks/AuthForms/AppLanding.tsx +0 -89
- package/src/blocks/AuthForms/CodeConfirmation.tsx +0 -72
- package/src/blocks/AuthForms/NewPasswordForm.tsx +0 -116
- package/src/blocks/AuthForms/ResetPasswordForm.tsx +0 -97
- package/src/blocks/AuthForms/SignInBlock.tsx +0 -60
- package/src/blocks/AuthForms/SignInForm.tsx +0 -228
- package/src/blocks/AuthForms/SignInPhone.tsx +0 -57
- package/src/blocks/AuthForms/SignUpForm.tsx +0 -342
- package/src/blocks/AuthForms/index.ts +0 -8
- package/src/blocks/Misc/EmptyState.tsx +0 -49
- package/src/blocks/Misc/LeadGenerator.tsx +0 -49
- package/src/blocks/Misc/NoPermission.tsx +0 -44
- package/src/blocks/Misc/NotFound.tsx +0 -36
- package/src/blocks/Misc/Testimonial.tsx +0 -44
- package/src/blocks/Misc/index.ts +0 -5
- package/src/blocks/Payment/ChargeWalletForm.tsx +0 -82
- package/src/blocks/Payment/CheckoutForm.tsx +0 -271
- package/src/blocks/Payment/Confirmation.tsx +0 -94
- package/src/blocks/Payment/CreditCardForm.tsx +0 -108
- package/src/blocks/Payment/PayWithWallet.tsx +0 -26
- package/src/blocks/Payment/SelectPayment.tsx +0 -89
- 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 -68
- 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 -3532
- 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
package/lib/layout/Banner.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
type BannerTypes = {
|
|
3
|
-
showBanner?: boolean;
|
|
4
|
-
direction?: "rtl" | "ltr";
|
|
5
|
-
logoURL?: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
text?: string;
|
|
8
|
-
actionText?: string;
|
|
9
|
-
onActionClick?: () => void;
|
|
10
|
-
position?: "top" | "bottom";
|
|
11
|
-
design: "default" | "floating";
|
|
12
|
-
};
|
|
13
|
-
export declare const HawaBanner: FC<BannerTypes>;
|
|
14
|
-
export {};
|
package/lib/layout/Box.d.ts
DELETED
package/lib/layout/Footer.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
type FooterTypes = {
|
|
3
|
-
logoText?: string;
|
|
4
|
-
logoURL?: string;
|
|
5
|
-
socialLinks?: {
|
|
6
|
-
twitter?: string;
|
|
7
|
-
instagram?: string;
|
|
8
|
-
tiktok?: string;
|
|
9
|
-
snapchat?: string;
|
|
10
|
-
};
|
|
11
|
-
footerLinks?: {
|
|
12
|
-
title: string;
|
|
13
|
-
pages: {
|
|
14
|
-
label: string;
|
|
15
|
-
link: string;
|
|
16
|
-
}[];
|
|
17
|
-
}[];
|
|
18
|
-
};
|
|
19
|
-
export declare const Footer: React.FunctionComponent<FooterTypes>;
|
|
20
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type HawaAppLayoutTypes = {
|
|
3
|
-
drawerItems: {
|
|
4
|
-
label: string;
|
|
5
|
-
icon: any;
|
|
6
|
-
slug: string;
|
|
7
|
-
action: () => void;
|
|
8
|
-
subItems?: any;
|
|
9
|
-
}[][];
|
|
10
|
-
direction?: "rtl" | "ltr";
|
|
11
|
-
currentPage: string;
|
|
12
|
-
pageTitle?: string;
|
|
13
|
-
logoSymbol?: any;
|
|
14
|
-
logoLink?: string;
|
|
15
|
-
logoText?: any;
|
|
16
|
-
children?: any;
|
|
17
|
-
topBar?: boolean;
|
|
18
|
-
username?: string;
|
|
19
|
-
email?: string;
|
|
20
|
-
drawerSize?: "sm" | "md" | "large";
|
|
21
|
-
profileMenuItems?: MenuItems[][];
|
|
22
|
-
onSettingsClick?: () => void;
|
|
23
|
-
};
|
|
24
|
-
type MenuItems = {
|
|
25
|
-
icon?: JSX.Element;
|
|
26
|
-
label: string;
|
|
27
|
-
action?: (e: any) => void;
|
|
28
|
-
isButton?: boolean;
|
|
29
|
-
};
|
|
30
|
-
export declare const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes>;
|
|
31
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type HawaAppLayoutTypes = {
|
|
3
|
-
/** The pages of the side drawer */
|
|
4
|
-
drawerItems: {
|
|
5
|
-
label: string;
|
|
6
|
-
icon: any;
|
|
7
|
-
slug: string;
|
|
8
|
-
action: () => void;
|
|
9
|
-
subItems?: any;
|
|
10
|
-
}[][];
|
|
11
|
-
direction?: "rtl" | "ltr";
|
|
12
|
-
currentPage: string;
|
|
13
|
-
pageTitle?: string;
|
|
14
|
-
logoSymbol?: any;
|
|
15
|
-
logoLink?: string;
|
|
16
|
-
logoText?: any;
|
|
17
|
-
children?: any;
|
|
18
|
-
topBar?: boolean;
|
|
19
|
-
username?: string;
|
|
20
|
-
email?: string;
|
|
21
|
-
drawerSize?: "sm" | "md" | "large";
|
|
22
|
-
profileMenuItems?: MenuItems[][];
|
|
23
|
-
onSettingsClick?: () => void;
|
|
24
|
-
DrawerFooterActions: any;
|
|
25
|
-
};
|
|
26
|
-
type MenuItems = {
|
|
27
|
-
icon?: JSX.Element;
|
|
28
|
-
label: string;
|
|
29
|
-
action?: (e: any) => void;
|
|
30
|
-
isButton?: boolean;
|
|
31
|
-
};
|
|
32
|
-
export declare const HawaAppLayoutSimplified: React.FunctionComponent<HawaAppLayoutTypes>;
|
|
33
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type ContainerTypes = {
|
|
3
|
-
maxWidth?: "full" | "small" | "normal";
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
variant?: "contained" | "outlined" | "neobrutalism";
|
|
6
|
-
direction?: "rtl" | "ltr";
|
|
7
|
-
centered?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const HawaContainer: React.FunctionComponent<ContainerTypes>;
|
|
10
|
-
export {};
|
package/lib/layout/HawaGrid.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type HawaSiteLayoutTypes = {
|
|
3
|
-
navItems: {
|
|
4
|
-
label: string;
|
|
5
|
-
icon: any;
|
|
6
|
-
slug: string;
|
|
7
|
-
action: () => void;
|
|
8
|
-
subItems?: any;
|
|
9
|
-
}[];
|
|
10
|
-
direction?: "rtl" | "ltr";
|
|
11
|
-
currentPage: string;
|
|
12
|
-
pageTitle?: string;
|
|
13
|
-
logoSymbol?: any;
|
|
14
|
-
logoLink?: string;
|
|
15
|
-
logoText?: any;
|
|
16
|
-
children?: any;
|
|
17
|
-
stickyNav?: boolean;
|
|
18
|
-
topBar?: boolean;
|
|
19
|
-
navigationSize?: "sm" | "md" | "lg";
|
|
20
|
-
floating?: boolean;
|
|
21
|
-
};
|
|
22
|
-
export declare const HawaSiteLayout: React.FunctionComponent<HawaSiteLayoutTypes>;
|
|
23
|
-
export {};
|
package/lib/layout/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from "./Box";
|
|
2
|
-
export * from "./HawaBottomAppBar";
|
|
3
|
-
export * from "./HawaSiteLayout";
|
|
4
|
-
export * from "./HawaAppLayout";
|
|
5
|
-
export * from "./HawaAppLayoutSimplified";
|
|
6
|
-
export * from "./HawaContainer";
|
|
7
|
-
export * from "./HawaGrid";
|
|
8
|
-
export * from "./AppSidebar";
|
|
9
|
-
export * from "./Footer";
|
|
10
|
-
export * from "./Banner";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta } from "@storybook/react";
|
|
2
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
3
|
-
export default _default;
|
|
4
|
-
export declare const BreadCrumb: any;
|
|
5
|
-
export declare const BreadCrumWithSeparator: any;
|
|
6
|
-
export declare const BreadcrumbIconSeparator: any;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "../stories-styles.css";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
parameters: {
|
|
5
|
-
chromatic: {
|
|
6
|
-
disableSnapshot: boolean;
|
|
7
|
-
};
|
|
8
|
-
controls: {
|
|
9
|
-
expand: boolean;
|
|
10
|
-
disable: boolean;
|
|
11
|
-
hideNoControlsWarning: boolean;
|
|
12
|
-
exclude: any[];
|
|
13
|
-
};
|
|
14
|
-
options: {
|
|
15
|
-
showPanel: boolean;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
title: string;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
21
|
-
export declare const Introduction: () => React.JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "../stories-styles.css";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
parameters: {
|
|
5
|
-
chromatic: {
|
|
6
|
-
disableSnapshot: boolean;
|
|
7
|
-
};
|
|
8
|
-
controls: {
|
|
9
|
-
expand: boolean;
|
|
10
|
-
disable: boolean;
|
|
11
|
-
hideNoControlsWarning: boolean;
|
|
12
|
-
exclude: any[];
|
|
13
|
-
};
|
|
14
|
-
options: {
|
|
15
|
-
showPanel: boolean;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
title: string;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
21
|
-
export declare const Customization: () => React.JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "../stories-styles.css";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
parameters: {
|
|
5
|
-
chromatic: {
|
|
6
|
-
disableSnapshot: boolean;
|
|
7
|
-
};
|
|
8
|
-
controls: {
|
|
9
|
-
expand: boolean;
|
|
10
|
-
disable: boolean;
|
|
11
|
-
hideNoControlsWarning: boolean;
|
|
12
|
-
exclude: any[];
|
|
13
|
-
};
|
|
14
|
-
options: {
|
|
15
|
-
showPanel: boolean;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
title: string;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
21
|
-
export declare const Introduction: () => React.JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "../stories-styles.css";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
parameters: {
|
|
5
|
-
chromatic: {
|
|
6
|
-
disableSnapshot: boolean;
|
|
7
|
-
};
|
|
8
|
-
controls: {
|
|
9
|
-
expand: boolean;
|
|
10
|
-
disable: boolean;
|
|
11
|
-
hideNoControlsWarning: boolean;
|
|
12
|
-
exclude: any[];
|
|
13
|
-
};
|
|
14
|
-
options: {
|
|
15
|
-
showPanel: boolean;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
title: string;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
21
|
-
export declare const Installation: () => React.JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "../stories-styles.css";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
parameters: {
|
|
5
|
-
chromatic: {
|
|
6
|
-
disableSnapshot: boolean;
|
|
7
|
-
};
|
|
8
|
-
controls: {
|
|
9
|
-
expand: boolean;
|
|
10
|
-
disable: boolean;
|
|
11
|
-
hideNoControlsWarning: boolean;
|
|
12
|
-
exclude: any[];
|
|
13
|
-
};
|
|
14
|
-
options: {
|
|
15
|
-
showPanel: boolean;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
title: string;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
21
|
-
export declare const Introduction: () => React.JSX.Element;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "../stories-styles.css";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
parameters: {
|
|
5
|
-
chromatic: {
|
|
6
|
-
disableSnapshot: boolean;
|
|
7
|
-
};
|
|
8
|
-
controls: {
|
|
9
|
-
expand: boolean;
|
|
10
|
-
disable: boolean;
|
|
11
|
-
hideNoControlsWarning: boolean;
|
|
12
|
-
exclude: any[];
|
|
13
|
-
};
|
|
14
|
-
className: string;
|
|
15
|
-
options: {
|
|
16
|
-
showPanel: boolean;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
title: string;
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
|
22
|
-
export declare const Overview: () => React.JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "../stories-styles.css";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
parameters: {
|
|
5
|
-
chromatic: {
|
|
6
|
-
disableSnapshot: boolean;
|
|
7
|
-
};
|
|
8
|
-
controls: {
|
|
9
|
-
expand: boolean;
|
|
10
|
-
disable: boolean;
|
|
11
|
-
hideNoControlsWarning: boolean;
|
|
12
|
-
exclude: any[];
|
|
13
|
-
};
|
|
14
|
-
options: {
|
|
15
|
-
showPanel: boolean;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
title: string;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
21
|
-
export declare const Usage: () => React.JSX.Element;
|
package/lib/util.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ClassValue } from "clsx";
|
|
2
|
-
export declare function cn(...inputs: ClassValue[]): string;
|
|
3
|
-
type Palette = {
|
|
4
|
-
name: string;
|
|
5
|
-
colors: {
|
|
6
|
-
[key: number]: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
declare function getPallette(baseColor: string): Palette;
|
|
10
|
-
export { getPallette };
|
package/postcss.config.js
DELETED
package/rollup.config.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import resolve from "@rollup/plugin-node-resolve";
|
|
2
|
-
import commonjs from "@rollup/plugin-commonjs";
|
|
3
|
-
// import babel from "rollup-plugin-babel";
|
|
4
|
-
import { babel } from "@rollup/plugin-babel";
|
|
5
|
-
|
|
6
|
-
import external from "rollup-plugin-peer-deps-external";
|
|
7
|
-
// import { terser } from "rollup-plugin-terser";
|
|
8
|
-
import terser from "@rollup/plugin-terser";
|
|
9
|
-
import postcss from "rollup-plugin-postcss";
|
|
10
|
-
import typescript from "rollup-plugin-typescript2";
|
|
11
|
-
import swc from "rollup-plugin-swc";
|
|
12
|
-
import cleaner from "rollup-plugin-cleaner";
|
|
13
|
-
|
|
14
|
-
export default [
|
|
15
|
-
{
|
|
16
|
-
input: "src/index.ts",
|
|
17
|
-
output: [
|
|
18
|
-
{ file: "lib/index.js", format: "cjs" },
|
|
19
|
-
{ file: "es/index.es.js", format: "es", exports: "named" }
|
|
20
|
-
],
|
|
21
|
-
plugins: [
|
|
22
|
-
cleaner({
|
|
23
|
-
targets: ["./lib", "./es"]
|
|
24
|
-
}),
|
|
25
|
-
postcss({ plugins: [], minimize: true }),
|
|
26
|
-
babel({
|
|
27
|
-
babelHelpers: "bundled",
|
|
28
|
-
exclude: "node_modules/**",
|
|
29
|
-
presets: [
|
|
30
|
-
"@babel/preset-env",
|
|
31
|
-
["@babel/preset-react", { runtime: "automatic" }]
|
|
32
|
-
]
|
|
33
|
-
}),
|
|
34
|
-
external(),
|
|
35
|
-
resolve({
|
|
36
|
-
extensions: [".tsx", ".ts"]
|
|
37
|
-
}),
|
|
38
|
-
typescript({ tsconfig: "./tsconfig.json" }),
|
|
39
|
-
terser(),
|
|
40
|
-
swc({
|
|
41
|
-
jsc: {
|
|
42
|
-
parser: {
|
|
43
|
-
syntax: "typescript"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}),
|
|
47
|
-
commonjs()
|
|
48
|
-
],
|
|
49
|
-
onwarn: function (warning, handler) {
|
|
50
|
-
// Skip certain warnings
|
|
51
|
-
|
|
52
|
-
// should intercept ... but doesn't in some rollup versions
|
|
53
|
-
if (warning.code === "THIS_IS_UNDEFINED") {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// console.warn everything else
|
|
58
|
-
handler(warning);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
];
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React, { FC } from "react"
|
|
2
|
-
|
|
3
|
-
type HawaApiBoxTypes = {
|
|
4
|
-
lang?: any
|
|
5
|
-
onClick?: any
|
|
6
|
-
buttonText?: any
|
|
7
|
-
}
|
|
8
|
-
export const HawaApiBox: FC<HawaApiBoxTypes> = (props) => {
|
|
9
|
-
let isArabic = props.lang === "ar"
|
|
10
|
-
let logoElement: any = ""
|
|
11
|
-
return <div>test</div>
|
|
12
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import React, { FC } from "react"
|
|
2
|
-
import { HawaButton, HawaPhoneInput, HawaTextField } from "../../elements"
|
|
3
|
-
import { Controller, FormProvider, useForm } from "react-hook-form"
|
|
4
|
-
import { HawaContainer } from "../../layout"
|
|
5
|
-
import { Card, CardContent, CardFooter } from "../../elements/Card"
|
|
6
|
-
import { Button } from "../../elements/Button"
|
|
7
|
-
|
|
8
|
-
type UserProfileFormTypes = {
|
|
9
|
-
inputs: any
|
|
10
|
-
texts: any
|
|
11
|
-
handleUpdateProfile: any
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const UserProfileForm: FC<UserProfileFormTypes> = (props) => {
|
|
15
|
-
const methods = useForm()
|
|
16
|
-
const { inputs } = props
|
|
17
|
-
const {
|
|
18
|
-
formState: { errors },
|
|
19
|
-
handleSubmit,
|
|
20
|
-
control,
|
|
21
|
-
} = methods
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<Card>
|
|
25
|
-
<form onSubmit={handleSubmit((e) => props.handleUpdateProfile(e))}>
|
|
26
|
-
<CardContent headless>
|
|
27
|
-
<FormProvider {...methods}>
|
|
28
|
-
<Controller
|
|
29
|
-
control={control}
|
|
30
|
-
name="fullName"
|
|
31
|
-
render={({ field }) => (
|
|
32
|
-
<HawaTextField
|
|
33
|
-
width="full"
|
|
34
|
-
type="text"
|
|
35
|
-
label={props.texts.fullNameLabel}
|
|
36
|
-
placeholder={props.texts.fullNamePlaceholder}
|
|
37
|
-
helpertext={errors.fullName?.message}
|
|
38
|
-
{...field}
|
|
39
|
-
value={field.value ?? ""}
|
|
40
|
-
/>
|
|
41
|
-
)}
|
|
42
|
-
/>
|
|
43
|
-
<Controller
|
|
44
|
-
control={control}
|
|
45
|
-
name="phoneNumber"
|
|
46
|
-
render={({ field }) => <HawaPhoneInput label="Phone number" />}
|
|
47
|
-
/>
|
|
48
|
-
<Controller
|
|
49
|
-
control={control}
|
|
50
|
-
name="email"
|
|
51
|
-
render={({ field }) => (
|
|
52
|
-
<HawaTextField
|
|
53
|
-
width="full"
|
|
54
|
-
type="text"
|
|
55
|
-
label={props.texts.emailLabel}
|
|
56
|
-
helpertext={errors.email?.message}
|
|
57
|
-
placeholder={props.texts.emailPlaceholder}
|
|
58
|
-
{...field}
|
|
59
|
-
value={field.value ?? ""}
|
|
60
|
-
/>
|
|
61
|
-
)}
|
|
62
|
-
rules={{
|
|
63
|
-
required: props.texts.emailRequiredText,
|
|
64
|
-
pattern: {
|
|
65
|
-
value:
|
|
66
|
-
/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
|
|
67
|
-
message: props.texts.emailInvalidText,
|
|
68
|
-
},
|
|
69
|
-
}}
|
|
70
|
-
/>
|
|
71
|
-
<Controller
|
|
72
|
-
control={control}
|
|
73
|
-
name="password"
|
|
74
|
-
render={({ field }) => (
|
|
75
|
-
<HawaTextField
|
|
76
|
-
width="full"
|
|
77
|
-
type="password"
|
|
78
|
-
label={props.texts.passwordLabel}
|
|
79
|
-
placeholder={props.texts.passwordPlaceholder}
|
|
80
|
-
helpertext={errors.password?.message}
|
|
81
|
-
{...field}
|
|
82
|
-
value={field.value ?? ""}
|
|
83
|
-
/>
|
|
84
|
-
)}
|
|
85
|
-
rules={{
|
|
86
|
-
required: props.texts.passwordRequiredText,
|
|
87
|
-
}}
|
|
88
|
-
/>
|
|
89
|
-
|
|
90
|
-
<Controller
|
|
91
|
-
control={control}
|
|
92
|
-
name="confirmPassword"
|
|
93
|
-
render={({ field }) => (
|
|
94
|
-
<HawaTextField
|
|
95
|
-
width="full"
|
|
96
|
-
type="password"
|
|
97
|
-
label={props.texts.confirmPasswordLabel}
|
|
98
|
-
placeholder={props.texts.confirmPasswordPlaceholder}
|
|
99
|
-
helpertext={errors.confirmPassword?.message}
|
|
100
|
-
{...field}
|
|
101
|
-
value={field.value ?? ""}
|
|
102
|
-
/>
|
|
103
|
-
)}
|
|
104
|
-
rules={{
|
|
105
|
-
required: props.texts.confirmPasswordRequiredText,
|
|
106
|
-
}}
|
|
107
|
-
/>
|
|
108
|
-
</FormProvider>
|
|
109
|
-
</CardContent>
|
|
110
|
-
<CardFooter>
|
|
111
|
-
<Button className="w-full" type="submit">
|
|
112
|
-
{props.texts.updateProfile}
|
|
113
|
-
</Button>
|
|
114
|
-
</CardFooter>
|
|
115
|
-
</form>
|
|
116
|
-
</Card>
|
|
117
|
-
)
|
|
118
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React, { FC } from "react"
|
|
2
|
-
import { HawaContainer } from "../../layout"
|
|
3
|
-
import { Card, CardContent } from "../../elements/Card"
|
|
4
|
-
|
|
5
|
-
type UserSettingsFormTypes = {
|
|
6
|
-
children: any
|
|
7
|
-
handleSaveSettings?: any
|
|
8
|
-
saveSettingsText?: string
|
|
9
|
-
blockTitle?: string
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export const UserSettingsForm: FC<UserSettingsFormTypes> = (props) => {
|
|
13
|
-
return (
|
|
14
|
-
<Card>
|
|
15
|
-
<CardContent headless>
|
|
16
|
-
<div className="mb-2 text-sm font-bold">{props.blockTitle}</div>
|
|
17
|
-
<div className="flex flex-col gap-4 rounded p-2">{props.children}</div>
|
|
18
|
-
</CardContent>
|
|
19
|
-
</Card>
|
|
20
|
-
)
|
|
21
|
-
}
|