@sikka/hawa 0.36.1-next → 0.37.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 (75) hide show
  1. package/README.md +1 -5
  2. package/dist/appLayout/index.d.mts +0 -2
  3. package/dist/appLayout/index.d.ts +0 -2
  4. package/dist/appLayout/index.js +20 -7
  5. package/dist/appLayout/index.js.map +1 -1
  6. package/dist/appLayout/index.mjs +21 -8
  7. package/dist/appLayout/index.mjs.map +1 -1
  8. package/dist/blocks/auth/index.js +11 -14
  9. package/dist/blocks/auth/index.mjs +1 -1
  10. package/dist/blocks/feedback/index.js +11 -14
  11. package/dist/blocks/feedback/index.mjs +1 -1
  12. package/dist/blocks/index.js +295 -181
  13. package/dist/blocks/index.mjs +2 -2
  14. package/dist/blocks/misc/index.js +257 -143
  15. package/dist/blocks/misc/index.mjs +50 -16
  16. package/dist/blocks/pricing/index.js +94 -11
  17. package/dist/blocks/pricing/index.mjs +1 -1
  18. package/dist/{chunk-CJ57JBYA.mjs → chunk-I5YX7N76.mjs} +94 -11
  19. package/dist/{chunk-T33FXOHA.mjs → chunk-PO5OW6SQ.mjs} +151 -40
  20. package/dist/{chunk-HLYAX77R.mjs → chunk-SE5A4R76.mjs} +11 -14
  21. package/dist/{chunk-OPYDG34F.mjs → chunk-ZBUBNKF6.mjs} +93 -1
  22. package/dist/combobox/index.d.mts +1 -4
  23. package/dist/combobox/index.d.ts +1 -4
  24. package/dist/combobox/index.js +3 -2
  25. package/dist/combobox/index.js.map +1 -1
  26. package/dist/combobox/index.mjs +3 -2
  27. package/dist/combobox/index.mjs.map +1 -1
  28. package/dist/command/index.d.mts +4 -36
  29. package/dist/command/index.d.ts +4 -36
  30. package/dist/command/index.js +44 -6
  31. package/dist/command/index.js.map +1 -1
  32. package/dist/command/index.mjs +40 -4
  33. package/dist/command/index.mjs.map +1 -1
  34. package/dist/dialog/index.js +1 -1
  35. package/dist/dialog/index.js.map +1 -1
  36. package/dist/dialog/index.mjs +1 -1
  37. package/dist/dialog/index.mjs.map +1 -1
  38. package/dist/elements/index.d.mts +28 -2
  39. package/dist/elements/index.d.ts +28 -2
  40. package/dist/elements/index.js +438 -285
  41. package/dist/elements/index.mjs +42 -5
  42. package/dist/hooks/index.d.mts +25 -1
  43. package/dist/hooks/index.d.ts +25 -1
  44. package/dist/hooks/index.js +96 -0
  45. package/dist/hooks/index.mjs +9 -1
  46. package/dist/index-CoPyqTu8.d.mts +63 -0
  47. package/dist/index-CoPyqTu8.d.ts +63 -0
  48. package/dist/index.css +23 -0
  49. package/dist/index.d.mts +52 -4
  50. package/dist/index.d.ts +52 -4
  51. package/dist/index.js +965 -708
  52. package/dist/index.mjs +496 -245
  53. package/dist/layout/index.d.mts +0 -2
  54. package/dist/layout/index.d.ts +0 -2
  55. package/dist/layout/index.js +20 -7
  56. package/dist/layout/index.mjs +19 -8
  57. package/dist/phoneInput/index.js +11 -14
  58. package/dist/phoneInput/index.js.map +1 -1
  59. package/dist/phoneInput/index.mjs +11 -14
  60. package/dist/phoneInput/index.mjs.map +1 -1
  61. package/dist/scrollArea/index.js +94 -11
  62. package/dist/scrollArea/index.js.map +1 -1
  63. package/dist/scrollArea/index.mjs +94 -11
  64. package/dist/scrollArea/index.mjs.map +1 -1
  65. package/dist/select/index.js +11 -14
  66. package/dist/select/index.js.map +1 -1
  67. package/dist/select/index.mjs +11 -14
  68. package/dist/select/index.mjs.map +1 -1
  69. package/dist/tabs/index.d.mts +3 -1
  70. package/dist/tabs/index.d.ts +3 -1
  71. package/dist/tabs/index.js +189 -32
  72. package/dist/tabs/index.js.map +1 -1
  73. package/dist/tabs/index.mjs +184 -27
  74. package/dist/tabs/index.mjs.map +1 -1
  75. package/package.json +1 -1
@@ -3136,6 +3136,10 @@ var Select = ({
3136
3136
  children
3137
3137
  );
3138
3138
  };
3139
+ let phoneCodeStyles = "hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px]";
3140
+ 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";
3141
+ let selectPlaceholderStyles = "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1";
3142
+ let selectIndicatorContainerStyles = "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ";
3139
3143
  return /* @__PURE__ */ import_react9.default.createElement(
3140
3144
  "div",
3141
3145
  {
@@ -3157,26 +3161,22 @@ var Select = ({
3157
3161
  props.controlClassNames
3158
3162
  ),
3159
3163
  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",
3164
+ selectContainerStyles,
3165
+ props.phoneCode && phoneCodeStyles,
3163
3166
  props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer",
3164
3167
  props.isMulti && "hawa-ps-0 "
3165
3168
  ),
3166
- placeholder: () => "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1",
3169
+ placeholder: () => selectPlaceholderStyles,
3167
3170
  valueContainer: () => "hawa-text-foreground hawa-px-1 ",
3168
3171
  singleValue: () => "hawa-text-foreground",
3169
3172
  indicatorsContainer: () => cn(
3170
- "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ",
3173
+ selectIndicatorContainerStyles,
3171
3174
  props.hideIndicator ? "hawa-invisible" : "hawa-px-1"
3172
3175
  )
3173
3176
  },
3174
3177
  unstyled: true,
3175
- components: props.hideIndicator ? {
3176
- Option,
3177
- Menu,
3178
- IndicatorsContainer: () => null
3179
- } : {
3178
+ autoFocus: false,
3179
+ components: props.hideIndicator ? { Option, Menu, IndicatorsContainer: () => null } : {
3180
3180
  Option,
3181
3181
  Menu,
3182
3182
  // Control: (e) => (
@@ -3198,10 +3198,7 @@ var Select = ({
3198
3198
  MultiValueContainer: (e) => /* @__PURE__ */ import_react9.default.createElement(
3199
3199
  "div",
3200
3200
  {
3201
- className: cn(
3202
- // e.className,
3203
- "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row"
3204
- ),
3201
+ className: "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row",
3205
3202
  ...e
3206
3203
  }
3207
3204
  )
@@ -7,7 +7,7 @@ import {
7
7
  } from "../../chunk-47APBDKK.mjs";
8
8
  import {
9
9
  Select
10
- } from "../../chunk-HLYAX77R.mjs";
10
+ } from "../../chunk-SE5A4R76.mjs";
11
11
  import {
12
12
  EyeIcon,
13
13
  HiddenEyeIcon
@@ -1526,6 +1526,10 @@ var Select = ({
1526
1526
  children
1527
1527
  );
1528
1528
  };
1529
+ let phoneCodeStyles = "hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px]";
1530
+ 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";
1531
+ let selectPlaceholderStyles = "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1";
1532
+ let selectIndicatorContainerStyles = "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ";
1529
1533
  return /* @__PURE__ */ import_react12.default.createElement(
1530
1534
  "div",
1531
1535
  {
@@ -1547,26 +1551,22 @@ var Select = ({
1547
1551
  props.controlClassNames
1548
1552
  ),
1549
1553
  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",
1554
+ selectContainerStyles,
1555
+ props.phoneCode && phoneCodeStyles,
1553
1556
  props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer",
1554
1557
  props.isMulti && "hawa-ps-0 "
1555
1558
  ),
1556
- placeholder: () => "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1",
1559
+ placeholder: () => selectPlaceholderStyles,
1557
1560
  valueContainer: () => "hawa-text-foreground hawa-px-1 ",
1558
1561
  singleValue: () => "hawa-text-foreground",
1559
1562
  indicatorsContainer: () => cn(
1560
- "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ",
1563
+ selectIndicatorContainerStyles,
1561
1564
  props.hideIndicator ? "hawa-invisible" : "hawa-px-1"
1562
1565
  )
1563
1566
  },
1564
1567
  unstyled: true,
1565
- components: props.hideIndicator ? {
1566
- Option,
1567
- Menu,
1568
- IndicatorsContainer: () => null
1569
- } : {
1568
+ autoFocus: false,
1569
+ components: props.hideIndicator ? { Option, Menu, IndicatorsContainer: () => null } : {
1570
1570
  Option,
1571
1571
  Menu,
1572
1572
  // Control: (e) => (
@@ -1588,10 +1588,7 @@ var Select = ({
1588
1588
  MultiValueContainer: (e) => /* @__PURE__ */ import_react12.default.createElement(
1589
1589
  "div",
1590
1590
  {
1591
- className: cn(
1592
- // e.className,
1593
- "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row"
1594
- ),
1591
+ className: "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row",
1595
1592
  ...e
1596
1593
  }
1597
1594
  )
@@ -4,7 +4,7 @@ import {
4
4
  } from "../../chunk-WABHQMUI.mjs";
5
5
  import {
6
6
  Select
7
- } from "../../chunk-HLYAX77R.mjs";
7
+ } from "../../chunk-SE5A4R76.mjs";
8
8
  import {
9
9
  Popover,
10
10
  Radio