@sikka/hawa 0.24.3-next → 0.24.5-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 (151) hide show
  1. package/dist/accordion/index.d.mts +1 -2
  2. package/dist/accordion/index.d.ts +1 -2
  3. package/dist/accordion/index.mjs +219 -7
  4. package/dist/alert/index.d.mts +1 -1
  5. package/dist/alert/index.d.ts +1 -1
  6. package/dist/appLayout/index.d.mts +126 -0
  7. package/dist/appLayout/index.d.ts +126 -0
  8. package/dist/appLayout/index.js +1325 -0
  9. package/dist/appLayout/index.mjs +1285 -0
  10. package/dist/appMenubar/index.d.mts +33 -0
  11. package/dist/appMenubar/index.d.ts +33 -0
  12. package/dist/appMenubar/index.js +281 -0
  13. package/dist/appMenubar/index.mjs +224 -0
  14. package/dist/appTabs/index.d.mts +18 -0
  15. package/dist/appTabs/index.d.ts +18 -0
  16. package/dist/appTabs/index.js +92 -0
  17. package/dist/appTabs/index.mjs +50 -0
  18. package/dist/appTopbar/index.d.mts +44 -0
  19. package/dist/appTopbar/index.d.ts +44 -0
  20. package/dist/appTopbar/index.js +483 -0
  21. package/dist/appTopbar/index.mjs +441 -0
  22. package/dist/avatar/index.d.mts +5 -4
  23. package/dist/avatar/index.d.ts +5 -4
  24. package/dist/backToTop/index.mjs +353 -3
  25. package/dist/badge/index.d.mts +2 -2
  26. package/dist/badge/index.d.ts +2 -2
  27. package/dist/checkbox/index.d.mts +1 -2
  28. package/dist/checkbox/index.d.ts +1 -2
  29. package/dist/chip/index.d.mts +36 -2
  30. package/dist/chip/index.d.ts +36 -2
  31. package/dist/chip/index.mjs +83 -3
  32. package/dist/chunk-62GI5F2P.mjs +442 -0
  33. package/dist/chunk-7NCNPRCL.mjs +120 -0
  34. package/dist/{chunk-TNAHW35O.mjs → chunk-C2UYTGUD.mjs} +8 -4
  35. package/dist/{chunk-26FHSPJI.mjs → chunk-DGWAHQRX.mjs} +1 -101
  36. package/dist/chunk-LRLLDOQZ.mjs +178 -0
  37. package/dist/chunk-ND4BWUKH.mjs +34 -0
  38. package/dist/codeBlock/index.mjs +684 -310
  39. package/dist/colorPicker/index.d.mts +2 -1
  40. package/dist/colorPicker/index.d.ts +2 -1
  41. package/dist/colorPicker/index.mjs +2 -167
  42. package/dist/combobox/index.d.mts +9 -1
  43. package/dist/combobox/index.d.ts +9 -1
  44. package/dist/combobox/index.mjs +61 -393
  45. package/dist/command/index.mjs +10 -425
  46. package/dist/commonTypes-3J1E3b61.d.mts +6 -0
  47. package/dist/commonTypes-3J1E3b61.d.ts +6 -0
  48. package/dist/commonTypes-GhKAraJw.d.mts +4 -0
  49. package/dist/commonTypes-GhKAraJw.d.ts +4 -0
  50. package/dist/commonTypes-LrR8QrYP.d.mts +5 -0
  51. package/dist/commonTypes-LrR8QrYP.d.ts +5 -0
  52. package/dist/commonTypes-WPhcN3Vr.d.mts +5 -0
  53. package/dist/commonTypes-WPhcN3Vr.d.ts +5 -0
  54. package/dist/commonTypes-ko_NGEoT.d.mts +3 -0
  55. package/dist/commonTypes-ko_NGEoT.d.ts +3 -0
  56. package/dist/copyrights/index.d.mts +17 -0
  57. package/dist/copyrights/index.d.ts +17 -0
  58. package/dist/copyrights/index.js +45 -0
  59. package/dist/copyrights/index.mjs +8 -0
  60. package/dist/count/index.d.mts +11 -0
  61. package/dist/count/index.d.ts +11 -0
  62. package/dist/count/index.js +45 -0
  63. package/dist/count/index.mjs +8 -0
  64. package/dist/dataTable/index.d.mts +1 -1
  65. package/dist/dataTable/index.d.ts +1 -1
  66. package/dist/destroyableCard/index.d.mts +1 -1
  67. package/dist/destroyableCard/index.d.ts +1 -1
  68. package/dist/dialog/index.d.mts +1 -1
  69. package/dist/dialog/index.d.ts +1 -1
  70. package/dist/docsLayout/index.d.mts +37 -0
  71. package/dist/docsLayout/index.d.ts +37 -0
  72. package/dist/docsLayout/index.js +926 -0
  73. package/dist/docsLayout/index.mjs +886 -0
  74. package/dist/docsSidebar/index.d.mts +11 -0
  75. package/dist/docsSidebar/index.d.ts +11 -0
  76. package/dist/docsSidebar/index.js +111 -0
  77. package/dist/docsSidebar/index.mjs +69 -0
  78. package/dist/index.d.mts +11 -4
  79. package/dist/index.d.ts +11 -4
  80. package/dist/index.js +44 -35
  81. package/dist/index.mjs +44 -35
  82. package/dist/input/index.d.mts +2 -9
  83. package/dist/input/index.d.ts +2 -9
  84. package/dist/input/index.mjs +14 -98
  85. package/dist/interfaceSettings/index.d.mts +1 -1
  86. package/dist/interfaceSettings/index.d.ts +1 -1
  87. package/dist/interfaceSettings/index.mjs +24 -110
  88. package/dist/label/index.d.mts +1 -1
  89. package/dist/label/index.d.ts +1 -1
  90. package/dist/label/index.mjs +2 -87
  91. package/dist/layout/index.d.mts +11 -4
  92. package/dist/layout/index.d.ts +11 -4
  93. package/dist/layout/index.js +47 -38
  94. package/dist/layout/index.mjs +44 -35
  95. package/dist/navbar/index.d.mts +17 -0
  96. package/dist/navbar/index.d.ts +17 -0
  97. package/dist/navbar/index.js +166 -0
  98. package/dist/navbar/index.mjs +126 -0
  99. package/dist/pagination/index.d.mts +1 -1
  100. package/dist/pagination/index.d.ts +1 -1
  101. package/dist/passwordInput/index.mjs +27 -137
  102. package/dist/phoneInput/index.mjs +19 -129
  103. package/dist/radio/index.d.mts +1 -4
  104. package/dist/radio/index.d.ts +1 -4
  105. package/dist/scrollArea/index.d.mts +1 -1
  106. package/dist/scrollArea/index.d.ts +1 -1
  107. package/dist/select/index.d.mts +1 -1
  108. package/dist/select/index.d.ts +1 -1
  109. package/dist/separator/index.d.mts +1 -1
  110. package/dist/separator/index.d.ts +1 -1
  111. package/dist/sidebar/index.d.mts +48 -0
  112. package/dist/sidebar/index.d.ts +48 -0
  113. package/dist/sidebar/index.js +341 -0
  114. package/dist/sidebar/index.mjs +298 -0
  115. package/dist/simpleTable/index.d.mts +4 -3
  116. package/dist/simpleTable/index.d.ts +4 -3
  117. package/dist/simpleTable/index.mjs +21 -45
  118. package/dist/skeleton/index.d.mts +3 -3
  119. package/dist/skeleton/index.d.ts +3 -3
  120. package/dist/skeleton/index.mjs +3 -29
  121. package/dist/sortButton/index.mjs +9 -260
  122. package/dist/splitButton/index.d.mts +4 -3
  123. package/dist/splitButton/index.d.ts +4 -3
  124. package/dist/splitButton/index.mjs +10 -259
  125. package/dist/stats/index.d.mts +19 -0
  126. package/dist/stats/index.d.ts +19 -0
  127. package/dist/stats/index.js +191 -0
  128. package/dist/stats/index.mjs +154 -0
  129. package/dist/stopPropagationWrapper/index.d.mts +2 -2
  130. package/dist/stopPropagationWrapper/index.d.ts +2 -2
  131. package/dist/switch/index.d.mts +2 -1
  132. package/dist/switch/index.d.ts +2 -1
  133. package/dist/tabs/index.d.mts +19 -1
  134. package/dist/tabs/index.d.ts +19 -1
  135. package/dist/tabs/index.mjs +94 -14
  136. package/dist/textarea/index.d.mts +8 -1
  137. package/dist/textarea/index.d.ts +8 -1
  138. package/dist/textarea/index.mjs +92 -8
  139. package/dist/toast/index.d.mts +1 -1
  140. package/dist/toast/index.d.ts +1 -1
  141. package/package.json +1 -1
  142. package/dist/Label-fkQ4ebuH.d.mts +0 -12
  143. package/dist/Label-fkQ4ebuH.d.ts +0 -12
  144. package/dist/chunk-72HYR6WB.mjs +0 -88
  145. package/dist/chunk-JYSC6GKM.mjs +0 -229
  146. package/dist/commonTypes-3k5cNB1s.d.mts +0 -4
  147. package/dist/commonTypes-3k5cNB1s.d.ts +0 -4
  148. package/dist/commonTypes-N7XOVCit.d.mts +0 -5
  149. package/dist/commonTypes-N7XOVCit.d.ts +0 -5
  150. package/dist/index-DUZFcPRO.d.mts +0 -38
  151. package/dist/index-DUZFcPRO.d.ts +0 -38
@@ -1,432 +1,100 @@
1
1
  import {
2
- Label
3
- } from "../chunk-TNAHW35O.mjs";
4
- import {
2
+ Command,
3
+ CommandEmpty,
4
+ CommandGroup,
5
+ CommandInput,
6
+ CommandItem,
5
7
  cn
6
- } from "../chunk-TE3BKEXL.mjs";
8
+ } from "../chunk-62GI5F2P.mjs";
7
9
 
8
10
  // components/elements/combobox/Combobox.tsx
9
11
  import * as React5 from "react";
10
12
  import * as PopoverPrimitive2 from "@radix-ui/react-popover";
11
13
 
12
- // components/elements/command/Command.tsx
14
+ // components/elements/label/Label.tsx
13
15
  import * as React2 from "react";
14
- import { Command as CommandPrimitive } from "cmdk";
15
16
 
16
- // components/elements/dialog/Dialog.tsx
17
- import * as React from "react";
18
- import * as DialogPrimitive from "@radix-ui/react-dialog";
19
- var DialogPortal = ({ ...props }) => /* @__PURE__ */ React.createElement(DialogPrimitive.Portal, { ...props });
20
- var DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
21
- DialogPrimitive.Overlay,
17
+ // components/elements/tooltip/Tooltip.tsx
18
+ import React from "react";
19
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
20
+ var TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React.createElement(
21
+ TooltipPrimitive.Content,
22
22
  {
23
23
  ref,
24
+ sideOffset,
24
25
  className: cn(
25
- "hawa-fixed hawa-inset-0 hawa-z-50 hawa-bg-background/80 hawa-backdrop-blur-sm 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",
26
+ "hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-text-popover-foreground hawa-shadow-md hawa-animate-in hawa-fade-in-0 hawa-zoom-in-95 data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=closed]:hawa-zoom-out-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",
26
27
  className
27
28
  ),
28
29
  ...props
29
30
  }
30
31
  ));
31
- var DialogContent = React.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React.createElement(DialogPortal, null, /* @__PURE__ */ React.createElement(DialogOverlay, null), /* @__PURE__ */ React.createElement(
32
- DialogPrimitive.Content,
33
- {
34
- onPointerDownOutside: (e) => {
35
- if (persist) {
36
- e.preventDefault();
37
- }
38
- },
39
- ref,
40
- className: cn(
41
- "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 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-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full",
42
- className
43
- ),
44
- ...props
45
- },
32
+ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
33
+ var TooltipArrow = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
34
+ TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
35
+ var Tooltip = ({
36
+ side,
37
+ open,
38
+ content,
46
39
  children,
47
- !hideCloseButton && /* @__PURE__ */ React.createElement(
48
- DialogPrimitive.Close,
49
- {
50
- className: cn(
51
- "hawa-absolute hawa-top-4 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
52
- props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
53
- )
54
- },
55
- /* @__PURE__ */ React.createElement(
56
- "svg",
57
- {
58
- "aria-label": "Close Icon",
59
- "aria-hidden": "true",
60
- className: "hawa-h-5 hawa-w-5",
61
- fill: "currentColor",
62
- viewBox: "0 0 20 20"
63
- },
64
- /* @__PURE__ */ React.createElement(
65
- "path",
66
- {
67
- fillRule: "evenodd",
68
- d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
69
- clipRule: "evenodd"
70
- }
71
- )
72
- ),
73
- /* @__PURE__ */ React.createElement("span", { className: "hawa-sr-only" }, "Close")
74
- )
75
- )));
76
- var DialogCarouselContent = React.forwardRef(
77
- ({
78
- className,
79
- children,
80
- onPrev,
81
- persist,
82
- hideCloseButton,
83
- hidePrevButton,
84
- ...props
85
- }, ref) => /* @__PURE__ */ React.createElement(DialogPortal, null, /* @__PURE__ */ React.createElement(DialogOverlay, null), /* @__PURE__ */ React.createElement(
86
- DialogPrimitive.Content,
87
- {
88
- onPointerDownOutside: (e) => {
89
- if (persist) {
90
- e.preventDefault();
91
- }
92
- },
93
- ref,
94
- className: cn(
95
- "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-pt-14 hawa-shadow-lg hawa-transition-all hawa-duration-200 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-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full",
96
- className
97
- ),
98
- ...props
99
- },
100
- children,
101
- /* @__PURE__ */ React.createElement(
102
- "div",
103
- {
104
- className: cn(
105
- "hawa-absolute hawa-top-0 hawa-flex hawa-w-full hawa-flex-row hawa-p-4",
106
- onPrev ? "hawa-justify-between" : "hawa-justify-end"
107
- )
108
- },
109
- hidePrevButton ? /* @__PURE__ */ React.createElement("div", null) : /* @__PURE__ */ React.createElement(
110
- "div",
111
- {
112
- onClick: onPrev,
113
- className: cn(
114
- "hawa-end-0 hawa-cursor-pointer hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
115
- props.dir === "rtl" && "hawa-rotate-180"
116
- )
117
- },
118
- /* @__PURE__ */ React.createElement(
119
- "svg",
120
- {
121
- xmlns: "http://www.w3.org/2000/svg",
122
- width: "24",
123
- height: "24",
124
- viewBox: "0 0 24 24",
125
- fill: "none",
126
- className: "hawa-h-6 hawa-w-6",
127
- stroke: "currentColor",
128
- strokeWidth: "2",
129
- strokeLinecap: "round",
130
- strokeLinejoin: "round"
131
- },
132
- /* @__PURE__ */ React.createElement("path", { d: "m15 18-6-6 6-6" })
133
- )
134
- ),
135
- !hideCloseButton && /* @__PURE__ */ React.createElement(
136
- DialogPrimitive.Close,
137
- {
138
- className: cn(
139
- "hawa-end-0 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground ",
140
- props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
141
- )
142
- },
143
- /* @__PURE__ */ React.createElement(
144
- "svg",
145
- {
146
- "aria-label": "Close Icon",
147
- "aria-hidden": "true",
148
- className: "hawa-h-6 hawa-w-6",
149
- fill: "currentColor",
150
- viewBox: "0 0 20 20"
151
- },
152
- /* @__PURE__ */ React.createElement(
153
- "path",
154
- {
155
- fillRule: "evenodd",
156
- d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
157
- clipRule: "evenodd"
158
- }
159
- )
160
- ),
161
- /* @__PURE__ */ React.createElement("span", { className: "hawa-sr-only" }, "Close")
162
- )
163
- )
164
- ))
165
- );
166
- var DialogHeader = ({
167
- className,
40
+ defaultOpen,
41
+ onOpenChange,
42
+ triggerProps,
43
+ contentProps,
44
+ providerProps,
45
+ delayDuration = 300,
168
46
  ...props
169
- }) => /* @__PURE__ */ React.createElement(
170
- "div",
171
- {
172
- className: cn(
173
- "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-text-center sm:hawa-text-left",
174
- className
175
- ),
176
- ...props
177
- }
178
- );
179
- var DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
180
- DialogPrimitive.Title,
181
- {
182
- ref,
183
- className: cn(
184
- "hawa-text-start hawa-text-lg hawa-font-semibold hawa-leading-none hawa-tracking-tight",
185
- className
186
- ),
187
- ...props
188
- }
189
- ));
190
- var DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
191
- DialogPrimitive.Description,
192
- {
193
- ref,
194
- className: cn(
195
- "hawa-text-start hawa-text-sm hawa-text-muted-foreground",
196
- className
197
- ),
198
- ...props
199
- }
200
- ));
201
- var DialogFooter = ({
202
- className,
203
- ...props
204
- }) => /* @__PURE__ */ React.createElement(
205
- "div",
206
- {
207
- className: cn(
208
- "hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end sm:hawa-gap-2",
209
- className
210
- ),
211
- ...props
212
- }
213
- );
214
- var DialogCarousel = ({
215
- stepsApi,
216
- stepsRef,
217
- children,
218
- direction
219
- }) => {
220
- React.useEffect(() => {
221
- if (stepsApi) {
222
- stepsApi.reInit();
223
- }
224
- }, [stepsApi, children]);
225
- return /* @__PURE__ */ React.createElement("div", { className: "hawa-overflow-hidden" }, /* @__PURE__ */ React.createElement("div", { ref: stepsRef, dir: direction }, /* @__PURE__ */ React.createElement(
226
- "div",
227
- {
228
- className: "hawa-flex",
229
- style: {
230
- transition: "height 0.2s"
231
- }
232
- },
233
- React.Children.map(children, (child, index) => /* @__PURE__ */ React.createElement(
234
- "div",
235
- {
236
- className: cn(
237
- "hawa-flex hawa-h-fit hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
238
- ),
239
- key: index
240
- },
241
- child
242
- ))
243
- )));
244
- };
245
- var DialogSteps = ({
246
- currentStep,
247
- visibleStepRef,
248
- children
249
47
  }) => {
250
- const [dialogHeight, setDialogHeight] = React.useState(null);
251
- React.useEffect(() => {
252
- if (visibleStepRef.current) {
253
- setDialogHeight(visibleStepRef.current.offsetHeight);
254
- console.log("height is ", visibleStepRef.current.offsetHeight);
255
- }
256
- }, [currentStep, visibleStepRef]);
257
48
  return /* @__PURE__ */ React.createElement(
258
- "div",
49
+ TooltipPrimitive.TooltipProvider,
259
50
  {
260
- className: "hawa-relative hawa-overflow-clip",
261
- style: {
262
- height: dialogHeight || "fit-content",
263
- transition: "height 0.2s"
264
- }
51
+ delayDuration,
52
+ ...providerProps
265
53
  },
266
- React.Children.map(children, (child, index) => /* @__PURE__ */ React.createElement(
267
- "div",
54
+ /* @__PURE__ */ React.createElement(
55
+ TooltipPrimitive.Root,
268
56
  {
269
- ref: currentStep === `step-${index + 1}` ? visibleStepRef : null,
270
- className: cn(
271
- currentStep === `step-${index + 1}` ? "hawa-visible hawa-block" : "hawa-invisible hawa-hidden"
272
- )
57
+ open,
58
+ defaultOpen,
59
+ onOpenChange,
60
+ ...props
273
61
  },
274
- child
275
- ))
276
- );
277
- };
278
- var DialogStep = ({
279
- id,
280
- children,
281
- className,
282
- stepRef
283
- }) => {
284
- return /* @__PURE__ */ React.createElement(
285
- "div",
286
- {
287
- id,
288
- ref: stepRef,
289
- className: cn("hawa-w-full hawa-px-1", className)
290
- },
291
- children
62
+ /* @__PURE__ */ React.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
63
+ /* @__PURE__ */ React.createElement(TooltipContent, { side, align: "center", ...contentProps }, content)
64
+ )
292
65
  );
293
66
  };
294
- var DialogBody = ({ children, className }) => {
295
- return /* @__PURE__ */ React.createElement("div", { className: cn("hawa-py-6", className) }, children);
296
- };
297
- DialogBody.displayName = "DialogBody";
298
- DialogStep.displayName = "DialogStep";
299
- DialogSteps.displayName = "DialogSteps";
300
- DialogCarousel.displayName = "DialogCarousel";
301
- DialogCarouselContent.displayName = "DialogCarouselContent";
302
- DialogHeader.displayName = "DialogHeader";
303
- DialogFooter.displayName = "DialogFooter";
304
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
305
- DialogPortal.displayName = DialogPrimitive.Portal.displayName;
306
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
307
- DialogContent.displayName = DialogPrimitive.Content.displayName;
308
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
309
67
 
310
- // components/elements/command/Command.tsx
311
- var Command = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
312
- CommandPrimitive,
68
+ // components/elements/label/Label.tsx
69
+ var Label = React2.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React2.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React2.createElement(
70
+ "label",
313
71
  {
314
72
  ref,
315
73
  className: cn(
316
- "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground",
74
+ "hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70",
317
75
  className
318
76
  ),
319
77
  ...props
320
- }
321
- ));
322
- Command.displayName = CommandPrimitive.displayName;
323
- var CommandInput = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
324
- "div",
325
- {
326
- className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
327
- "cmdk-input-wrapper": ""
328
78
  },
329
- /* @__PURE__ */ React2.createElement(
330
- "svg",
331
- {
332
- "aria-label": "Search Icon",
333
- xmlns: "http://www.w3.org/2000/svg",
334
- width: "24",
335
- height: "24",
336
- viewBox: "0 0 24 24",
337
- fill: "none",
338
- stroke: "currentColor",
339
- strokeWidth: "2",
340
- strokeLinecap: "round",
341
- strokeLinejoin: "round",
342
- className: "hawa-icon hawa-mr-2 hawa-shrink-0 hawa-opacity-50"
343
- },
344
- /* @__PURE__ */ React2.createElement("circle", { cx: "11", cy: "11", r: "8" }),
345
- /* @__PURE__ */ React2.createElement("path", { d: "m21 21-4.3-4.3" })
346
- ),
347
- /* @__PURE__ */ React2.createElement(
348
- CommandPrimitive.Input,
349
- {
350
- ref,
351
- className: cn(
352
- "hawa-flex hawa-h-11 hawa-w-full hawa-rounded-md hawa-bg-transparent hawa-py-3 hawa-text-sm hawa-outline-none placeholder:hawa-text-muted-foreground disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
353
- className
354
- ),
355
- ...props
356
- }
357
- )
358
- ));
359
- CommandInput.displayName = CommandPrimitive.Input.displayName;
360
- var CommandList = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
361
- CommandPrimitive.List,
362
- {
363
- ref,
364
- className: cn(
365
- "hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden",
366
- className
367
- ),
368
- ...props
369
- }
370
- ));
371
- CommandList.displayName = CommandPrimitive.List.displayName;
372
- var CommandEmpty = React2.forwardRef((props, ref) => /* @__PURE__ */ React2.createElement(
373
- CommandPrimitive.Empty,
374
- {
375
- ref,
376
- className: "hawa-py-6 hawa-text-center hawa-text-sm",
377
- ...props
378
- }
379
- ));
380
- CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
381
- var CommandGroup = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
382
- CommandPrimitive.Group,
383
- {
384
- ref,
385
- className: cn(
386
- "hawa-overflow-hidden hawa-p-1 hawa-text-foreground [&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-py-1.5 [&_[cmdk-group-heading]]:hawa-text-xs [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground",
387
- className
388
- ),
389
- ...props
390
- }
391
- ));
392
- CommandGroup.displayName = CommandPrimitive.Group.displayName;
393
- var CommandSeparator = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
394
- CommandPrimitive.Separator,
395
- {
396
- ref,
397
- className: cn("hawa--mx-1 hawa-h-px hawa-bg-border", className),
398
- ...props
399
- }
400
- ));
401
- CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
402
- var CommandItem = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
403
- CommandPrimitive.Item,
79
+ children,
80
+ required && /* @__PURE__ */ React2.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
81
+ ), hint && /* @__PURE__ */ React2.createElement(Tooltip, { content: hint, side: hintSide }, /* @__PURE__ */ React2.createElement(
82
+ "svg",
404
83
  {
405
- ref,
406
- className: cn(
407
- "hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none aria-selected:hawa-bg-accent aria-selected:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
408
- className
409
- ),
410
- ...props
411
- }
412
- ));
413
- CommandItem.displayName = CommandPrimitive.Item.displayName;
414
- var CommandShortcut = ({
415
- className,
416
- ...props
417
- }) => {
418
- return /* @__PURE__ */ React2.createElement(
419
- "span",
420
- {
421
- className: cn(
422
- "hawa-ml-auto hawa-text-xs hawa-tracking-widest hawa-text-muted-foreground",
423
- className
424
- ),
425
- ...props
426
- }
427
- );
428
- };
429
- CommandShortcut.displayName = "CommandShortcut";
84
+ xmlns: "http://www.w3.org/2000/svg",
85
+ className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
86
+ viewBox: "0 0 24 24",
87
+ fill: "none",
88
+ stroke: "currentColor",
89
+ strokeWidth: "2",
90
+ strokeLinecap: "round",
91
+ strokeLinejoin: "round"
92
+ },
93
+ /* @__PURE__ */ React2.createElement("circle", { cx: "12", cy: "12", r: "10" }),
94
+ /* @__PURE__ */ React2.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
95
+ /* @__PURE__ */ React2.createElement("path", { d: "M12 17h.01" })
96
+ ))));
97
+ Label.displayName = "Label";
430
98
 
431
99
  // components/elements/popover/Popover.tsx
432
100
  import * as React3 from "react";