@sikka/hawa 0.11.1-next → 0.11.4-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/dist/index.css +8 -0
- package/dist/index.d.mts +12 -29
- package/dist/index.d.ts +12 -29
- package/dist/index.js +171 -252
- package/dist/index.mjs +441 -493
- package/package.json +1 -2
package/dist/index.css
CHANGED
|
@@ -877,6 +877,14 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
877
877
|
margin-left: -0.25rem;
|
|
878
878
|
margin-right: -0.25rem;
|
|
879
879
|
}
|
|
880
|
+
.hawa-mx-0 {
|
|
881
|
+
margin-left: 0px;
|
|
882
|
+
margin-right: 0px;
|
|
883
|
+
}
|
|
884
|
+
.hawa-mx-0\.5 {
|
|
885
|
+
margin-left: 0.125rem;
|
|
886
|
+
margin-right: 0.125rem;
|
|
887
|
+
}
|
|
880
888
|
.hawa-mx-1 {
|
|
881
889
|
margin-left: 0.25rem;
|
|
882
890
|
margin-right: 0.25rem;
|
package/dist/index.d.mts
CHANGED
|
@@ -8,7 +8,6 @@ import { DialogProps } from '@radix-ui/react-dialog';
|
|
|
8
8
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
9
9
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
10
10
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
11
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
12
11
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
13
12
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
14
13
|
import { RowData, ColumnDef } from '@tanstack/react-table';
|
|
@@ -17,9 +16,6 @@ import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
|
17
16
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
18
17
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
19
18
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
20
|
-
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
21
|
-
import * as react_hook_form from 'react-hook-form';
|
|
22
|
-
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
23
19
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
24
20
|
|
|
25
21
|
type ImageCardTypes = {
|
|
@@ -295,6 +291,7 @@ type RadioTypes = {
|
|
|
295
291
|
onChangeTab?: any;
|
|
296
292
|
defaultValue?: any;
|
|
297
293
|
direction?: "rtl" | "ltr";
|
|
294
|
+
helperText?: string;
|
|
298
295
|
};
|
|
299
296
|
declare const Radio: FC<RadioTypes>;
|
|
300
297
|
|
|
@@ -321,9 +318,10 @@ type TChipTypes = {
|
|
|
321
318
|
};
|
|
322
319
|
declare const Chip: FC<TChipTypes>;
|
|
323
320
|
|
|
324
|
-
declare const Label: React$1.ForwardRefExoticComponent<
|
|
321
|
+
declare const Label: React$1.ForwardRefExoticComponent<React$1.LabelHTMLAttributes<HTMLLabelElement> & {
|
|
325
322
|
hint?: React$1.ReactNode;
|
|
326
323
|
hintSide?: "top" | "right" | "bottom" | "left" | undefined;
|
|
324
|
+
required?: boolean | undefined;
|
|
327
325
|
} & React$1.RefAttributes<HTMLLabelElement>>;
|
|
328
326
|
|
|
329
327
|
type AlertTypes = {
|
|
@@ -569,6 +567,8 @@ type TextFieldTypes = React__default.InputHTMLAttributes<HTMLInputElement> & {
|
|
|
569
567
|
/** Boolean to enable/disable editing the input field and using it as a text field */
|
|
570
568
|
preview?: boolean;
|
|
571
569
|
iconInside?: React__default.ReactNode;
|
|
570
|
+
/** If true, it will show a red asterisk next to the label*/
|
|
571
|
+
isRequired?: boolean;
|
|
572
572
|
};
|
|
573
573
|
declare const Input: FC<TextFieldTypes>;
|
|
574
574
|
|
|
@@ -714,25 +714,6 @@ type IconCountTypes = {
|
|
|
714
714
|
};
|
|
715
715
|
declare const Count: FC<IconCountTypes>;
|
|
716
716
|
|
|
717
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
718
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React$1.JSX.Element;
|
|
719
|
-
declare const useFormField: () => {
|
|
720
|
-
invalid: boolean;
|
|
721
|
-
isDirty: boolean;
|
|
722
|
-
isTouched: boolean;
|
|
723
|
-
error?: react_hook_form.FieldError | undefined;
|
|
724
|
-
id: string;
|
|
725
|
-
name: string;
|
|
726
|
-
formItemId: string;
|
|
727
|
-
formDescriptionId: string;
|
|
728
|
-
formMessageId: string;
|
|
729
|
-
};
|
|
730
|
-
declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
731
|
-
declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
732
|
-
declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
733
|
-
declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
734
|
-
declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
735
|
-
|
|
736
717
|
type TypographyTypes = {
|
|
737
718
|
handleLanguage: (e: any) => void;
|
|
738
719
|
currentLanguage: any;
|
|
@@ -1211,12 +1192,14 @@ type ComponentTypes$2 = {
|
|
|
1211
1192
|
description?: string;
|
|
1212
1193
|
tag?: any;
|
|
1213
1194
|
options?: RadioOptionsTypes[];
|
|
1214
|
-
texts?: {
|
|
1215
|
-
least: string;
|
|
1216
|
-
most: string;
|
|
1217
|
-
};
|
|
1218
1195
|
position?: "bottom-right" | "bottom-left";
|
|
1219
1196
|
onOptionClicked?: (option: any) => void;
|
|
1197
|
+
direction?: "rtl" | "ltr";
|
|
1198
|
+
texts?: {
|
|
1199
|
+
pleaseSelectOption: string;
|
|
1200
|
+
textTooShort: string;
|
|
1201
|
+
submit?: string;
|
|
1202
|
+
};
|
|
1220
1203
|
};
|
|
1221
1204
|
declare const UserReferralSource: FC<ComponentTypes$2>;
|
|
1222
1205
|
|
|
@@ -1527,4 +1510,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1527
1510
|
handleTabChange: (index: any) => void;
|
|
1528
1511
|
};
|
|
1529
1512
|
|
|
1530
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone,
|
|
1513
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, StopPropagationWrapper, SubItem$2 as SubItem, Switch, TChipTypes, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useMediaQuery, useTabs, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ import { DialogProps } from '@radix-ui/react-dialog';
|
|
|
8
8
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
9
9
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
10
10
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
11
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
12
11
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
13
12
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
14
13
|
import { RowData, ColumnDef } from '@tanstack/react-table';
|
|
@@ -17,9 +16,6 @@ import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
|
17
16
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
18
17
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
19
18
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
20
|
-
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
21
|
-
import * as react_hook_form from 'react-hook-form';
|
|
22
|
-
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
23
19
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
24
20
|
|
|
25
21
|
type ImageCardTypes = {
|
|
@@ -295,6 +291,7 @@ type RadioTypes = {
|
|
|
295
291
|
onChangeTab?: any;
|
|
296
292
|
defaultValue?: any;
|
|
297
293
|
direction?: "rtl" | "ltr";
|
|
294
|
+
helperText?: string;
|
|
298
295
|
};
|
|
299
296
|
declare const Radio: FC<RadioTypes>;
|
|
300
297
|
|
|
@@ -321,9 +318,10 @@ type TChipTypes = {
|
|
|
321
318
|
};
|
|
322
319
|
declare const Chip: FC<TChipTypes>;
|
|
323
320
|
|
|
324
|
-
declare const Label: React$1.ForwardRefExoticComponent<
|
|
321
|
+
declare const Label: React$1.ForwardRefExoticComponent<React$1.LabelHTMLAttributes<HTMLLabelElement> & {
|
|
325
322
|
hint?: React$1.ReactNode;
|
|
326
323
|
hintSide?: "top" | "right" | "bottom" | "left" | undefined;
|
|
324
|
+
required?: boolean | undefined;
|
|
327
325
|
} & React$1.RefAttributes<HTMLLabelElement>>;
|
|
328
326
|
|
|
329
327
|
type AlertTypes = {
|
|
@@ -569,6 +567,8 @@ type TextFieldTypes = React__default.InputHTMLAttributes<HTMLInputElement> & {
|
|
|
569
567
|
/** Boolean to enable/disable editing the input field and using it as a text field */
|
|
570
568
|
preview?: boolean;
|
|
571
569
|
iconInside?: React__default.ReactNode;
|
|
570
|
+
/** If true, it will show a red asterisk next to the label*/
|
|
571
|
+
isRequired?: boolean;
|
|
572
572
|
};
|
|
573
573
|
declare const Input: FC<TextFieldTypes>;
|
|
574
574
|
|
|
@@ -714,25 +714,6 @@ type IconCountTypes = {
|
|
|
714
714
|
};
|
|
715
715
|
declare const Count: FC<IconCountTypes>;
|
|
716
716
|
|
|
717
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
718
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React$1.JSX.Element;
|
|
719
|
-
declare const useFormField: () => {
|
|
720
|
-
invalid: boolean;
|
|
721
|
-
isDirty: boolean;
|
|
722
|
-
isTouched: boolean;
|
|
723
|
-
error?: react_hook_form.FieldError | undefined;
|
|
724
|
-
id: string;
|
|
725
|
-
name: string;
|
|
726
|
-
formItemId: string;
|
|
727
|
-
formDescriptionId: string;
|
|
728
|
-
formMessageId: string;
|
|
729
|
-
};
|
|
730
|
-
declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
731
|
-
declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
732
|
-
declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
733
|
-
declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
734
|
-
declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
735
|
-
|
|
736
717
|
type TypographyTypes = {
|
|
737
718
|
handleLanguage: (e: any) => void;
|
|
738
719
|
currentLanguage: any;
|
|
@@ -1211,12 +1192,14 @@ type ComponentTypes$2 = {
|
|
|
1211
1192
|
description?: string;
|
|
1212
1193
|
tag?: any;
|
|
1213
1194
|
options?: RadioOptionsTypes[];
|
|
1214
|
-
texts?: {
|
|
1215
|
-
least: string;
|
|
1216
|
-
most: string;
|
|
1217
|
-
};
|
|
1218
1195
|
position?: "bottom-right" | "bottom-left";
|
|
1219
1196
|
onOptionClicked?: (option: any) => void;
|
|
1197
|
+
direction?: "rtl" | "ltr";
|
|
1198
|
+
texts?: {
|
|
1199
|
+
pleaseSelectOption: string;
|
|
1200
|
+
textTooShort: string;
|
|
1201
|
+
submit?: string;
|
|
1202
|
+
};
|
|
1220
1203
|
};
|
|
1221
1204
|
declare const UserReferralSource: FC<ComponentTypes$2>;
|
|
1222
1205
|
|
|
@@ -1527,4 +1510,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1527
1510
|
handleTabChange: (index: any) => void;
|
|
1528
1511
|
};
|
|
1529
1512
|
|
|
1530
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone,
|
|
1513
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, StopPropagationWrapper, SubItem$2 as SubItem, Switch, TChipTypes, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useMediaQuery, useTabs, useToast, useWindowSize };
|