@sikka/hawa 0.36.2-next → 0.37.1-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 (87) hide show
  1. package/dist/appLayout/index.js +1 -1
  2. package/dist/appLayout/index.js.map +1 -1
  3. package/dist/appLayout/index.mjs +1 -1
  4. package/dist/appLayout/index.mjs.map +1 -1
  5. package/dist/blocks/auth/index.js +24 -25
  6. package/dist/blocks/auth/index.mjs +4 -4
  7. package/dist/blocks/feedback/index.js +24 -25
  8. package/dist/blocks/feedback/index.mjs +5 -5
  9. package/dist/blocks/index.js +308 -192
  10. package/dist/blocks/index.mjs +3 -3
  11. package/dist/blocks/misc/index.js +270 -154
  12. package/dist/blocks/misc/index.mjs +53 -19
  13. package/dist/blocks/pricing/index.js +107 -22
  14. package/dist/blocks/pricing/index.mjs +4 -4
  15. package/dist/card/index.d.mts +3 -1
  16. package/dist/card/index.d.ts +3 -1
  17. package/dist/card/index.js +13 -11
  18. package/dist/card/index.js.map +1 -1
  19. package/dist/card/index.mjs +13 -11
  20. package/dist/card/index.mjs.map +1 -1
  21. package/dist/{chunk-WABHQMUI.mjs → chunk-BPHQFAWM.mjs} +1 -1
  22. package/dist/{chunk-MVKP55SZ.mjs → chunk-BTDR3VAG.mjs} +1 -1
  23. package/dist/{chunk-7L2JUNG2.mjs → chunk-DS3AACQJ.mjs} +1 -1
  24. package/dist/{chunk-BXBSZD5X.mjs → chunk-MDHDHEPZ.mjs} +1 -1
  25. package/dist/{chunk-6QIOEUE2.mjs → chunk-ODOCZAWC.mjs} +1 -1
  26. package/dist/{chunk-YP2CCKZG.mjs → chunk-PXGL7ZXQ.mjs} +13 -11
  27. package/dist/{chunk-HLYAX77R.mjs → chunk-QXH7ZDMN.mjs} +12 -15
  28. package/dist/{chunk-T33FXOHA.mjs → chunk-QYWOI3DO.mjs} +152 -41
  29. package/dist/{chunk-NNPNQK6F.mjs → chunk-RNFJAEEU.mjs} +13 -11
  30. package/dist/{chunk-OPYDG34F.mjs → chunk-ZBUBNKF6.mjs} +93 -1
  31. package/dist/{chunk-CJ57JBYA.mjs → chunk-ZTUWU652.mjs} +95 -12
  32. package/dist/combobox/index.d.mts +1 -4
  33. package/dist/combobox/index.d.ts +1 -4
  34. package/dist/combobox/index.js +2 -1
  35. package/dist/combobox/index.js.map +1 -1
  36. package/dist/combobox/index.mjs +2 -1
  37. package/dist/combobox/index.mjs.map +1 -1
  38. package/dist/command/index.d.mts +4 -36
  39. package/dist/command/index.d.ts +4 -36
  40. package/dist/command/index.js +43 -5
  41. package/dist/command/index.js.map +1 -1
  42. package/dist/command/index.mjs +39 -3
  43. package/dist/command/index.mjs.map +1 -1
  44. package/dist/destroyableCard/index.js +13 -11
  45. package/dist/destroyableCard/index.js.map +1 -1
  46. package/dist/destroyableCard/index.mjs +13 -11
  47. package/dist/destroyableCard/index.mjs.map +1 -1
  48. package/dist/elements/index.d.mts +31 -3
  49. package/dist/elements/index.d.ts +31 -3
  50. package/dist/elements/index.js +450 -295
  51. package/dist/elements/index.mjs +43 -6
  52. package/dist/hooks/index.d.mts +25 -1
  53. package/dist/hooks/index.d.ts +25 -1
  54. package/dist/hooks/index.js +96 -0
  55. package/dist/hooks/index.mjs +9 -1
  56. package/dist/index-e_Ob_SnB.d.mts +63 -0
  57. package/dist/index-e_Ob_SnB.d.ts +63 -0
  58. package/dist/index.css +20 -3
  59. package/dist/index.d.mts +55 -3
  60. package/dist/index.d.ts +55 -3
  61. package/dist/index.js +966 -718
  62. package/dist/index.mjs +494 -252
  63. package/dist/layout/index.js +14 -12
  64. package/dist/layout/index.mjs +3 -3
  65. package/dist/phoneInput/index.js +11 -14
  66. package/dist/phoneInput/index.js.map +1 -1
  67. package/dist/phoneInput/index.mjs +11 -14
  68. package/dist/phoneInput/index.mjs.map +1 -1
  69. package/dist/scrollArea/index.js +94 -11
  70. package/dist/scrollArea/index.js.map +1 -1
  71. package/dist/scrollArea/index.mjs +94 -11
  72. package/dist/scrollArea/index.mjs.map +1 -1
  73. package/dist/select/index.js +11 -14
  74. package/dist/select/index.js.map +1 -1
  75. package/dist/select/index.mjs +11 -14
  76. package/dist/select/index.mjs.map +1 -1
  77. package/dist/stats/index.js +13 -11
  78. package/dist/stats/index.js.map +1 -1
  79. package/dist/stats/index.mjs +13 -11
  80. package/dist/stats/index.mjs.map +1 -1
  81. package/dist/tabs/index.d.mts +3 -1
  82. package/dist/tabs/index.d.ts +3 -1
  83. package/dist/tabs/index.js +189 -32
  84. package/dist/tabs/index.js.map +1 -1
  85. package/dist/tabs/index.mjs +184 -27
  86. package/dist/tabs/index.mjs.map +1 -1
  87. package/package.json +1 -1
@@ -1108,17 +1108,19 @@ var Card = React9.forwardRef(
1108
1108
  );
1109
1109
  }
1110
1110
  );
1111
- var CardHeader = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
1112
- "div",
1113
- {
1114
- ref,
1115
- className: cn(
1116
- "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
1117
- className
1118
- ),
1119
- ...props
1120
- }
1121
- ));
1111
+ var CardHeader = React9.forwardRef(
1112
+ ({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ React9.createElement(
1113
+ "div",
1114
+ {
1115
+ ref,
1116
+ className: cn(
1117
+ "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
1118
+ className
1119
+ ),
1120
+ ...props
1121
+ }
1122
+ ), props.actions && /* @__PURE__ */ React9.createElement("div", { className: "hawa-p-6" }, props.actions))
1123
+ );
1122
1124
  var CardTitle = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
1123
1125
  "h3",
1124
1126
  {
@@ -3136,6 +3138,10 @@ var Select = ({
3136
3138
  children
3137
3139
  );
3138
3140
  };
3141
+ let phoneCodeStyles = "hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px]";
3142
+ let selectContainerStyles = "hawa-rounded hawa-block hawa-w-full hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm";
3143
+ let selectPlaceholderStyles = "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1";
3144
+ let selectIndicatorContainerStyles = "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ";
3139
3145
  return /* @__PURE__ */ import_react9.default.createElement(
3140
3146
  "div",
3141
3147
  {
@@ -3157,26 +3163,22 @@ var Select = ({
3157
3163
  props.controlClassNames
3158
3164
  ),
3159
3165
  container: () => cn(
3160
- "hawa-rounded ",
3161
- props.phoneCode && "hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px] ",
3162
- "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm",
3166
+ selectContainerStyles,
3167
+ props.phoneCode && phoneCodeStyles,
3163
3168
  props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer",
3164
3169
  props.isMulti && "hawa-ps-0 "
3165
3170
  ),
3166
- placeholder: () => "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1",
3171
+ placeholder: () => selectPlaceholderStyles,
3167
3172
  valueContainer: () => "hawa-text-foreground hawa-px-1 ",
3168
3173
  singleValue: () => "hawa-text-foreground",
3169
3174
  indicatorsContainer: () => cn(
3170
- "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ",
3175
+ selectIndicatorContainerStyles,
3171
3176
  props.hideIndicator ? "hawa-invisible" : "hawa-px-1"
3172
3177
  )
3173
3178
  },
3174
3179
  unstyled: true,
3175
- components: props.hideIndicator ? {
3176
- Option,
3177
- Menu,
3178
- IndicatorsContainer: () => null
3179
- } : {
3180
+ autoFocus: false,
3181
+ components: props.hideIndicator ? { Option, Menu, IndicatorsContainer: () => null } : {
3180
3182
  Option,
3181
3183
  Menu,
3182
3184
  // Control: (e) => (
@@ -3198,10 +3200,7 @@ var Select = ({
3198
3200
  MultiValueContainer: (e) => /* @__PURE__ */ import_react9.default.createElement(
3199
3201
  "div",
3200
3202
  {
3201
- className: cn(
3202
- // e.className,
3203
- "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row"
3204
- ),
3203
+ className: "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row",
3205
3204
  ...e
3206
3205
  }
3207
3206
  )
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import {
3
3
  Input
4
- } from "../../chunk-BXBSZD5X.mjs";
4
+ } from "../../chunk-MDHDHEPZ.mjs";
5
5
  import {
6
6
  StopPropagationWrapper
7
7
  } from "../../chunk-47APBDKK.mjs";
8
8
  import {
9
9
  Select
10
- } from "../../chunk-HLYAX77R.mjs";
10
+ } from "../../chunk-QXH7ZDMN.mjs";
11
11
  import {
12
12
  EyeIcon,
13
13
  HiddenEyeIcon
14
- } from "../../chunk-7L2JUNG2.mjs";
14
+ } from "../../chunk-DS3AACQJ.mjs";
15
15
  import {
16
16
  Button,
17
17
  Card,
@@ -23,7 +23,7 @@ import {
23
23
  Label,
24
24
  Loading,
25
25
  cn
26
- } from "../../chunk-YP2CCKZG.mjs";
26
+ } from "../../chunk-PXGL7ZXQ.mjs";
27
27
 
28
28
  // blocks/auth/AuthButtons.tsx
29
29
  import React2 from "react";
@@ -506,17 +506,19 @@ var Card = React6.forwardRef(
506
506
  );
507
507
  }
508
508
  );
509
- var CardHeader = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
510
- "div",
511
- {
512
- ref,
513
- className: cn(
514
- "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
515
- className
516
- ),
517
- ...props
518
- }
519
- ));
509
+ var CardHeader = React6.forwardRef(
510
+ ({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ React6.createElement(
511
+ "div",
512
+ {
513
+ ref,
514
+ className: cn(
515
+ "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
516
+ className
517
+ ),
518
+ ...props
519
+ }
520
+ ), props.actions && /* @__PURE__ */ React6.createElement("div", { className: "hawa-p-6" }, props.actions))
521
+ );
520
522
  var CardTitle = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
521
523
  "h3",
522
524
  {
@@ -1526,6 +1528,10 @@ var Select = ({
1526
1528
  children
1527
1529
  );
1528
1530
  };
1531
+ let phoneCodeStyles = "hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px]";
1532
+ let selectContainerStyles = "hawa-rounded hawa-block hawa-w-full hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm";
1533
+ let selectPlaceholderStyles = "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1";
1534
+ let selectIndicatorContainerStyles = "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ";
1529
1535
  return /* @__PURE__ */ import_react12.default.createElement(
1530
1536
  "div",
1531
1537
  {
@@ -1547,26 +1553,22 @@ var Select = ({
1547
1553
  props.controlClassNames
1548
1554
  ),
1549
1555
  container: () => cn(
1550
- "hawa-rounded ",
1551
- props.phoneCode && "hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px] ",
1552
- "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm",
1556
+ selectContainerStyles,
1557
+ props.phoneCode && phoneCodeStyles,
1553
1558
  props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer",
1554
1559
  props.isMulti && "hawa-ps-0 "
1555
1560
  ),
1556
- placeholder: () => "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1",
1561
+ placeholder: () => selectPlaceholderStyles,
1557
1562
  valueContainer: () => "hawa-text-foreground hawa-px-1 ",
1558
1563
  singleValue: () => "hawa-text-foreground",
1559
1564
  indicatorsContainer: () => cn(
1560
- "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ",
1565
+ selectIndicatorContainerStyles,
1561
1566
  props.hideIndicator ? "hawa-invisible" : "hawa-px-1"
1562
1567
  )
1563
1568
  },
1564
1569
  unstyled: true,
1565
- components: props.hideIndicator ? {
1566
- Option,
1567
- Menu,
1568
- IndicatorsContainer: () => null
1569
- } : {
1570
+ autoFocus: false,
1571
+ components: props.hideIndicator ? { Option, Menu, IndicatorsContainer: () => null } : {
1570
1572
  Option,
1571
1573
  Menu,
1572
1574
  // Control: (e) => (
@@ -1588,10 +1590,7 @@ var Select = ({
1588
1590
  MultiValueContainer: (e) => /* @__PURE__ */ import_react12.default.createElement(
1589
1591
  "div",
1590
1592
  {
1591
- className: cn(
1592
- // e.className,
1593
- "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row"
1594
- ),
1593
+ className: "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row",
1595
1594
  ...e
1596
1595
  }
1597
1596
  )
@@ -1,27 +1,27 @@
1
1
  "use client";
2
2
  import {
3
3
  Textarea
4
- } from "../../chunk-WABHQMUI.mjs";
4
+ } from "../../chunk-BPHQFAWM.mjs";
5
5
  import {
6
6
  Select
7
- } from "../../chunk-HLYAX77R.mjs";
7
+ } from "../../chunk-QXH7ZDMN.mjs";
8
8
  import {
9
9
  Popover,
10
10
  Radio
11
- } from "../../chunk-MVKP55SZ.mjs";
11
+ } from "../../chunk-BTDR3VAG.mjs";
12
12
  import {
13
13
  BadEmoji,
14
14
  GoodEmoji,
15
15
  VeryBadEmoji,
16
16
  VeryGoodEmoji
17
- } from "../../chunk-7L2JUNG2.mjs";
17
+ } from "../../chunk-DS3AACQJ.mjs";
18
18
  import {
19
19
  Button,
20
20
  Card,
21
21
  CardContent,
22
22
  Label,
23
23
  cn
24
- } from "../../chunk-YP2CCKZG.mjs";
24
+ } from "../../chunk-PXGL7ZXQ.mjs";
25
25
 
26
26
  // blocks/feedback/UserReferralSource.tsx
27
27
  import React, { useRef, useState } from "react";