@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
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
declare const buttonVariants: (props?: ({
|
|
6
|
+
variant?: "link" | "default" | "light" | "destructive" | "outline" | "secondary" | "ghost" | "neoBrutalism" | null | undefined;
|
|
7
|
+
size?: "xs" | "sm" | "lg" | "xl" | "default" | "heightless" | "icon" | "smallIcon" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
10
|
+
asChild?: boolean;
|
|
11
|
+
isLoading?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
|
|
15
|
+
export { Button, ButtonProps, buttonVariants };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
declare const buttonVariants: (props?: ({
|
|
6
|
+
variant?: "link" | "default" | "light" | "destructive" | "outline" | "secondary" | "ghost" | "neoBrutalism" | null | undefined;
|
|
7
|
+
size?: "xs" | "sm" | "lg" | "xl" | "default" | "heightless" | "icon" | "smallIcon" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
10
|
+
asChild?: boolean;
|
|
11
|
+
isLoading?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
|
|
15
|
+
export { Button, ButtonProps, buttonVariants };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function _define_property(obj, key, value) {
|
|
3
|
+
if (key in obj) {
|
|
4
|
+
Object.defineProperty(obj, key, {
|
|
5
|
+
value: value,
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
writable: true
|
|
9
|
+
});
|
|
10
|
+
} else {
|
|
11
|
+
obj[key] = value;
|
|
12
|
+
}
|
|
13
|
+
return obj;
|
|
14
|
+
}
|
|
15
|
+
function _object_spread(target) {
|
|
16
|
+
for(var i = 1; i < arguments.length; i++){
|
|
17
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
18
|
+
var ownKeys = Object.keys(source);
|
|
19
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
20
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
21
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
ownKeys.forEach(function(key) {
|
|
25
|
+
_define_property(target, key, source[key]);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
return target;
|
|
29
|
+
}
|
|
30
|
+
function _object_without_properties(source, excluded) {
|
|
31
|
+
if (source == null) return {};
|
|
32
|
+
var target = _object_without_properties_loose(source, excluded);
|
|
33
|
+
var key, i;
|
|
34
|
+
if (Object.getOwnPropertySymbols) {
|
|
35
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
36
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
37
|
+
key = sourceSymbolKeys[i];
|
|
38
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
39
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
40
|
+
target[key] = source[key];
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return target;
|
|
44
|
+
}
|
|
45
|
+
function _object_without_properties_loose(source, excluded) {
|
|
46
|
+
if (source == null) return {};
|
|
47
|
+
var target = {};
|
|
48
|
+
var sourceKeys = Object.keys(source);
|
|
49
|
+
var key, i;
|
|
50
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
51
|
+
key = sourceKeys[i];
|
|
52
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
53
|
+
target[key] = source[key];
|
|
54
|
+
}
|
|
55
|
+
return target;
|
|
56
|
+
}
|
|
57
|
+
var __create = Object.create;
|
|
58
|
+
var __defProp = Object.defineProperty;
|
|
59
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
60
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
61
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
62
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
63
|
+
var __export = function(target, all) {
|
|
64
|
+
for(var name in all)__defProp(target, name, {
|
|
65
|
+
get: all[name],
|
|
66
|
+
enumerable: true
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
var __copyProps = function(to, from, except, desc) {
|
|
70
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
71
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
72
|
+
try {
|
|
73
|
+
var _loop = function() {
|
|
74
|
+
var key = _step.value;
|
|
75
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
76
|
+
get: function() {
|
|
77
|
+
return from[key];
|
|
78
|
+
},
|
|
79
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
for(var _iterator = __getOwnPropNames(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
|
|
83
|
+
} catch (err) {
|
|
84
|
+
_didIteratorError = true;
|
|
85
|
+
_iteratorError = err;
|
|
86
|
+
} finally{
|
|
87
|
+
try {
|
|
88
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
89
|
+
_iterator.return();
|
|
90
|
+
}
|
|
91
|
+
} finally{
|
|
92
|
+
if (_didIteratorError) {
|
|
93
|
+
throw _iteratorError;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return to;
|
|
99
|
+
};
|
|
100
|
+
var __toESM = function(mod, isNodeMode, target) {
|
|
101
|
+
return target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(// If the importer is in node compatibility mode or this is not an ESM
|
|
102
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
103
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
104
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
105
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
106
|
+
value: mod,
|
|
107
|
+
enumerable: true
|
|
108
|
+
}) : target, mod);
|
|
109
|
+
};
|
|
110
|
+
var __toCommonJS = function(mod) {
|
|
111
|
+
return __copyProps(__defProp({}, "__esModule", {
|
|
112
|
+
value: true
|
|
113
|
+
}), mod);
|
|
114
|
+
};
|
|
115
|
+
// components/index.tsx
|
|
116
|
+
var components_exports = {};
|
|
117
|
+
__export(components_exports, {
|
|
118
|
+
Button: function() {
|
|
119
|
+
return Button;
|
|
120
|
+
},
|
|
121
|
+
buttonVariants: function() {
|
|
122
|
+
return buttonVariants;
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
module.exports = __toCommonJS(components_exports);
|
|
126
|
+
// components/elements/Button.tsx
|
|
127
|
+
var React2 = __toESM(require("react"));
|
|
128
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
129
|
+
// components/util.ts
|
|
130
|
+
var import_clsx = require("clsx");
|
|
131
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
132
|
+
function cn() {
|
|
133
|
+
for(var _len = arguments.length, inputs = new Array(_len), _key = 0; _key < _len; _key++){
|
|
134
|
+
inputs[_key] = arguments[_key];
|
|
135
|
+
}
|
|
136
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
137
|
+
}
|
|
138
|
+
// components/elements/Loading.tsx
|
|
139
|
+
var import_react = __toESM(require("react"));
|
|
140
|
+
var import_clsx2 = __toESM(require("clsx"));
|
|
141
|
+
var Loading = function(_param) {
|
|
142
|
+
var _param_design = _param.design, design = _param_design === void 0 ? "spinner" : _param_design, _param_size = _param.size, size = _param_size === void 0 ? "sm" : _param_size, color = _param.color, props = _object_without_properties(_param, [
|
|
143
|
+
"design",
|
|
144
|
+
"size",
|
|
145
|
+
"color"
|
|
146
|
+
]);
|
|
147
|
+
var sizeStyles = {
|
|
148
|
+
button: "h-4 w-4",
|
|
149
|
+
xs: "h-1 w-1",
|
|
150
|
+
sm: "h-6 w-6",
|
|
151
|
+
normal: "h-8 w-8",
|
|
152
|
+
lg: "h-14 w-14",
|
|
153
|
+
xl: "h-24 w-24"
|
|
154
|
+
};
|
|
155
|
+
var animationStyles = {
|
|
156
|
+
pulse: "animate-in fade-in duration-1000",
|
|
157
|
+
bounce: "animate-bounce"
|
|
158
|
+
};
|
|
159
|
+
switch(design.split("-")[0]){
|
|
160
|
+
case "dots":
|
|
161
|
+
return /* @__PURE__ */ import_react.default.createElement("div", {
|
|
162
|
+
className: "flex flex-row gap-2"
|
|
163
|
+
}, /* @__PURE__ */ import_react.default.createElement("div", {
|
|
164
|
+
className: (0, import_clsx2.default)("animate-bounce rounded-full delay-100 repeat-infinite", size === "button" ? "h-2 w-2" : sizeStyles[size], animationStyles[design.split("-")[1]], color ? color : "bg-primary")
|
|
165
|
+
}), /* @__PURE__ */ import_react.default.createElement("div", {
|
|
166
|
+
className: (0, import_clsx2.default)("animate-bounce rounded-full delay-200 repeat-infinite", size === "button" ? "h-2 w-2" : sizeStyles[size], animationStyles[design.split("-")[1]], color ? color : "bg-primary")
|
|
167
|
+
}), /* @__PURE__ */ import_react.default.createElement("div", {
|
|
168
|
+
className: (0, import_clsx2.default)("animate-bounce rounded-full delay-300 repeat-infinite", size === "button" ? "h-2 w-2" : sizeStyles[size], animationStyles[design.split("-")[1]], color ? color : "bg-primary")
|
|
169
|
+
}));
|
|
170
|
+
default:
|
|
171
|
+
return /* @__PURE__ */ import_react.default.createElement("div", {
|
|
172
|
+
className: "flex flex-row gap-x-3"
|
|
173
|
+
}, /* @__PURE__ */ import_react.default.createElement("div", {
|
|
174
|
+
"aria-label": "Loading...",
|
|
175
|
+
role: "status"
|
|
176
|
+
}, /* @__PURE__ */ import_react.default.createElement("svg", {
|
|
177
|
+
className: (0, import_clsx2.default)(sizeStyles[size], "animate-spin"),
|
|
178
|
+
viewBox: "3 3 18 18"
|
|
179
|
+
}, /* @__PURE__ */ import_react.default.createElement("path", {
|
|
180
|
+
className: "fill-primary/20",
|
|
181
|
+
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"
|
|
182
|
+
}), /* @__PURE__ */ import_react.default.createElement("path", {
|
|
183
|
+
className: color ? color : "fill-primary",
|
|
184
|
+
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"
|
|
185
|
+
}))));
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
// components/elements/Button.tsx
|
|
189
|
+
var buttonVariants = (0, import_class_variance_authority.cva)("inline-flex items-center justify-center select-none 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", {
|
|
190
|
+
variants: {
|
|
191
|
+
variant: {
|
|
192
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
193
|
+
light: "bg-primary/20 text-primary hover:bg-primary/40",
|
|
194
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
195
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
196
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
197
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
198
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
199
|
+
neoBrutalism: "cursor-pointer transition-all uppercase font-mono dark:bg-black font-bold py-2 px-4 rounded border-2 border-primary shadow-color-primary transition-[transform_50ms, box-shadow_50ms] active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"
|
|
200
|
+
},
|
|
201
|
+
size: {
|
|
202
|
+
default: "h-10 px-4 py-2",
|
|
203
|
+
heightless: "px-4 py-4",
|
|
204
|
+
xs: "h-fit py-1 text-[10px] px-2 ",
|
|
205
|
+
sm: "h-9 text-[11px] rounded-md px-3",
|
|
206
|
+
lg: "h-11 rounded-md px-8",
|
|
207
|
+
xl: "h-14 rounded-md px-10",
|
|
208
|
+
icon: "h-10 w-10",
|
|
209
|
+
smallIcon: "h-7 w-7"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
defaultVariants: {
|
|
213
|
+
variant: "default",
|
|
214
|
+
size: "default"
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
var Button = React2.forwardRef(function(_param, ref) {
|
|
218
|
+
var className = _param.className, variant = _param.variant, size = _param.size, _param_asChild = _param.asChild, asChild = _param_asChild === void 0 ? false : _param_asChild, isLoading = _param.isLoading, children = _param.children, props = _object_without_properties(_param, [
|
|
219
|
+
"className",
|
|
220
|
+
"variant",
|
|
221
|
+
"size",
|
|
222
|
+
"asChild",
|
|
223
|
+
"isLoading",
|
|
224
|
+
"children"
|
|
225
|
+
]);
|
|
226
|
+
var Comp = "button";
|
|
227
|
+
var loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "bg-primary" : "bg-primary-foreground";
|
|
228
|
+
return /* @__PURE__ */ React2.createElement(Comp, _object_spread({
|
|
229
|
+
className: cn(buttonVariants({
|
|
230
|
+
variant: variant,
|
|
231
|
+
size: size,
|
|
232
|
+
className: className
|
|
233
|
+
})),
|
|
234
|
+
ref: ref
|
|
235
|
+
}, props), isLoading ? /* @__PURE__ */ React2.createElement(Loading, {
|
|
236
|
+
design: "dots-pulse",
|
|
237
|
+
color: loadingColor,
|
|
238
|
+
size: size === "sm" ? "xs" : "button"
|
|
239
|
+
}) : children);
|
|
240
|
+
});
|
|
241
|
+
Button.displayName = "Button";
|
|
242
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
243
|
+
0 && (module.exports = {
|
|
244
|
+
Button: Button,
|
|
245
|
+
buttonVariants: buttonVariants
|
|
246
|
+
});
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
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: "h-4 w-4",
|
|
23
|
+
xs: "h-1 w-1",
|
|
24
|
+
sm: "h-6 w-6",
|
|
25
|
+
normal: "h-8 w-8",
|
|
26
|
+
lg: "h-14 w-14",
|
|
27
|
+
xl: "h-24 w-24"
|
|
28
|
+
};
|
|
29
|
+
let animationStyles = {
|
|
30
|
+
pulse: "animate-in fade-in duration-1000",
|
|
31
|
+
bounce: "animate-bounce"
|
|
32
|
+
};
|
|
33
|
+
switch (design.split("-")[0]) {
|
|
34
|
+
case "dots":
|
|
35
|
+
return /* @__PURE__ */ React.createElement("div", { className: "flex flex-row gap-2" }, /* @__PURE__ */ React.createElement(
|
|
36
|
+
"div",
|
|
37
|
+
{
|
|
38
|
+
className: clsx2(
|
|
39
|
+
"animate-bounce rounded-full delay-100 repeat-infinite",
|
|
40
|
+
size === "button" ? "h-2 w-2" : sizeStyles[size],
|
|
41
|
+
animationStyles[design.split("-")[1]],
|
|
42
|
+
color ? color : "bg-primary"
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
), /* @__PURE__ */ React.createElement(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
className: clsx2(
|
|
49
|
+
"animate-bounce rounded-full delay-200 repeat-infinite",
|
|
50
|
+
size === "button" ? "h-2 w-2" : sizeStyles[size],
|
|
51
|
+
animationStyles[design.split("-")[1]],
|
|
52
|
+
color ? color : "bg-primary"
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
), /* @__PURE__ */ React.createElement(
|
|
56
|
+
"div",
|
|
57
|
+
{
|
|
58
|
+
className: clsx2(
|
|
59
|
+
"animate-bounce rounded-full delay-300 repeat-infinite",
|
|
60
|
+
size === "button" ? "h-2 w-2" : sizeStyles[size],
|
|
61
|
+
animationStyles[design.split("-")[1]],
|
|
62
|
+
color ? color : "bg-primary"
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
));
|
|
66
|
+
default:
|
|
67
|
+
return /* @__PURE__ */ React.createElement("div", { className: "flex flex-row gap-x-3" }, /* @__PURE__ */ React.createElement("div", { "aria-label": "Loading...", role: "status" }, /* @__PURE__ */ React.createElement(
|
|
68
|
+
"svg",
|
|
69
|
+
{
|
|
70
|
+
className: clsx2(sizeStyles[size], "animate-spin"),
|
|
71
|
+
viewBox: "3 3 18 18"
|
|
72
|
+
},
|
|
73
|
+
/* @__PURE__ */ React.createElement(
|
|
74
|
+
"path",
|
|
75
|
+
{
|
|
76
|
+
className: "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 : "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
|
+
"inline-flex items-center justify-center select-none 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",
|
|
94
|
+
{
|
|
95
|
+
variants: {
|
|
96
|
+
variant: {
|
|
97
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
98
|
+
light: "bg-primary/20 text-primary hover:bg-primary/40",
|
|
99
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
100
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
101
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
102
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
103
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
104
|
+
neoBrutalism: "cursor-pointer transition-all uppercase font-mono dark:bg-black font-bold py-2 px-4 rounded border-2 border-primary shadow-color-primary transition-[transform_50ms, box-shadow_50ms] active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"
|
|
105
|
+
},
|
|
106
|
+
size: {
|
|
107
|
+
default: "h-10 px-4 py-2",
|
|
108
|
+
heightless: "px-4 py-4",
|
|
109
|
+
xs: "h-fit py-1 text-[10px] px-2 ",
|
|
110
|
+
sm: "h-9 text-[11px] rounded-md px-3",
|
|
111
|
+
lg: "h-11 rounded-md px-8",
|
|
112
|
+
xl: "h-14 rounded-md px-10",
|
|
113
|
+
icon: "h-10 w-10",
|
|
114
|
+
smallIcon: "h-7 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" ? "bg-primary" : "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
|
+
export {
|
|
155
|
+
Button,
|
|
156
|
+
buttonVariants
|
|
157
|
+
};
|
package/package.json
CHANGED
|
@@ -1,124 +1,57 @@
|
|
|
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.2-next",
|
|
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
|
-
"chromatic": "npx chromatic --project-token=chpt_9c33d11ef14064f --output-dir ./docs/documentation"
|
|
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"
|
|
106
24
|
},
|
|
107
25
|
"dependencies": {
|
|
108
|
-
"@
|
|
109
|
-
"@
|
|
26
|
+
"@types/node": "20.8.0",
|
|
27
|
+
"@types/react": "18.2.23",
|
|
28
|
+
"@types/react-dom": "18.2.8",
|
|
29
|
+
"autoprefixer": "10.4.16",
|
|
110
30
|
"class-variance-authority": "^0.7.0",
|
|
111
|
-
"clsx": "^
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"react
|
|
117
|
-
"react-
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
31
|
+
"clsx": "^2.0.0",
|
|
32
|
+
"eslint": "8.50.0",
|
|
33
|
+
"eslint-config-next": "13.5.3",
|
|
34
|
+
"next": "13.5.3",
|
|
35
|
+
"postcss": "^8.4.31",
|
|
36
|
+
"react": "18.2.0",
|
|
37
|
+
"react-dom": "18.2.0",
|
|
38
|
+
"tailwind-merge": "^1.14.0",
|
|
39
|
+
"tailwindcss": "3.3.3",
|
|
40
|
+
"typescript": "5.2.2"
|
|
121
41
|
},
|
|
122
|
-
"
|
|
123
|
-
|
|
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
|
+
"eslint-plugin-storybook": "^0.6.14",
|
|
52
|
+
"postcss-cli": "^10.1.0",
|
|
53
|
+
"storybook": "^7.4.5",
|
|
54
|
+
"tailwindcss-animate": "^1.0.7",
|
|
55
|
+
"tsup": "^7.2.0"
|
|
56
|
+
}
|
|
124
57
|
}
|