@sikka/hawa 0.25.0-next → 0.25.1-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 (77) hide show
  1. package/dist/blocks/auth/index.js +1 -0
  2. package/dist/blocks/auth/index.mjs +1 -0
  3. package/dist/blocks/index.js +1 -0
  4. package/dist/blocks/index.mjs +1 -1
  5. package/dist/chunk-KNHT2UBG.mjs +150 -0
  6. package/dist/{chunk-XE3FLWLT.mjs → chunk-MJMQDUCC.mjs} +1 -0
  7. package/dist/commonTypes-2IGtJ5cq.d.mts +3 -0
  8. package/dist/commonTypes-2IGtJ5cq.d.ts +3 -0
  9. package/dist/commonTypes-2k6FnHw5.d.mts +4 -0
  10. package/dist/commonTypes-2k6FnHw5.d.ts +4 -0
  11. package/dist/commonTypes-3k5cNB1s.d.mts +4 -0
  12. package/dist/commonTypes-3k5cNB1s.d.ts +4 -0
  13. package/dist/{commonTypes-3J1E3b61.d.mts → commonTypes-f_LVO3Sm.d.mts} +1 -2
  14. package/dist/{commonTypes-3J1E3b61.d.ts → commonTypes-f_LVO3Sm.d.ts} +1 -2
  15. package/dist/elements/index.js +1 -0
  16. package/dist/elements/index.mjs +1 -1
  17. package/dist/glow/index.d.mts +16 -0
  18. package/dist/glow/index.d.ts +16 -0
  19. package/dist/glow/index.js +155 -0
  20. package/dist/glow/index.mjs +117 -0
  21. package/dist/index.css +212 -206
  22. package/dist/index.js +1 -0
  23. package/dist/index.mjs +1 -0
  24. package/dist/input/index.d.mts +9 -2
  25. package/dist/input/index.d.ts +9 -2
  26. package/dist/input/index.mjs +1 -1
  27. package/dist/interfaceSettings/index.mjs +1 -1
  28. package/dist/label/index.d.mts +2 -1
  29. package/dist/label/index.d.ts +2 -1
  30. package/dist/label/index.mjs +98 -2
  31. package/dist/navigationMenu/index.d.mts +1 -2
  32. package/dist/navigationMenu/index.d.ts +1 -2
  33. package/dist/pagination/index.d.mts +1 -1
  34. package/dist/pagination/index.d.ts +1 -1
  35. package/dist/passwordInput/index.mjs +148 -27
  36. package/dist/phoneInput/index.d.mts +1 -1
  37. package/dist/phoneInput/index.d.ts +1 -1
  38. package/dist/phoneInput/index.mjs +140 -19
  39. package/dist/pinInput/index.js +1 -0
  40. package/dist/pinInput/index.mjs +1 -0
  41. package/dist/popover/index.d.mts +1 -2
  42. package/dist/popover/index.d.ts +1 -2
  43. package/dist/radio/index.d.mts +4 -1
  44. package/dist/radio/index.d.ts +4 -1
  45. package/dist/scrollArea/index.d.mts +1 -1
  46. package/dist/scrollArea/index.d.ts +1 -1
  47. package/dist/separator/index.d.mts +1 -1
  48. package/dist/separator/index.d.ts +1 -1
  49. package/dist/simpleTable/index.d.mts +1 -2
  50. package/dist/simpleTable/index.d.ts +1 -2
  51. package/dist/simpleTable/index.mjs +45 -21
  52. package/dist/skeleton/index.mjs +29 -3
  53. package/dist/sortButton/index.mjs +260 -9
  54. package/dist/splitButton/index.d.mts +3 -4
  55. package/dist/splitButton/index.d.ts +3 -4
  56. package/dist/splitButton/index.mjs +259 -10
  57. package/dist/switch/index.d.mts +1 -2
  58. package/dist/switch/index.d.ts +1 -2
  59. package/dist/tabs/index.d.mts +1 -1
  60. package/dist/tabs/index.d.ts +1 -1
  61. package/dist/textarea/index.d.mts +1 -1
  62. package/dist/textarea/index.d.ts +1 -1
  63. package/dist/toast/index.d.mts +1 -1
  64. package/dist/toast/index.d.ts +1 -1
  65. package/dist/toast/index.mjs +9 -139
  66. package/dist/toaster/index.d.mts +2 -2
  67. package/dist/toaster/index.d.ts +2 -2
  68. package/dist/toaster/index.mjs +17 -146
  69. package/dist/tooltip/index.d.mts +2 -2
  70. package/dist/tooltip/index.d.ts +2 -2
  71. package/package.json +1 -1
  72. package/dist/chunk-53XBVEMK.mjs +0 -131
  73. package/dist/chunk-DGWAHQRX.mjs +0 -259
  74. package/dist/chunk-ND4BWUKH.mjs +0 -34
  75. package/dist/commonTypes-LrR8QrYP.d.mts +0 -5
  76. package/dist/commonTypes-LrR8QrYP.d.ts +0 -5
  77. package/dist/{chunk-ABS2VEET.mjs → chunk-WRZFWCOQ.mjs} +3 -3
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
3
- import { O as OrientationType } from '../commonTypes-LrR8QrYP.js';
3
+ import { O as OrientationType } from '../commonTypes-GhKAraJw.js';
4
4
 
5
5
  declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
6
6
  orientation?: OrientationType | undefined;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { O as OrientationType } from '../commonTypes-GhKAraJw.mjs';
2
+ import { O as OrientationType } from '../commonTypes-3k5cNB1s.mjs';
3
3
 
4
4
  type SeparatorProps = {
5
5
  className?: string;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { O as OrientationType } from '../commonTypes-GhKAraJw.js';
2
+ import { O as OrientationType } from '../commonTypes-3k5cNB1s.js';
3
3
 
4
4
  type SeparatorProps = {
5
5
  className?: string;
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { RowData, ColumnDef } from '@tanstack/react-table';
3
-
4
- type DirectionType = "rtl" | "ltr";
3
+ import { D as DirectionType } from '../commonTypes-3k5cNB1s.mjs';
5
4
 
6
5
  type DataProps = {};
7
6
  type SimpleTableProps = {
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { RowData, ColumnDef } from '@tanstack/react-table';
3
-
4
- type DirectionType = "rtl" | "ltr";
3
+ import { D as DirectionType } from '../commonTypes-3k5cNB1s.js';
5
4
 
6
5
  type DataProps = {};
7
6
  type SimpleTableProps = {
@@ -1,21 +1,45 @@
1
- import {
2
- Skeleton
3
- } from "../chunk-ND4BWUKH.mjs";
4
1
  import {
5
2
  cn
6
3
  } from "../chunk-TE3BKEXL.mjs";
7
4
 
8
5
  // components/elements/simpleTable/SimpleTable.tsx
9
- import * as React2 from "react";
6
+ import * as React3 from "react";
10
7
  import {
11
8
  flexRender,
12
9
  getCoreRowModel,
13
10
  useReactTable
14
11
  } from "@tanstack/react-table";
15
12
 
13
+ // components/elements/skeleton/Skeleton.tsx
14
+ import React from "react";
15
+ function Skeleton({
16
+ className,
17
+ content,
18
+ animation = "pulse",
19
+ ...props
20
+ }) {
21
+ const animationStyles = {
22
+ none: "hawa-rounded hawa-bg-muted",
23
+ pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
24
+ 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"
25
+ };
26
+ return /* @__PURE__ */ React.createElement(
27
+ "div",
28
+ {
29
+ className: cn(
30
+ animationStyles[animation],
31
+ content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
32
+ className
33
+ ),
34
+ ...props
35
+ },
36
+ content && content
37
+ );
38
+ }
39
+
16
40
  // components/elements/table/Table.tsx
17
- import * as React from "react";
18
- var Table = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React.createElement(
41
+ import * as React2 from "react";
42
+ var Table = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React2.createElement(
19
43
  "table",
20
44
  {
21
45
  ref,
@@ -24,7 +48,7 @@ var Table = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ R
24
48
  }
25
49
  )));
26
50
  Table.displayName = "Table";
27
- var TableHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
51
+ var TableHeader = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
28
52
  "thead",
29
53
  {
30
54
  ref,
@@ -33,8 +57,8 @@ var TableHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
33
57
  }
34
58
  ));
35
59
  TableHeader.displayName = "TableHeader";
36
- var TableHead = React.forwardRef(
37
- ({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */ React.createElement(
60
+ var TableHead = React2.forwardRef(
61
+ ({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */ React2.createElement(
38
62
  "th",
39
63
  {
40
64
  ref,
@@ -53,9 +77,9 @@ var TableHead = React.forwardRef(
53
77
  )
54
78
  );
55
79
  TableHead.displayName = "TableHead";
56
- var TableBody = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement("tbody", { ref, className: cn("hawa-border-none", className), ...props }));
80
+ var TableBody = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement("tbody", { ref, className: cn("hawa-border-none", className), ...props }));
57
81
  TableBody.displayName = "TableBody";
58
- var TableFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
82
+ var TableFooter = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
59
83
  "tfoot",
60
84
  {
61
85
  ref,
@@ -67,7 +91,7 @@ var TableFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
67
91
  }
68
92
  ));
69
93
  TableFooter.displayName = "TableFooter";
70
- var TableRow = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
94
+ var TableRow = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
71
95
  "tr",
72
96
  {
73
97
  ref,
@@ -81,14 +105,14 @@ var TableRow = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
81
105
  }
82
106
  ));
83
107
  TableRow.displayName = "TableRow";
84
- var TableCell = React.forwardRef(
108
+ var TableCell = React2.forwardRef(
85
109
  ({ className, enablePadding = true, padding = "default", ...props }, ref) => {
86
110
  let paddingStyles = {
87
111
  condensed: "hawa-p-0 hawa-px-4",
88
112
  default: "hawa-p-4",
89
113
  noPadding: "hawa-p-0"
90
114
  };
91
- return /* @__PURE__ */ React.createElement(
115
+ return /* @__PURE__ */ React2.createElement(
92
116
  "td",
93
117
  {
94
118
  ref,
@@ -110,7 +134,7 @@ var TableCell = React.forwardRef(
110
134
  }
111
135
  );
112
136
  TableCell.displayName = "TableCell";
113
- var TableCaption = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
137
+ var TableCaption = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
114
138
  "caption",
115
139
  {
116
140
  ref,
@@ -136,7 +160,7 @@ var SimpleTable = ({
136
160
  columns,
137
161
  getCoreRowModel: getCoreRowModel()
138
162
  });
139
- return /* @__PURE__ */ React2.createElement(
163
+ return /* @__PURE__ */ React3.createElement(
140
164
  "div",
141
165
  {
142
166
  className: cn(
@@ -144,8 +168,8 @@ var SimpleTable = ({
144
168
  classNames
145
169
  )
146
170
  },
147
- props.isLoading ? /* @__PURE__ */ React2.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React2.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React2.createElement(Table, null, table.getAllColumns().length > 0 && /* @__PURE__ */ React2.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React2.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
148
- return /* @__PURE__ */ React2.createElement(
171
+ props.isLoading ? /* @__PURE__ */ React3.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React3.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React3.createElement(Table, null, table.getAllColumns().length > 0 && /* @__PURE__ */ React3.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React3.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
172
+ return /* @__PURE__ */ React3.createElement(
149
173
  TableHead,
150
174
  {
151
175
  condensed: props.condensed,
@@ -157,7 +181,7 @@ var SimpleTable = ({
157
181
  header.getContext()
158
182
  )
159
183
  );
160
- })))), /* @__PURE__ */ React2.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React2.createElement(
184
+ })))), /* @__PURE__ */ React3.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React3.createElement(
161
185
  TableRow,
162
186
  {
163
187
  key: row.id,
@@ -165,7 +189,7 @@ var SimpleTable = ({
165
189
  },
166
190
  row.getVisibleCells().map((cell) => {
167
191
  var _a2;
168
- return /* @__PURE__ */ React2.createElement(
192
+ return /* @__PURE__ */ React3.createElement(
169
193
  TableCell,
170
194
  {
171
195
  dir: props.direction,
@@ -178,7 +202,7 @@ var SimpleTable = ({
178
202
  )
179
203
  );
180
204
  })
181
- )) : /* @__PURE__ */ React2.createElement(TableRow, null, /* @__PURE__ */ React2.createElement(
205
+ )) : /* @__PURE__ */ React3.createElement(TableRow, null, /* @__PURE__ */ React3.createElement(
182
206
  TableCell,
183
207
  {
184
208
  colSpan: columns.length,
@@ -1,7 +1,33 @@
1
1
  import {
2
- Skeleton
3
- } from "../chunk-ND4BWUKH.mjs";
4
- import "../chunk-TE3BKEXL.mjs";
2
+ cn
3
+ } from "../chunk-TE3BKEXL.mjs";
4
+
5
+ // components/elements/skeleton/Skeleton.tsx
6
+ import React from "react";
7
+ function Skeleton({
8
+ className,
9
+ content,
10
+ animation = "pulse",
11
+ ...props
12
+ }) {
13
+ const animationStyles = {
14
+ none: "hawa-rounded hawa-bg-muted",
15
+ pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
16
+ 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"
17
+ };
18
+ return /* @__PURE__ */ React.createElement(
19
+ "div",
20
+ {
21
+ className: cn(
22
+ animationStyles[animation],
23
+ content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
24
+ className
25
+ ),
26
+ ...props
27
+ },
28
+ content && content
29
+ );
30
+ }
5
31
  export {
6
32
  Skeleton
7
33
  };
@@ -1,14 +1,265 @@
1
- import {
2
- Button
3
- } from "../chunk-DGWAHQRX.mjs";
4
1
  import {
5
2
  cn
6
3
  } from "../chunk-TE3BKEXL.mjs";
7
4
 
8
5
  // components/elements/sortButton/SortButton.tsx
6
+ import React3 from "react";
7
+
8
+ // components/elements/button/Button.tsx
9
+ import * as React2 from "react";
10
+ import { cva } from "class-variance-authority";
11
+
12
+ // components/elements/loading/Loading.tsx
9
13
  import React from "react";
14
+ var Loading = ({
15
+ design = "spinner",
16
+ size = "sm",
17
+ themeMode = "light",
18
+ color,
19
+ ...props
20
+ }) => {
21
+ let sizeStyles = {
22
+ button: "hawa-h-4 hawa-w-4",
23
+ xs: "hawa-h-1 hawa-w-1",
24
+ sm: "hawa-h-6 hawa-w-6",
25
+ normal: "hawa-h-8 hawa-w-8",
26
+ lg: "hawa-h-14 hawa-w-14",
27
+ xl: "hawa-h-24 hawa-w-24"
28
+ };
29
+ let animationStyles = {
30
+ pulse: "hawa-animate-in hawa-fade-in hawa-duration-1000",
31
+ bounce: "hawa-animate-bounce"
32
+ };
33
+ switch (design.split("-")[0]) {
34
+ case "dots":
35
+ return /* @__PURE__ */ React.createElement(
36
+ "div",
37
+ {
38
+ className: cn("hawa-flex hawa-flex-row hawa-gap-2", props.className)
39
+ },
40
+ /* @__PURE__ */ React.createElement(
41
+ "div",
42
+ {
43
+ className: cn(
44
+ "hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
45
+ size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
46
+ animationStyles[design.split("-")[1]],
47
+ color ? color : "hawa-bg-primary"
48
+ )
49
+ }
50
+ ),
51
+ /* @__PURE__ */ React.createElement(
52
+ "div",
53
+ {
54
+ className: cn(
55
+ "hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
56
+ size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
57
+ animationStyles[design.split("-")[1]],
58
+ color ? color : "hawa-bg-primary"
59
+ )
60
+ }
61
+ ),
62
+ /* @__PURE__ */ React.createElement(
63
+ "div",
64
+ {
65
+ className: cn(
66
+ "hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
67
+ size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
68
+ animationStyles[design.split("-")[1]],
69
+ color ? color : "hawa-bg-primary"
70
+ )
71
+ }
72
+ )
73
+ );
74
+ case "square":
75
+ return /* @__PURE__ */ React.createElement(
76
+ "svg",
77
+ {
78
+ className: cn("squircle-container", sizeStyles[size]),
79
+ viewBox: "0 0 35 35",
80
+ height: "35",
81
+ width: "35"
82
+ },
83
+ /* @__PURE__ */ React.createElement(
84
+ "rect",
85
+ {
86
+ className: "squircle-track",
87
+ x: "2.5",
88
+ y: "2.5",
89
+ fill: "none",
90
+ strokeWidth: "5px",
91
+ width: "32.5",
92
+ height: "32.5"
93
+ }
94
+ ),
95
+ /* @__PURE__ */ React.createElement(
96
+ "rect",
97
+ {
98
+ className: "square-car",
99
+ x: "2.5",
100
+ y: "2.5",
101
+ fill: "none",
102
+ strokeWidth: "5px",
103
+ width: "32.5",
104
+ height: "32.5",
105
+ pathLength: "100"
106
+ }
107
+ )
108
+ );
109
+ case "squircle":
110
+ return /* @__PURE__ */ React.createElement(
111
+ "svg",
112
+ {
113
+ className: cn("squircle-container", sizeStyles[size]),
114
+ x: "0px",
115
+ y: "0px",
116
+ viewBox: "0 0 37 37",
117
+ height: "37",
118
+ width: "37",
119
+ preserveAspectRatio: "xMidYMid meet"
120
+ },
121
+ /* @__PURE__ */ React.createElement(
122
+ "path",
123
+ {
124
+ className: "squircle-track",
125
+ fill: "none",
126
+ strokeWidth: "5",
127
+ pathLength: "100",
128
+ d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
129
+ }
130
+ ),
131
+ /* @__PURE__ */ React.createElement(
132
+ "path",
133
+ {
134
+ className: "squircle-car",
135
+ fill: "none",
136
+ strokeWidth: "5",
137
+ pathLength: "100",
138
+ d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
139
+ }
140
+ )
141
+ );
142
+ case "progress":
143
+ return /* @__PURE__ */ React.createElement("div", { className: "progress-loading" });
144
+ case "orbit":
145
+ return /* @__PURE__ */ React.createElement("div", { className: "orbit-container" });
146
+ default:
147
+ return /* @__PURE__ */ React.createElement(
148
+ "svg",
149
+ {
150
+ className: cn("circle-container", sizeStyles[size]),
151
+ viewBox: "0 0 40 40",
152
+ height: "40",
153
+ width: "40"
154
+ },
155
+ /* @__PURE__ */ React.createElement(
156
+ "circle",
157
+ {
158
+ className: cn("circle-track", {
159
+ "hawa-stroke-primary-foreground": themeMode === "dark",
160
+ "hawa-stroke-primary": themeMode === "light"
161
+ }),
162
+ cx: "20",
163
+ cy: "20",
164
+ r: "17.5",
165
+ pathLength: "100",
166
+ strokeWidth: "5px",
167
+ fill: "none"
168
+ }
169
+ ),
170
+ /* @__PURE__ */ React.createElement(
171
+ "circle",
172
+ {
173
+ className: cn("circle-car", {
174
+ "hawa-stroke-primary-foreground": themeMode === "dark",
175
+ "hawa-stroke-primary": themeMode === "light"
176
+ }),
177
+ cx: "20",
178
+ cy: "20",
179
+ r: "17.5",
180
+ pathLength: "100",
181
+ strokeWidth: "5px",
182
+ fill: "none"
183
+ }
184
+ )
185
+ );
186
+ }
187
+ };
188
+
189
+ // components/elements/button/Button.tsx
190
+ var buttonVariants = cva(
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
+ {
193
+ variants: {
194
+ variant: {
195
+ default: "hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90",
196
+ light: "hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40",
197
+ destructive: "hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90",
198
+ outline: "hawa-border hawa-border-input hawa-bg-transparent hover:hawa-bg-accent hover:hawa-text-accent-foreground",
199
+ secondary: "hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80",
200
+ ghost: "hover:hawa-bg-accent hover:hawa-text-accent-foreground",
201
+ link: "hawa-text-primary hawa-underline-offset-4 hover:hawa-underline",
202
+ combobox: "hawa-bg-background hawa-border",
203
+ neoBrutalism: "neo-brutalism"
204
+ // "hawa-cursor-pointer 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] active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active shadow-color-primary active:shadow-color-primary-active",
205
+ },
206
+ size: {
207
+ default: "hawa-h-10 hawa-px-4 hawa-py-2",
208
+ heightless: "hawa-px-4 hawa-py-4",
209
+ xs: "hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 ",
210
+ sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
211
+ lg: "hawa-h-11 hawa-rounded-md hawa-px-8",
212
+ xl: "hawa-h-14 hawa-rounded-md hawa-px-10",
213
+ icon: "hawa-h-10 hawa-w-10",
214
+ smallIcon: "hawa-h-7 hawa-w-7"
215
+ }
216
+ },
217
+ defaultVariants: {
218
+ variant: "default",
219
+ size: "default"
220
+ }
221
+ }
222
+ );
223
+ var Button = React2.forwardRef(
224
+ ({
225
+ className,
226
+ variant,
227
+ size,
228
+ asChild = false,
229
+ centered = true,
230
+ isLoading,
231
+ children,
232
+ ...props
233
+ }, ref) => {
234
+ const Comp = "button";
235
+ const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
236
+ return /* @__PURE__ */ React2.createElement(
237
+ Comp,
238
+ {
239
+ className: cn(
240
+ buttonVariants({ variant, size, className }),
241
+ centered && "hawa-justify-center"
242
+ ),
243
+ ref,
244
+ ...props
245
+ },
246
+ isLoading ? /* @__PURE__ */ React2.createElement(
247
+ Loading,
248
+ {
249
+ design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
250
+ themeMode: variant === "outline" ? "light" : "dark",
251
+ color: loadingColor,
252
+ size: size === "sm" || size === "xs" ? "xs" : "button"
253
+ }
254
+ ) : children
255
+ );
256
+ }
257
+ );
258
+ Button.displayName = "Button";
259
+
260
+ // components/elements/sortButton/SortButton.tsx
10
261
  var SortButton = (props) => {
11
- return /* @__PURE__ */ React.createElement(
262
+ return /* @__PURE__ */ React3.createElement(
12
263
  Button,
13
264
  {
14
265
  variant: "ghost",
@@ -20,7 +271,7 @@ var SortButton = (props) => {
20
271
  onClick: props.onSort
21
272
  },
22
273
  props.label,
23
- /* @__PURE__ */ React.createElement(
274
+ /* @__PURE__ */ React3.createElement(
24
275
  "svg",
25
276
  {
26
277
  xmlns: "http://www.w3.org/2000/svg",
@@ -32,10 +283,10 @@ var SortButton = (props) => {
32
283
  strokeLinejoin: "round",
33
284
  className: props.condensed ? "hawa-h-3 hawa-w-3" : "hawa-icon"
34
285
  },
35
- /* @__PURE__ */ React.createElement("path", { d: "m21 16-4 4-4-4" }),
36
- /* @__PURE__ */ React.createElement("path", { d: "M17 20V4" }),
37
- /* @__PURE__ */ React.createElement("path", { d: "m3 8 4-4 4 4" }),
38
- /* @__PURE__ */ React.createElement("path", { d: "M7 4v16" })
286
+ /* @__PURE__ */ React3.createElement("path", { d: "m21 16-4 4-4-4" }),
287
+ /* @__PURE__ */ React3.createElement("path", { d: "M17 20V4" }),
288
+ /* @__PURE__ */ React3.createElement("path", { d: "m3 8 4-4 4 4" }),
289
+ /* @__PURE__ */ React3.createElement("path", { d: "M7 4v16" })
39
290
  )
40
291
  );
41
292
  };
@@ -1,9 +1,8 @@
1
1
  import * as React from 'react';
2
+ import { D as DirectionType } from '../commonTypes-2k6FnHw5.mjs';
2
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
3
4
  import { VariantProps } from 'class-variance-authority';
4
5
 
5
- type DirectionType = "rtl" | "ltr";
6
-
7
6
  type SubItem = {
8
7
  label?: string;
9
8
  value?: any;
@@ -34,8 +33,8 @@ type MenuItemType = {
34
33
  };
35
34
 
36
35
  declare const buttonVariants: (props?: ({
37
- variant?: "light" | "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "combobox" | "neoBrutalism" | null | undefined;
38
- size?: "xs" | "sm" | "lg" | "xl" | "default" | "heightless" | "icon" | "smallIcon" | null | undefined;
36
+ variant?: "link" | "default" | "combobox" | "light" | "destructive" | "outline" | "secondary" | "ghost" | "neoBrutalism" | null | undefined;
37
+ size?: "default" | "sm" | "lg" | "xs" | "xl" | "heightless" | "icon" | "smallIcon" | null | undefined;
39
38
  } & class_variance_authority_types.ClassProp) | undefined) => string;
40
39
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
41
40
  asChild?: boolean;
@@ -1,9 +1,8 @@
1
1
  import * as React from 'react';
2
+ import { D as DirectionType } from '../commonTypes-2k6FnHw5.js';
2
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
3
4
  import { VariantProps } from 'class-variance-authority';
4
5
 
5
- type DirectionType = "rtl" | "ltr";
6
-
7
6
  type SubItem = {
8
7
  label?: string;
9
8
  value?: any;
@@ -34,8 +33,8 @@ type MenuItemType = {
34
33
  };
35
34
 
36
35
  declare const buttonVariants: (props?: ({
37
- variant?: "light" | "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "combobox" | "neoBrutalism" | null | undefined;
38
- size?: "xs" | "sm" | "lg" | "xl" | "default" | "heightless" | "icon" | "smallIcon" | null | undefined;
36
+ variant?: "link" | "default" | "combobox" | "light" | "destructive" | "outline" | "secondary" | "ghost" | "neoBrutalism" | null | undefined;
37
+ size?: "default" | "sm" | "lg" | "xs" | "xl" | "heightless" | "icon" | "smallIcon" | null | undefined;
39
38
  } & class_variance_authority_types.ClassProp) | undefined) => string;
40
39
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
41
40
  asChild?: boolean;