@sikka/hawa 0.23.2-next → 0.23.7-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 (145) hide show
  1. package/dist/accordion/index.js +30 -2399
  2. package/dist/accordion/index.mjs +19 -461
  3. package/dist/alert/index.mjs +0 -1
  4. package/dist/appStores/index.js +75 -0
  5. package/dist/appStores/index.mjs +38 -0
  6. package/dist/avatar/index.mjs +118 -3
  7. package/dist/backToTop/index.mjs +102 -4
  8. package/dist/badge/index.js +127 -0
  9. package/dist/badge/index.mjs +84 -0
  10. package/dist/blocks/auth/index.js +1173 -3092
  11. package/dist/blocks/auth/index.mjs +16 -10
  12. package/dist/blocks/feedback/index.js +864 -2913
  13. package/dist/blocks/feedback/index.mjs +14 -8
  14. package/dist/blocks/index.js +5714 -5316
  15. package/dist/blocks/index.mjs +390 -45
  16. package/dist/blocks/misc/index.js +634 -2409
  17. package/dist/blocks/misc/index.mjs +14 -8
  18. package/dist/blocks/pricing/index.js +522 -524
  19. package/dist/blocks/pricing/index.mjs +1861 -45
  20. package/dist/breadcrumb/index.js +63 -0
  21. package/dist/breadcrumb/index.mjs +26 -0
  22. package/dist/card/index.mjs +83 -8
  23. package/dist/checkbox/index.mjs +138 -3
  24. package/dist/chip/index.js +129 -0
  25. package/dist/chip/index.mjs +8 -0
  26. package/dist/{chunk-X6PCWJYD.mjs → chunk-2R2QPJT7.mjs} +761 -1104
  27. package/dist/chunk-677VOLD4.mjs +464 -0
  28. package/dist/chunk-72HYR6WB.mjs +88 -0
  29. package/dist/chunk-A25EXELT.mjs +131 -0
  30. package/dist/{chunk-OE27DSIY.mjs → chunk-F6TKEDDP.mjs} +2 -4
  31. package/dist/{chunk-YFC2GSJ6.mjs → chunk-P2O6R3S6.mjs} +66 -5
  32. package/dist/{chunk-GXXX5UB4.mjs → chunk-QGKW5R5F.mjs} +59 -20
  33. package/dist/chunk-TR56G3NM.mjs +2350 -0
  34. package/dist/chunk-UAVBFK53.mjs +346 -0
  35. package/dist/combobox/index.mjs +153 -7
  36. package/dist/dataTable/index.mjs +355 -8
  37. package/dist/elements/index.js +800 -1148
  38. package/dist/elements/index.mjs +1 -11
  39. package/dist/fileDropzone/index.mjs +226 -4
  40. package/dist/index.js +1721 -1721
  41. package/dist/index.mjs +1663 -1663
  42. package/dist/layout/index.js +493 -510
  43. package/dist/layout/index.mjs +1 -1
  44. package/dist/loading/index.mjs +0 -1
  45. package/dist/logos/index.mjs +204 -3
  46. package/dist/navigationMenu/index.mjs +155 -13
  47. package/dist/phoneInput/index.js +2074 -0
  48. package/dist/phoneInput/index.mjs +1776 -0
  49. package/dist/pinInput/index.js +130 -0
  50. package/dist/pinInput/index.mjs +88 -0
  51. package/dist/progress/index.js +71 -0
  52. package/dist/progress/index.mjs +29 -0
  53. package/dist/radio/index.mjs +202 -4
  54. package/dist/scrollArea/index.js +90 -0
  55. package/dist/scrollArea/index.mjs +47 -0
  56. package/dist/select/index.mjs +1 -1
  57. package/dist/sheet/index.mjs +137 -12
  58. package/dist/sortButton/index.mjs +40 -4
  59. package/dist/stopPropagationWrapper/index.js +48 -0
  60. package/dist/stopPropagationWrapper/index.mjs +11 -0
  61. package/dist/switch/index.mjs +79 -3
  62. package/dist/tabs/index.js +1 -1
  63. package/dist/tabs/index.mjs +68 -6
  64. package/dist/textarea/index.mjs +54 -4
  65. package/package.json +2 -2
  66. package/dist/Chip-DJ6ThZc_.d.ts +0 -21
  67. package/dist/Chip-eal8vwDz.d.mts +0 -21
  68. package/dist/accordion/index.d.mts +0 -42
  69. package/dist/accordion/index.d.ts +0 -42
  70. package/dist/alert/index.d.mts +0 -28
  71. package/dist/alert/index.d.ts +0 -28
  72. package/dist/avatar/index.d.mts +0 -15
  73. package/dist/avatar/index.d.ts +0 -15
  74. package/dist/backToTop/index.d.mts +0 -15
  75. package/dist/backToTop/index.d.ts +0 -15
  76. package/dist/button/index.d.mts +0 -16
  77. package/dist/button/index.d.ts +0 -16
  78. package/dist/card/index.d.mts +0 -17
  79. package/dist/card/index.d.ts +0 -17
  80. package/dist/checkbox/index.d.mts +0 -20
  81. package/dist/checkbox/index.d.ts +0 -20
  82. package/dist/chunk-BK5WF7UO.mjs +0 -231
  83. package/dist/chunk-CXWYC6FS.mjs +0 -360
  84. package/dist/chunk-D2USGMDT.mjs +0 -208
  85. package/dist/chunk-DX4SLF2L.mjs +0 -45
  86. package/dist/chunk-ENNSA4VR.mjs +0 -5566
  87. package/dist/chunk-GXSYCLZZ.mjs +0 -158
  88. package/dist/chunk-IQPGAHUR.mjs +0 -107
  89. package/dist/chunk-POT2IP62.mjs +0 -123
  90. package/dist/chunk-TWDZB2VH.mjs +0 -151
  91. package/dist/chunk-VBTYVVA7.mjs +0 -93
  92. package/dist/chunk-VCGW5DIP.mjs +0 -170
  93. package/dist/chunk-X3SMPIA3.mjs +0 -0
  94. package/dist/chunk-XA646BZ2.mjs +0 -143
  95. package/dist/chunk-ZCUUQ5VV.mjs +0 -84
  96. package/dist/combobox/index.d.mts +0 -32
  97. package/dist/combobox/index.d.ts +0 -32
  98. package/dist/command/index.d.mts +0 -48
  99. package/dist/command/index.d.ts +0 -48
  100. package/dist/commonTypes-gbO4hPli.d.mts +0 -7
  101. package/dist/commonTypes-gbO4hPli.d.ts +0 -7
  102. package/dist/dataTable/index.d.mts +0 -39
  103. package/dist/dataTable/index.d.ts +0 -39
  104. package/dist/dialog/index.d.mts +0 -57
  105. package/dist/dialog/index.d.ts +0 -57
  106. package/dist/dropdownMenu/index.d.mts +0 -95
  107. package/dist/dropdownMenu/index.d.ts +0 -95
  108. package/dist/fileDropzone/index.d.mts +0 -37
  109. package/dist/fileDropzone/index.d.ts +0 -37
  110. package/dist/input/index.d.mts +0 -36
  111. package/dist/input/index.d.ts +0 -36
  112. package/dist/label/index.d.mts +0 -12
  113. package/dist/label/index.d.ts +0 -12
  114. package/dist/loading/index.d.mts +0 -15
  115. package/dist/loading/index.d.ts +0 -15
  116. package/dist/logos/index.d.mts +0 -27
  117. package/dist/logos/index.d.ts +0 -27
  118. package/dist/navigationMenu/index.d.mts +0 -39
  119. package/dist/navigationMenu/index.d.ts +0 -39
  120. package/dist/popover/index.d.mts +0 -23
  121. package/dist/popover/index.d.ts +0 -23
  122. package/dist/radio/index.d.mts +0 -28
  123. package/dist/radio/index.d.ts +0 -28
  124. package/dist/select/index.d.mts +0 -43
  125. package/dist/select/index.d.ts +0 -43
  126. package/dist/sheet/index.d.mts +0 -30
  127. package/dist/sheet/index.d.ts +0 -30
  128. package/dist/skeleton/index.d.mts +0 -10
  129. package/dist/skeleton/index.d.ts +0 -10
  130. package/dist/sortButton/index.d.mts +0 -10
  131. package/dist/sortButton/index.d.ts +0 -10
  132. package/dist/splitButton/index.d.mts +0 -15
  133. package/dist/splitButton/index.d.ts +0 -15
  134. package/dist/switch/index.d.mts +0 -12
  135. package/dist/switch/index.d.ts +0 -12
  136. package/dist/table/index.d.mts +0 -21
  137. package/dist/table/index.d.ts +0 -21
  138. package/dist/tabs/index.d.mts +0 -16
  139. package/dist/tabs/index.d.ts +0 -16
  140. package/dist/textarea/index.d.mts +0 -17
  141. package/dist/textarea/index.d.ts +0 -17
  142. package/dist/tooltip/index.d.mts +0 -26
  143. package/dist/tooltip/index.d.ts +0 -26
  144. /package/dist/{chunk-A7OPD7H7.mjs → chunk-B6UCD4GP.mjs} +0 -0
  145. /package/dist/{chunk-O2ALK7UE.mjs → chunk-Z4M72OD3.mjs} +0 -0
@@ -1,9 +1,7 @@
1
1
  import {
2
- Label
3
- } from "./chunk-Z3JCNSB3.mjs";
4
- import {
2
+ Label,
5
3
  cn
6
- } from "./chunk-TE3BKEXL.mjs";
4
+ } from "./chunk-677VOLD4.mjs";
7
5
 
8
6
  // components/elements/radio/Radio.tsx
9
7
  import React, { useState, useRef, useEffect } from "react";
@@ -202,6 +200,69 @@ var Radio = ({
202
200
  }
203
201
  };
204
202
 
203
+ // components/elements/popover/Popover.tsx
204
+ import * as React2 from "react";
205
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
206
+ var PopoverContent = React2.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React2.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React2.createElement(
207
+ PopoverPrimitive.Content,
208
+ {
209
+ ref,
210
+ align,
211
+ sideOffset,
212
+ className: cn(
213
+ "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",
214
+ className
215
+ ),
216
+ ...props
217
+ }
218
+ )));
219
+ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
220
+ var Popover = ({
221
+ trigger,
222
+ children,
223
+ className,
224
+ align = "center",
225
+ side,
226
+ sideOffset = 4,
227
+ open,
228
+ width = "default",
229
+ disableTrigger,
230
+ contentProps,
231
+ triggerProps,
232
+ ...props
233
+ }) => {
234
+ let widthStyles = {
235
+ trigger: "var(--radix-popover-trigger-width)",
236
+ default: "auto"
237
+ };
238
+ return /* @__PURE__ */ React2.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React2.createElement(
239
+ PopoverPrimitive.Trigger,
240
+ {
241
+ className: "hawa-w-full",
242
+ disabled: disableTrigger,
243
+ ...triggerProps
244
+ },
245
+ trigger
246
+ ), /* @__PURE__ */ React2.createElement(
247
+ PopoverContent,
248
+ {
249
+ side,
250
+ className,
251
+ align,
252
+ sideOffset,
253
+ style: {
254
+ width: widthStyles[width]
255
+ },
256
+ ...contentProps
257
+ },
258
+ children
259
+ ));
260
+ };
261
+ var PopoverTrigger = PopoverPrimitive.Trigger;
262
+
205
263
  export {
206
- Radio
264
+ Radio,
265
+ PopoverContent,
266
+ Popover,
267
+ PopoverTrigger
207
268
  };
@@ -1,14 +1,50 @@
1
1
  import {
2
2
  cn
3
- } from "./chunk-TE3BKEXL.mjs";
3
+ } from "./chunk-677VOLD4.mjs";
4
4
 
5
- // components/elements/tabs/Tabs.tsx
6
- import * as React2 from "react";
7
- import * as TabsPrimitive from "@radix-ui/react-tabs";
5
+ // components/elements/scrollArea/ScrollArea.tsx
6
+ import * as React from "react";
7
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
8
+ var ScrollArea = React.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React.createElement(
9
+ ScrollAreaPrimitive.Root,
10
+ {
11
+ ref,
12
+ className: cn("hawa-relative hawa-overflow-hidden", className),
13
+ ...props
14
+ },
15
+ /* @__PURE__ */ React.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
16
+ /* @__PURE__ */ React.createElement(ScrollBar, { orientation }),
17
+ /* @__PURE__ */ React.createElement(ScrollAreaPrimitive.Corner, null)
18
+ ));
19
+ ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
20
+ var ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React.createElement(
21
+ ScrollAreaPrimitive.ScrollAreaScrollbar,
22
+ {
23
+ ref,
24
+ orientation,
25
+ className: cn(
26
+ "hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors",
27
+ orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]",
28
+ orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]",
29
+ className
30
+ ),
31
+ ...props
32
+ },
33
+ /* @__PURE__ */ React.createElement(
34
+ ScrollAreaPrimitive.ScrollAreaThumb,
35
+ {
36
+ className: cn(
37
+ "hawa-relative hawa-rounded-full hawa-bg-border",
38
+ orientation === "vertical" && "hawa-flex-1"
39
+ )
40
+ }
41
+ )
42
+ ));
43
+ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
8
44
 
9
- // components/elements/Chip.tsx
10
- import React from "react";
11
- var Chip = React.forwardRef(
45
+ // components/elements/chip/Chip.tsx
46
+ import React2 from "react";
47
+ var Chip = React2.forwardRef(
12
48
  ({
13
49
  label,
14
50
  size = "normal",
@@ -50,7 +86,7 @@ var Chip = React.forwardRef(
50
86
  oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
51
87
  };
52
88
  if (label) {
53
- return /* @__PURE__ */ React.createElement(
89
+ return /* @__PURE__ */ React2.createElement(
54
90
  "span",
55
91
  {
56
92
  ...rest,
@@ -62,7 +98,7 @@ var Chip = React.forwardRef(
62
98
  color ? colorStyles[color] : "hawa-border hawa-bg-none"
63
99
  )
64
100
  },
65
- dotType && /* @__PURE__ */ React.createElement(
101
+ dotType && /* @__PURE__ */ React2.createElement(
66
102
  "span",
67
103
  {
68
104
  className: cn(dotStyles[size], dotTypeStyles[dotType])
@@ -72,7 +108,7 @@ var Chip = React.forwardRef(
72
108
  label
73
109
  );
74
110
  } else {
75
- return /* @__PURE__ */ React.createElement(
111
+ return /* @__PURE__ */ React2.createElement(
76
112
  "span",
77
113
  {
78
114
  ...rest,
@@ -88,8 +124,10 @@ var Chip = React.forwardRef(
88
124
  );
89
125
 
90
126
  // components/elements/tabs/Tabs.tsx
91
- var TabsContext = React2.createContext({ orientation: "vertical" });
92
- var Tabs = React2.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React2.createElement(
127
+ import * as React3 from "react";
128
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
129
+ var TabsContext = React3.createContext({ orientation: "vertical" });
130
+ var Tabs = React3.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React3.createElement(
93
131
  TabsPrimitive.Root,
94
132
  {
95
133
  ref,
@@ -100,12 +138,12 @@ var Tabs = React2.forwardRef(({ className, orientation, ...props }, ref) => /* @
100
138
  ),
101
139
  ...props
102
140
  },
103
- /* @__PURE__ */ React2.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
141
+ /* @__PURE__ */ React3.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
104
142
  ));
105
143
  Tabs.displayName = TabsPrimitive.Root.displayName;
106
- var TabsList = React2.forwardRef(({ className, ...props }, ref) => {
107
- const { orientation } = React2.useContext(TabsContext);
108
- return /* @__PURE__ */ React2.createElement(
144
+ var TabsList = React3.forwardRef(({ className, ...props }, ref) => {
145
+ const { orientation } = React3.useContext(TabsContext);
146
+ return /* @__PURE__ */ React3.createElement(
109
147
  TabsPrimitive.List,
110
148
  {
111
149
  ref,
@@ -119,8 +157,8 @@ var TabsList = React2.forwardRef(({ className, ...props }, ref) => {
119
157
  );
120
158
  });
121
159
  TabsList.displayName = TabsPrimitive.List.displayName;
122
- var TabsTrigger = React2.forwardRef(({ className, chipProps, ...props }, ref) => {
123
- return /* @__PURE__ */ React2.createElement(
160
+ var TabsTrigger = React3.forwardRef(({ className, chipProps, ...props }, ref) => {
161
+ return /* @__PURE__ */ React3.createElement(
124
162
  TabsPrimitive.Trigger,
125
163
  {
126
164
  ref,
@@ -131,11 +169,11 @@ var TabsTrigger = React2.forwardRef(({ className, chipProps, ...props }, ref) =>
131
169
  ...props
132
170
  },
133
171
  props.children,
134
- chipProps && /* @__PURE__ */ React2.createElement(Chip, { ...chipProps })
172
+ chipProps && /* @__PURE__ */ React3.createElement(Chip, { ...chipProps })
135
173
  );
136
174
  });
137
175
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
138
- var TabsContent = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
176
+ var TabsContent = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
139
177
  TabsPrimitive.Content,
140
178
  {
141
179
  ref,
@@ -149,6 +187,7 @@ var TabsContent = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE
149
187
  TabsContent.displayName = TabsPrimitive.Content.displayName;
150
188
 
151
189
  export {
190
+ ScrollArea,
152
191
  Chip,
153
192
  Tabs,
154
193
  TabsList,