@sikka/hawa 0.1.7 → 0.1.8-beta
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 +1114 -0
- package/dist/index.d.mts +47 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +432 -0
- package/dist/index.mjs +272 -0
- package/package.json +54 -117
- 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 -3605
- 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 -13
- 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/Skeleton.d.ts +0 -3
- 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/Tooltip.d.ts +0 -12
- package/es/elements/UsageCard.d.ts +0 -9
- package/es/elements/UserFeedback.d.ts +0 -14
- package/es/elements/index.d.ts +0 -57
- 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 -13
- 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/Skeleton.d.ts +0 -3
- 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/Tooltip.d.ts +0 -12
- package/lib/elements/UsageCard.d.ts +0 -9
- package/lib/elements/UserFeedback.d.ts +0 -14
- package/lib/elements/index.d.ts +0 -57
- 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 -117
- package/src/blocks/Account/UserSettingsForm.tsx +0 -20
- package/src/blocks/Account/index.ts +0 -2
- package/src/blocks/AuthForms/AppLanding.tsx +0 -88
- 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 -341
- package/src/blocks/AuthForms/index.ts +0 -8
- package/src/blocks/Misc/EmptyState.tsx +0 -47
- package/src/blocks/Misc/LeadGenerator.tsx +0 -47
- package/src/blocks/Misc/NoPermission.tsx +0 -43
- package/src/blocks/Misc/NotFound.tsx +0 -39
- package/src/blocks/Misc/Testimonial.tsx +0 -47
- package/src/blocks/Misc/index.ts +0 -5
- package/src/blocks/Payment/ChargeWalletForm.tsx +0 -79
- package/src/blocks/Payment/CheckoutForm.tsx +0 -265
- package/src/blocks/Payment/Confirmation.tsx +0 -96
- package/src/blocks/Payment/CreditCardForm.tsx +0 -107
- package/src/blocks/Payment/PayWithWallet.tsx +0 -24
- package/src/blocks/Payment/SelectPayment.tsx +0 -88
- package/src/blocks/Payment/index.ts +0 -6
- package/src/blocks/Pricing/ComparingPlans.tsx +0 -152
- 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 -149
- package/src/blocks/Referral/ReferralStats.tsx +0 -87
- 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 -80
- package/src/elements/Card.tsx +0 -92
- 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 -202
- 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 -159
- 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 -80
- 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 -105
- 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 -68
- 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/Skeleton.tsx +0 -15
- package/src/elements/SubsectionList.tsx +0 -77
- package/src/elements/TabPanel.tsx +0 -25
- package/src/elements/Timeline.tsx +0 -35
- package/src/elements/Tooltip.tsx +0 -179
- package/src/elements/UsageCard.tsx +0 -45
- package/src/elements/UserFeedback.tsx +0 -126
- package/src/elements/index.ts +0 -62
- 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 -3605
- package/src/tailwind.css +0 -184
- 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 -228
- package/tools/build-styles.js +0 -17
- package/tsconfig.json +0 -31
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
// components/elements/Button.tsx
|
|
2
|
+
import * as React2 from "react";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
|
|
5
|
+
// components/util.ts
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
|
+
import { twMerge } from "tailwind-merge";
|
|
8
|
+
function cn(...inputs) {
|
|
9
|
+
return twMerge(clsx(inputs));
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// components/elements/Loading.tsx
|
|
13
|
+
import React from "react";
|
|
14
|
+
import clsx2 from "clsx";
|
|
15
|
+
var Loading = ({
|
|
16
|
+
design = "spinner",
|
|
17
|
+
size = "sm",
|
|
18
|
+
color,
|
|
19
|
+
...props
|
|
20
|
+
}) => {
|
|
21
|
+
let sizeStyles = {
|
|
22
|
+
button: "hawa-h-4 hawa-w-4",
|
|
23
|
+
xs: "hawa-h-1 hawa-w-1",
|
|
24
|
+
sm: "hawa-h-6 hawa-w-6",
|
|
25
|
+
normal: "hawa-h-8 hawa-w-8",
|
|
26
|
+
lg: "hawa-h-14 hawa-w-14",
|
|
27
|
+
xl: "hawa-h-24 hawa-w-24"
|
|
28
|
+
};
|
|
29
|
+
let animationStyles = {
|
|
30
|
+
pulse: "hawa-animate-in hawa-fade-in hawa-duration-1000",
|
|
31
|
+
bounce: "hawa-animate-bounce"
|
|
32
|
+
};
|
|
33
|
+
switch (design.split("-")[0]) {
|
|
34
|
+
case "dots":
|
|
35
|
+
return /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ React.createElement(
|
|
36
|
+
"div",
|
|
37
|
+
{
|
|
38
|
+
className: clsx2(
|
|
39
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
|
|
40
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
|
41
|
+
animationStyles[design.split("-")[1]],
|
|
42
|
+
color ? color : "hawa-bg-primary"
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
), /* @__PURE__ */ React.createElement(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
className: clsx2(
|
|
49
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
|
|
50
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
|
51
|
+
animationStyles[design.split("-")[1]],
|
|
52
|
+
color ? color : "hawa-bg-primary"
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
), /* @__PURE__ */ React.createElement(
|
|
56
|
+
"div",
|
|
57
|
+
{
|
|
58
|
+
className: clsx2(
|
|
59
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
|
|
60
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
|
61
|
+
animationStyles[design.split("-")[1]],
|
|
62
|
+
color ? color : "hawa-bg-primary"
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
));
|
|
66
|
+
default:
|
|
67
|
+
return /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-x-3" }, /* @__PURE__ */ React.createElement("div", { "aria-label": "Loading...", role: "status" }, /* @__PURE__ */ React.createElement(
|
|
68
|
+
"svg",
|
|
69
|
+
{
|
|
70
|
+
className: clsx2(sizeStyles[size], "hawa-animate-spin"),
|
|
71
|
+
viewBox: "3 3 18 18"
|
|
72
|
+
},
|
|
73
|
+
/* @__PURE__ */ React.createElement(
|
|
74
|
+
"path",
|
|
75
|
+
{
|
|
76
|
+
className: "hawa-fill-primary/20",
|
|
77
|
+
d: "M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
/* @__PURE__ */ React.createElement(
|
|
81
|
+
"path",
|
|
82
|
+
{
|
|
83
|
+
className: color ? color : "hawa-fill-primary",
|
|
84
|
+
d: "M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z"
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
)));
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
// components/elements/Button.tsx
|
|
92
|
+
var buttonVariants = cva(
|
|
93
|
+
"hawa-inline-flex hawa-items-center hawa-justify-center hawa-select-none hawa-rounded-md hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
|
|
94
|
+
{
|
|
95
|
+
variants: {
|
|
96
|
+
variant: {
|
|
97
|
+
default: "hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90",
|
|
98
|
+
light: "hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40",
|
|
99
|
+
destructive: "hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90",
|
|
100
|
+
outline: "hawa-border hawa-border-input hawa-bg-background hover:hawa-bg-accent hover:hawa-text-accent-foreground",
|
|
101
|
+
secondary: "hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80",
|
|
102
|
+
ghost: "hover:hawa-bg-accent hover:hawa-text-accent-foreground",
|
|
103
|
+
link: "hawa-text-primary hawa-underline-offset-4 hover:hawa-underline",
|
|
104
|
+
neoBrutalism: "hawa-cursor-pointer hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active"
|
|
105
|
+
},
|
|
106
|
+
size: {
|
|
107
|
+
default: "hawa-h-10 hawa-px-4 hawa-py-2",
|
|
108
|
+
heightless: "hawa-px-4 hawa-py-4",
|
|
109
|
+
xs: "hawa-h-fit hawa-py-1 hawa-text-[10px] hawa-px-2 ",
|
|
110
|
+
sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
|
|
111
|
+
lg: "hawa-h-11 hawa-rounded-md hawa-px-8",
|
|
112
|
+
xl: "hawa-h-14 hawa-rounded-md hawa-px-10",
|
|
113
|
+
icon: "hawa-h-10 hawa-w-10",
|
|
114
|
+
smallIcon: "hawa-h-7 hawa-w-7"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
defaultVariants: {
|
|
118
|
+
variant: "default",
|
|
119
|
+
size: "default"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
var Button = React2.forwardRef(
|
|
124
|
+
({
|
|
125
|
+
className,
|
|
126
|
+
variant,
|
|
127
|
+
size,
|
|
128
|
+
asChild = false,
|
|
129
|
+
isLoading,
|
|
130
|
+
children,
|
|
131
|
+
...props
|
|
132
|
+
}, ref) => {
|
|
133
|
+
const Comp = "button";
|
|
134
|
+
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
|
135
|
+
return /* @__PURE__ */ React2.createElement(
|
|
136
|
+
Comp,
|
|
137
|
+
{
|
|
138
|
+
className: cn(buttonVariants({ variant, size, className })),
|
|
139
|
+
ref,
|
|
140
|
+
...props
|
|
141
|
+
},
|
|
142
|
+
isLoading ? /* @__PURE__ */ React2.createElement(
|
|
143
|
+
Loading,
|
|
144
|
+
{
|
|
145
|
+
design: "dots-pulse",
|
|
146
|
+
color: loadingColor,
|
|
147
|
+
size: size === "sm" ? "xs" : "button"
|
|
148
|
+
}
|
|
149
|
+
) : children
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
Button.displayName = "Button";
|
|
154
|
+
|
|
155
|
+
// components/elements/Card.tsx
|
|
156
|
+
import * as React3 from "react";
|
|
157
|
+
var Card = React3.forwardRef(
|
|
158
|
+
({ className, clickable = false, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
159
|
+
"div",
|
|
160
|
+
{
|
|
161
|
+
ref,
|
|
162
|
+
className: cn(
|
|
163
|
+
"rounded-lg border bg-card text-card-foreground shadow-sm",
|
|
164
|
+
clickable && "cursor-pointer transition-all hover:drop-shadow-md dark:hover:shadow-dark",
|
|
165
|
+
className
|
|
166
|
+
),
|
|
167
|
+
...props
|
|
168
|
+
}
|
|
169
|
+
)
|
|
170
|
+
);
|
|
171
|
+
Card.displayName = "Card";
|
|
172
|
+
var CardHeader = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
173
|
+
"div",
|
|
174
|
+
{
|
|
175
|
+
ref,
|
|
176
|
+
className: cn("flex flex-col space-y-1.5 p-6", className),
|
|
177
|
+
...props
|
|
178
|
+
}
|
|
179
|
+
));
|
|
180
|
+
CardHeader.displayName = "CardHeader";
|
|
181
|
+
var CardTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
182
|
+
"h3",
|
|
183
|
+
{
|
|
184
|
+
ref,
|
|
185
|
+
className: cn(
|
|
186
|
+
"text-2xl font-semibold leading-none tracking-tight",
|
|
187
|
+
className
|
|
188
|
+
),
|
|
189
|
+
...props
|
|
190
|
+
}
|
|
191
|
+
));
|
|
192
|
+
CardTitle.displayName = "CardTitle";
|
|
193
|
+
var CardDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
194
|
+
"p",
|
|
195
|
+
{
|
|
196
|
+
ref,
|
|
197
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
198
|
+
...props
|
|
199
|
+
}
|
|
200
|
+
));
|
|
201
|
+
CardDescription.displayName = "CardDescription";
|
|
202
|
+
var CardContent = React3.forwardRef(
|
|
203
|
+
({ headless, className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
204
|
+
"div",
|
|
205
|
+
{
|
|
206
|
+
ref,
|
|
207
|
+
className: cn("p-6", headless ? "pt-6" : "pt-0", className),
|
|
208
|
+
...props
|
|
209
|
+
}
|
|
210
|
+
)
|
|
211
|
+
);
|
|
212
|
+
CardContent.displayName = "CardContent";
|
|
213
|
+
var CardFooter = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
214
|
+
"div",
|
|
215
|
+
{
|
|
216
|
+
ref,
|
|
217
|
+
className: cn("flex items-center p-6 pt-0", className),
|
|
218
|
+
...props
|
|
219
|
+
}
|
|
220
|
+
));
|
|
221
|
+
CardFooter.displayName = "CardFooter";
|
|
222
|
+
|
|
223
|
+
// components/elements/ActionCard.tsx
|
|
224
|
+
import React4, { useState } from "react";
|
|
225
|
+
var ActionCard = (props) => {
|
|
226
|
+
const [hovered, setHovered] = useState(false);
|
|
227
|
+
return /* @__PURE__ */ React4.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ React4.createElement(
|
|
228
|
+
"div",
|
|
229
|
+
{
|
|
230
|
+
className: "hawa-group hawa-relative hawa-h-full hawa-w-full hawa-rounded hawa-border hawa-bg-background hawa-bg-cover hawa-bg-center hawa-transition-all hawa-duration-500 hover:hawa-drop-shadow-2xl",
|
|
231
|
+
style: {
|
|
232
|
+
backgroundImage: `url(${props.blank ? "" : props.cardImage})`
|
|
233
|
+
},
|
|
234
|
+
onMouseEnter: () => setHovered(true),
|
|
235
|
+
onMouseLeave: () => setHovered(false)
|
|
236
|
+
},
|
|
237
|
+
props.blank ? /* @__PURE__ */ React4.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center " }, /* @__PURE__ */ React4.createElement(
|
|
238
|
+
"svg",
|
|
239
|
+
{
|
|
240
|
+
className: "hawa-h-10 hawa-w-10 hawa-text-foreground",
|
|
241
|
+
stroke: "currentColor",
|
|
242
|
+
fill: "currentColor",
|
|
243
|
+
"stroke-width": "0",
|
|
244
|
+
viewBox: "0 0 24 24",
|
|
245
|
+
height: "1em",
|
|
246
|
+
width: "1em",
|
|
247
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
248
|
+
},
|
|
249
|
+
/* @__PURE__ */ React4.createElement("path", { d: "M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z" })
|
|
250
|
+
)) : /* @__PURE__ */ React4.createElement("div", { className: "hawa-absolute hawa-inset-0 hawa-rounded hawa-bg-black hawa-opacity-50" }),
|
|
251
|
+
/* @__PURE__ */ React4.createElement("div", { className: "hawa-absolute hawa-bottom-2 hawa-right-2 hawa-z-10 hawa-opacity-0 hawa-transition-all hawa-duration-200 group-hover:hawa-opacity-100" }, props.inCardActions),
|
|
252
|
+
!props.blank && /* @__PURE__ */ React4.createElement("div", { className: "hawa-relative hawa-p-4" }, /* @__PURE__ */ React4.createElement("h1", { className: "hawa-text-white" }, props.title), /* @__PURE__ */ React4.createElement("p", { className: "hawa-text-white" }, props.subtitle))
|
|
253
|
+
), /* @__PURE__ */ React4.createElement(
|
|
254
|
+
"div",
|
|
255
|
+
{
|
|
256
|
+
className: `hawa-flex hawa-flex-row hawa-justify-between hawa-text-sm hawa-transition-all hawa-duration-200 ${hovered ? "hawa-opacity-100" : "hawa-opacity-0"}`
|
|
257
|
+
},
|
|
258
|
+
props.bottomElement
|
|
259
|
+
));
|
|
260
|
+
};
|
|
261
|
+
export {
|
|
262
|
+
ActionCard,
|
|
263
|
+
Button,
|
|
264
|
+
Card,
|
|
265
|
+
CardContent,
|
|
266
|
+
CardDescription,
|
|
267
|
+
CardFooter,
|
|
268
|
+
CardHeader,
|
|
269
|
+
CardTitle,
|
|
270
|
+
Loading,
|
|
271
|
+
buttonVariants
|
|
272
|
+
};
|
package/package.json
CHANGED
|
@@ -1,125 +1,62 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sikka/hawa",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
},
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"ui",
|
|
15
|
-
"kit",
|
|
16
|
-
"saas",
|
|
17
|
-
"kit",
|
|
18
|
-
"tailwind",
|
|
19
|
-
"hawa"
|
|
3
|
+
"version": "0.1.8-beta",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"types": "./dist/index.d.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"import": "./dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"./dist/style.css": "./dist/index.css"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist/**"
|
|
20
14
|
],
|
|
21
|
-
"repository": {
|
|
22
|
-
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/sikka-software/hawa.git"
|
|
24
|
-
},
|
|
25
|
-
"bugs": {
|
|
26
|
-
"url": "https://github.com/sikka-software/hawa/issues",
|
|
27
|
-
"email": "hawa@sikka.io"
|
|
28
|
-
},
|
|
29
|
-
"homepage": "https://hawa.style",
|
|
30
15
|
"scripts": {
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"build-storybook": "
|
|
37
|
-
"build-lib": "
|
|
38
|
-
"build
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"@babel/core": "^7.12.10",
|
|
43
|
-
"@babel/preset-react": "^7.12.10",
|
|
44
|
-
"@rollup/plugin-babel": "^6.0.3",
|
|
45
|
-
"@rollup/plugin-commonjs": "^21.0.1",
|
|
46
|
-
"@rollup/plugin-node-resolve": "^11.1.1",
|
|
47
|
-
"@rollup/plugin-terser": "^0.4.3",
|
|
48
|
-
"@storybook/addon-actions": "^6.5.8",
|
|
49
|
-
"@storybook/addon-docs": "^6.5.8",
|
|
50
|
-
"@storybook/addon-essentials": "^6.5.8",
|
|
51
|
-
"@storybook/addon-links": "^6.5.8",
|
|
52
|
-
"@storybook/addon-postcss": "^2.0.0",
|
|
53
|
-
"@storybook/addons": "^6.5.8",
|
|
54
|
-
"@storybook/api": "^7.3.2",
|
|
55
|
-
"@storybook/builder-webpack5": "^6.5.13",
|
|
56
|
-
"@storybook/manager-webpack5": "^6.5.13",
|
|
57
|
-
"@storybook/react": "^6.5.8",
|
|
58
|
-
"@storybook/storybook-deployer": "^2.8.11",
|
|
59
|
-
"@storybook/theming": "^6.5.8",
|
|
60
|
-
"@swc/core": "^1.3.53",
|
|
61
|
-
"@types/react": "^18.0.25",
|
|
62
|
-
"@types/react-dom": "^18.0.9",
|
|
63
|
-
"babel-loader": "^8.2.2",
|
|
64
|
-
"chromatic": "^6.22.0",
|
|
65
|
-
"framer-motion": "^4.1.7",
|
|
66
|
-
"html-webpack-plugin": "^5.5.0",
|
|
67
|
-
"postcss": "^8.4.18",
|
|
68
|
-
"postcss-cli": "^10.0.0",
|
|
69
|
-
"postcss-focus-visible": "^7.1.0",
|
|
70
|
-
"prettier": "^2.7.1",
|
|
71
|
-
"prettier-plugin-tailwindcss": "^0.1.13",
|
|
72
|
-
"qs": "^6.10.3",
|
|
73
|
-
"react": "^18.2.0",
|
|
74
|
-
"react-color": "^2.19.3",
|
|
75
|
-
"react-dnd": "^15.1.2",
|
|
76
|
-
"react-dom": "^18.2.0",
|
|
77
|
-
"react-hook-form": "^7.28.0",
|
|
78
|
-
"react-phone-input-2": "^2.15.1",
|
|
79
|
-
"react-select": "^5.7.4",
|
|
80
|
-
"react-transition-group": "^4.4.2",
|
|
81
|
-
"rollup": "^2.38.4",
|
|
82
|
-
"rollup-plugin-cleaner": "^1.0.0",
|
|
83
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
84
|
-
"rollup-plugin-postcss": "^4.0.0",
|
|
85
|
-
"rollup-plugin-swc": "^0.2.1",
|
|
86
|
-
"rollup-plugin-typescript2": "^0.34.1",
|
|
87
|
-
"storybook-dark-mode": "^3.0.1",
|
|
88
|
-
"tailwindcss": "^3.3.3",
|
|
89
|
-
"tailwindcss-animate": "^1.0.6",
|
|
90
|
-
"tinycolor2": "^1.4.2",
|
|
91
|
-
"tslib": "^2.4.1",
|
|
92
|
-
"typescript": "^4.8.4",
|
|
93
|
-
"webpack": "^5.75.0"
|
|
94
|
-
},
|
|
95
|
-
"peerDependencies": {
|
|
96
|
-
"react": "^18.2.0",
|
|
97
|
-
"react-dom": "^18.2.0"
|
|
98
|
-
},
|
|
99
|
-
"resolutions": {
|
|
100
|
-
"@storybook/react-docgen-typescript-plugin": "npm:react-docgen-typescript-plugin@1.0.2",
|
|
101
|
-
"@storybook/react/webpack": "^5",
|
|
102
|
-
"@storybook/core-common/webpack": "^5",
|
|
103
|
-
"@storybook/core-server/webpack": "^5",
|
|
104
|
-
"@storybook/builder-webpack5/webpack": "^5",
|
|
105
|
-
"@storybook/manager-webpack5/webpack": "^5"
|
|
16
|
+
"dev": "next dev",
|
|
17
|
+
"build": "next build",
|
|
18
|
+
"start": "next start",
|
|
19
|
+
"lint": "next lint",
|
|
20
|
+
"storybook": "storybook dev -p 6006",
|
|
21
|
+
"build-storybook": "storybook build",
|
|
22
|
+
"build-lib": "tsup components/index.tsx --format cjs,esm --dts",
|
|
23
|
+
"build-css": "postcss styles/globals.css -o dist/index.css",
|
|
24
|
+
"prepublish": "npm run build-lib && npm run build-css",
|
|
25
|
+
"pub": "npm publish --tag next"
|
|
106
26
|
},
|
|
107
27
|
"dependencies": {
|
|
108
|
-
"@
|
|
109
|
-
"@
|
|
110
|
-
"@
|
|
28
|
+
"@types/node": "20.8.0",
|
|
29
|
+
"@types/react": "18.2.23",
|
|
30
|
+
"@types/react-dom": "18.2.8",
|
|
111
31
|
"class-variance-authority": "^0.7.0",
|
|
112
|
-
"clsx": "^
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"react
|
|
118
|
-
"react-
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"tailwind-merge": "^1.14.0"
|
|
32
|
+
"clsx": "^2.0.0",
|
|
33
|
+
"eslint": "8.50.0",
|
|
34
|
+
"eslint-config-next": "13.5.3",
|
|
35
|
+
"next": "13.5.3",
|
|
36
|
+
"next-themes": "^0.2.1",
|
|
37
|
+
"react": "18.2.0",
|
|
38
|
+
"react-dom": "18.2.0",
|
|
39
|
+
"tailwind-merge": "^1.14.0",
|
|
40
|
+
"typescript": "5.2.2"
|
|
122
41
|
},
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@storybook/addon-essentials": "^7.4.5",
|
|
44
|
+
"@storybook/addon-interactions": "^7.4.5",
|
|
45
|
+
"@storybook/addon-links": "^7.4.5",
|
|
46
|
+
"@storybook/addon-onboarding": "^1.0.8",
|
|
47
|
+
"@storybook/blocks": "^7.4.5",
|
|
48
|
+
"@storybook/nextjs": "^7.4.5",
|
|
49
|
+
"@storybook/react": "^7.4.5",
|
|
50
|
+
"@storybook/testing-library": "^0.2.1",
|
|
51
|
+
"autoprefixer": "^10.4.16",
|
|
52
|
+
"eslint-plugin-storybook": "^0.6.14",
|
|
53
|
+
"postcss": "^8.4.31",
|
|
54
|
+
"postcss-cli": "^10.1.0",
|
|
55
|
+
"postcss-import": "^15.1.0",
|
|
56
|
+
"storybook": "^7.4.5",
|
|
57
|
+
"storybook-dark-mode": "^3.0.1",
|
|
58
|
+
"tailwindcss": "^3.3.3",
|
|
59
|
+
"tailwindcss-animate": "^1.0.7",
|
|
60
|
+
"tsup": "^7.2.0"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
name: Build, Deploy Storybook and Publish to NPM
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [gogo]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
# setup_build:
|
|
9
|
-
# runs-on: ubuntu-latest
|
|
10
|
-
# steps:
|
|
11
|
-
# - name: Checkout repository
|
|
12
|
-
# uses: actions/checkout@v2
|
|
13
|
-
|
|
14
|
-
# - name: Setup Node.js v16
|
|
15
|
-
# uses: actions/setup-node@v2
|
|
16
|
-
# with:
|
|
17
|
-
# node-version: 16
|
|
18
|
-
|
|
19
|
-
# - name: Install dependencies
|
|
20
|
-
# run: |
|
|
21
|
-
# if [ -e 'package-lock.json' ]; then
|
|
22
|
-
# npm ci
|
|
23
|
-
# else
|
|
24
|
-
# npm install
|
|
25
|
-
# fi
|
|
26
|
-
|
|
27
|
-
build_deploy_storybook:
|
|
28
|
-
# needs: setup_build
|
|
29
|
-
runs-on: ubuntu-latest
|
|
30
|
-
steps:
|
|
31
|
-
- name: Checkout repository
|
|
32
|
-
uses: actions/checkout@v2
|
|
33
|
-
|
|
34
|
-
- name: Setup Node.js v16
|
|
35
|
-
uses: actions/setup-node@v2
|
|
36
|
-
with:
|
|
37
|
-
node-version: 16
|
|
38
|
-
|
|
39
|
-
- name: Install dependencies
|
|
40
|
-
run: |
|
|
41
|
-
if [ -e 'package-lock.json' ]; then
|
|
42
|
-
npm ci
|
|
43
|
-
else
|
|
44
|
-
npm install
|
|
45
|
-
fi
|
|
46
|
-
|
|
47
|
-
- name: Build Storybook
|
|
48
|
-
run: npm run build-storybook
|
|
49
|
-
|
|
50
|
-
- name: Deploy Storybook to GitHub Pages
|
|
51
|
-
uses: bitovi/github-actions-storybook-to-github-pages@v1.0.0
|
|
52
|
-
with:
|
|
53
|
-
# Specifies if this action should checkout the code
|
|
54
|
-
checkout: # optional, default is true
|
|
55
|
-
# Specifies the path of the static assets after building
|
|
56
|
-
# optional, default is dist/storybook
|
|
57
|
-
path: docs
|
|
58
|
-
# Specifies the command to run after npm ci for the build
|
|
59
|
-
|
|
60
|
-
# deploy_storybook:
|
|
61
|
-
# needs: build_storybook
|
|
62
|
-
# runs-on: ubuntu-latest
|
|
63
|
-
# steps:
|
|
64
|
-
# - name: Checkout repository
|
|
65
|
-
# uses: actions/checkout@v2
|
|
66
|
-
|
|
67
|
-
# - name: Deploy to GitHub Pages
|
|
68
|
-
# uses: JamesIves/github-pages-deploy-action@v4
|
|
69
|
-
# with:
|
|
70
|
-
# branch: gh-pages
|
|
71
|
-
# folder: docs
|
|
72
|
-
# token: ${{ secrets.GH_TOKEN }}
|
|
73
|
-
|
|
74
|
-
npm_publish:
|
|
75
|
-
# needs: setup_build
|
|
76
|
-
runs-on: ubuntu-latest
|
|
77
|
-
steps:
|
|
78
|
-
- name: Checkout repository
|
|
79
|
-
uses: actions/checkout@v2
|
|
80
|
-
|
|
81
|
-
- name: Setup Node.js v16
|
|
82
|
-
uses: actions/setup-node@v2
|
|
83
|
-
with:
|
|
84
|
-
node-version: 16
|
|
85
|
-
registry-url: https://registry.npmjs.org/
|
|
86
|
-
|
|
87
|
-
- name: Setup Node.js v16
|
|
88
|
-
uses: actions/setup-node@v2
|
|
89
|
-
with:
|
|
90
|
-
node-version: 16
|
|
91
|
-
|
|
92
|
-
- name: Install dependencies
|
|
93
|
-
run: |
|
|
94
|
-
if [ -e 'package-lock.json' ]; then
|
|
95
|
-
npm ci
|
|
96
|
-
else
|
|
97
|
-
npm install
|
|
98
|
-
fi
|
|
99
|
-
|
|
100
|
-
- name: Build Library
|
|
101
|
-
run: npm run build-lib
|
|
102
|
-
|
|
103
|
-
- name: Build Styles
|
|
104
|
-
run: npm run build:styles
|
|
105
|
-
|
|
106
|
-
- name: Generate Tailwind Styles
|
|
107
|
-
run: npm run generate-css
|
|
108
|
-
|
|
109
|
-
- name: Publish to NPM
|
|
110
|
-
run: npm publish
|
|
111
|
-
env:
|
|
112
|
-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
-
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
|
3
|
-
|
|
4
|
-
name: Hawa Build, Deploy, and Publish on Push
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
push:
|
|
8
|
-
branches: [main]
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
build:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v2
|
|
15
|
-
- name: Use Node.js v16
|
|
16
|
-
uses: actions/setup-node@v2
|
|
17
|
-
with:
|
|
18
|
-
node-version: 16
|
|
19
|
-
- name: Install dependencies
|
|
20
|
-
run: |
|
|
21
|
-
if [ -e 'package-lock.json' ]; then
|
|
22
|
-
npm ci
|
|
23
|
-
else
|
|
24
|
-
npm install
|
|
25
|
-
fi
|
|
26
|
-
env:
|
|
27
|
-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
28
|
-
|
|
29
|
-
# # Deployment job
|
|
30
|
-
# deploy:
|
|
31
|
-
# runs-on: ubuntu-latest
|
|
32
|
-
# environment:
|
|
33
|
-
# name: github-pages
|
|
34
|
-
# url: ${{ steps.deployment.outputs.page_url }}
|
|
35
|
-
# needs: build
|
|
36
|
-
# steps:
|
|
37
|
-
# - name: Deploy to GitHub Pages
|
|
38
|
-
# id: deployment
|
|
39
|
-
# uses: actions/deploy-pages@v2
|
|
40
|
-
# # with:
|
|
41
|
-
# # branch: gh-pages
|
|
42
|
-
# # folder: docs
|
|
43
|
-
# # - name: Deploy to GitHub Pages
|
|
44
|
-
# # id: deployment
|
|
45
|
-
# # uses: actions/deploy-pages@v2
|
|
46
|
-
|
|
47
|
-
# Publishing to NPM
|
|
48
|
-
publish:
|
|
49
|
-
needs: build
|
|
50
|
-
runs-on: ubuntu-latest
|
|
51
|
-
steps:
|
|
52
|
-
- uses: actions/checkout@v2
|
|
53
|
-
- name: Use Node.js v16
|
|
54
|
-
uses: actions/setup-node@v2
|
|
55
|
-
with:
|
|
56
|
-
node-version: 16
|
|
57
|
-
registry-url: https://registry.npmjs.org/
|
|
58
|
-
- name: Install dependencies
|
|
59
|
-
run: |
|
|
60
|
-
if [ -e 'package-lock.json' ]; then
|
|
61
|
-
npm ci
|
|
62
|
-
else
|
|
63
|
-
npm install
|
|
64
|
-
fi
|
|
65
|
-
- name: Build Library
|
|
66
|
-
run: npm run build-lib
|
|
67
|
-
- name: Build Styles
|
|
68
|
-
run: npm run build:styles
|
|
69
|
-
- name: Generate Tailwind Styles
|
|
70
|
-
run: npm run generate-css
|
|
71
|
-
- name: Publish to NPM
|
|
72
|
-
run: npm publish
|
|
73
|
-
env:
|
|
74
|
-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
-
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
|
3
|
-
|
|
4
|
-
name: Hawa Publish Package
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
release:
|
|
8
|
-
types: [created]
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
build:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v2
|
|
15
|
-
- uses: actions/setup-node@v2
|
|
16
|
-
with:
|
|
17
|
-
node-version: 16
|
|
18
|
-
- run: |
|
|
19
|
-
if [ -e 'package-lock.json' ]; then
|
|
20
|
-
npm ci
|
|
21
|
-
else
|
|
22
|
-
npm install
|
|
23
|
-
fi
|
|
24
|
-
npm run deploy-storybook -- --ci
|
|
25
|
-
env :
|
|
26
|
-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
27
|
-
|
|
28
|
-
publish-npm:
|
|
29
|
-
needs: build
|
|
30
|
-
runs-on: ubuntu-latest
|
|
31
|
-
steps:
|
|
32
|
-
- uses: actions/checkout@v2
|
|
33
|
-
- uses: actions/setup-node@v2
|
|
34
|
-
with:
|
|
35
|
-
node-version: 16
|
|
36
|
-
registry-url: https://registry.npmjs.org/
|
|
37
|
-
- run: |
|
|
38
|
-
if [ -e 'package-lock.json' ]; then
|
|
39
|
-
npm ci
|
|
40
|
-
else
|
|
41
|
-
npm install
|
|
42
|
-
fi
|
|
43
|
-
- run: npm run build-lib
|
|
44
|
-
- run: npm run build:styles
|
|
45
|
-
- run: npm run generate-css
|
|
46
|
-
- run: npm publish
|
|
47
|
-
env:
|
|
48
|
-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|