@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
@@ -16,6 +16,7 @@ export { ColumnDef } from '@tanstack/react-table';
16
16
  import { L as LabelProps } from '../Radio-K1WGpnGA.js';
17
17
  export { b as Label, a as Radio, R as RadioOptionsTypes, c as Select, S as SelectOptionProps } from '../Radio-K1WGpnGA.js';
18
18
  import * as TabsPrimitive from '@radix-ui/react-tabs';
19
+ import { Command as Command$1 } from 'cmdk';
19
20
  import * as PopoverPrimitive from '@radix-ui/react-popover';
20
21
  import * as SwitchPrimitives from '@radix-ui/react-switch';
21
22
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
@@ -455,6 +456,36 @@ declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.Ta
455
456
  } & React.RefAttributes<HTMLButtonElement>>;
456
457
  declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
457
458
 
459
+ type TextFieldTypes = React__default.InputHTMLAttributes<HTMLInputElement> & {
460
+ isLoading?: boolean;
461
+ containerClassName?: string;
462
+ margin?: "none" | "normal" | "large";
463
+ width?: "small" | "normal" | "full" | "auto";
464
+ /** The label of the input field */
465
+ label?: any;
466
+ labelProps?: LabelProps;
467
+ hideSeparator?: boolean;
468
+ /** The small red text under the input field to show validation. */
469
+ helperText?: any;
470
+ forceHideHelperText?: boolean;
471
+ inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
472
+ /** The icon inside the input field */
473
+ icon?: any;
474
+ /** Boolean to enable/disable editing the input field and using it as a text field */
475
+ preview?: boolean;
476
+ iconInside?: React__default.ReactNode;
477
+ endIcon?: React__default.ReactNode;
478
+ endIconProps?: {
479
+ className?: string;
480
+ };
481
+ startIcon?: React__default.ReactNode;
482
+ placeholder?: React__default.ReactNode;
483
+ /** Show the count of characters left in the input field. Works along with maxLength prop. */
484
+ showCount?: boolean;
485
+ countPosition?: "top" | "bottom" | "center";
486
+ popup?: boolean;
487
+ popupContent?: React__default.ReactNode;
488
+ };
458
489
  declare const Input: React__default.ForwardRefExoticComponent<React__default.InputHTMLAttributes<HTMLInputElement> & {
459
490
  isLoading?: boolean | undefined;
460
491
  containerClassName?: string | undefined;
@@ -486,47 +517,33 @@ declare const Input: React__default.ForwardRefExoticComponent<React__default.Inp
486
517
  popupContent?: React__default.ReactNode;
487
518
  } & React__default.RefAttributes<HTMLInputElement>>;
488
519
 
489
- declare const Command: React.ForwardRefExoticComponent<Omit<{
490
- children?: React.ReactNode;
491
- } & React.HTMLAttributes<HTMLDivElement> & {
492
- label?: string | undefined;
493
- shouldFilter?: boolean | undefined;
494
- filter?: ((value: string, search: string) => number) | undefined;
495
- value?: string | undefined;
496
- onValueChange?: ((value: string) => void) | undefined;
497
- loop?: boolean | undefined;
498
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
520
+ type CommandProps = React.ComponentPropsWithoutRef<typeof Command$1>;
499
521
  interface CommandDialogProps extends DialogProps {
500
522
  }
523
+ interface CommandInputProps extends React.ComponentPropsWithoutRef<typeof Command$1.Input> {
524
+ }
525
+ interface CommandListProps extends React.ComponentPropsWithoutRef<typeof Command$1.List> {
526
+ }
527
+ interface CommandEmptyProps extends React.ComponentPropsWithoutRef<typeof Command$1.Empty> {
528
+ }
529
+ interface CommandGroupProps extends React.ComponentPropsWithoutRef<typeof Command$1.Group> {
530
+ }
531
+ interface CommandSeparatorProps extends React.ComponentPropsWithoutRef<typeof Command$1.Separator> {
532
+ }
533
+ interface CommandItemProps extends React.ComponentPropsWithoutRef<typeof Command$1.Item> {
534
+ }
535
+ interface CommandShortcutProps extends React.HTMLAttributes<HTMLSpanElement> {
536
+ }
537
+ declare const Command: React.ForwardRefExoticComponent<CommandProps & React.RefAttributes<React.ElementRef<typeof Command$1>>>;
501
538
  declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => React.JSX.Element;
502
- declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "type" | "value"> & {
503
- value?: string | undefined;
504
- onValueChange?: ((search: string) => void) | undefined;
505
- } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
506
- declare const CommandList: React.ForwardRefExoticComponent<Omit<{
507
- children?: React.ReactNode;
508
- } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
509
- declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
510
- children?: React.ReactNode;
511
- } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
512
- declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
513
- children?: React.ReactNode;
514
- } & Omit<React.HTMLAttributes<HTMLDivElement>, "heading" | "value"> & {
515
- heading?: React.ReactNode;
516
- value?: string | undefined;
517
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
518
- declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & {
519
- alwaysRender?: boolean | undefined;
520
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
521
- declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
522
- children?: React.ReactNode;
523
- } & Omit<React.HTMLAttributes<HTMLDivElement>, "onSelect" | "disabled" | "value"> & {
524
- disabled?: boolean | undefined;
525
- onSelect?: ((value: string) => void) | undefined;
526
- value?: string | undefined;
527
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
539
+ declare const CommandInput: React.ForwardRefExoticComponent<CommandInputProps & React.RefAttributes<HTMLInputElement>>;
540
+ declare const CommandList: React.ForwardRefExoticComponent<CommandListProps & React.RefAttributes<HTMLDivElement>>;
541
+ declare const CommandEmpty: React.ForwardRefExoticComponent<CommandEmptyProps & React.RefAttributes<HTMLDivElement>>;
542
+ declare const CommandGroup: React.ForwardRefExoticComponent<CommandGroupProps & React.RefAttributes<HTMLDivElement>>;
543
+ declare const CommandSeparator: React.ForwardRefExoticComponent<CommandSeparatorProps & React.RefAttributes<HTMLDivElement>>;
544
+ declare const CommandItem: React.ForwardRefExoticComponent<CommandItemProps & React.RefAttributes<HTMLDivElement>>;
528
545
  declare const CommandShortcut: {
529
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
546
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement> & CommandShortcutProps): React.JSX.Element;
530
547
  displayName: string;
531
548
  };
532
549
 
@@ -737,9 +754,19 @@ type CodeBlockTypes = {
737
754
  fileName?: string;
738
755
  /** Code content to be displayed within the code block.*/
739
756
  code?: string;
757
+ /** line numbers for code block */
740
758
  lineNumbers?: boolean;
741
- forcedDarkMode?: boolean;
742
- className?: string;
759
+ /** Wrap text in code block */
760
+ wrapText?: boolean;
761
+ /** Custom class names for the code block */
762
+ classNames?: {
763
+ root?: string;
764
+ tabs?: string;
765
+ tab?: string;
766
+ code?: string;
767
+ fileName?: string;
768
+ codeBlockContainer?: string;
769
+ };
743
770
  };
744
771
  declare const CodeBlock: FC<CodeBlockTypes>;
745
772
 
@@ -791,4 +818,4 @@ declare const InterfaceSettings: FC<TypographyTypes>;
791
818
 
792
819
  declare const FileUploader: ({ handleFile, className }: any) => React__default.JSX.Element;
793
820
 
794
- export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, Alert, AppStores, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, Checkbox, ChipTypes, CodeBlock, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, FileDropzone, FileUploader, Input, InterfaceSettings, LabelProps, Loading, Logos, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PinInput, Popover, PopoverContent, 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, Textarea, type TextareaProps, Toaster, ToasterToastProps, Tooltip, buttonVariants, navigationMenuTriggerStyle };
821
+ export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, Alert, AppStores, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, Checkbox, ChipTypes, CodeBlock, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, FileDropzone, FileUploader, Input, InterfaceSettings, LabelProps, Loading, Logos, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PinInput, Popover, PopoverContent, 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 };
@@ -790,8 +790,11 @@ var DropdownMenu = ({
790
790
  className: cn(
791
791
  className,
792
792
  widthStyles[width],
793
- "hawa-flex hawa-flex-col hawa-gap-1"
793
+ "hawa-flex hawa-flex-col hawa-gap-1 hawa-overflow-y-auto"
794
794
  ),
795
+ style: {
796
+ maxHeight: "var(--radix-dropdown-menu-content-available-height)"
797
+ },
795
798
  align,
796
799
  alignOffset
797
800
  },
@@ -1068,7 +1071,7 @@ var Accordion = React9.forwardRef(
1068
1071
  {
1069
1072
  disabled: item.disabled || false,
1070
1073
  className: cn(
1071
- "hawa-transition-all",
1074
+ "hawa-transition-all hawa-text-start",
1072
1075
  design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-b-none" : {
1073
1076
  "hawa-rounded-t": index === 0,
1074
1077
  "data-[state=closed]:hawa-rounded-b": index === items.length - 1
@@ -6964,13 +6967,30 @@ function useClipboard({ timeout = 2e3 } = {}) {
6964
6967
  // elements/codeBlock/CodeBlock.tsx
6965
6968
  (typeof global !== "undefined" ? global : window).Prism = import_prism_react_renderer.Prism;
6966
6969
  require("prismjs/components/prism-bash");
6970
+ var CopyIcon = () => /* @__PURE__ */ import_react30.default.createElement(
6971
+ "svg",
6972
+ {
6973
+ "aria-label": "Copy",
6974
+ stroke: "currentColor",
6975
+ fill: "none",
6976
+ strokeWidth: "2",
6977
+ viewBox: "0 0 24 24",
6978
+ strokeLinecap: "round",
6979
+ strokeLinejoin: "round",
6980
+ height: "1em",
6981
+ width: "1em"
6982
+ },
6983
+ /* @__PURE__ */ import_react30.default.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
6984
+ /* @__PURE__ */ import_react30.default.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
6985
+ );
6967
6986
  var CodeBlock = ({
6968
6987
  tabs,
6969
6988
  code,
6970
6989
  fileName,
6971
- className,
6990
+ classNames,
6972
6991
  language = "javascript",
6973
6992
  // default to JavaScript if no language is provided
6993
+ wrapText = false,
6974
6994
  width = "full",
6975
6995
  ...props
6976
6996
  }) => {
@@ -6988,16 +7008,50 @@ var CodeBlock = ({
6988
7008
  {
6989
7009
  className: cn(
6990
7010
  widthStyles[width],
6991
- "hawa-w-full hawa-flex-col hawa-items-center hawa-rounded hawa-bg-background hawa-text-left hawa-my-2 hawa-text-white sm:hawa-text-base",
6992
- className
7011
+ "hawa-w-full hawa-flex-col hawa-relative hawa-items-center hawa-rounded hawa-bg-background hawa-text-left hawa-my-2 hawa-text-white sm:hawa-text-base",
7012
+ classNames == null ? void 0 : classNames.root
6993
7013
  )
6994
7014
  },
7015
+ /* @__PURE__ */ import_react30.default.createElement(
7016
+ "div",
7017
+ {
7018
+ className: cn(
7019
+ "hawa-flex hawa-absolute hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-z-50 hawa-right-3.5",
7020
+ {
7021
+ "hawa-top-3.5": !tabs && !fileName,
7022
+ "hawa-top-[50px]": tabs && !fileName,
7023
+ "hawa-top-11": !tabs && fileName,
7024
+ "hawa-top-[80px]": tabs && fileName
7025
+ }
7026
+ )
7027
+ },
7028
+ /* @__PURE__ */ import_react30.default.createElement(
7029
+ Tooltip,
7030
+ {
7031
+ open: clipboard.copied,
7032
+ side: "left",
7033
+ content: /* @__PURE__ */ import_react30.default.createElement("div", null, "Copied!"),
7034
+ triggerProps: { asChild: true }
7035
+ },
7036
+ /* @__PURE__ */ import_react30.default.createElement(
7037
+ Button,
7038
+ {
7039
+ size: "smallIcon",
7040
+ onClick: () => clipboard.copy(tabs ? tabs[selectedTab].code : code),
7041
+ variant: "outline",
7042
+ className: "hawa-text-gray-200 hawa-opacity-50 "
7043
+ },
7044
+ /* @__PURE__ */ import_react30.default.createElement(CopyIcon, null)
7045
+ )
7046
+ )
7047
+ ),
6995
7048
  fileName && /* @__PURE__ */ import_react30.default.createElement(
6996
7049
  "div",
6997
7050
  {
6998
7051
  className: cn(
6999
7052
  "hawa-flex hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-2 hawa-py-0.5 hawa-pb-0 hawa-font-mono hawa-text-foreground",
7000
- fileName && tabs ? "hawa-bg-primary/10" : "hawa-bg-primary/15"
7053
+ fileName && tabs ? "hawa-bg-primary/10" : "hawa-bg-primary/15",
7054
+ classNames == null ? void 0 : classNames.fileName
7001
7055
  )
7002
7056
  },
7003
7057
  /* @__PURE__ */ import_react30.default.createElement(
@@ -7014,9 +7068,9 @@ var CodeBlock = ({
7014
7068
  "div",
7015
7069
  {
7016
7070
  className: cn(
7017
- // hawa-bg-gray-300 dark:hawa-bg-red-600
7018
7071
  "hawa-flex hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-1 hawa-bg-primary/15 hawa-pb-0 hawa-font-mono hawa-text-foreground",
7019
- tabs && fileName && "hawa-rounded-t-none"
7072
+ tabs && fileName && "hawa-rounded-t-none",
7073
+ classNames == null ? void 0 : classNames.tabs
7020
7074
  )
7021
7075
  },
7022
7076
  tabs.map((tab, i) => /* @__PURE__ */ import_react30.default.createElement(
@@ -7024,7 +7078,8 @@ var CodeBlock = ({
7024
7078
  {
7025
7079
  key: i,
7026
7080
  className: cn(
7027
- selectedTab === i ? " hawa-border-b-2 hawa-border-primary" : "hawa-bg-transparent"
7081
+ selectedTab === i ? " hawa-border-b-2 hawa-border-primary" : "hawa-bg-transparent",
7082
+ classNames == null ? void 0 : classNames.tab
7028
7083
  )
7029
7084
  },
7030
7085
  /* @__PURE__ */ import_react30.default.createElement(
@@ -7043,8 +7098,10 @@ var CodeBlock = ({
7043
7098
  "div",
7044
7099
  {
7045
7100
  className: cn(
7046
- "hawa-flex hawa-w-full hawa-flex-row hawa-items-start hawa-justify-between hawa-border hawa-bg-gray-800 hawa-p-0 hawa-text-left hawa-text-sm sm:hawa-text-base ",
7047
- tabs || fileName ? "hawa-rounded-b hawa-rounded-t-none" : "hawa-rounded"
7101
+ "hawa-flex hawa-w-full hawa-relative hawa-flex-row hawa-items-start hawa-justify-between hawa-border hawa-bg-gray-800 hawa-p-0 hawa-text-left hawa-text-sm sm:hawa-text-base",
7102
+ tabs || fileName ? "hawa-rounded-b hawa-rounded-t-none" : "hawa-rounded",
7103
+ classNames == null ? void 0 : classNames.codeBlockContainer,
7104
+ "hawa-overflow-y-auto"
7048
7105
  )
7049
7106
  },
7050
7107
  /* @__PURE__ */ import_react30.default.createElement(
@@ -7054,44 +7111,18 @@ var CodeBlock = ({
7054
7111
  code: tabs ? tabs[selectedTab].code : code || "",
7055
7112
  language
7056
7113
  },
7057
- ({ className: className2, style, tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ import_react30.default.createElement("pre", { className: "hawa-min-h-[37.75px] hawa-w-full hawa-overflow-auto hawa-p-4 hawa-font-mono hawa-text-foreground" }, tokens.map((line, i) => /* @__PURE__ */ import_react30.default.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ import_react30.default.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ import_react30.default.createElement("span", { key, ...getTokenProps({ token }) })))))
7058
- ),
7059
- /* @__PURE__ */ import_react30.default.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-p-2" }, /* @__PURE__ */ import_react30.default.createElement(
7060
- Tooltip,
7061
- {
7062
- open: clipboard.copied,
7063
- side: "left",
7064
- content: /* @__PURE__ */ import_react30.default.createElement("div", null, "Copied!"),
7065
- triggerProps: {
7066
- asChild: true
7067
- }
7068
- },
7069
- /* @__PURE__ */ import_react30.default.createElement(
7070
- Button,
7114
+ ({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ import_react30.default.createElement(
7115
+ "pre",
7071
7116
  {
7072
- size: "icon",
7073
- onClick: () => clipboard.copy(tabs ? tabs[selectedTab].code : code),
7074
- variant: "outline",
7075
- className: "hawa-text-gray-200 hawa-opacity-50 "
7117
+ className: cn(
7118
+ "hawa-min-h-[37.75px] !hawa-pe-12 hawa-w-full hawa-p-4 hawa-font-mono hawa-text-foreground",
7119
+ classNames == null ? void 0 : classNames.code,
7120
+ wrapText && "hawa-text-wrap"
7121
+ )
7076
7122
  },
7077
- /* @__PURE__ */ import_react30.default.createElement(
7078
- "svg",
7079
- {
7080
- "aria-label": "Copy",
7081
- stroke: "currentColor",
7082
- fill: "none",
7083
- strokeWidth: "2",
7084
- viewBox: "0 0 24 24",
7085
- strokeLinecap: "round",
7086
- strokeLinejoin: "round",
7087
- height: "1em",
7088
- width: "1em"
7089
- },
7090
- /* @__PURE__ */ import_react30.default.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
7091
- /* @__PURE__ */ import_react30.default.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
7092
- )
7123
+ tokens.map((line, i) => /* @__PURE__ */ import_react30.default.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ import_react30.default.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ import_react30.default.createElement("span", { key, ...getTokenProps({ token }) }))))
7093
7124
  )
7094
- ))
7125
+ )
7095
7126
  )
7096
7127
  );
7097
7128
  };
@@ -27,7 +27,7 @@ import {
27
27
  TabsTrigger,
28
28
  Textarea,
29
29
  UncheckMark
30
- } from "../chunk-VCCUBQFI.mjs";
30
+ } from "../chunk-U7BFMH2T.mjs";
31
31
  import {
32
32
  Sheet,
33
33
  SheetClose,
@@ -39,7 +39,7 @@ import {
39
39
  SheetPortal,
40
40
  SheetTitle,
41
41
  SheetTrigger
42
- } from "../chunk-AXTPTA3S.mjs";
42
+ } from "../chunk-BOVZAUWD.mjs";
43
43
  import {
44
44
  Button,
45
45
  Card,
@@ -73,7 +73,7 @@ import {
73
73
  buttonVariants,
74
74
  calculateLuminance,
75
75
  cn
76
- } from "../chunk-D3KUSRHL.mjs";
76
+ } from "../chunk-3MC4JLSW.mjs";
77
77
  import {
78
78
  __require
79
79
  } from "../chunk-ZFXKCRJC.mjs";
@@ -164,7 +164,7 @@ var Accordion = React3.forwardRef(
164
164
  {
165
165
  disabled: item.disabled || false,
166
166
  className: cn(
167
- "hawa-transition-all",
167
+ "hawa-transition-all hawa-text-start",
168
168
  design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-b-none" : {
169
169
  "hawa-rounded-t": index === 0,
170
170
  "data-[state=closed]:hawa-rounded-b": index === items.length - 1
@@ -2640,20 +2640,33 @@ var ScrollIndicator = ({
2640
2640
 
2641
2641
  // elements/codeBlock/CodeBlock.tsx
2642
2642
  import React27, { useState as useState11 } from "react";
2643
- import {
2644
- Highlight,
2645
- themes,
2646
- Prism
2647
- } from "prism-react-renderer";
2643
+ import { Highlight, themes, Prism } from "prism-react-renderer";
2648
2644
  (typeof global !== "undefined" ? global : window).Prism = Prism;
2649
2645
  __require("prismjs/components/prism-bash");
2646
+ var CopyIcon = () => /* @__PURE__ */ React27.createElement(
2647
+ "svg",
2648
+ {
2649
+ "aria-label": "Copy",
2650
+ stroke: "currentColor",
2651
+ fill: "none",
2652
+ strokeWidth: "2",
2653
+ viewBox: "0 0 24 24",
2654
+ strokeLinecap: "round",
2655
+ strokeLinejoin: "round",
2656
+ height: "1em",
2657
+ width: "1em"
2658
+ },
2659
+ /* @__PURE__ */ React27.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
2660
+ /* @__PURE__ */ React27.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
2661
+ );
2650
2662
  var CodeBlock = ({
2651
2663
  tabs,
2652
2664
  code,
2653
2665
  fileName,
2654
- className,
2666
+ classNames,
2655
2667
  language = "javascript",
2656
2668
  // default to JavaScript if no language is provided
2669
+ wrapText = false,
2657
2670
  width = "full",
2658
2671
  ...props
2659
2672
  }) => {
@@ -2671,16 +2684,50 @@ var CodeBlock = ({
2671
2684
  {
2672
2685
  className: cn(
2673
2686
  widthStyles[width],
2674
- "hawa-w-full hawa-flex-col hawa-items-center hawa-rounded hawa-bg-background hawa-text-left hawa-my-2 hawa-text-white sm:hawa-text-base",
2675
- className
2687
+ "hawa-w-full hawa-flex-col hawa-relative hawa-items-center hawa-rounded hawa-bg-background hawa-text-left hawa-my-2 hawa-text-white sm:hawa-text-base",
2688
+ classNames == null ? void 0 : classNames.root
2676
2689
  )
2677
2690
  },
2691
+ /* @__PURE__ */ React27.createElement(
2692
+ "div",
2693
+ {
2694
+ className: cn(
2695
+ "hawa-flex hawa-absolute hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-z-50 hawa-right-3.5",
2696
+ {
2697
+ "hawa-top-3.5": !tabs && !fileName,
2698
+ "hawa-top-[50px]": tabs && !fileName,
2699
+ "hawa-top-11": !tabs && fileName,
2700
+ "hawa-top-[80px]": tabs && fileName
2701
+ }
2702
+ )
2703
+ },
2704
+ /* @__PURE__ */ React27.createElement(
2705
+ Tooltip,
2706
+ {
2707
+ open: clipboard.copied,
2708
+ side: "left",
2709
+ content: /* @__PURE__ */ React27.createElement("div", null, "Copied!"),
2710
+ triggerProps: { asChild: true }
2711
+ },
2712
+ /* @__PURE__ */ React27.createElement(
2713
+ Button,
2714
+ {
2715
+ size: "smallIcon",
2716
+ onClick: () => clipboard.copy(tabs ? tabs[selectedTab].code : code),
2717
+ variant: "outline",
2718
+ className: "hawa-text-gray-200 hawa-opacity-50 "
2719
+ },
2720
+ /* @__PURE__ */ React27.createElement(CopyIcon, null)
2721
+ )
2722
+ )
2723
+ ),
2678
2724
  fileName && /* @__PURE__ */ React27.createElement(
2679
2725
  "div",
2680
2726
  {
2681
2727
  className: cn(
2682
2728
  "hawa-flex hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-2 hawa-py-0.5 hawa-pb-0 hawa-font-mono hawa-text-foreground",
2683
- fileName && tabs ? "hawa-bg-primary/10" : "hawa-bg-primary/15"
2729
+ fileName && tabs ? "hawa-bg-primary/10" : "hawa-bg-primary/15",
2730
+ classNames == null ? void 0 : classNames.fileName
2684
2731
  )
2685
2732
  },
2686
2733
  /* @__PURE__ */ React27.createElement(
@@ -2697,9 +2744,9 @@ var CodeBlock = ({
2697
2744
  "div",
2698
2745
  {
2699
2746
  className: cn(
2700
- // hawa-bg-gray-300 dark:hawa-bg-red-600
2701
2747
  "hawa-flex hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-1 hawa-bg-primary/15 hawa-pb-0 hawa-font-mono hawa-text-foreground",
2702
- tabs && fileName && "hawa-rounded-t-none"
2748
+ tabs && fileName && "hawa-rounded-t-none",
2749
+ classNames == null ? void 0 : classNames.tabs
2703
2750
  )
2704
2751
  },
2705
2752
  tabs.map((tab, i) => /* @__PURE__ */ React27.createElement(
@@ -2707,7 +2754,8 @@ var CodeBlock = ({
2707
2754
  {
2708
2755
  key: i,
2709
2756
  className: cn(
2710
- selectedTab === i ? " hawa-border-b-2 hawa-border-primary" : "hawa-bg-transparent"
2757
+ selectedTab === i ? " hawa-border-b-2 hawa-border-primary" : "hawa-bg-transparent",
2758
+ classNames == null ? void 0 : classNames.tab
2711
2759
  )
2712
2760
  },
2713
2761
  /* @__PURE__ */ React27.createElement(
@@ -2726,8 +2774,10 @@ var CodeBlock = ({
2726
2774
  "div",
2727
2775
  {
2728
2776
  className: cn(
2729
- "hawa-flex hawa-w-full hawa-flex-row hawa-items-start hawa-justify-between hawa-border hawa-bg-gray-800 hawa-p-0 hawa-text-left hawa-text-sm sm:hawa-text-base ",
2730
- tabs || fileName ? "hawa-rounded-b hawa-rounded-t-none" : "hawa-rounded"
2777
+ "hawa-flex hawa-w-full hawa-relative hawa-flex-row hawa-items-start hawa-justify-between hawa-border hawa-bg-gray-800 hawa-p-0 hawa-text-left hawa-text-sm sm:hawa-text-base",
2778
+ tabs || fileName ? "hawa-rounded-b hawa-rounded-t-none" : "hawa-rounded",
2779
+ classNames == null ? void 0 : classNames.codeBlockContainer,
2780
+ "hawa-overflow-y-auto"
2731
2781
  )
2732
2782
  },
2733
2783
  /* @__PURE__ */ React27.createElement(
@@ -2737,50 +2787,24 @@ var CodeBlock = ({
2737
2787
  code: tabs ? tabs[selectedTab].code : code || "",
2738
2788
  language
2739
2789
  },
2740
- ({ className: className2, style, tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ React27.createElement("pre", { className: "hawa-min-h-[37.75px] hawa-w-full hawa-overflow-auto hawa-p-4 hawa-font-mono hawa-text-foreground" }, tokens.map((line, i) => /* @__PURE__ */ React27.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ React27.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ React27.createElement("span", { key, ...getTokenProps({ token }) })))))
2741
- ),
2742
- /* @__PURE__ */ React27.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-p-2" }, /* @__PURE__ */ React27.createElement(
2743
- Tooltip,
2744
- {
2745
- open: clipboard.copied,
2746
- side: "left",
2747
- content: /* @__PURE__ */ React27.createElement("div", null, "Copied!"),
2748
- triggerProps: {
2749
- asChild: true
2750
- }
2751
- },
2752
- /* @__PURE__ */ React27.createElement(
2753
- Button,
2790
+ ({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ React27.createElement(
2791
+ "pre",
2754
2792
  {
2755
- size: "icon",
2756
- onClick: () => clipboard.copy(tabs ? tabs[selectedTab].code : code),
2757
- variant: "outline",
2758
- className: "hawa-text-gray-200 hawa-opacity-50 "
2793
+ className: cn(
2794
+ "hawa-min-h-[37.75px] !hawa-pe-12 hawa-w-full hawa-p-4 hawa-font-mono hawa-text-foreground",
2795
+ classNames == null ? void 0 : classNames.code,
2796
+ wrapText && "hawa-text-wrap"
2797
+ )
2759
2798
  },
2760
- /* @__PURE__ */ React27.createElement(
2761
- "svg",
2762
- {
2763
- "aria-label": "Copy",
2764
- stroke: "currentColor",
2765
- fill: "none",
2766
- strokeWidth: "2",
2767
- viewBox: "0 0 24 24",
2768
- strokeLinecap: "round",
2769
- strokeLinejoin: "round",
2770
- height: "1em",
2771
- width: "1em"
2772
- },
2773
- /* @__PURE__ */ React27.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
2774
- /* @__PURE__ */ React27.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
2775
- )
2799
+ tokens.map((line, i) => /* @__PURE__ */ React27.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ React27.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ React27.createElement("span", { key, ...getTokenProps({ token }) }))))
2776
2800
  )
2777
- ))
2801
+ )
2778
2802
  )
2779
2803
  );
2780
2804
  };
2781
2805
 
2782
2806
  // elements/carousel/Carousel.tsx
2783
- import React28, { useEffect as useEffect10, useState as useState12 } from "react";
2807
+ import React28, { useEffect as useEffect9, useState as useState12 } from "react";
2784
2808
  import useEmblaCarousel from "embla-carousel-react";
2785
2809
  var Carousel = ({
2786
2810
  items,
@@ -2797,7 +2821,7 @@ var Carousel = ({
2797
2821
  loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
2798
2822
  });
2799
2823
  const [selectedIndex, setSelectedIndex] = useState12(0);
2800
- useEffect10(() => {
2824
+ useEffect9(() => {
2801
2825
  function selectHandler() {
2802
2826
  const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
2803
2827
  setSelectedIndex(index || 0);
@@ -2807,7 +2831,7 @@ var Carousel = ({
2807
2831
  emblaApi == null ? void 0 : emblaApi.off("select", selectHandler);
2808
2832
  };
2809
2833
  }, [emblaApi]);
2810
- useEffect10(() => {
2834
+ useEffect9(() => {
2811
2835
  let autoplayTimer;
2812
2836
  if (autoplay && emblaApi) {
2813
2837
  autoplayTimer = setInterval(() => {