@sikka/hawa 0.2.0 → 0.2.2-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.
@@ -18,7 +18,11 @@ jobs:
18
18
  node-version: [16.x]
19
19
  steps:
20
20
  - uses: actions/checkout@v2
21
-
21
+ - name: Append -beta to package.json version
22
+ run: |
23
+ apt-get update && apt-get install -y jq
24
+ jq '.version = .version + "-beta"' package.json > package.json.tmp
25
+ mv package.json.tmp package.json
22
26
  - name: Use Node.js v16
23
27
  uses: actions/setup-node@v2
24
28
  with:
package/README.md CHANGED
@@ -4,15 +4,21 @@
4
4
 
5
5
  # Hawa | هواء
6
6
 
7
- [![NPM](https://img.shields.io/npm/v/@sikka/hawa.svg?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/@sikka/hawa)
8
- [![NPM](https://img.shields.io/npm/dt/@sikka/hawa.svg?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/@sikka/hawa)
7
+ [![NPM](https://img.shields.io/npm/v/@sikka/hawa.svg?style=flat&colorA=000000&colorB=1082c3)](https://www.npmjs.com/package/@sikka/hawa)
8
+ [![NPM@beta](https://img.shields.io/npm/v/@sikka/hawa/beta.svg?style=flat&colorA=000000&colorB=ea7637)](https://www.npmjs.com/package/@sikka/hawa)
9
+ [![Hawa CI - @latest](https://github.com/sikka-software/Hawa/actions/workflows/hawa-main.yml/badge.svg)](https://github.com/sikka-software/Hawa/actions/workflows/hawa-main.yml)
10
+ [![Hawa CI - @beta](https://github.com/sikka-software/Hawa/actions/workflows/hawa-beta.yml/badge.svg)](https://github.com/sikka-software/Hawa/actions/workflows/hawa-beta.yml)
11
+ <!-- [![NPM](https://img.shields.io/npm/dt/@sikka/hawa.svg?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/@sikka/hawa) -->
12
+
13
+
9
14
 
10
15
  > Opinionated UI Kit for web apps and websites built with TailwindCSS
11
16
 
12
17
  [Docs](https://hawa.style/docs)
13
18
 
14
19
  ## Install
15
-
20
+ **Note:** `@beta` only points to pre-releases.
21
+ Use `@latest` for the latest stable release.
16
22
  ```bash
17
23
  npm install @sikka/hawa
18
24
  ```
package/dist/index.d.mts CHANGED
@@ -778,25 +778,25 @@ type ComponentTypes = {
778
778
  };
779
779
  declare const UserReferralSource: FC<ComponentTypes>;
780
780
 
781
- type IconProps = React.HTMLAttributes<SVGElement>;
781
+ type IconProps = React__default.HTMLAttributes<SVGElement>;
782
782
  declare const Icons: {
783
- logo: (props: IconProps) => React$1.JSX.Element;
784
- mail: (props: IconProps) => React$1.JSX.Element;
785
- phone: (props: IconProps) => React$1.JSX.Element;
786
- twitter: (props: IconProps) => React$1.JSX.Element;
787
- microsoft: (props: IconProps) => React$1.JSX.Element;
788
- gitHub: (props: IconProps) => React$1.JSX.Element;
789
- radix: (props: IconProps) => React$1.JSX.Element;
790
- aria: (props: IconProps) => React$1.JSX.Element;
791
- npm: (props: IconProps) => React$1.JSX.Element;
792
- yarn: (props: IconProps) => React$1.JSX.Element;
793
- pnpm: (props: IconProps) => React$1.JSX.Element;
794
- react: (props: IconProps) => React$1.JSX.Element;
795
- tailwind: (props: IconProps) => React$1.JSX.Element;
796
- google: (props: IconProps) => React$1.JSX.Element;
797
- apple: (props: IconProps) => React$1.JSX.Element;
798
- paypal: (props: IconProps) => React$1.JSX.Element;
799
- spinner: (props: IconProps) => React$1.JSX.Element;
783
+ logo: (props: IconProps) => React__default.JSX.Element;
784
+ mail: (props: IconProps) => React__default.JSX.Element;
785
+ phone: (props: IconProps) => React__default.JSX.Element;
786
+ twitter: (props: IconProps) => React__default.JSX.Element;
787
+ microsoft: (props: IconProps) => React__default.JSX.Element;
788
+ gitHub: (props: IconProps) => React__default.JSX.Element;
789
+ radix: (props: IconProps) => React__default.JSX.Element;
790
+ aria: (props: IconProps) => React__default.JSX.Element;
791
+ npm: (props: IconProps) => React__default.JSX.Element;
792
+ yarn: (props: IconProps) => React__default.JSX.Element;
793
+ pnpm: (props: IconProps) => React__default.JSX.Element;
794
+ react: (props: IconProps) => React__default.JSX.Element;
795
+ tailwind: (props: IconProps) => React__default.JSX.Element;
796
+ google: (props: IconProps) => React__default.JSX.Element;
797
+ apple: (props: IconProps) => React__default.JSX.Element;
798
+ paypal: (props: IconProps) => React__default.JSX.Element;
799
+ spinner: (props: IconProps) => React__default.JSX.Element;
800
800
  };
801
801
 
802
802
  declare const buttonVariants: (props?: {
@@ -969,6 +969,7 @@ type AppLayoutTypes = {
969
969
  profileMenuWidth: "default" | "sm" | "lg" | "parent";
970
970
  onSettingsClick?: () => void;
971
971
  onDrawerExpand?: (e: any) => void;
972
+ keepDrawerOpen?: boolean;
972
973
  DrawerFooterActions?: any;
973
974
  clickedItem?: any;
974
975
  texts?: {
@@ -1744,4 +1745,41 @@ declare function useToast(): {
1744
1745
  toasts: ToasterToast[];
1745
1746
  };
1746
1747
 
1747
- export { ActionCard, Announcement, AppLanding, AppLayout, AppSidebar, ArrowCarousel, BackToTop, Box, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, ChargeWalletForm, CheckEmail, CheckoutForm, CodeConfirmation, ComparingPlans, ConfirmationPage, CreditCardForm, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DragDropImages, DraggableCard, DropdownMenu, EmptyState, FloatingComment, FloatingCommentExec, FloatingCommentSlate, Footer, HawaAccordion, HawaAdCard, HawaAlert, HawaAppLayout, HawaAppLayoutSimplified, HawaBanner, HawaBottomAppBar, HawaButton, HawaCheckbox, HawaChip, HawaCodeBlock, HawaColorPicker, HawaContainer, HawaCopyrights, HawaDatepicker, HawaGrid, HawaIconCount, HawaInlineCode, HawaItemCard, HawaLandingCard, HawaLoading, HawaMenu, HawaModal, HawaPanelTabs, HawaPhoneInput, HawaPinInput, HawaPricingCard, HawaRadio, HawaRange, HawaSearchBar, HawaSelect, HawaSettingsRow, HawaSiteLayout, HawaStats, HawaStepper, HawaStoreButtons, HawaTable, HawaTabs, HawaTextField, HawaTypography, HorizontalPricing, Icons, Input, InputProps, InterfaceSettings, InvoiceAccordion, Label, LeadGenerator, MenuItemType, NewPasswordForm, NoPermission, NotFound, PayWithWallet, Popover, PricingPlans, ReferralAccount, ReferralSettlement, ReferralStats, ResetPasswordForm, SelectPayment, Separator, SidebarGroup, SidebarItem, SignInBlock, SignInForm, SignInPhone, SignUpForm, Skeleton, StickyFeatures, SubItem$2 as SubItem, SubsectionList, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Timeline, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, UsageCard, UserFeedback, UserProfileForm, UserReferralSource, UserSettingsForm, buttonVariants, reducer, toast, useToast };
1748
+ declare function useClipboard({ timeout }?: {
1749
+ timeout?: number;
1750
+ }): {
1751
+ copy: (valueToCopy: any) => void;
1752
+ reset: () => void;
1753
+ error: Error;
1754
+ copied: boolean;
1755
+ };
1756
+
1757
+ interface UseFocusWithinOptions {
1758
+ onFocus?(event: FocusEvent): void;
1759
+ onBlur?(event: FocusEvent): void;
1760
+ }
1761
+ declare function useFocusWithin<T extends HTMLElement = any>({ onBlur, onFocus, }?: UseFocusWithinOptions): {
1762
+ ref: React.MutableRefObject<T>;
1763
+ focused: boolean;
1764
+ };
1765
+
1766
+ interface UseMediaQueryOptions {
1767
+ getInitialValueInEffect: boolean;
1768
+ }
1769
+ declare function useMediaQuery(query: string, initialValue?: boolean, { getInitialValueInEffect }?: UseMediaQueryOptions): boolean;
1770
+
1771
+ declare function useTabs(initialTab?: string): {
1772
+ activeTab: string;
1773
+ handleTabChange: (index: any) => void;
1774
+ };
1775
+
1776
+ declare function useWindowEvent<K extends string = keyof WindowEventMap>(type: K, listener: K extends keyof WindowEventMap ? (this: Window, ev: WindowEventMap[K]) => void : (this: Window, ev: CustomEvent) => void, options?: boolean | AddEventListenerOptions): void;
1777
+
1778
+ interface ScrollPosition {
1779
+ x: number;
1780
+ y: number;
1781
+ }
1782
+ declare function scrollTo({ x, y }: Partial<ScrollPosition>): void;
1783
+ declare function useWindowScroll(): readonly [ScrollPosition, typeof scrollTo];
1784
+
1785
+ export { ActionCard, Announcement, AppLanding, AppLayout, AppSidebar, ArrowCarousel, BackToTop, Box, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, ChargeWalletForm, CheckEmail, CheckoutForm, CodeConfirmation, ComparingPlans, ConfirmationPage, CreditCardForm, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DragDropImages, DraggableCard, DropdownMenu, EmptyState, FloatingComment, FloatingCommentExec, FloatingCommentSlate, Footer, HawaAccordion, HawaAdCard, HawaAlert, HawaAppLayout, HawaAppLayoutSimplified, HawaBanner, HawaBottomAppBar, HawaButton, HawaCheckbox, HawaChip, HawaCodeBlock, HawaColorPicker, HawaContainer, HawaCopyrights, HawaDatepicker, HawaGrid, HawaIconCount, HawaInlineCode, HawaItemCard, HawaLandingCard, HawaLoading, HawaMenu, HawaModal, HawaPanelTabs, HawaPhoneInput, HawaPinInput, HawaPricingCard, HawaRadio, HawaRange, HawaSearchBar, HawaSelect, HawaSettingsRow, HawaSiteLayout, HawaStats, HawaStepper, HawaStoreButtons, HawaTable, HawaTabs, HawaTextField, HawaTypography, HorizontalPricing, Icons, Input, InputProps, InterfaceSettings, InvoiceAccordion, Label, LeadGenerator, MenuItemType, NewPasswordForm, NoPermission, NotFound, PayWithWallet, Popover, PricingPlans, ReferralAccount, ReferralSettlement, ReferralStats, ResetPasswordForm, SelectPayment, Separator, SidebarGroup, SidebarItem, SignInBlock, SignInForm, SignInPhone, SignUpForm, Skeleton, StickyFeatures, SubItem$2 as SubItem, SubsectionList, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Timeline, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, UsageCard, UseFocusWithinOptions, UseMediaQueryOptions, UserFeedback, UserProfileForm, UserReferralSource, UserSettingsForm, buttonVariants, reducer, toast, useClipboard, useFocusWithin, useMediaQuery, useTabs, useToast, useWindowEvent, useWindowScroll };
package/dist/index.d.ts CHANGED
@@ -778,25 +778,25 @@ type ComponentTypes = {
778
778
  };
779
779
  declare const UserReferralSource: FC<ComponentTypes>;
780
780
 
781
- type IconProps = React.HTMLAttributes<SVGElement>;
781
+ type IconProps = React__default.HTMLAttributes<SVGElement>;
782
782
  declare const Icons: {
783
- logo: (props: IconProps) => React$1.JSX.Element;
784
- mail: (props: IconProps) => React$1.JSX.Element;
785
- phone: (props: IconProps) => React$1.JSX.Element;
786
- twitter: (props: IconProps) => React$1.JSX.Element;
787
- microsoft: (props: IconProps) => React$1.JSX.Element;
788
- gitHub: (props: IconProps) => React$1.JSX.Element;
789
- radix: (props: IconProps) => React$1.JSX.Element;
790
- aria: (props: IconProps) => React$1.JSX.Element;
791
- npm: (props: IconProps) => React$1.JSX.Element;
792
- yarn: (props: IconProps) => React$1.JSX.Element;
793
- pnpm: (props: IconProps) => React$1.JSX.Element;
794
- react: (props: IconProps) => React$1.JSX.Element;
795
- tailwind: (props: IconProps) => React$1.JSX.Element;
796
- google: (props: IconProps) => React$1.JSX.Element;
797
- apple: (props: IconProps) => React$1.JSX.Element;
798
- paypal: (props: IconProps) => React$1.JSX.Element;
799
- spinner: (props: IconProps) => React$1.JSX.Element;
783
+ logo: (props: IconProps) => React__default.JSX.Element;
784
+ mail: (props: IconProps) => React__default.JSX.Element;
785
+ phone: (props: IconProps) => React__default.JSX.Element;
786
+ twitter: (props: IconProps) => React__default.JSX.Element;
787
+ microsoft: (props: IconProps) => React__default.JSX.Element;
788
+ gitHub: (props: IconProps) => React__default.JSX.Element;
789
+ radix: (props: IconProps) => React__default.JSX.Element;
790
+ aria: (props: IconProps) => React__default.JSX.Element;
791
+ npm: (props: IconProps) => React__default.JSX.Element;
792
+ yarn: (props: IconProps) => React__default.JSX.Element;
793
+ pnpm: (props: IconProps) => React__default.JSX.Element;
794
+ react: (props: IconProps) => React__default.JSX.Element;
795
+ tailwind: (props: IconProps) => React__default.JSX.Element;
796
+ google: (props: IconProps) => React__default.JSX.Element;
797
+ apple: (props: IconProps) => React__default.JSX.Element;
798
+ paypal: (props: IconProps) => React__default.JSX.Element;
799
+ spinner: (props: IconProps) => React__default.JSX.Element;
800
800
  };
801
801
 
802
802
  declare const buttonVariants: (props?: {
@@ -969,6 +969,7 @@ type AppLayoutTypes = {
969
969
  profileMenuWidth: "default" | "sm" | "lg" | "parent";
970
970
  onSettingsClick?: () => void;
971
971
  onDrawerExpand?: (e: any) => void;
972
+ keepDrawerOpen?: boolean;
972
973
  DrawerFooterActions?: any;
973
974
  clickedItem?: any;
974
975
  texts?: {
@@ -1744,4 +1745,41 @@ declare function useToast(): {
1744
1745
  toasts: ToasterToast[];
1745
1746
  };
1746
1747
 
1747
- export { ActionCard, Announcement, AppLanding, AppLayout, AppSidebar, ArrowCarousel, BackToTop, Box, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, ChargeWalletForm, CheckEmail, CheckoutForm, CodeConfirmation, ComparingPlans, ConfirmationPage, CreditCardForm, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DragDropImages, DraggableCard, DropdownMenu, EmptyState, FloatingComment, FloatingCommentExec, FloatingCommentSlate, Footer, HawaAccordion, HawaAdCard, HawaAlert, HawaAppLayout, HawaAppLayoutSimplified, HawaBanner, HawaBottomAppBar, HawaButton, HawaCheckbox, HawaChip, HawaCodeBlock, HawaColorPicker, HawaContainer, HawaCopyrights, HawaDatepicker, HawaGrid, HawaIconCount, HawaInlineCode, HawaItemCard, HawaLandingCard, HawaLoading, HawaMenu, HawaModal, HawaPanelTabs, HawaPhoneInput, HawaPinInput, HawaPricingCard, HawaRadio, HawaRange, HawaSearchBar, HawaSelect, HawaSettingsRow, HawaSiteLayout, HawaStats, HawaStepper, HawaStoreButtons, HawaTable, HawaTabs, HawaTextField, HawaTypography, HorizontalPricing, Icons, Input, InputProps, InterfaceSettings, InvoiceAccordion, Label, LeadGenerator, MenuItemType, NewPasswordForm, NoPermission, NotFound, PayWithWallet, Popover, PricingPlans, ReferralAccount, ReferralSettlement, ReferralStats, ResetPasswordForm, SelectPayment, Separator, SidebarGroup, SidebarItem, SignInBlock, SignInForm, SignInPhone, SignUpForm, Skeleton, StickyFeatures, SubItem$2 as SubItem, SubsectionList, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Timeline, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, UsageCard, UserFeedback, UserProfileForm, UserReferralSource, UserSettingsForm, buttonVariants, reducer, toast, useToast };
1748
+ declare function useClipboard({ timeout }?: {
1749
+ timeout?: number;
1750
+ }): {
1751
+ copy: (valueToCopy: any) => void;
1752
+ reset: () => void;
1753
+ error: Error;
1754
+ copied: boolean;
1755
+ };
1756
+
1757
+ interface UseFocusWithinOptions {
1758
+ onFocus?(event: FocusEvent): void;
1759
+ onBlur?(event: FocusEvent): void;
1760
+ }
1761
+ declare function useFocusWithin<T extends HTMLElement = any>({ onBlur, onFocus, }?: UseFocusWithinOptions): {
1762
+ ref: React.MutableRefObject<T>;
1763
+ focused: boolean;
1764
+ };
1765
+
1766
+ interface UseMediaQueryOptions {
1767
+ getInitialValueInEffect: boolean;
1768
+ }
1769
+ declare function useMediaQuery(query: string, initialValue?: boolean, { getInitialValueInEffect }?: UseMediaQueryOptions): boolean;
1770
+
1771
+ declare function useTabs(initialTab?: string): {
1772
+ activeTab: string;
1773
+ handleTabChange: (index: any) => void;
1774
+ };
1775
+
1776
+ declare function useWindowEvent<K extends string = keyof WindowEventMap>(type: K, listener: K extends keyof WindowEventMap ? (this: Window, ev: WindowEventMap[K]) => void : (this: Window, ev: CustomEvent) => void, options?: boolean | AddEventListenerOptions): void;
1777
+
1778
+ interface ScrollPosition {
1779
+ x: number;
1780
+ y: number;
1781
+ }
1782
+ declare function scrollTo({ x, y }: Partial<ScrollPosition>): void;
1783
+ declare function useWindowScroll(): readonly [ScrollPosition, typeof scrollTo];
1784
+
1785
+ export { ActionCard, Announcement, AppLanding, AppLayout, AppSidebar, ArrowCarousel, BackToTop, Box, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, ChargeWalletForm, CheckEmail, CheckoutForm, CodeConfirmation, ComparingPlans, ConfirmationPage, CreditCardForm, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DragDropImages, DraggableCard, DropdownMenu, EmptyState, FloatingComment, FloatingCommentExec, FloatingCommentSlate, Footer, HawaAccordion, HawaAdCard, HawaAlert, HawaAppLayout, HawaAppLayoutSimplified, HawaBanner, HawaBottomAppBar, HawaButton, HawaCheckbox, HawaChip, HawaCodeBlock, HawaColorPicker, HawaContainer, HawaCopyrights, HawaDatepicker, HawaGrid, HawaIconCount, HawaInlineCode, HawaItemCard, HawaLandingCard, HawaLoading, HawaMenu, HawaModal, HawaPanelTabs, HawaPhoneInput, HawaPinInput, HawaPricingCard, HawaRadio, HawaRange, HawaSearchBar, HawaSelect, HawaSettingsRow, HawaSiteLayout, HawaStats, HawaStepper, HawaStoreButtons, HawaTable, HawaTabs, HawaTextField, HawaTypography, HorizontalPricing, Icons, Input, InputProps, InterfaceSettings, InvoiceAccordion, Label, LeadGenerator, MenuItemType, NewPasswordForm, NoPermission, NotFound, PayWithWallet, Popover, PricingPlans, ReferralAccount, ReferralSettlement, ReferralStats, ResetPasswordForm, SelectPayment, Separator, SidebarGroup, SidebarItem, SignInBlock, SignInForm, SignInPhone, SignUpForm, Skeleton, StickyFeatures, SubItem$2 as SubItem, SubsectionList, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Timeline, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, UsageCard, UseFocusWithinOptions, UseMediaQueryOptions, UserFeedback, UserProfileForm, UserReferralSource, UserSettingsForm, buttonVariants, reducer, toast, useClipboard, useFocusWithin, useMediaQuery, useTabs, useToast, useWindowEvent, useWindowScroll };