@sikka/hawa 0.37.1-next → 0.38.0-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.
Files changed (147) hide show
  1. package/dist/{Radio-y9uhxitu.d.ts → Radio-lgoClQrv.d.ts} +2 -2
  2. package/dist/{Radio-BCD7k628.d.mts → Radio-uQ7DtzcI.d.mts} +2 -2
  3. package/dist/alert/index.js.map +1 -1
  4. package/dist/alert/index.mjs.map +1 -1
  5. package/dist/appLayout/index.js.map +1 -1
  6. package/dist/appLayout/index.mjs.map +1 -1
  7. package/dist/backToTop/index.js.map +1 -1
  8. package/dist/backToTop/index.mjs.map +1 -1
  9. package/dist/blocks/auth/index.d.mts +1 -0
  10. package/dist/blocks/auth/index.d.ts +1 -0
  11. package/dist/blocks/auth/index.js +207 -123
  12. package/dist/blocks/auth/index.mjs +204 -101
  13. package/dist/blocks/feedback/index.js +4 -40
  14. package/dist/blocks/feedback/index.mjs +5 -5
  15. package/dist/blocks/index.d.mts +2 -1
  16. package/dist/blocks/index.d.ts +2 -1
  17. package/dist/blocks/index.js +457 -400
  18. package/dist/blocks/index.mjs +10 -8
  19. package/dist/blocks/misc/index.js +5 -32
  20. package/dist/blocks/misc/index.mjs +5 -5
  21. package/dist/blocks/pricing/index.js +4 -22
  22. package/dist/blocks/pricing/index.mjs +4 -4
  23. package/dist/button/index.js.map +1 -1
  24. package/dist/button/index.mjs.map +1 -1
  25. package/dist/calendar/index.js.map +1 -1
  26. package/dist/calendar/index.mjs.map +1 -1
  27. package/dist/checkbox/index.d.mts +1 -1
  28. package/dist/checkbox/index.d.ts +1 -1
  29. package/dist/checkbox/index.js.map +1 -1
  30. package/dist/checkbox/index.mjs.map +1 -1
  31. package/dist/{chunk-BPHQFAWM.mjs → chunk-4EZL2A64.mjs} +3 -11
  32. package/dist/{chunk-DS3AACQJ.mjs → chunk-E6C3LDHD.mjs} +1 -1
  33. package/dist/{chunk-ODOCZAWC.mjs → chunk-E77TUADR.mjs} +1 -1
  34. package/dist/{chunk-QXH7ZDMN.mjs → chunk-IA5FLRFL.mjs} +3 -11
  35. package/dist/{chunk-ZTUWU652.mjs → chunk-JJMRBD3S.mjs} +3 -3
  36. package/dist/{chunk-RNFJAEEU.mjs → chunk-LDJD5ITW.mjs} +1 -0
  37. package/dist/{chunk-QYWOI3DO.mjs → chunk-MHSSZ6XE.mjs} +204 -144
  38. package/dist/{chunk-BTDR3VAG.mjs → chunk-Q3HJI7ZE.mjs} +4 -21
  39. package/dist/{chunk-MDHDHEPZ.mjs → chunk-TMUQCNLO.mjs} +3 -11
  40. package/dist/{chunk-PXGL7ZXQ.mjs → chunk-V4SUYEVH.mjs} +1 -0
  41. package/dist/codeBlock/index.js.map +1 -1
  42. package/dist/codeBlock/index.mjs.map +1 -1
  43. package/dist/colorPicker/index.d.mts +1 -1
  44. package/dist/colorPicker/index.d.ts +1 -1
  45. package/dist/colorPicker/index.js +35 -31
  46. package/dist/colorPicker/index.js.map +1 -1
  47. package/dist/colorPicker/index.mjs +33 -29
  48. package/dist/colorPicker/index.mjs.map +1 -1
  49. package/dist/combobox/index.d.mts +2 -2
  50. package/dist/combobox/index.d.ts +2 -2
  51. package/dist/combobox/index.js +52 -48
  52. package/dist/combobox/index.js.map +1 -1
  53. package/dist/combobox/index.mjs +52 -48
  54. package/dist/combobox/index.mjs.map +1 -1
  55. package/dist/command/index.d.mts +1 -1
  56. package/dist/command/index.d.ts +1 -1
  57. package/dist/command/index.js +26 -4
  58. package/dist/command/index.js.map +1 -1
  59. package/dist/command/index.mjs +26 -4
  60. package/dist/command/index.mjs.map +1 -1
  61. package/dist/dataTable/index.js +1 -10
  62. package/dist/dataTable/index.js.map +1 -1
  63. package/dist/dataTable/index.mjs +1 -10
  64. package/dist/dataTable/index.mjs.map +1 -1
  65. package/dist/datePicker/index.js.map +1 -1
  66. package/dist/datePicker/index.mjs.map +1 -1
  67. package/dist/docsLayout/index.js.map +1 -1
  68. package/dist/docsLayout/index.mjs.map +1 -1
  69. package/dist/elements/index.d.mts +48 -25
  70. package/dist/elements/index.d.ts +48 -25
  71. package/dist/elements/index.js +361 -294
  72. package/dist/elements/index.mjs +40 -27
  73. package/dist/fileDropzone/index.js.map +1 -1
  74. package/dist/fileDropzone/index.mjs.map +1 -1
  75. package/dist/{index-e_Ob_SnB.d.ts → index-B0aJcA6d.d.mts} +6 -4
  76. package/dist/{index-e_Ob_SnB.d.mts → index-B0aJcA6d.d.ts} +6 -4
  77. package/dist/index.css +29 -3
  78. package/dist/index.d.mts +50 -26
  79. package/dist/index.d.ts +50 -26
  80. package/dist/index.js +790 -721
  81. package/dist/index.mjs +313 -248
  82. package/dist/input/index.d.mts +1 -1
  83. package/dist/input/index.d.ts +1 -1
  84. package/dist/input/index.js +46 -42
  85. package/dist/input/index.js.map +1 -1
  86. package/dist/input/index.mjs +45 -41
  87. package/dist/input/index.mjs.map +1 -1
  88. package/dist/interfaceSettings/index.js +64 -69
  89. package/dist/interfaceSettings/index.js.map +1 -1
  90. package/dist/interfaceSettings/index.mjs +57 -62
  91. package/dist/interfaceSettings/index.mjs.map +1 -1
  92. package/dist/layout/index.d.mts +1 -1
  93. package/dist/layout/index.d.ts +1 -1
  94. package/dist/layout/index.mjs +2 -2
  95. package/dist/passwordInput/index.js +70 -66
  96. package/dist/passwordInput/index.js.map +1 -1
  97. package/dist/passwordInput/index.mjs +59 -55
  98. package/dist/passwordInput/index.mjs.map +1 -1
  99. package/dist/phoneInput/index.js +50 -55
  100. package/dist/phoneInput/index.js.map +1 -1
  101. package/dist/phoneInput/index.mjs +47 -52
  102. package/dist/phoneInput/index.mjs.map +1 -1
  103. package/dist/pinInput/index.d.mts +37 -16
  104. package/dist/pinInput/index.d.ts +37 -16
  105. package/dist/pinInput/index.js +208 -78
  106. package/dist/pinInput/index.js.map +1 -1
  107. package/dist/pinInput/index.mjs +203 -77
  108. package/dist/pinInput/index.mjs.map +1 -1
  109. package/dist/radio/index.d.mts +1 -1
  110. package/dist/radio/index.d.ts +1 -1
  111. package/dist/radio/index.js +55 -60
  112. package/dist/radio/index.js.map +1 -1
  113. package/dist/radio/index.mjs +50 -55
  114. package/dist/radio/index.mjs.map +1 -1
  115. package/dist/scrollArea/index.js +2 -2
  116. package/dist/scrollArea/index.js.map +1 -1
  117. package/dist/scrollArea/index.mjs +2 -2
  118. package/dist/scrollArea/index.mjs.map +1 -1
  119. package/dist/select/index.d.mts +1 -1
  120. package/dist/select/index.d.ts +1 -1
  121. package/dist/select/index.js +43 -39
  122. package/dist/select/index.js.map +1 -1
  123. package/dist/select/index.mjs +43 -39
  124. package/dist/select/index.mjs.map +1 -1
  125. package/dist/signature/index.d.mts +1 -1
  126. package/dist/signature/index.d.ts +1 -1
  127. package/dist/signature/index.js.map +1 -1
  128. package/dist/signature/index.mjs.map +1 -1
  129. package/dist/sortButton/index.js.map +1 -1
  130. package/dist/sortButton/index.mjs.map +1 -1
  131. package/dist/splitButton/index.js.map +1 -1
  132. package/dist/splitButton/index.mjs.map +1 -1
  133. package/dist/stats/index.d.mts +1 -1
  134. package/dist/stats/index.d.ts +1 -1
  135. package/dist/stats/index.js.map +1 -1
  136. package/dist/stats/index.mjs.map +1 -1
  137. package/dist/tabs/index.js +2 -2
  138. package/dist/tabs/index.js.map +1 -1
  139. package/dist/tabs/index.mjs +2 -2
  140. package/dist/tabs/index.mjs.map +1 -1
  141. package/dist/textarea/index.d.mts +1 -1
  142. package/dist/textarea/index.d.ts +1 -1
  143. package/dist/textarea/index.js +34 -30
  144. package/dist/textarea/index.js.map +1 -1
  145. package/dist/textarea/index.mjs +34 -30
  146. package/dist/textarea/index.mjs.map +1 -1
  147. package/package.json +3 -2
@@ -11,8 +11,8 @@ import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
11
11
  import * as SheetPrimitive from '@radix-ui/react-dialog';
12
12
  import { DialogProps } from '@radix-ui/react-dialog';
13
13
  import { VariantProps } from 'class-variance-authority';
14
- import { L as LabelProps } from '../Radio-y9uhxitu.js';
15
- export { b as Label, d as PhoneInput, P as PhoneInputProps, a as Radio, R as RadioOptionsTypes, c as Select, S as SelectOptionProps } from '../Radio-y9uhxitu.js';
14
+ import { L as LabelProps } from '../Radio-lgoClQrv.js';
15
+ export { b as Label, d as PhoneInput, P as PhoneInputProps, a as Radio, R as RadioOptionsTypes, c as Select, S as SelectOptionProps } from '../Radio-lgoClQrv.js';
16
16
  import { RowData, ColumnDef } from '@tanstack/react-table';
17
17
  export { ColumnDef } from '@tanstack/react-table';
18
18
  import { Command as Command$1 } from 'cmdk';
@@ -21,6 +21,8 @@ import * as PopoverPrimitive from '@radix-ui/react-popover';
21
21
  import * as SwitchPrimitives from '@radix-ui/react-switch';
22
22
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
23
23
  import * as ProgressPrimitive from '@radix-ui/react-progress';
24
+ import * as input_otp from 'input-otp';
25
+ import { OTPInputProps } from 'input-otp';
24
26
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
25
27
  import * as SliderPrimitive from '@radix-ui/react-slider';
26
28
  import { HighlightProps } from 'prism-react-renderer';
@@ -419,7 +421,7 @@ type FullCommandItem = {
419
421
  heading?: string;
420
422
  items?: {
421
423
  icon: React.ElementType;
422
- text: string;
424
+ label: string | React.ReactNode;
423
425
  action: () => void;
424
426
  shortcut?: string;
425
427
  }[];
@@ -427,17 +429,19 @@ type FullCommandItem = {
427
429
  type FullCommandProps = {
428
430
  items: FullCommandItem[];
429
431
  direction?: DirectionType;
432
+ onActionClick?: () => void;
430
433
  texts?: {
431
434
  searchPlaceholder?: string;
432
435
  emptyText?: string;
433
436
  };
434
437
  };
435
- declare const FullCommand: ({ items, direction, texts }: FullCommandProps) => React.JSX.Element;
438
+ declare const FullCommand: ({ items, direction, texts, onActionClick, }: FullCommandProps) => React.JSX.Element;
436
439
  type AppCommandProps = {
437
- commandProps: FullCommandProps;
440
+ commandProps: Omit<FullCommandProps, "onActionClick">;
438
441
  dialogProps: DialogProps;
442
+ onActionClick?: () => void;
439
443
  };
440
- declare const AppCommand: ({ commandProps, dialogProps }: AppCommandProps) => React.JSX.Element;
444
+ declare const AppCommand: ({ commandProps, dialogProps, onActionClick, }: AppCommandProps) => React.JSX.Element;
441
445
 
442
446
  type ComboboxTypes<T> = {
443
447
  labelKey?: keyof T | any;
@@ -450,7 +454,7 @@ type ComboboxTypes<T> = {
450
454
  searchPlaceholder?: string;
451
455
  };
452
456
  isLoading?: boolean;
453
- helperText?: string;
457
+ helperText?: any;
454
458
  popoverClassName?: string;
455
459
  /** This the same value as the one with the key valueKey */
456
460
  defaultValue?: string;
@@ -471,7 +475,7 @@ type ComboboxTypes<T> = {
471
475
  declare const Combobox: React.ForwardRefExoticComponent<ComboboxTypes<any> & React.RefAttributes<HTMLDivElement>>;
472
476
 
473
477
  interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
474
- helperText?: string;
478
+ helperText?: any;
475
479
  isLoading?: boolean;
476
480
  /** The label of the input field */
477
481
  label?: any;
@@ -644,7 +648,7 @@ type CheckBoxTypes = {
644
648
  id: string;
645
649
  label?: React.ReactNode;
646
650
  sublabel?: React.ReactNode;
647
- helperText?: string;
651
+ helperText?: any;
648
652
  size?: "xs" | "sm" | "default" | "md" | "lg" | "xl";
649
653
  radius?: RadiusType;
650
654
  };
@@ -688,22 +692,41 @@ type BadgeTypes = {
688
692
  declare const Badge: FC<BadgeTypes>;
689
693
  declare const BadgedComponent: ({ children, className, hideBadge, position, size, text }: any) => React__default.JSX.Element;
690
694
 
691
- type PinInputTypes = {
692
- /** Label text to display for the Pin Input */
693
- label?: string;
694
- /** Icon element to be displayed next to the Pin Input */
695
- icon?: JSX.Element;
696
- /** Number of digits in the Pin Input */
697
- digits: number;
698
- /** Width of the Pin Input - either 'normal' or 'full' */
699
- width?: "normal" | "full";
700
- /** Function to get the value of pins */
701
- getPins?: (pins: string[]) => void;
702
- /** The small red text under the input field to show validation or a hint. */
695
+ declare const PinInputRoot: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "noScriptCSSFallback"> & {
696
+ value?: string | undefined;
697
+ onChange?: ((newValue: string) => unknown) | undefined;
698
+ maxLength: number;
699
+ textAlign?: "right" | "left" | "center" | undefined;
700
+ onComplete?: ((...args: any[]) => unknown) | undefined;
701
+ pushPasswordManagerStrategy?: "none" | "increase-width" | undefined;
702
+ containerClassName?: string | undefined;
703
+ noScriptCSSFallback?: string | null | undefined;
704
+ } & {
705
+ render: (props: input_otp.RenderProps) => React.ReactNode;
706
+ children?: undefined;
707
+ } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "noScriptCSSFallback"> & {
708
+ value?: string | undefined;
709
+ onChange?: ((newValue: string) => unknown) | undefined;
710
+ maxLength: number;
711
+ textAlign?: "right" | "left" | "center" | undefined;
712
+ onComplete?: ((...args: any[]) => unknown) | undefined;
713
+ pushPasswordManagerStrategy?: "none" | "increase-width" | undefined;
714
+ containerClassName?: string | undefined;
715
+ noScriptCSSFallback?: string | null | undefined;
716
+ } & {
717
+ render?: undefined;
718
+ children: React.ReactNode;
719
+ } & React.RefAttributes<HTMLInputElement>, "ref">) & React.RefAttributes<HTMLInputElement>>;
720
+ declare const PinInputGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
721
+ declare const PinInputSlot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
722
+ index: number;
723
+ } & React.RefAttributes<HTMLDivElement>>;
724
+ declare const PinInputSeperator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
725
+ type PinInputProps = Omit<OTPInputProps, "render"> & {
726
+ separatorPosition?: number;
703
727
  helperText?: any;
704
- inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
705
728
  };
706
- declare const PinInput: FC<PinInputTypes>;
729
+ declare const PinInput: React.FC<PinInputProps>;
707
730
 
708
731
  declare const StopPropagationWrapper: (props: any) => React__default.JSX.Element;
709
732
 
@@ -717,7 +740,7 @@ type ColorPickerTypes = {
717
740
  id?: string;
718
741
  isLoading?: boolean;
719
742
  labelProps?: LabelProps;
720
- helperText?: string;
743
+ helperText?: any;
721
744
  forceHideHelperText?: boolean;
722
745
  /** Boolean to enable/disable editing the input field and using it as a text field */
723
746
  preview?: boolean;
@@ -913,4 +936,4 @@ type PhoneMockupProps = {
913
936
  };
914
937
  declare const PhoneMockup: React__default.FC<PhoneMockupProps>;
915
938
 
916
- export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, Alert, AppCommand, AppStores, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, type BreadcrumbItemProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, Checkbox, ChipTypes, CodeBlock, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, FileDropzone, FileUploader, FullCommand, type FullCommandItem, Input, InterfaceSettings, LabelProps, Loading, Logos, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneMockup, PinInput, Popover, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger, Progress, ProgressCircle, ScrollArea, ScrollBar, ScrollIndicator, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, StopPropagationWrapper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TextFieldTypes, Textarea, type TextareaProps, Toaster, ToasterToastProps, Tooltip, buttonVariants, navigationMenuTriggerStyle };
939
+ export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, Alert, AppCommand, AppStores, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, type BreadcrumbItemProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, Checkbox, ChipTypes, CodeBlock, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, FileDropzone, FileUploader, FullCommand, type FullCommandItem, Input, InterfaceSettings, LabelProps, Loading, Logos, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneMockup, PinInput, PinInputGroup, PinInputRoot, PinInputSeperator, PinInputSlot, Popover, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger, Progress, ProgressCircle, ScrollArea, ScrollBar, ScrollIndicator, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, StopPropagationWrapper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TextFieldTypes, Textarea, type TextareaProps, Toaster, ToasterToastProps, Tooltip, buttonVariants, navigationMenuTriggerStyle };