@sikka/hawa 0.26.18-next → 0.26.20

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 (190) hide show
  1. package/dist/accordion/index.js +10 -12
  2. package/dist/accordion/index.mjs +8 -8
  3. package/dist/alert/index.js +8 -7
  4. package/dist/alert/index.mjs +7 -6
  5. package/dist/appLayout/index.js +13 -12
  6. package/dist/appLayout/index.mjs +12 -11
  7. package/dist/appMenubar/index.js +4 -4
  8. package/dist/appMenubar/index.mjs +2 -2
  9. package/dist/appStores/index.js +2 -2
  10. package/dist/appStores/index.mjs +1 -1
  11. package/dist/appTabs/index.js +4 -4
  12. package/dist/appTabs/index.mjs +2 -2
  13. package/dist/appTopbar/index.js +6 -6
  14. package/dist/appTopbar/index.mjs +4 -4
  15. package/dist/avatar/index.js +5 -5
  16. package/dist/avatar/index.mjs +4 -4
  17. package/dist/backToTop/index.js +8 -7
  18. package/dist/backToTop/index.mjs +7 -6
  19. package/dist/badge/index.js +4 -4
  20. package/dist/badge/index.mjs +2 -2
  21. package/dist/blocks/auth/index.js +38 -37
  22. package/dist/blocks/auth/index.mjs +24 -24
  23. package/dist/blocks/feedback/index.js +27 -26
  24. package/dist/blocks/feedback/index.mjs +11 -11
  25. package/dist/blocks/index.js +77 -76
  26. package/dist/blocks/index.mjs +34 -34
  27. package/dist/blocks/misc/index.js +31 -30
  28. package/dist/blocks/misc/index.mjs +14 -14
  29. package/dist/blocks/pricing/index.js +123 -122
  30. package/dist/blocks/pricing/index.mjs +18 -18
  31. package/dist/breadcrumb/index.js +2 -2
  32. package/dist/breadcrumb/index.mjs +1 -1
  33. package/dist/button/index.js +6 -5
  34. package/dist/button/index.mjs +5 -4
  35. package/dist/card/index.js +4 -4
  36. package/dist/card/index.mjs +2 -2
  37. package/dist/carousel/index.d.mts +1 -1
  38. package/dist/carousel/index.d.ts +1 -1
  39. package/dist/carousel/index.js +9 -18
  40. package/dist/carousel/index.mjs +7 -16
  41. package/dist/checkbox/index.js +4 -4
  42. package/dist/checkbox/index.mjs +2 -2
  43. package/dist/chip/index.js +4 -4
  44. package/dist/chip/index.mjs +2 -2
  45. package/dist/{chunk-343SRWR4.mjs → chunk-3GBITBPL.mjs} +2 -2
  46. package/dist/{chunk-TTKRRN7S.mjs → chunk-4IOG44R3.mjs} +2 -2
  47. package/dist/{chunk-3N6JJKMN.mjs → chunk-65TG6EVD.mjs} +5 -4
  48. package/dist/{chunk-LT3VHLAG.mjs → chunk-APZM24KK.mjs} +2 -2
  49. package/dist/{chunk-FYH74ZRQ.mjs → chunk-AREFDTXK.mjs} +9 -8
  50. package/dist/{chunk-FNVYY7ND.mjs → chunk-D22AALLE.mjs} +1 -1
  51. package/dist/{chunk-OD5WIQGQ.mjs → chunk-FDKCMEMD.mjs} +2 -2
  52. package/dist/{chunk-KNHT2UBG.mjs → chunk-KMCIHW76.mjs} +2 -2
  53. package/dist/{chunk-M2ZS3EDT.mjs → chunk-OAXF3RCQ.mjs} +2 -2
  54. package/dist/chunk-OTGCLEKC.mjs +62 -0
  55. package/dist/{chunk-OE23TTPS.mjs → chunk-POIP5U4M.mjs} +3 -3
  56. package/dist/{chunk-EYUG3GRC.mjs → chunk-SJ2Z6ZOG.mjs} +4 -4
  57. package/dist/{chunk-WRZFWCOQ.mjs → chunk-TGZRVRLP.mjs} +4 -4
  58. package/dist/{chunk-TE3BKEXL.mjs → chunk-TWNGV3RE.mjs} +1 -1
  59. package/dist/{chunk-ATUSR6VI.mjs → chunk-U3TZWNDZ.mjs} +4 -4
  60. package/dist/{chunk-W77KCP35.mjs → chunk-VQQ6MUX5.mjs} +2 -2
  61. package/dist/{chunk-SUS6O2PO.mjs → chunk-WPSUV4AD.mjs} +21 -21
  62. package/dist/{chunk-3KMBSNM3.mjs → chunk-Z5SL5QTQ.mjs} +11 -10
  63. package/dist/{chunk-ZCZ3WARS.mjs → chunk-ZS3FB3PO.mjs} +1 -1
  64. package/dist/codeBlock/index.js +153 -2454
  65. package/dist/codeBlock/index.mjs +129 -2393
  66. package/dist/collapsible/index.js +2 -2
  67. package/dist/collapsible/index.mjs +1 -1
  68. package/dist/colorPicker/index.js +7 -7
  69. package/dist/colorPicker/index.mjs +126 -2
  70. package/dist/combobox/index.js +193 -193
  71. package/dist/combobox/index.mjs +8 -8
  72. package/dist/command/index.js +5 -5
  73. package/dist/command/index.mjs +1 -1
  74. package/dist/copyrights/index.js +2 -2
  75. package/dist/copyrights/index.mjs +1 -1
  76. package/dist/count/index.js +2 -2
  77. package/dist/count/index.mjs +1 -1
  78. package/dist/dataTable/index.d.mts +1 -0
  79. package/dist/dataTable/index.d.ts +1 -0
  80. package/dist/dataTable/index.js +23 -16
  81. package/dist/dataTable/index.mjs +22 -15
  82. package/dist/destroyableCard/index.js +6 -8
  83. package/dist/destroyableCard/index.mjs +4 -4
  84. package/dist/dialog/index.js +4 -4
  85. package/dist/dialog/index.mjs +2 -2
  86. package/dist/docsLayout/index.js +12 -11
  87. package/dist/docsLayout/index.mjs +11 -10
  88. package/dist/docsSidebar/index.js +4 -4
  89. package/dist/docsSidebar/index.mjs +2 -2
  90. package/dist/dropdownMenu/index.js +4 -4
  91. package/dist/dropdownMenu/index.mjs +2 -2
  92. package/dist/elements/index.d.mts +2 -1
  93. package/dist/elements/index.d.ts +2 -1
  94. package/dist/elements/index.js +162 -164
  95. package/dist/elements/index.mjs +54 -57
  96. package/dist/fileDropzone/index.js +10 -9
  97. package/dist/fileDropzone/index.mjs +9 -8
  98. package/dist/fileUploader/index.js +2 -2
  99. package/dist/fileUploader/index.mjs +1 -1
  100. package/dist/glow/index.js +2 -2
  101. package/dist/glow/index.mjs +1 -1
  102. package/dist/hooks/index.d.mts +7 -7
  103. package/dist/hooks/index.d.ts +7 -7
  104. package/dist/hooks/index.js +16 -16
  105. package/dist/hooks/index.mjs +14 -14
  106. package/dist/index.css +0 -465
  107. package/dist/index.d.mts +9 -8
  108. package/dist/index.d.ts +9 -8
  109. package/dist/index.js +220 -222
  110. package/dist/index.mjs +219 -221
  111. package/dist/input/index.js +8 -8
  112. package/dist/input/index.mjs +4 -4
  113. package/dist/interfaceSettings/index.js +9 -9
  114. package/dist/interfaceSettings/index.mjs +4 -4
  115. package/dist/label/index.js +5 -5
  116. package/dist/label/index.mjs +4 -4
  117. package/dist/layout/index.d.mts +1 -1
  118. package/dist/layout/index.d.ts +1 -1
  119. package/dist/layout/index.js +31 -30
  120. package/dist/layout/index.mjs +16 -16
  121. package/dist/loading/index.js +4 -4
  122. package/dist/loading/index.mjs +2 -2
  123. package/dist/logos/index.js +2 -2
  124. package/dist/logos/index.mjs +1 -1
  125. package/dist/navbar/index.js +5 -5
  126. package/dist/navbar/index.mjs +4 -4
  127. package/dist/navigationMenu/index.js +4 -4
  128. package/dist/navigationMenu/index.mjs +2 -2
  129. package/dist/pagination/index.js +4 -4
  130. package/dist/pagination/index.mjs +2 -2
  131. package/dist/passwordInput/index.js +15 -15
  132. package/dist/passwordInput/index.mjs +13 -13
  133. package/dist/phoneInput/index.js +11 -11
  134. package/dist/phoneInput/index.mjs +10 -10
  135. package/dist/pinInput/index.js +4 -4
  136. package/dist/pinInput/index.mjs +2 -2
  137. package/dist/popover/index.js +4 -4
  138. package/dist/popover/index.mjs +2 -2
  139. package/dist/progress/index.js +4 -4
  140. package/dist/progress/index.mjs +2 -2
  141. package/dist/progressCircle/index.js +4 -4
  142. package/dist/progressCircle/index.mjs +2 -2
  143. package/dist/radio/index.js +7 -7
  144. package/dist/radio/index.mjs +6 -6
  145. package/dist/scrollArea/index.js +4 -4
  146. package/dist/scrollArea/index.mjs +2 -2
  147. package/dist/scrollIndicator/index.js +2 -2
  148. package/dist/scrollIndicator/index.mjs +1 -1
  149. package/dist/select/index.js +8 -8
  150. package/dist/select/index.mjs +7 -7
  151. package/dist/separator/index.js +4 -4
  152. package/dist/separator/index.mjs +2 -2
  153. package/dist/sheet/index.js +4 -4
  154. package/dist/sheet/index.mjs +2 -2
  155. package/dist/sidebar/index.js +6 -6
  156. package/dist/sidebar/index.mjs +4 -4
  157. package/dist/signature/index.js +8 -8
  158. package/dist/signature/index.mjs +6 -6
  159. package/dist/simpleTable/index.js +6 -6
  160. package/dist/simpleTable/index.mjs +5 -5
  161. package/dist/skeleton/index.js +4 -4
  162. package/dist/skeleton/index.mjs +2 -2
  163. package/dist/slider/index.js +4 -4
  164. package/dist/slider/index.mjs +2 -2
  165. package/dist/sortButton/index.js +8 -7
  166. package/dist/sortButton/index.mjs +2 -2
  167. package/dist/splitButton/index.js +9 -8
  168. package/dist/splitButton/index.mjs +4 -4
  169. package/dist/stats/index.js +7 -7
  170. package/dist/stats/index.mjs +6 -6
  171. package/dist/stopPropagationWrapper/index.js +2 -2
  172. package/dist/stopPropagationWrapper/index.mjs +1 -1
  173. package/dist/switch/index.js +4 -4
  174. package/dist/switch/index.mjs +2 -2
  175. package/dist/table/index.js +4 -4
  176. package/dist/table/index.mjs +2 -2
  177. package/dist/tabs/index.js +5 -5
  178. package/dist/tabs/index.mjs +4 -4
  179. package/dist/textarea/index.js +7 -7
  180. package/dist/textarea/index.mjs +6 -6
  181. package/dist/toast/index.js +4 -4
  182. package/dist/toast/index.mjs +2 -2
  183. package/dist/toaster/index.js +6 -6
  184. package/dist/toaster/index.mjs +5 -5
  185. package/dist/tooltip/index.js +4 -4
  186. package/dist/tooltip/index.mjs +3 -3
  187. package/dist/types/index.js +1 -1
  188. package/package.json +16 -42
  189. package/README.md +0 -107
  190. package/dist/chunk-S36W2LDN.mjs +0 -189
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  cn
3
- } from "../chunk-TE3BKEXL.mjs";
3
+ } from "../chunk-TWNGV3RE.mjs";
4
4
 
5
- // components/elements/card/Card.tsx
5
+ // elements/card/Card.tsx
6
6
  import * as React from "react";
7
7
  var Card = React.forwardRef(
8
8
  ({ className, variant = "default", clickable = false, ...props }, ref) => {
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { EmblaOptionsType } from 'embla-carousel-react';
2
+ import { EmblaOptionsType } from 'embla-carousel';
3
3
 
4
4
  type CarouselProps = {
5
5
  items: React__default.ReactNode[];
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { EmblaOptionsType } from 'embla-carousel-react';
2
+ import { EmblaOptionsType } from 'embla-carousel';
3
3
 
4
4
  type CarouselProps = {
5
5
  items: React__default.ReactNode[];
@@ -27,25 +27,25 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
- // components/elements/carousel/index.ts
30
+ // elements/carousel/index.ts
31
31
  var carousel_exports = {};
32
32
  __export(carousel_exports, {
33
33
  Carousel: () => Carousel
34
34
  });
35
35
  module.exports = __toCommonJS(carousel_exports);
36
36
 
37
- // components/elements/carousel/Carousel.tsx
37
+ // elements/carousel/Carousel.tsx
38
38
  var import_react = __toESM(require("react"));
39
39
  var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
40
40
 
41
- // components/util.ts
41
+ // util/index.ts
42
42
  var import_clsx = require("clsx");
43
43
  var import_tailwind_merge = require("tailwind-merge");
44
44
  function cn(...inputs) {
45
45
  return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
46
46
  }
47
47
 
48
- // components/elements/carousel/Carousel.tsx
48
+ // elements/carousel/Carousel.tsx
49
49
  var Carousel = ({
50
50
  items,
51
51
  showArrows,
@@ -54,10 +54,9 @@ var Carousel = ({
54
54
  autoplayInterval = 3e3,
55
55
  ...props
56
56
  }) => {
57
- const { loop } = options;
58
57
  const [emblaRef, emblaApi] = (0, import_embla_carousel_react.default)({
59
58
  ...options,
60
- loop: autoplay ? true : loop || false
59
+ loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
61
60
  });
62
61
  const [selectedIndex, setSelectedIndex] = (0, import_react.useState)(0);
63
62
  (0, import_react.useEffect)(() => {
@@ -116,12 +115,12 @@ var Dots = ({ onDotClick, itemsLength, selectedIndex }) => {
116
115
  return /* @__PURE__ */ import_react.default.createElement(
117
116
  "div",
118
117
  {
118
+ key: index,
119
119
  onClick: () => onDotClick(index),
120
120
  className: cn(
121
121
  "hawa-h-2 hawa-rounded-full hawa-bg-primary hawa-transition-all hawa-duration-300 hover:hawa-cursor-pointer",
122
122
  !selected ? "hawa-w-2 hawa-opacity-50" : "hawa-w-6 hawa-opacity-100"
123
- ),
124
- key: index
123
+ )
125
124
  }
126
125
  );
127
126
  }));
@@ -130,11 +129,7 @@ var CarouselControls = (props) => {
130
129
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ import_react.default.createElement(
131
130
  "button",
132
131
  {
133
- onClick: () => {
134
- if (props.canScrollPrev) {
135
- props.onPrev();
136
- }
137
- },
132
+ onClick: () => props.canScrollPrev && props.onPrev(),
138
133
  disabled: !props.canScrollPrev,
139
134
  className: cn(
140
135
  "hawa-absolute hawa-start-0 hawa-top-1/2 -hawa-translate-y-2 hawa-rounded-full hawa-p-2 hawa-text-white ",
@@ -156,11 +151,7 @@ var CarouselControls = (props) => {
156
151
  ), /* @__PURE__ */ import_react.default.createElement(
157
152
  "button",
158
153
  {
159
- onClick: () => {
160
- if (props.canScrollNext) {
161
- props.onNext();
162
- }
163
- },
154
+ onClick: () => props.canScrollNext && props.onNext(),
164
155
  disabled: !props.canScrollNext,
165
156
  className: cn(
166
157
  "hawa-absolute hawa-end-0 hawa-top-1/2 -hawa-translate-y-2 hawa-rounded-full hawa-p-2 hawa-text-white ",
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  cn
3
- } from "../chunk-TE3BKEXL.mjs";
3
+ } from "../chunk-TWNGV3RE.mjs";
4
4
 
5
- // components/elements/carousel/Carousel.tsx
5
+ // elements/carousel/Carousel.tsx
6
6
  import React, { useEffect, useState } from "react";
7
7
  import useEmblaCarousel from "embla-carousel-react";
8
8
  var Carousel = ({
@@ -13,10 +13,9 @@ var Carousel = ({
13
13
  autoplayInterval = 3e3,
14
14
  ...props
15
15
  }) => {
16
- const { loop } = options;
17
16
  const [emblaRef, emblaApi] = useEmblaCarousel({
18
17
  ...options,
19
- loop: autoplay ? true : loop || false
18
+ loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
20
19
  });
21
20
  const [selectedIndex, setSelectedIndex] = useState(0);
22
21
  useEffect(() => {
@@ -75,12 +74,12 @@ var Dots = ({ onDotClick, itemsLength, selectedIndex }) => {
75
74
  return /* @__PURE__ */ React.createElement(
76
75
  "div",
77
76
  {
77
+ key: index,
78
78
  onClick: () => onDotClick(index),
79
79
  className: cn(
80
80
  "hawa-h-2 hawa-rounded-full hawa-bg-primary hawa-transition-all hawa-duration-300 hover:hawa-cursor-pointer",
81
81
  !selected ? "hawa-w-2 hawa-opacity-50" : "hawa-w-6 hawa-opacity-100"
82
- ),
83
- key: index
82
+ )
84
83
  }
85
84
  );
86
85
  }));
@@ -89,11 +88,7 @@ var CarouselControls = (props) => {
89
88
  return /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ React.createElement(
90
89
  "button",
91
90
  {
92
- onClick: () => {
93
- if (props.canScrollPrev) {
94
- props.onPrev();
95
- }
96
- },
91
+ onClick: () => props.canScrollPrev && props.onPrev(),
97
92
  disabled: !props.canScrollPrev,
98
93
  className: cn(
99
94
  "hawa-absolute hawa-start-0 hawa-top-1/2 -hawa-translate-y-2 hawa-rounded-full hawa-p-2 hawa-text-white ",
@@ -115,11 +110,7 @@ var CarouselControls = (props) => {
115
110
  ), /* @__PURE__ */ React.createElement(
116
111
  "button",
117
112
  {
118
- onClick: () => {
119
- if (props.canScrollNext) {
120
- props.onNext();
121
- }
122
- },
113
+ onClick: () => props.canScrollNext && props.onNext(),
123
114
  disabled: !props.canScrollNext,
124
115
  className: cn(
125
116
  "hawa-absolute hawa-end-0 hawa-top-1/2 -hawa-translate-y-2 hawa-rounded-full hawa-p-2 hawa-text-white ",
@@ -27,25 +27,25 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
- // components/elements/checkbox/index.ts
30
+ // elements/checkbox/index.ts
31
31
  var checkbox_exports = {};
32
32
  __export(checkbox_exports, {
33
33
  Checkbox: () => Checkbox
34
34
  });
35
35
  module.exports = __toCommonJS(checkbox_exports);
36
36
 
37
- // components/elements/checkbox/Checkbox.tsx
37
+ // elements/checkbox/Checkbox.tsx
38
38
  var React = __toESM(require("react"));
39
39
  var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
40
40
 
41
- // components/util.ts
41
+ // util/index.ts
42
42
  var import_clsx = require("clsx");
43
43
  var import_tailwind_merge = require("tailwind-merge");
44
44
  function cn(...inputs) {
45
45
  return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
46
46
  }
47
47
 
48
- // components/elements/checkbox/Checkbox.tsx
48
+ // elements/checkbox/Checkbox.tsx
49
49
  var Checkbox = ({
50
50
  id,
51
51
  label,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  cn
3
- } from "../chunk-TE3BKEXL.mjs";
3
+ } from "../chunk-TWNGV3RE.mjs";
4
4
 
5
- // components/elements/checkbox/Checkbox.tsx
5
+ // elements/checkbox/Checkbox.tsx
6
6
  import * as React from "react";
7
7
  import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
8
8
  var Checkbox = ({
@@ -27,24 +27,24 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
- // components/elements/chip/index.ts
30
+ // elements/chip/index.ts
31
31
  var chip_exports = {};
32
32
  __export(chip_exports, {
33
33
  Chip: () => Chip
34
34
  });
35
35
  module.exports = __toCommonJS(chip_exports);
36
36
 
37
- // components/elements/chip/Chip.tsx
37
+ // elements/chip/Chip.tsx
38
38
  var import_react = __toESM(require("react"));
39
39
 
40
- // components/util.ts
40
+ // util/index.ts
41
41
  var import_clsx = require("clsx");
42
42
  var import_tailwind_merge = require("tailwind-merge");
43
43
  function cn(...inputs) {
44
44
  return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
45
45
  }
46
46
 
47
- // components/elements/chip/Chip.tsx
47
+ // elements/chip/Chip.tsx
48
48
  var Chip = import_react.default.forwardRef(
49
49
  ({
50
50
  label,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  cn
3
- } from "../chunk-TE3BKEXL.mjs";
3
+ } from "../chunk-TWNGV3RE.mjs";
4
4
 
5
- // components/elements/chip/Chip.tsx
5
+ // elements/chip/Chip.tsx
6
6
  import React from "react";
7
7
  var Chip = React.forwardRef(
8
8
  ({
@@ -1,4 +1,4 @@
1
- // components/hooks/useToast.ts
1
+ // hooks/useToast.ts
2
2
  import * as React from "react";
3
3
  var TOAST_LIMIT = 5;
4
4
  var TOAST_REMOVE_DELAY = 1e5;
@@ -112,7 +112,7 @@ function useToast() {
112
112
  };
113
113
  }
114
114
 
115
- // components/hooks/useClipboard.ts
115
+ // hooks/useClipboard.ts
116
116
  import { useState as useState2 } from "react";
117
117
  function useClipboard({ timeout = 2e3 } = {}) {
118
118
  const [error, setError] = useState2(null);
@@ -2,9 +2,9 @@ import {
2
2
  Label,
3
3
  Skeleton,
4
4
  cn
5
- } from "./chunk-FYH74ZRQ.mjs";
5
+ } from "./chunk-AREFDTXK.mjs";
6
6
 
7
- // components/elements/select/Select.tsx
7
+ // elements/select/Select.tsx
8
8
  import React from "react";
9
9
  import ReactSelect from "react-select";
10
10
  import CreatableSelect from "react-select/creatable";
@@ -1,15 +1,15 @@
1
- // components/util.ts
1
+ // util/index.ts
2
2
  import { clsx } from "clsx";
3
3
  import { twMerge } from "tailwind-merge";
4
4
  function cn(...inputs) {
5
5
  return twMerge(clsx(inputs));
6
6
  }
7
7
 
8
- // components/elements/button/Button.tsx
8
+ // elements/button/Button.tsx
9
9
  import * as React2 from "react";
10
10
  import { cva } from "class-variance-authority";
11
11
 
12
- // components/elements/loading/Loading.tsx
12
+ // elements/loading/Loading.tsx
13
13
  import React from "react";
14
14
  var Loading = ({
15
15
  design = "spinner",
@@ -186,7 +186,7 @@ var Loading = ({
186
186
  }
187
187
  };
188
188
 
189
- // components/elements/button/Button.tsx
189
+ // elements/button/Button.tsx
190
190
  var buttonVariants = cva(
191
191
  "hawa-inline-flex hawa-items-center hawa-select-none hawa-rounded-md hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
192
192
  {
@@ -239,6 +239,7 @@ var Button = React2.forwardRef(
239
239
  className: cn(
240
240
  buttonVariants({ variant, size, className }),
241
241
  centered && "hawa-justify-center"
242
+ // "hawa-bg-red-500"
242
243
  ),
243
244
  ref,
244
245
  ...props
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Label,
3
3
  cn
4
- } from "./chunk-FYH74ZRQ.mjs";
4
+ } from "./chunk-AREFDTXK.mjs";
5
5
 
6
- // components/elements/textarea/Textarea.tsx
6
+ // elements/textarea/Textarea.tsx
7
7
  import * as React from "react";
8
8
  var Textarea = React.forwardRef(
9
9
  ({
@@ -1,15 +1,15 @@
1
- // components/util.ts
1
+ // util/index.ts
2
2
  import { clsx } from "clsx";
3
3
  import { twMerge } from "tailwind-merge";
4
4
  function cn(...inputs) {
5
5
  return twMerge(clsx(inputs));
6
6
  }
7
7
 
8
- // components/elements/button/Button.tsx
8
+ // elements/button/Button.tsx
9
9
  import * as React2 from "react";
10
10
  import { cva } from "class-variance-authority";
11
11
 
12
- // components/elements/loading/Loading.tsx
12
+ // elements/loading/Loading.tsx
13
13
  import React from "react";
14
14
  var Loading = ({
15
15
  design = "spinner",
@@ -186,7 +186,7 @@ var Loading = ({
186
186
  }
187
187
  };
188
188
 
189
- // components/elements/button/Button.tsx
189
+ // elements/button/Button.tsx
190
190
  var buttonVariants = cva(
191
191
  "hawa-inline-flex hawa-items-center hawa-select-none hawa-rounded-md hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
192
192
  {
@@ -239,6 +239,7 @@ var Button = React2.forwardRef(
239
239
  className: cn(
240
240
  buttonVariants({ variant, size, className }),
241
241
  centered && "hawa-justify-center"
242
+ // "hawa-bg-red-500"
242
243
  ),
243
244
  ref,
244
245
  ...props
@@ -257,7 +258,7 @@ var Button = React2.forwardRef(
257
258
  );
258
259
  Button.displayName = "Button";
259
260
 
260
- // components/elements/card/Card.tsx
261
+ // elements/card/Card.tsx
261
262
  import * as React3 from "react";
262
263
  var Card = React3.forwardRef(
263
264
  ({ className, variant = "default", clickable = false, ...props }, ref) => {
@@ -338,7 +339,7 @@ CardFooter.displayName = "CardFooter";
338
339
  CardTitle.displayName = "CardTitle";
339
340
  Card.displayName = "Card";
340
341
 
341
- // components/elements/tooltip/Tooltip.tsx
342
+ // elements/tooltip/Tooltip.tsx
342
343
  import React4 from "react";
343
344
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
344
345
  var TooltipContent = React4.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React4.createElement(
@@ -389,7 +390,7 @@ var Tooltip = ({
389
390
  );
390
391
  };
391
392
 
392
- // components/elements/label/Label.tsx
393
+ // elements/label/Label.tsx
393
394
  import * as React5 from "react";
394
395
  var Label = React5.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React5.createElement(
395
396
  "label",
@@ -432,7 +433,7 @@ var Label = React5.forwardRef(({ className, hint, hintSide, required, children,
432
433
  )));
433
434
  Label.displayName = "Label";
434
435
 
435
- // components/elements/skeleton/Skeleton.tsx
436
+ // elements/skeleton/Skeleton.tsx
436
437
  import React6 from "react";
437
438
  function Skeleton({
438
439
  className,
@@ -1,4 +1,4 @@
1
- // components/hooks/useBreakpoint.ts
1
+ // hooks/useBreakpoint.ts
2
2
  import { useState, useEffect } from "react";
3
3
  var useBreakpoint = () => {
4
4
  const [breakpoint, setBreakpoint] = useState(null);
@@ -2,9 +2,9 @@ import {
2
2
  Label,
3
3
  Skeleton,
4
4
  cn
5
- } from "./chunk-FYH74ZRQ.mjs";
5
+ } from "./chunk-AREFDTXK.mjs";
6
6
 
7
- // components/elements/input/Input.tsx
7
+ // elements/input/Input.tsx
8
8
  import React, { forwardRef } from "react";
9
9
  var Input = forwardRef(
10
10
  ({
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  cn
3
- } from "./chunk-TE3BKEXL.mjs";
3
+ } from "./chunk-TWNGV3RE.mjs";
4
4
 
5
- // components/elements/toast/Toast.tsx
5
+ // elements/toast/Toast.tsx
6
6
  import * as React from "react";
7
7
  import * as ToastPrimitives from "@radix-ui/react-toast";
8
8
  import { cva } from "class-variance-authority";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Label,
3
3
  cn
4
- } from "./chunk-FYH74ZRQ.mjs";
4
+ } from "./chunk-AREFDTXK.mjs";
5
5
 
6
- // components/elements/radio/Radio.tsx
6
+ // elements/radio/Radio.tsx
7
7
  import React, { useState, useRef, useEffect } from "react";
8
8
  var Radio = ({
9
9
  design = "default",
@@ -0,0 +1,62 @@
1
+ // util/index.ts
2
+ import { clsx } from "clsx";
3
+ import { twMerge } from "tailwind-merge";
4
+ function cn(...inputs) {
5
+ return twMerge(clsx(inputs));
6
+ }
7
+
8
+ // elements/tooltip/Tooltip.tsx
9
+ import React from "react";
10
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
11
+ var TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React.createElement(
12
+ TooltipPrimitive.Content,
13
+ {
14
+ ref,
15
+ sideOffset,
16
+ className: cn(
17
+ "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",
18
+ className
19
+ ),
20
+ ...props
21
+ }
22
+ ));
23
+ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
24
+ var TooltipArrow = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
25
+ TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
26
+ var Tooltip = ({
27
+ side,
28
+ open,
29
+ content,
30
+ children,
31
+ defaultOpen,
32
+ onOpenChange,
33
+ triggerProps,
34
+ contentProps,
35
+ providerProps,
36
+ delayDuration = 300,
37
+ ...props
38
+ }) => {
39
+ return /* @__PURE__ */ React.createElement(
40
+ TooltipPrimitive.TooltipProvider,
41
+ {
42
+ delayDuration,
43
+ ...providerProps
44
+ },
45
+ /* @__PURE__ */ React.createElement(
46
+ TooltipPrimitive.Root,
47
+ {
48
+ open,
49
+ defaultOpen,
50
+ onOpenChange,
51
+ ...props
52
+ },
53
+ /* @__PURE__ */ React.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
54
+ /* @__PURE__ */ React.createElement(TooltipContent, { side, align: "center", ...contentProps }, content)
55
+ )
56
+ );
57
+ };
58
+
59
+ export {
60
+ cn,
61
+ Tooltip
62
+ };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  cn
3
- } from "./chunk-FYH74ZRQ.mjs";
3
+ } from "./chunk-AREFDTXK.mjs";
4
4
 
5
- // components/elements/scrollArea/ScrollArea.tsx
5
+ // elements/scrollArea/ScrollArea.tsx
6
6
  import * as React from "react";
7
7
  import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
8
8
  var ScrollArea = React.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React.createElement(
@@ -42,7 +42,7 @@ var ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...prop
42
42
  ));
43
43
  ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
44
44
 
45
- // components/elements/chip/Chip.tsx
45
+ // elements/chip/Chip.tsx
46
46
  import React2 from "react";
47
47
  var Chip = React2.forwardRef(
48
48
  ({
@@ -1,15 +1,15 @@
1
- // components/elements/command/Command.tsx
1
+ // elements/command/Command.tsx
2
2
  import * as React2 from "react";
3
3
  import { Command as CommandPrimitive } from "cmdk";
4
4
 
5
- // components/util.ts
5
+ // util/index.ts
6
6
  import { clsx } from "clsx";
7
7
  import { twMerge } from "tailwind-merge";
8
8
  function cn(...inputs) {
9
9
  return twMerge(clsx(inputs));
10
10
  }
11
11
 
12
- // components/elements/dialog/Dialog.tsx
12
+ // elements/dialog/Dialog.tsx
13
13
  import * as React from "react";
14
14
  import * as DialogPrimitive from "@radix-ui/react-dialog";
15
15
  var Dialog = DialogPrimitive.Root;
@@ -304,7 +304,7 @@ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
304
304
  DialogContent.displayName = DialogPrimitive.Content.displayName;
305
305
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
306
306
 
307
- // components/elements/command/Command.tsx
307
+ // elements/command/Command.tsx
308
308
  var Command = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
309
309
  CommandPrimitive,
310
310
  {
@@ -1,14 +1,14 @@
1
- // components/util.ts
1
+ // util/index.ts
2
2
  import { clsx } from "clsx";
3
3
  import { twMerge } from "tailwind-merge";
4
4
  function cn(...inputs) {
5
5
  return twMerge(clsx(inputs));
6
6
  }
7
7
 
8
- // components/elements/label/Label.tsx
8
+ // elements/label/Label.tsx
9
9
  import * as React2 from "react";
10
10
 
11
- // components/elements/tooltip/Tooltip.tsx
11
+ // elements/tooltip/Tooltip.tsx
12
12
  import React from "react";
13
13
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
14
14
  var TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React.createElement(
@@ -59,7 +59,7 @@ var Tooltip = ({
59
59
  );
60
60
  };
61
61
 
62
- // components/elements/label/Label.tsx
62
+ // elements/label/Label.tsx
63
63
  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(
64
64
  "label",
65
65
  {
@@ -1,4 +1,4 @@
1
- // components/util.ts
1
+ // util/index.ts
2
2
  import { clsx } from "clsx";
3
3
  import { twMerge } from "tailwind-merge";
4
4
  function cn(...inputs) {
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  cn
3
- } from "./chunk-FYH74ZRQ.mjs";
3
+ } from "./chunk-AREFDTXK.mjs";
4
4
 
5
- // components/icons/Emojis.tsx
5
+ // icons/Emojis.tsx
6
6
  import React from "react";
7
7
  var VeryGoodEmoji = () => /* @__PURE__ */ React.createElement(
8
8
  "svg",
@@ -95,7 +95,7 @@ var VeryBadEmoji = () => /* @__PURE__ */ React.createElement(
95
95
  ))
96
96
  );
97
97
 
98
- // components/icons/InputIcons.tsx
98
+ // icons/InputIcons.tsx
99
99
  import React2 from "react";
100
100
  var EyeIcon = (props) => /* @__PURE__ */ React2.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ React2.createElement(
101
101
  "svg",
@@ -128,7 +128,7 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ React2.createElement("div", { cla
128
128
  /* @__PURE__ */ React2.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
129
129
  ));
130
130
 
131
- // components/icons/CommonIcons.tsx
131
+ // icons/CommonIcons.tsx
132
132
  import React3 from "react";
133
133
  var CheckMark = ({ size = "default", className }) => {
134
134
  let sizeStyles = {
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  cn
3
- } from "./chunk-3KMBSNM3.mjs";
3
+ } from "./chunk-Z5SL5QTQ.mjs";
4
4
 
5
- // components/elements/sheet/Sheet.tsx
5
+ // elements/sheet/Sheet.tsx
6
6
  import * as React from "react";
7
7
  import * as SheetPrimitive from "@radix-ui/react-dialog";
8
8
  import { cva } from "class-variance-authority";