@sikka/hawa 0.29.14-next → 0.30.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 (48) hide show
  1. package/dist/blocks/feedback/index.js +15 -13
  2. package/dist/blocks/feedback/index.mjs +15 -13
  3. package/dist/blocks/index.js +15 -13
  4. package/dist/blocks/index.mjs +1 -1
  5. package/dist/{chunk-XKVSLAKW.mjs → chunk-TGB72TYK.mjs} +15 -13
  6. package/dist/combobox/index.d.mts +1 -0
  7. package/dist/combobox/index.d.ts +1 -0
  8. package/dist/combobox/index.js +224 -218
  9. package/dist/combobox/index.js.map +1 -1
  10. package/dist/combobox/index.mjs +224 -218
  11. package/dist/combobox/index.mjs.map +1 -1
  12. package/dist/command/index.js +1 -1
  13. package/dist/command/index.js.map +1 -1
  14. package/dist/command/index.mjs +1 -1
  15. package/dist/command/index.mjs.map +1 -1
  16. package/dist/dataTable/index.d.mts +1 -1
  17. package/dist/dataTable/index.d.ts +1 -1
  18. package/dist/dataTable/index.js.map +1 -1
  19. package/dist/dataTable/index.mjs.map +1 -1
  20. package/dist/dialog/index.d.mts +1 -0
  21. package/dist/dialog/index.d.ts +1 -0
  22. package/dist/dialog/index.js +1 -1
  23. package/dist/dialog/index.js.map +1 -1
  24. package/dist/dialog/index.mjs +1 -1
  25. package/dist/dialog/index.mjs.map +1 -1
  26. package/dist/elements/index.d.mts +9 -4
  27. package/dist/elements/index.d.ts +9 -4
  28. package/dist/elements/index.js +87 -81
  29. package/dist/elements/index.mjs +15 -11
  30. package/dist/index.d.mts +9 -4
  31. package/dist/index.d.ts +9 -4
  32. package/dist/index.js +87 -81
  33. package/dist/index.mjs +113 -107
  34. package/dist/passwordInput/index.js +15 -13
  35. package/dist/passwordInput/index.js.map +1 -1
  36. package/dist/passwordInput/index.mjs +15 -13
  37. package/dist/passwordInput/index.mjs.map +1 -1
  38. package/dist/popover/index.d.mts +3 -1
  39. package/dist/popover/index.d.ts +3 -1
  40. package/dist/popover/index.js +15 -13
  41. package/dist/popover/index.js.map +1 -1
  42. package/dist/popover/index.mjs +15 -13
  43. package/dist/popover/index.mjs.map +1 -1
  44. package/dist/simpleTable/index.d.mts +4 -3
  45. package/dist/simpleTable/index.d.ts +4 -3
  46. package/dist/simpleTable/index.js.map +1 -1
  47. package/dist/simpleTable/index.mjs.map +1 -1
  48. package/package.json +1 -1
@@ -1119,19 +1119,21 @@ var import_react10 = __toESM(require("react"));
1119
1119
  // elements/popover/Popover.tsx
1120
1120
  var React11 = __toESM(require("react"));
1121
1121
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
1122
- var PopoverContent = React11.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React11.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React11.createElement(
1123
- PopoverPrimitive.Content,
1124
- {
1125
- ref,
1126
- align,
1127
- sideOffset,
1128
- className: cn(
1129
- "dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
1130
- className
1131
- ),
1132
- ...props
1133
- }
1134
- )));
1122
+ var PopoverContent = React11.forwardRef(
1123
+ ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React11.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React11.createElement(
1124
+ PopoverPrimitive.Content,
1125
+ {
1126
+ ref,
1127
+ align,
1128
+ sideOffset,
1129
+ className: cn(
1130
+ "dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
1131
+ className
1132
+ ),
1133
+ ...props
1134
+ }
1135
+ ))
1136
+ );
1135
1137
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;
1136
1138
  var Popover = ({
1137
1139
  trigger,
@@ -300,19 +300,21 @@ import React4, { useState as useState3 } from "react";
300
300
  // elements/popover/Popover.tsx
301
301
  import * as React3 from "react";
302
302
  import * as PopoverPrimitive from "@radix-ui/react-popover";
303
- var PopoverContent = React3.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React3.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React3.createElement(
304
- PopoverPrimitive.Content,
305
- {
306
- ref,
307
- align,
308
- sideOffset,
309
- className: cn(
310
- "dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
311
- className
312
- ),
313
- ...props
314
- }
315
- )));
303
+ var PopoverContent = React3.forwardRef(
304
+ ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React3.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React3.createElement(
305
+ PopoverPrimitive.Content,
306
+ {
307
+ ref,
308
+ align,
309
+ sideOffset,
310
+ className: cn(
311
+ "dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
312
+ className
313
+ ),
314
+ ...props
315
+ }
316
+ ))
317
+ );
316
318
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;
317
319
  var Popover = ({
318
320
  trigger,
@@ -5171,19 +5171,21 @@ var import_react25 = __toESM(require("react"));
5171
5171
  // elements/popover/Popover.tsx
5172
5172
  var React30 = __toESM(require("react"));
5173
5173
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
5174
- var PopoverContent = React30.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React30.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React30.createElement(
5175
- PopoverPrimitive.Content,
5176
- {
5177
- ref,
5178
- align,
5179
- sideOffset,
5180
- className: cn(
5181
- "dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
5182
- className
5183
- ),
5184
- ...props
5185
- }
5186
- )));
5174
+ var PopoverContent = React30.forwardRef(
5175
+ ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React30.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React30.createElement(
5176
+ PopoverPrimitive.Content,
5177
+ {
5178
+ ref,
5179
+ align,
5180
+ sideOffset,
5181
+ className: cn(
5182
+ "dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
5183
+ className
5184
+ ),
5185
+ ...props
5186
+ }
5187
+ ))
5188
+ );
5187
5189
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;
5188
5190
  var Popover = ({
5189
5191
  trigger,
@@ -26,7 +26,7 @@ import {
26
26
  UncheckMark,
27
27
  VeryBadEmoji,
28
28
  VeryGoodEmoji
29
- } from "../chunk-XKVSLAKW.mjs";
29
+ } from "../chunk-TGB72TYK.mjs";
30
30
  import {
31
31
  Button,
32
32
  Card,
@@ -2719,19 +2719,21 @@ Textarea.displayName = "Textarea";
2719
2719
  // elements/popover/Popover.tsx
2720
2720
  import * as React11 from "react";
2721
2721
  import * as PopoverPrimitive from "@radix-ui/react-popover";
2722
- var PopoverContent = React11.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React11.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React11.createElement(
2723
- PopoverPrimitive.Content,
2724
- {
2725
- ref,
2726
- align,
2727
- sideOffset,
2728
- className: cn(
2729
- "dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
2730
- className
2731
- ),
2732
- ...props
2733
- }
2734
- )));
2722
+ var PopoverContent = React11.forwardRef(
2723
+ ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React11.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React11.createElement(
2724
+ PopoverPrimitive.Content,
2725
+ {
2726
+ ref,
2727
+ align,
2728
+ sideOffset,
2729
+ className: cn(
2730
+ "dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
2731
+ className
2732
+ ),
2733
+ ...props
2734
+ }
2735
+ ))
2736
+ );
2735
2737
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;
2736
2738
  var Popover = ({
2737
2739
  trigger,
@@ -35,6 +35,7 @@ type ComboboxTypes<T> = {
35
35
  /** If true, it will show a red asterisk next to the label*/
36
36
  isRequired?: boolean;
37
37
  onChange?: (e: any) => void;
38
+ renderOption?: (item: T) => React.ReactNode;
38
39
  };
39
40
  declare const Combobox: React.ForwardRefExoticComponent<ComboboxTypes<any> & React.RefAttributes<HTMLDivElement>>;
40
41
 
@@ -35,6 +35,7 @@ type ComboboxTypes<T> = {
35
35
  /** If true, it will show a red asterisk next to the label*/
36
36
  isRequired?: boolean;
37
37
  onChange?: (e: any) => void;
38
+ renderOption?: (item: T) => React.ReactNode;
38
39
  };
39
40
  declare const Combobox: React.ForwardRefExoticComponent<ComboboxTypes<any> & React.RefAttributes<HTMLDivElement>>;
40
41