@sikka/hawa 0.26.38-next → 0.27.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 (83) hide show
  1. package/dist/accordion/index.js +1 -1
  2. package/dist/accordion/index.js.map +1 -1
  3. package/dist/accordion/index.mjs +1 -1
  4. package/dist/accordion/index.mjs.map +1 -1
  5. package/dist/appLayout/index.js +4 -1
  6. package/dist/appLayout/index.js.map +1 -1
  7. package/dist/appLayout/index.mjs +4 -1
  8. package/dist/appLayout/index.mjs.map +1 -1
  9. package/dist/appTopbar/index.js +4 -1
  10. package/dist/appTopbar/index.js.map +1 -1
  11. package/dist/appTopbar/index.mjs +4 -1
  12. package/dist/appTopbar/index.mjs.map +1 -1
  13. package/dist/blocks/auth/index.d.mts +13 -2
  14. package/dist/blocks/auth/index.d.ts +13 -2
  15. package/dist/blocks/auth/index.js +6 -3
  16. package/dist/blocks/auth/index.mjs +7 -5
  17. package/dist/blocks/feedback/index.d.mts +3 -4
  18. package/dist/blocks/feedback/index.d.ts +3 -4
  19. package/dist/blocks/feedback/index.mjs +1 -2
  20. package/dist/blocks/index.d.mts +15 -1
  21. package/dist/blocks/index.d.ts +15 -1
  22. package/dist/blocks/index.js +84 -12
  23. package/dist/blocks/index.mjs +82 -13
  24. package/dist/blocks/misc/index.d.mts +14 -4
  25. package/dist/blocks/misc/index.d.ts +14 -4
  26. package/dist/blocks/misc/index.js +246 -26
  27. package/dist/blocks/misc/index.mjs +77 -9
  28. package/dist/blocks/pricing/index.d.mts +1 -2
  29. package/dist/blocks/pricing/index.d.ts +1 -2
  30. package/dist/{chunk-D3KUSRHL.mjs → chunk-3MC4JLSW.mjs} +4 -1
  31. package/dist/{chunk-AXTPTA3S.mjs → chunk-BOVZAUWD.mjs} +1 -1
  32. package/dist/{chunk-VCCUBQFI.mjs → chunk-U7BFMH2T.mjs} +1 -1
  33. package/dist/codeBlock/index.d.mts +12 -2
  34. package/dist/codeBlock/index.d.ts +12 -2
  35. package/dist/codeBlock/index.js +72 -44
  36. package/dist/codeBlock/index.js.map +1 -1
  37. package/dist/codeBlock/index.mjs +73 -49
  38. package/dist/codeBlock/index.mjs.map +1 -1
  39. package/dist/combobox/index.js.map +1 -1
  40. package/dist/combobox/index.mjs.map +1 -1
  41. package/dist/command/index.d.mts +24 -37
  42. package/dist/command/index.d.ts +24 -37
  43. package/dist/command/index.js +3 -1
  44. package/dist/command/index.js.map +1 -1
  45. package/dist/command/index.mjs +3 -1
  46. package/dist/command/index.mjs.map +1 -1
  47. package/dist/dataTable/index.js +4 -1
  48. package/dist/dataTable/index.js.map +1 -1
  49. package/dist/dataTable/index.mjs +4 -1
  50. package/dist/dataTable/index.mjs.map +1 -1
  51. package/dist/dropdownMenu/index.js +4 -1
  52. package/dist/dropdownMenu/index.js.map +1 -1
  53. package/dist/dropdownMenu/index.mjs +4 -1
  54. package/dist/dropdownMenu/index.mjs.map +1 -1
  55. package/dist/elements/index.d.mts +67 -40
  56. package/dist/elements/index.d.ts +67 -40
  57. package/dist/elements/index.js +77 -46
  58. package/dist/elements/index.mjs +80 -56
  59. package/dist/index.css +30 -11
  60. package/dist/index.d.mts +81 -40
  61. package/dist/index.d.ts +81 -40
  62. package/dist/index.js +157 -57
  63. package/dist/index.mjs +196 -100
  64. package/dist/input/index.d.mts +31 -1
  65. package/dist/input/index.d.ts +31 -1
  66. package/dist/input/index.js.map +1 -1
  67. package/dist/input/index.mjs.map +1 -1
  68. package/dist/layout/index.js +4 -1
  69. package/dist/layout/index.mjs +2 -2
  70. package/dist/passwordInput/index.js.map +1 -1
  71. package/dist/passwordInput/index.mjs.map +1 -1
  72. package/dist/splitButton/index.js +4 -1
  73. package/dist/splitButton/index.js.map +1 -1
  74. package/dist/splitButton/index.mjs +4 -1
  75. package/dist/splitButton/index.mjs.map +1 -1
  76. package/dist/{textTypes-559CaoOV.d.mts → textTypes-u4OSE-rn.d.mts} +8 -1
  77. package/dist/{textTypes-559CaoOV.d.ts → textTypes-u4OSE-rn.d.ts} +8 -1
  78. package/package.json +8 -8
  79. package/README.md +0 -91
  80. package/dist/chunk-WUHNPHD5.mjs +0 -0
  81. package/dist/commonTypes-MxCJyrHv.d.mts +0 -8
  82. package/dist/commonTypes-MxCJyrHv.d.ts +0 -8
  83. /package/dist/{chunk-DUHB245X.mjs → chunk-LKPRTTIX.mjs} +0 -0
package/dist/index.css CHANGED
@@ -1028,6 +1028,12 @@ input[type="number"]::-webkit-inner-spin-button,
1028
1028
  .hawa-right-2\.5 {
1029
1029
  right: 0.625rem;
1030
1030
  }
1031
+ .hawa-right-3 {
1032
+ right: 0.75rem;
1033
+ }
1034
+ .hawa-right-3\.5 {
1035
+ right: 0.875rem;
1036
+ }
1031
1037
  .hawa-right-4 {
1032
1038
  right: 1rem;
1033
1039
  }
@@ -1046,6 +1052,9 @@ input[type="number"]::-webkit-inner-spin-button,
1046
1052
  .hawa-top-1\/2 {
1047
1053
  top: 50%;
1048
1054
  }
1055
+ .hawa-top-11 {
1056
+ top: 2.75rem;
1057
+ }
1049
1058
  .hawa-top-14 {
1050
1059
  top: 3.5rem;
1051
1060
  }
@@ -1055,6 +1064,12 @@ input[type="number"]::-webkit-inner-spin-button,
1055
1064
  .hawa-top-2\.5 {
1056
1065
  top: 0.625rem;
1057
1066
  }
1067
+ .hawa-top-3 {
1068
+ top: 0.75rem;
1069
+ }
1070
+ .hawa-top-3\.5 {
1071
+ top: 0.875rem;
1072
+ }
1058
1073
  .hawa-top-4 {
1059
1074
  top: 1rem;
1060
1075
  }
@@ -1070,6 +1085,9 @@ input[type="number"]::-webkit-inner-spin-button,
1070
1085
  .hawa-top-\[50\%\] {
1071
1086
  top: 50%;
1072
1087
  }
1088
+ .hawa-top-\[50px\] {
1089
+ top: 50px;
1090
+ }
1073
1091
  .hawa-top-\[60\%\] {
1074
1092
  top: 60%;
1075
1093
  }
@@ -1082,6 +1100,9 @@ input[type="number"]::-webkit-inner-spin-button,
1082
1100
  .hawa-top-\[72px\] {
1083
1101
  top: 72px;
1084
1102
  }
1103
+ .hawa-top-\[80px\] {
1104
+ top: 80px;
1105
+ }
1085
1106
  .hawa-top-full {
1086
1107
  top: 100%;
1087
1108
  }
@@ -1439,6 +1460,9 @@ input[type="number"]::-webkit-inner-spin-button,
1439
1460
  .hawa-max-h-screen {
1440
1461
  max-height: 100vh;
1441
1462
  }
1463
+ .hawa-min-h-20 {
1464
+ min-height: 5rem;
1465
+ }
1442
1466
  .hawa-min-h-\[25px\] {
1443
1467
  min-height: 25px;
1444
1468
  }
@@ -1936,6 +1960,9 @@ input[type="number"]::-webkit-inner-spin-button,
1936
1960
  .hawa-whitespace-nowrap {
1937
1961
  white-space: nowrap;
1938
1962
  }
1963
+ .hawa-text-wrap {
1964
+ text-wrap: wrap;
1965
+ }
1939
1966
  .hawa-rounded {
1940
1967
  border-radius: var(--radius);
1941
1968
  }
@@ -2106,9 +2133,6 @@ input[type="number"]::-webkit-inner-spin-button,
2106
2133
  .hawa-bg-background {
2107
2134
  background-color: hsl(var(--background));
2108
2135
  }
2109
- .hawa-bg-background\/70 {
2110
- background-color: hsl(var(--background) / 0.7);
2111
- }
2112
2136
  .hawa-bg-background\/80 {
2113
2137
  background-color: hsl(var(--background) / 0.8);
2114
2138
  }
@@ -2156,10 +2180,6 @@ input[type="number"]::-webkit-inner-spin-button,
2156
2180
  --tw-bg-opacity: 1;
2157
2181
  background-color: rgb(229 231 235 / var(--tw-bg-opacity));
2158
2182
  }
2159
- .hawa-bg-gray-300 {
2160
- --tw-bg-opacity: 1;
2161
- background-color: rgb(209 213 219 / var(--tw-bg-opacity));
2162
- }
2163
2183
  .hawa-bg-gray-400 {
2164
2184
  --tw-bg-opacity: 1;
2165
2185
  background-color: rgb(156 163 175 / var(--tw-bg-opacity));
@@ -2492,6 +2512,9 @@ input[type="number"]::-webkit-inner-spin-button,
2492
2512
  padding-top: 1.5rem;
2493
2513
  padding-bottom: 1.5rem;
2494
2514
  }
2515
+ .\!hawa-pe-12 {
2516
+ padding-inline-end: 3rem !important;
2517
+ }
2495
2518
  .hawa-pb-0 {
2496
2519
  padding-bottom: 0px;
2497
2520
  }
@@ -3824,10 +3847,6 @@ body {
3824
3847
  --tw-bg-opacity: 1;
3825
3848
  background-color: rgb(248 113 113 / var(--tw-bg-opacity));
3826
3849
  }
3827
- :is(.hawa-dark .dark\:hawa-bg-red-600) {
3828
- --tw-bg-opacity: 1;
3829
- background-color: rgb(220 38 38 / var(--tw-bg-opacity));
3830
- }
3831
3850
  :is(.hawa-dark .dark\:hawa-bg-white) {
3832
3851
  --tw-bg-opacity: 1;
3833
3852
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
package/dist/index.d.mts CHANGED
@@ -11,6 +11,7 @@ import { VariantProps } from 'class-variance-authority';
11
11
  import { RowData, ColumnDef } from '@tanstack/react-table';
12
12
  export { ColumnDef } from '@tanstack/react-table';
13
13
  import * as TabsPrimitive from '@radix-ui/react-tabs';
14
+ import { Command as Command$1 } from 'cmdk';
14
15
  import * as PopoverPrimitive from '@radix-ui/react-popover';
15
16
  import * as SwitchPrimitives from '@radix-ui/react-switch';
16
17
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
@@ -612,6 +613,36 @@ declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.
612
613
  } & React$1.RefAttributes<HTMLButtonElement>>;
613
614
  declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
614
615
 
616
+ type TextFieldTypes = React__default.InputHTMLAttributes<HTMLInputElement> & {
617
+ isLoading?: boolean;
618
+ containerClassName?: string;
619
+ margin?: "none" | "normal" | "large";
620
+ width?: "small" | "normal" | "full" | "auto";
621
+ /** The label of the input field */
622
+ label?: any;
623
+ labelProps?: LabelProps;
624
+ hideSeparator?: boolean;
625
+ /** The small red text under the input field to show validation. */
626
+ helperText?: any;
627
+ forceHideHelperText?: boolean;
628
+ inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
629
+ /** The icon inside the input field */
630
+ icon?: any;
631
+ /** Boolean to enable/disable editing the input field and using it as a text field */
632
+ preview?: boolean;
633
+ iconInside?: React__default.ReactNode;
634
+ endIcon?: React__default.ReactNode;
635
+ endIconProps?: {
636
+ className?: string;
637
+ };
638
+ startIcon?: React__default.ReactNode;
639
+ placeholder?: React__default.ReactNode;
640
+ /** Show the count of characters left in the input field. Works along with maxLength prop. */
641
+ showCount?: boolean;
642
+ countPosition?: "top" | "bottom" | "center";
643
+ popup?: boolean;
644
+ popupContent?: React__default.ReactNode;
645
+ };
615
646
  declare const Input: React__default.ForwardRefExoticComponent<React__default.InputHTMLAttributes<HTMLInputElement> & {
616
647
  isLoading?: boolean | undefined;
617
648
  containerClassName?: string | undefined;
@@ -643,47 +674,33 @@ declare const Input: React__default.ForwardRefExoticComponent<React__default.Inp
643
674
  popupContent?: React__default.ReactNode;
644
675
  } & React__default.RefAttributes<HTMLInputElement>>;
645
676
 
646
- declare const Command: React$1.ForwardRefExoticComponent<Omit<{
647
- children?: React$1.ReactNode;
648
- } & React$1.HTMLAttributes<HTMLDivElement> & {
649
- label?: string | undefined;
650
- shouldFilter?: boolean | undefined;
651
- filter?: ((value: string, search: string) => number) | undefined;
652
- value?: string | undefined;
653
- onValueChange?: ((value: string) => void) | undefined;
654
- loop?: boolean | undefined;
655
- } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
677
+ type CommandProps = React$1.ComponentPropsWithoutRef<typeof Command$1>;
656
678
  interface CommandDialogProps extends DialogProps {
657
679
  }
680
+ interface CommandInputProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.Input> {
681
+ }
682
+ interface CommandListProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.List> {
683
+ }
684
+ interface CommandEmptyProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.Empty> {
685
+ }
686
+ interface CommandGroupProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.Group> {
687
+ }
688
+ interface CommandSeparatorProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.Separator> {
689
+ }
690
+ interface CommandItemProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.Item> {
691
+ }
692
+ interface CommandShortcutProps extends React$1.HTMLAttributes<HTMLSpanElement> {
693
+ }
694
+ declare const Command: React$1.ForwardRefExoticComponent<CommandProps & React$1.RefAttributes<React$1.ElementRef<typeof Command$1>>>;
658
695
  declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => React$1.JSX.Element;
659
- declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "type" | "value"> & {
660
- value?: string | undefined;
661
- onValueChange?: ((search: string) => void) | undefined;
662
- } & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
663
- declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
664
- children?: React$1.ReactNode;
665
- } & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
666
- declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
667
- children?: React$1.ReactNode;
668
- } & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
669
- declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
670
- children?: React$1.ReactNode;
671
- } & Omit<React$1.HTMLAttributes<HTMLDivElement>, "heading" | "value"> & {
672
- heading?: React$1.ReactNode;
673
- value?: string | undefined;
674
- } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
675
- declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement> & {
676
- alwaysRender?: boolean | undefined;
677
- } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
678
- declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
679
- children?: React$1.ReactNode;
680
- } & Omit<React$1.HTMLAttributes<HTMLDivElement>, "onSelect" | "disabled" | "value"> & {
681
- disabled?: boolean | undefined;
682
- onSelect?: ((value: string) => void) | undefined;
683
- value?: string | undefined;
684
- } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
696
+ declare const CommandInput: React$1.ForwardRefExoticComponent<CommandInputProps & React$1.RefAttributes<HTMLInputElement>>;
697
+ declare const CommandList: React$1.ForwardRefExoticComponent<CommandListProps & React$1.RefAttributes<HTMLDivElement>>;
698
+ declare const CommandEmpty: React$1.ForwardRefExoticComponent<CommandEmptyProps & React$1.RefAttributes<HTMLDivElement>>;
699
+ declare const CommandGroup: React$1.ForwardRefExoticComponent<CommandGroupProps & React$1.RefAttributes<HTMLDivElement>>;
700
+ declare const CommandSeparator: React$1.ForwardRefExoticComponent<CommandSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
701
+ declare const CommandItem: React$1.ForwardRefExoticComponent<CommandItemProps & React$1.RefAttributes<HTMLDivElement>>;
685
702
  declare const CommandShortcut: {
686
- ({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): React$1.JSX.Element;
703
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement> & CommandShortcutProps): React$1.JSX.Element;
687
704
  displayName: string;
688
705
  };
689
706
 
@@ -932,9 +949,19 @@ type CodeBlockTypes = {
932
949
  fileName?: string;
933
950
  /** Code content to be displayed within the code block.*/
934
951
  code?: string;
952
+ /** line numbers for code block */
935
953
  lineNumbers?: boolean;
936
- forcedDarkMode?: boolean;
937
- className?: string;
954
+ /** Wrap text in code block */
955
+ wrapText?: boolean;
956
+ /** Custom class names for the code block */
957
+ classNames?: {
958
+ root?: string;
959
+ tabs?: string;
960
+ tab?: string;
961
+ code?: string;
962
+ fileName?: string;
963
+ codeBlockContainer?: string;
964
+ };
938
965
  };
939
966
  declare const CodeBlock: FC<CodeBlockTypes>;
940
967
 
@@ -1478,6 +1505,10 @@ type RegisterFormTypes = {
1478
1505
  additionalButtons?: any;
1479
1506
  /** To add more custom input fields */
1480
1507
  additionalInputs?: any;
1508
+ /** To customize the username input field */
1509
+ usernameOptions: {
1510
+ label?: LabelProps;
1511
+ };
1481
1512
  };
1482
1513
  declare const RegisterForm: FC<RegisterFormTypes>;
1483
1514
 
@@ -1694,6 +1725,15 @@ type ContactFormData = {
1694
1725
  name: string;
1695
1726
  email: string;
1696
1727
  message: string;
1728
+ } & {
1729
+ [key: string]: string;
1730
+ };
1731
+ type CustomField = {
1732
+ label: string;
1733
+ type: "text" | "number" | "select";
1734
+ name: string;
1735
+ placeholder?: string;
1736
+ options?: RadioOptionType[];
1697
1737
  };
1698
1738
  type ContactFormProps = {
1699
1739
  cardless?: boolean;
@@ -1707,6 +1747,7 @@ type ContactFormProps = {
1707
1747
  email: TextInputType;
1708
1748
  message: TextInputType;
1709
1749
  };
1750
+ customFields?: CustomField[];
1710
1751
  };
1711
1752
  declare const ContactForm: React__default.FC<ContactFormProps>;
1712
1753
 
@@ -1934,4 +1975,4 @@ declare function useTabs(initialTab?: string): {
1934
1975
  handleTabChange: (index: any) => void;
1935
1976
  };
1936
1977
 
1937
- export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, navigationMenuTriggerStyle, reducer, toast, useBreakpoint, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
1978
+ export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, type TextFieldTypes, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, navigationMenuTriggerStyle, reducer, toast, useBreakpoint, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
package/dist/index.d.ts CHANGED
@@ -11,6 +11,7 @@ import { VariantProps } from 'class-variance-authority';
11
11
  import { RowData, ColumnDef } from '@tanstack/react-table';
12
12
  export { ColumnDef } from '@tanstack/react-table';
13
13
  import * as TabsPrimitive from '@radix-ui/react-tabs';
14
+ import { Command as Command$1 } from 'cmdk';
14
15
  import * as PopoverPrimitive from '@radix-ui/react-popover';
15
16
  import * as SwitchPrimitives from '@radix-ui/react-switch';
16
17
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
@@ -612,6 +613,36 @@ declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.
612
613
  } & React$1.RefAttributes<HTMLButtonElement>>;
613
614
  declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
614
615
 
616
+ type TextFieldTypes = React__default.InputHTMLAttributes<HTMLInputElement> & {
617
+ isLoading?: boolean;
618
+ containerClassName?: string;
619
+ margin?: "none" | "normal" | "large";
620
+ width?: "small" | "normal" | "full" | "auto";
621
+ /** The label of the input field */
622
+ label?: any;
623
+ labelProps?: LabelProps;
624
+ hideSeparator?: boolean;
625
+ /** The small red text under the input field to show validation. */
626
+ helperText?: any;
627
+ forceHideHelperText?: boolean;
628
+ inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
629
+ /** The icon inside the input field */
630
+ icon?: any;
631
+ /** Boolean to enable/disable editing the input field and using it as a text field */
632
+ preview?: boolean;
633
+ iconInside?: React__default.ReactNode;
634
+ endIcon?: React__default.ReactNode;
635
+ endIconProps?: {
636
+ className?: string;
637
+ };
638
+ startIcon?: React__default.ReactNode;
639
+ placeholder?: React__default.ReactNode;
640
+ /** Show the count of characters left in the input field. Works along with maxLength prop. */
641
+ showCount?: boolean;
642
+ countPosition?: "top" | "bottom" | "center";
643
+ popup?: boolean;
644
+ popupContent?: React__default.ReactNode;
645
+ };
615
646
  declare const Input: React__default.ForwardRefExoticComponent<React__default.InputHTMLAttributes<HTMLInputElement> & {
616
647
  isLoading?: boolean | undefined;
617
648
  containerClassName?: string | undefined;
@@ -643,47 +674,33 @@ declare const Input: React__default.ForwardRefExoticComponent<React__default.Inp
643
674
  popupContent?: React__default.ReactNode;
644
675
  } & React__default.RefAttributes<HTMLInputElement>>;
645
676
 
646
- declare const Command: React$1.ForwardRefExoticComponent<Omit<{
647
- children?: React$1.ReactNode;
648
- } & React$1.HTMLAttributes<HTMLDivElement> & {
649
- label?: string | undefined;
650
- shouldFilter?: boolean | undefined;
651
- filter?: ((value: string, search: string) => number) | undefined;
652
- value?: string | undefined;
653
- onValueChange?: ((value: string) => void) | undefined;
654
- loop?: boolean | undefined;
655
- } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
677
+ type CommandProps = React$1.ComponentPropsWithoutRef<typeof Command$1>;
656
678
  interface CommandDialogProps extends DialogProps {
657
679
  }
680
+ interface CommandInputProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.Input> {
681
+ }
682
+ interface CommandListProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.List> {
683
+ }
684
+ interface CommandEmptyProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.Empty> {
685
+ }
686
+ interface CommandGroupProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.Group> {
687
+ }
688
+ interface CommandSeparatorProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.Separator> {
689
+ }
690
+ interface CommandItemProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.Item> {
691
+ }
692
+ interface CommandShortcutProps extends React$1.HTMLAttributes<HTMLSpanElement> {
693
+ }
694
+ declare const Command: React$1.ForwardRefExoticComponent<CommandProps & React$1.RefAttributes<React$1.ElementRef<typeof Command$1>>>;
658
695
  declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => React$1.JSX.Element;
659
- declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "type" | "value"> & {
660
- value?: string | undefined;
661
- onValueChange?: ((search: string) => void) | undefined;
662
- } & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
663
- declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
664
- children?: React$1.ReactNode;
665
- } & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
666
- declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
667
- children?: React$1.ReactNode;
668
- } & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
669
- declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
670
- children?: React$1.ReactNode;
671
- } & Omit<React$1.HTMLAttributes<HTMLDivElement>, "heading" | "value"> & {
672
- heading?: React$1.ReactNode;
673
- value?: string | undefined;
674
- } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
675
- declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement> & {
676
- alwaysRender?: boolean | undefined;
677
- } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
678
- declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
679
- children?: React$1.ReactNode;
680
- } & Omit<React$1.HTMLAttributes<HTMLDivElement>, "onSelect" | "disabled" | "value"> & {
681
- disabled?: boolean | undefined;
682
- onSelect?: ((value: string) => void) | undefined;
683
- value?: string | undefined;
684
- } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
696
+ declare const CommandInput: React$1.ForwardRefExoticComponent<CommandInputProps & React$1.RefAttributes<HTMLInputElement>>;
697
+ declare const CommandList: React$1.ForwardRefExoticComponent<CommandListProps & React$1.RefAttributes<HTMLDivElement>>;
698
+ declare const CommandEmpty: React$1.ForwardRefExoticComponent<CommandEmptyProps & React$1.RefAttributes<HTMLDivElement>>;
699
+ declare const CommandGroup: React$1.ForwardRefExoticComponent<CommandGroupProps & React$1.RefAttributes<HTMLDivElement>>;
700
+ declare const CommandSeparator: React$1.ForwardRefExoticComponent<CommandSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
701
+ declare const CommandItem: React$1.ForwardRefExoticComponent<CommandItemProps & React$1.RefAttributes<HTMLDivElement>>;
685
702
  declare const CommandShortcut: {
686
- ({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): React$1.JSX.Element;
703
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement> & CommandShortcutProps): React$1.JSX.Element;
687
704
  displayName: string;
688
705
  };
689
706
 
@@ -932,9 +949,19 @@ type CodeBlockTypes = {
932
949
  fileName?: string;
933
950
  /** Code content to be displayed within the code block.*/
934
951
  code?: string;
952
+ /** line numbers for code block */
935
953
  lineNumbers?: boolean;
936
- forcedDarkMode?: boolean;
937
- className?: string;
954
+ /** Wrap text in code block */
955
+ wrapText?: boolean;
956
+ /** Custom class names for the code block */
957
+ classNames?: {
958
+ root?: string;
959
+ tabs?: string;
960
+ tab?: string;
961
+ code?: string;
962
+ fileName?: string;
963
+ codeBlockContainer?: string;
964
+ };
938
965
  };
939
966
  declare const CodeBlock: FC<CodeBlockTypes>;
940
967
 
@@ -1478,6 +1505,10 @@ type RegisterFormTypes = {
1478
1505
  additionalButtons?: any;
1479
1506
  /** To add more custom input fields */
1480
1507
  additionalInputs?: any;
1508
+ /** To customize the username input field */
1509
+ usernameOptions: {
1510
+ label?: LabelProps;
1511
+ };
1481
1512
  };
1482
1513
  declare const RegisterForm: FC<RegisterFormTypes>;
1483
1514
 
@@ -1694,6 +1725,15 @@ type ContactFormData = {
1694
1725
  name: string;
1695
1726
  email: string;
1696
1727
  message: string;
1728
+ } & {
1729
+ [key: string]: string;
1730
+ };
1731
+ type CustomField = {
1732
+ label: string;
1733
+ type: "text" | "number" | "select";
1734
+ name: string;
1735
+ placeholder?: string;
1736
+ options?: RadioOptionType[];
1697
1737
  };
1698
1738
  type ContactFormProps = {
1699
1739
  cardless?: boolean;
@@ -1707,6 +1747,7 @@ type ContactFormProps = {
1707
1747
  email: TextInputType;
1708
1748
  message: TextInputType;
1709
1749
  };
1750
+ customFields?: CustomField[];
1710
1751
  };
1711
1752
  declare const ContactForm: React__default.FC<ContactFormProps>;
1712
1753
 
@@ -1934,4 +1975,4 @@ declare function useTabs(initialTab?: string): {
1934
1975
  handleTabChange: (index: any) => void;
1935
1976
  };
1936
1977
 
1937
- export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, navigationMenuTriggerStyle, reducer, toast, useBreakpoint, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
1978
+ export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, type TextFieldTypes, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, navigationMenuTriggerStyle, reducer, toast, useBreakpoint, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };