@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
@@ -0,0 +1,19 @@
1
+ import React, { FC } from 'react';
2
+
3
+ interface StatTypes extends React.HTMLAttributes<HTMLDivElement> {
4
+ label?: string;
5
+ color?: string;
6
+ number?: string;
7
+ helperText?: string;
8
+ helperTextColor?: "default" | "positive" | "negative" | "muted";
9
+ chart?: any;
10
+ icon?: React.ReactNode;
11
+ variant?: "default" | "plain" | "contained" | "outlined" | "brutalist" | "dropshadow";
12
+ width?: "full" | "min" | "normal";
13
+ isLoading?: boolean;
14
+ className?: string;
15
+ clickable?: boolean;
16
+ }
17
+ declare const Stats: FC<StatTypes>;
18
+
19
+ export { Stats };
@@ -0,0 +1,191 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // components/layout/stats/index.ts
31
+ var stats_exports = {};
32
+ __export(stats_exports, {
33
+ Stats: () => Stats
34
+ });
35
+ module.exports = __toCommonJS(stats_exports);
36
+
37
+ // components/layout/stats/Stats.tsx
38
+ var import_react2 = __toESM(require("react"));
39
+
40
+ // components/elements/card/Card.tsx
41
+ var React = __toESM(require("react"));
42
+
43
+ // components/util.ts
44
+ var import_clsx = require("clsx");
45
+ var import_tailwind_merge = require("tailwind-merge");
46
+ function cn(...inputs) {
47
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
48
+ }
49
+
50
+ // components/elements/card/Card.tsx
51
+ var Card = React.forwardRef(
52
+ ({ className, variant = "default", clickable = false, ...props }, ref) => {
53
+ let variantStyles = {
54
+ default: cn(
55
+ "hawa-rounded-lg hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
56
+ clickable && "hawa-cursor-pointer hawa-transition-all hover:hawa-drop-shadow-md dark:hover:dark-shadow"
57
+ ),
58
+ neoBrutalism: cn(
59
+ "neo-brutalism",
60
+ // "hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] transition-all uppercase font-mono dark:bg-black font-bold py-2 px-4 rounded border-2 border-primary shadow-color-primary transition-[transform_50ms, box-shadow_50ms]",
61
+ clickable && "hawa-cursor-pointer active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"
62
+ )
63
+ };
64
+ return /* @__PURE__ */ React.createElement(
65
+ "div",
66
+ {
67
+ ref,
68
+ className: cn(className, variantStyles[variant]),
69
+ ...props
70
+ }
71
+ );
72
+ }
73
+ );
74
+ var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
75
+ "div",
76
+ {
77
+ ref,
78
+ className: cn(
79
+ "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
80
+ className
81
+ ),
82
+ ...props
83
+ }
84
+ ));
85
+ var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
86
+ "h3",
87
+ {
88
+ ref,
89
+ className: cn("hawa-text-2xl hawa-font-semibold ", className),
90
+ ...props
91
+ }
92
+ ));
93
+ var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
94
+ "p",
95
+ {
96
+ ref,
97
+ className: cn("hawa-text-sm hawa-text-muted-foreground", className),
98
+ ...props
99
+ }
100
+ ));
101
+ var CardContent = React.forwardRef(
102
+ ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React.createElement(
103
+ "div",
104
+ {
105
+ ref,
106
+ className: cn(
107
+ noPadding ? "hawa-p-0" : "hawa-p-6",
108
+ headless ? "hawa-pt-6" : "hawa-pt-0",
109
+ className
110
+ ),
111
+ ...props
112
+ }
113
+ )
114
+ );
115
+ var CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
116
+ "div",
117
+ {
118
+ ref,
119
+ className: cn("hawa-flex hawa-items-center hawa-p-6 hawa-pt-0", className),
120
+ ...props
121
+ }
122
+ ));
123
+ CardDescription.displayName = "CardDescription";
124
+ CardContent.displayName = "CardContent";
125
+ CardHeader.displayName = "CardHeader";
126
+ CardFooter.displayName = "CardFooter";
127
+ CardTitle.displayName = "CardTitle";
128
+ Card.displayName = "Card";
129
+
130
+ // components/elements/skeleton/Skeleton.tsx
131
+ var import_react = __toESM(require("react"));
132
+ function Skeleton({
133
+ className,
134
+ content,
135
+ animation = "pulse",
136
+ ...props
137
+ }) {
138
+ const animationStyles = {
139
+ none: "hawa-rounded hawa-bg-muted",
140
+ pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
141
+ shimmer: "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10"
142
+ };
143
+ return /* @__PURE__ */ import_react.default.createElement(
144
+ "div",
145
+ {
146
+ className: cn(
147
+ animationStyles[animation],
148
+ content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
149
+ className
150
+ ),
151
+ ...props
152
+ },
153
+ content && content
154
+ );
155
+ }
156
+
157
+ // components/layout/stats/Stats.tsx
158
+ var Stats = ({
159
+ label,
160
+ icon,
161
+ isLoading,
162
+ number,
163
+ helperText,
164
+ helperTextColor = "default",
165
+ chart,
166
+ clickable,
167
+ variant = "default",
168
+ ...props
169
+ }) => {
170
+ let helperTextColorStyles = {
171
+ default: "",
172
+ positive: "hawa-text-green-600 dark:hawa-text-green-500",
173
+ negative: "hawa-text-red-600 dark:hawa-text-red-500",
174
+ muted: "hawa-text-muted-foreground"
175
+ };
176
+ return /* @__PURE__ */ import_react2.default.createElement(Card, { ...props, clickable }, /* @__PURE__ */ import_react2.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between hawa-p-4" }, /* @__PURE__ */ import_react2.default.createElement(CardTitle, { className: "hawa-text-sm hawa-font-medium" }, label), icon && /* @__PURE__ */ import_react2.default.createElement("span", null, icon)), /* @__PURE__ */ import_react2.default.createElement(CardContent, { className: "hawa-transition-all" }, isLoading ? /* @__PURE__ */ import_react2.default.createElement(Skeleton, { className: "hawa-h-8 hawa-w-3/4" }) : /* @__PURE__ */ import_react2.default.createElement("div", { className: "hawa-text-2xl hawa-font-bold" }, number), helperText && /* @__PURE__ */ import_react2.default.createElement(
177
+ "div",
178
+ {
179
+ className: cn(
180
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-transition-all",
181
+ helperTextColorStyles[helperTextColor],
182
+ helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
183
+ )
184
+ },
185
+ isLoading ? /* @__PURE__ */ import_react2.default.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : helperText
186
+ ), chart && (isLoading ? /* @__PURE__ */ import_react2.default.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : chart)));
187
+ };
188
+ // Annotate the CommonJS export names for ESM import in node:
189
+ 0 && (module.exports = {
190
+ Stats
191
+ });
@@ -0,0 +1,154 @@
1
+ // components/layout/stats/Stats.tsx
2
+ import React3 from "react";
3
+
4
+ // components/elements/card/Card.tsx
5
+ import * as React from "react";
6
+
7
+ // components/util.ts
8
+ import { clsx } from "clsx";
9
+ import { twMerge } from "tailwind-merge";
10
+ function cn(...inputs) {
11
+ return twMerge(clsx(inputs));
12
+ }
13
+
14
+ // components/elements/card/Card.tsx
15
+ var Card = React.forwardRef(
16
+ ({ className, variant = "default", clickable = false, ...props }, ref) => {
17
+ let variantStyles = {
18
+ default: cn(
19
+ "hawa-rounded-lg hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
20
+ clickable && "hawa-cursor-pointer hawa-transition-all hover:hawa-drop-shadow-md dark:hover:dark-shadow"
21
+ ),
22
+ neoBrutalism: cn(
23
+ "neo-brutalism",
24
+ // "hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] transition-all uppercase font-mono dark:bg-black font-bold py-2 px-4 rounded border-2 border-primary shadow-color-primary transition-[transform_50ms, box-shadow_50ms]",
25
+ clickable && "hawa-cursor-pointer active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"
26
+ )
27
+ };
28
+ return /* @__PURE__ */ React.createElement(
29
+ "div",
30
+ {
31
+ ref,
32
+ className: cn(className, variantStyles[variant]),
33
+ ...props
34
+ }
35
+ );
36
+ }
37
+ );
38
+ var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
39
+ "div",
40
+ {
41
+ ref,
42
+ className: cn(
43
+ "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
44
+ className
45
+ ),
46
+ ...props
47
+ }
48
+ ));
49
+ var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
50
+ "h3",
51
+ {
52
+ ref,
53
+ className: cn("hawa-text-2xl hawa-font-semibold ", className),
54
+ ...props
55
+ }
56
+ ));
57
+ var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
58
+ "p",
59
+ {
60
+ ref,
61
+ className: cn("hawa-text-sm hawa-text-muted-foreground", className),
62
+ ...props
63
+ }
64
+ ));
65
+ var CardContent = React.forwardRef(
66
+ ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React.createElement(
67
+ "div",
68
+ {
69
+ ref,
70
+ className: cn(
71
+ noPadding ? "hawa-p-0" : "hawa-p-6",
72
+ headless ? "hawa-pt-6" : "hawa-pt-0",
73
+ className
74
+ ),
75
+ ...props
76
+ }
77
+ )
78
+ );
79
+ var CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
80
+ "div",
81
+ {
82
+ ref,
83
+ className: cn("hawa-flex hawa-items-center hawa-p-6 hawa-pt-0", className),
84
+ ...props
85
+ }
86
+ ));
87
+ CardDescription.displayName = "CardDescription";
88
+ CardContent.displayName = "CardContent";
89
+ CardHeader.displayName = "CardHeader";
90
+ CardFooter.displayName = "CardFooter";
91
+ CardTitle.displayName = "CardTitle";
92
+ Card.displayName = "Card";
93
+
94
+ // components/elements/skeleton/Skeleton.tsx
95
+ import React2 from "react";
96
+ function Skeleton({
97
+ className,
98
+ content,
99
+ animation = "pulse",
100
+ ...props
101
+ }) {
102
+ const animationStyles = {
103
+ none: "hawa-rounded hawa-bg-muted",
104
+ pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
105
+ shimmer: "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10"
106
+ };
107
+ return /* @__PURE__ */ React2.createElement(
108
+ "div",
109
+ {
110
+ className: cn(
111
+ animationStyles[animation],
112
+ content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
113
+ className
114
+ ),
115
+ ...props
116
+ },
117
+ content && content
118
+ );
119
+ }
120
+
121
+ // components/layout/stats/Stats.tsx
122
+ var Stats = ({
123
+ label,
124
+ icon,
125
+ isLoading,
126
+ number,
127
+ helperText,
128
+ helperTextColor = "default",
129
+ chart,
130
+ clickable,
131
+ variant = "default",
132
+ ...props
133
+ }) => {
134
+ let helperTextColorStyles = {
135
+ default: "",
136
+ positive: "hawa-text-green-600 dark:hawa-text-green-500",
137
+ negative: "hawa-text-red-600 dark:hawa-text-red-500",
138
+ muted: "hawa-text-muted-foreground"
139
+ };
140
+ return /* @__PURE__ */ React3.createElement(Card, { ...props, clickable }, /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between hawa-p-4" }, /* @__PURE__ */ React3.createElement(CardTitle, { className: "hawa-text-sm hawa-font-medium" }, label), icon && /* @__PURE__ */ React3.createElement("span", null, icon)), /* @__PURE__ */ React3.createElement(CardContent, { className: "hawa-transition-all" }, isLoading ? /* @__PURE__ */ React3.createElement(Skeleton, { className: "hawa-h-8 hawa-w-3/4" }) : /* @__PURE__ */ React3.createElement("div", { className: "hawa-text-2xl hawa-font-bold" }, number), helperText && /* @__PURE__ */ React3.createElement(
141
+ "div",
142
+ {
143
+ className: cn(
144
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-transition-all",
145
+ helperTextColorStyles[helperTextColor],
146
+ helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
147
+ )
148
+ },
149
+ isLoading ? /* @__PURE__ */ React3.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : helperText
150
+ ), chart && (isLoading ? /* @__PURE__ */ React3.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : chart)));
151
+ };
152
+ export {
153
+ Stats
154
+ };
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ import React__default from 'react';
2
2
 
3
- declare const StopPropagationWrapper: (props: any) => React.JSX.Element;
3
+ declare const StopPropagationWrapper: (props: any) => React__default.JSX.Element;
4
4
 
5
5
  export { StopPropagationWrapper };
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ import React__default from 'react';
2
2
 
3
- declare const StopPropagationWrapper: (props: any) => React.JSX.Element;
3
+ declare const StopPropagationWrapper: (props: any) => React__default.JSX.Element;
4
4
 
5
5
  export { StopPropagationWrapper };
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import * as SwitchPrimitives from '@radix-ui/react-switch';
3
- import { R as RadiusType } from '../commonTypes-PBumfOBg.mjs';
3
+
4
+ type RadiusType = "full" | "inherit" | "none";
4
5
 
5
6
  interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> {
6
7
  size?: "default" | "sm" | "lg";
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import * as SwitchPrimitives from '@radix-ui/react-switch';
3
- import { R as RadiusType } from '../commonTypes-PBumfOBg.js';
3
+
4
+ type RadiusType = "full" | "inherit" | "none";
4
5
 
5
6
  interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> {
6
7
  size?: "default" | "sm" | "lg";
@@ -1,6 +1,24 @@
1
1
  import * as React from 'react';
2
+ import React__default from 'react';
2
3
  import * as TabsPrimitive from '@radix-ui/react-tabs';
3
- import { O as OrientationType, C as ChipTypes } from '../index-DUZFcPRO.mjs';
4
+ import { R as RadiusType, O as OrientationType } from '../commonTypes-3J1E3b61.mjs';
5
+
6
+ type ChipColors = "green" | "blue" | "red" | "yellow" | "orange" | "purple" | "cyan" | "hyper" | "oceanic";
7
+ type ChipTypes = React__default.HTMLAttributes<HTMLSpanElement> & {
8
+ /** The text inside the chip */
9
+ label: string;
10
+ /** The small icon before the chip label */
11
+ icon?: JSX.Element;
12
+ /** The color of the chip, must be a tailwind color */
13
+ color?: ChipColors;
14
+ /** The size of the chip */
15
+ size?: "small" | "normal" | "large";
16
+ /** Enable/Disable the dot before the label of the chip */
17
+ dot?: boolean;
18
+ /** Red/Green dot next to the label of the chip indicating online/offline or available/unavailable */
19
+ dotType?: "available" | "unavailable";
20
+ radius?: RadiusType;
21
+ };
4
22
 
5
23
  declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
6
24
  orientation?: OrientationType | undefined;
@@ -1,6 +1,24 @@
1
1
  import * as React from 'react';
2
+ import React__default from 'react';
2
3
  import * as TabsPrimitive from '@radix-ui/react-tabs';
3
- import { O as OrientationType, C as ChipTypes } from '../index-DUZFcPRO.js';
4
+ import { R as RadiusType, O as OrientationType } from '../commonTypes-3J1E3b61.js';
5
+
6
+ type ChipColors = "green" | "blue" | "red" | "yellow" | "orange" | "purple" | "cyan" | "hyper" | "oceanic";
7
+ type ChipTypes = React__default.HTMLAttributes<HTMLSpanElement> & {
8
+ /** The text inside the chip */
9
+ label: string;
10
+ /** The small icon before the chip label */
11
+ icon?: JSX.Element;
12
+ /** The color of the chip, must be a tailwind color */
13
+ color?: ChipColors;
14
+ /** The size of the chip */
15
+ size?: "small" | "normal" | "large";
16
+ /** Enable/Disable the dot before the label of the chip */
17
+ dot?: boolean;
18
+ /** Red/Green dot next to the label of the chip indicating online/offline or available/unavailable */
19
+ dotType?: "available" | "unavailable";
20
+ radius?: RadiusType;
21
+ };
4
22
 
5
23
  declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
6
24
  orientation?: OrientationType | undefined;
@@ -1,15 +1,95 @@
1
- import {
2
- Chip
3
- } from "../chunk-72HYR6WB.mjs";
4
1
  import {
5
2
  cn
6
3
  } from "../chunk-TE3BKEXL.mjs";
7
4
 
8
5
  // components/elements/tabs/Tabs.tsx
9
- import * as React from "react";
6
+ import * as React2 from "react";
10
7
  import * as TabsPrimitive from "@radix-ui/react-tabs";
11
- var TabsContext = React.createContext({ orientation: "vertical" });
12
- var Tabs = React.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React.createElement(
8
+
9
+ // components/elements/chip/Chip.tsx
10
+ import React from "react";
11
+ var Chip = React.forwardRef(
12
+ ({
13
+ label,
14
+ size = "normal",
15
+ icon,
16
+ color,
17
+ radius = "inherit",
18
+ dotType,
19
+ ...rest
20
+ }, ref) => {
21
+ let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-px-2.5 hawa-py-1 hawa-font-bold ";
22
+ let radiusStyles = {
23
+ inherit: " hawa-rounded",
24
+ full: "hawa-rounded-full",
25
+ none: "hawa-rounded-none"
26
+ };
27
+ let sizeStyles = {
28
+ small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
29
+ normal: "hawa-h-fit hawa-text-xs",
30
+ large: "hawa-text-base"
31
+ };
32
+ let dotStyles = {
33
+ small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
34
+ normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
35
+ large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
36
+ };
37
+ let dotTypeStyles = {
38
+ available: "hawa-bg-green-500",
39
+ unavailable: "hawa-bg-red-500"
40
+ };
41
+ let colorStyles = {
42
+ green: "hawa-bg-green-100 hawa-text-green-500 dark:hawa-bg-green-400 dark:hawa-text-green-800",
43
+ blue: "hawa-bg-blue-100 hawa-text-blue-500 dark:hawa-bg-blue-400 dark:hawa-text-blue-100",
44
+ red: "hawa-bg-red-100 hawa-text-red-500 dark:hawa-bg-red-400 dark:hawa-text-red-100",
45
+ yellow: "hawa-bg-yellow-100 hawa-text-yellow-600 dark:hawa-bg-yellow-400 dark:hawa-text-yellow-800",
46
+ orange: "hawa-bg-orange-100 hawa-text-orange-500 dark:hawa-bg-orange-400 dark:hawa-text-orange-100",
47
+ purple: "hawa-bg-purple-100 hawa-text-purple-500 dark:hawa-bg-purple-400 dark:hawa-text-purple-100",
48
+ cyan: "hawa-bg-cyan-100 hawa-text-cyan-800 dark:hawa-bg-cyan-400 dark:hawa-text-cyan-800",
49
+ hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-500 hawa-via-red-500 hawa-to-yellow-500 ",
50
+ oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
51
+ };
52
+ if (label) {
53
+ return /* @__PURE__ */ React.createElement(
54
+ "span",
55
+ {
56
+ ...rest,
57
+ ref,
58
+ className: cn(
59
+ defaultStyles,
60
+ sizeStyles[size],
61
+ radiusStyles[radius],
62
+ color ? colorStyles[color] : "hawa-border hawa-bg-none"
63
+ )
64
+ },
65
+ dotType && /* @__PURE__ */ React.createElement(
66
+ "span",
67
+ {
68
+ className: cn(dotStyles[size], dotTypeStyles[dotType])
69
+ }
70
+ ),
71
+ icon && icon,
72
+ label
73
+ );
74
+ } else {
75
+ return /* @__PURE__ */ React.createElement(
76
+ "span",
77
+ {
78
+ ...rest,
79
+ ref,
80
+ className: cn(
81
+ "hawa-h-2 hawa-w-2 hawa-rounded-full",
82
+ color ? colorStyles[color] : "hawa-border hawa-bg-none"
83
+ )
84
+ }
85
+ );
86
+ }
87
+ }
88
+ );
89
+
90
+ // components/elements/tabs/Tabs.tsx
91
+ var TabsContext = React2.createContext({ orientation: "vertical" });
92
+ var Tabs = React2.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React2.createElement(
13
93
  TabsPrimitive.Root,
14
94
  {
15
95
  ref,
@@ -20,12 +100,12 @@ var Tabs = React.forwardRef(({ className, orientation, ...props }, ref) => /* @_
20
100
  ),
21
101
  ...props
22
102
  },
23
- /* @__PURE__ */ React.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
103
+ /* @__PURE__ */ React2.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
24
104
  ));
25
105
  Tabs.displayName = TabsPrimitive.Root.displayName;
26
- var TabsList = React.forwardRef(({ className, ...props }, ref) => {
27
- const { orientation } = React.useContext(TabsContext);
28
- return /* @__PURE__ */ React.createElement(
106
+ var TabsList = React2.forwardRef(({ className, ...props }, ref) => {
107
+ const { orientation } = React2.useContext(TabsContext);
108
+ return /* @__PURE__ */ React2.createElement(
29
109
  TabsPrimitive.List,
30
110
  {
31
111
  ref,
@@ -39,8 +119,8 @@ var TabsList = React.forwardRef(({ className, ...props }, ref) => {
39
119
  );
40
120
  });
41
121
  TabsList.displayName = TabsPrimitive.List.displayName;
42
- var TabsTrigger = React.forwardRef(({ className, chipProps, ...props }, ref) => {
43
- return /* @__PURE__ */ React.createElement(
122
+ var TabsTrigger = React2.forwardRef(({ className, chipProps, ...props }, ref) => {
123
+ return /* @__PURE__ */ React2.createElement(
44
124
  TabsPrimitive.Trigger,
45
125
  {
46
126
  ref,
@@ -51,11 +131,11 @@ var TabsTrigger = React.forwardRef(({ className, chipProps, ...props }, ref) =>
51
131
  ...props
52
132
  },
53
133
  props.children,
54
- chipProps && /* @__PURE__ */ React.createElement(Chip, { ...chipProps })
134
+ chipProps && /* @__PURE__ */ React2.createElement(Chip, { ...chipProps })
55
135
  );
56
136
  });
57
137
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
58
- var TabsContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
138
+ var TabsContent = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
59
139
  TabsPrimitive.Content,
60
140
  {
61
141
  ref,
@@ -1,5 +1,12 @@
1
1
  import * as React from 'react';
2
- import { L as LabelProps } from '../Label-fkQ4ebuH.mjs';
2
+ import { P as PositionType } from '../commonTypes-3J1E3b61.mjs';
3
+
4
+ type LabelProps = {
5
+ hint?: React.ReactNode;
6
+ hintSide?: PositionType;
7
+ htmlFor?: string;
8
+ required?: boolean;
9
+ };
3
10
 
4
11
  interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
5
12
  helperText?: string;
@@ -1,5 +1,12 @@
1
1
  import * as React from 'react';
2
- import { L as LabelProps } from '../Label-fkQ4ebuH.js';
2
+ import { P as PositionType } from '../commonTypes-3J1E3b61.js';
3
+
4
+ type LabelProps = {
5
+ hint?: React.ReactNode;
6
+ hintSide?: PositionType;
7
+ htmlFor?: string;
8
+ required?: boolean;
9
+ };
3
10
 
4
11
  interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
5
12
  helperText?: string;