@saas-ui/react 3.0.0-alpha.3 → 3.0.0-alpha.31

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 (208) hide show
  1. package/CHANGELOG.md +410 -1
  2. package/dist/chunk-2EUACKRH.js +26 -0
  3. package/dist/chunk-32DD6PHF.js +63 -0
  4. package/dist/chunk-3JZ42NYM.js +100 -0
  5. package/dist/chunk-3MO37LYW.js +326 -0
  6. package/dist/chunk-46ISJZBS.js +119 -0
  7. package/dist/{chunk-VDXTEASE.js → chunk-4TPVIHNO.js} +10 -1
  8. package/dist/chunk-52XM5VXJ.js +9 -0
  9. package/dist/chunk-5MTFSSOH.js +16 -0
  10. package/dist/chunk-6YZ76Q2W.js +8 -0
  11. package/dist/chunk-6ZNR6N2K.js +45 -0
  12. package/dist/chunk-CQD32UVJ.js +8 -0
  13. package/dist/chunk-GRUMUCSL.js +109 -0
  14. package/dist/chunk-GWC5GCMW.js +177 -0
  15. package/dist/chunk-I2RXEKTB.js +38 -0
  16. package/dist/chunk-IEWHAXXU.js +28 -0
  17. package/dist/chunk-IGT224EZ.js +56 -0
  18. package/dist/chunk-INV6RT5B.js +8 -0
  19. package/dist/chunk-IVLUAUU5.js +10 -0
  20. package/dist/chunk-JMYI6YXR.js +1 -0
  21. package/dist/chunk-JO4WJVYO.js +43 -0
  22. package/dist/chunk-K2SPPLAY.js +231 -0
  23. package/dist/chunk-KE5AC3TZ.js +63 -0
  24. package/dist/chunk-KFXNVUEZ.js +102 -0
  25. package/dist/chunk-L356FPLY.js +20 -0
  26. package/dist/chunk-LTVFG6UC.js +54 -0
  27. package/dist/chunk-MLJN6IOJ.js +96 -0
  28. package/dist/chunk-MS2ELLDY.js +26 -0
  29. package/dist/chunk-NGGISORT.js +29 -0
  30. package/dist/chunk-NGSHWY7E.js +27 -0
  31. package/dist/chunk-NSD5HRIP.js +46 -0
  32. package/dist/chunk-Q6SNJJO2.js +63 -0
  33. package/dist/chunk-QSNSWCTM.js +32 -0
  34. package/dist/chunk-RLIAFHVM.js +66 -0
  35. package/dist/chunk-S5J6REMC.js +40 -0
  36. package/dist/chunk-SA3OGTOO.js +23 -0
  37. package/dist/chunk-SKXSBAOS.js +35 -0
  38. package/dist/{components/breadcrumbs/index.js → chunk-TT4C5VXB.js} +6 -7
  39. package/dist/chunk-TZBAM4AD.js +20 -0
  40. package/dist/chunk-U23VDAWJ.js +143 -0
  41. package/dist/chunk-UASXI64E.js +34 -0
  42. package/dist/chunk-VZG7EJ64.js +70 -0
  43. package/dist/chunk-WYLMBMAH.js +22 -0
  44. package/dist/chunk-YHQ5JGCC.js +1 -0
  45. package/dist/chunk-YKSY7UOM.js +20 -0
  46. package/dist/{chunk-FZW2DYK3.js → chunk-YXGJOOMM.js} +1 -1
  47. package/dist/components/app-shell/index.cjs +1 -1
  48. package/dist/components/app-shell/index.d.cts +1 -1
  49. package/dist/components/app-shell/index.d.ts +1 -1
  50. package/dist/components/app-shell/index.js +3 -40
  51. package/dist/components/avatar/index.cjs +69 -0
  52. package/dist/components/avatar/index.d.cts +18 -0
  53. package/dist/components/avatar/index.d.ts +18 -0
  54. package/dist/components/avatar/index.js +11 -0
  55. package/dist/components/badge/index.cjs +31 -0
  56. package/dist/components/badge/index.d.cts +7 -0
  57. package/dist/components/badge/index.d.ts +7 -0
  58. package/dist/components/badge/index.js +8 -0
  59. package/dist/components/{breadcrumbs → breadcrumb}/index.cjs +8 -10
  60. package/dist/components/{breadcrumbs → breadcrumb}/index.d.cts +3 -4
  61. package/dist/components/{breadcrumbs → breadcrumb}/index.d.ts +3 -4
  62. package/dist/components/breadcrumb/index.js +8 -0
  63. package/dist/components/button/index.cjs +8 -26
  64. package/dist/components/button/index.js +3 -40
  65. package/dist/components/card/index.cjs +31 -0
  66. package/dist/components/card/index.d.cts +1 -0
  67. package/dist/components/card/index.d.ts +1 -0
  68. package/dist/components/card/index.js +8 -0
  69. package/dist/components/checkbox/index.js +3 -15
  70. package/dist/components/close-button/index.cjs +8 -0
  71. package/dist/components/close-button/index.js +3 -2
  72. package/dist/components/command/index.cjs +13 -13
  73. package/dist/components/command/index.d.cts +28 -2
  74. package/dist/components/command/index.d.ts +28 -2
  75. package/dist/components/command/index.js +3 -28
  76. package/dist/components/data-list/index.cjs +33 -0
  77. package/dist/components/data-list/index.d.cts +1 -0
  78. package/dist/components/data-list/index.d.ts +1 -0
  79. package/dist/components/data-list/index.js +10 -0
  80. package/dist/components/dialog/index.cjs +51 -90
  81. package/dist/components/dialog/index.d.cts +35 -16
  82. package/dist/components/dialog/index.d.ts +35 -16
  83. package/dist/components/dialog/index.js +7 -69
  84. package/dist/components/drawer/index.cjs +55 -97
  85. package/dist/components/drawer/index.d.cts +34 -18
  86. package/dist/components/drawer/index.d.ts +34 -18
  87. package/dist/components/drawer/index.js +7 -61
  88. package/dist/components/empty-state/index.cjs +50 -0
  89. package/dist/components/empty-state/index.d.cts +11 -0
  90. package/dist/components/empty-state/index.d.ts +11 -0
  91. package/dist/components/empty-state/index.js +8 -0
  92. package/dist/components/file-upload/index.cjs +254 -0
  93. package/dist/components/file-upload/index.d.cts +43 -0
  94. package/dist/components/file-upload/index.d.ts +43 -0
  95. package/dist/components/file-upload/index.js +10 -0
  96. package/dist/components/grid-list/index.cjs +68 -0
  97. package/dist/components/grid-list/index.d.cts +84 -0
  98. package/dist/components/grid-list/index.d.ts +84 -0
  99. package/dist/components/grid-list/index.js +8 -0
  100. package/dist/components/icon-badge/index.cjs +1 -1
  101. package/dist/components/icon-badge/index.d.cts +1 -1
  102. package/dist/components/icon-badge/index.d.ts +1 -1
  103. package/dist/components/icon-badge/index.js +3 -33
  104. package/dist/components/icon-button/index.cjs +67 -0
  105. package/dist/components/icon-button/index.d.cts +9 -0
  106. package/dist/components/icon-button/index.d.ts +9 -0
  107. package/dist/components/icon-button/index.js +9 -0
  108. package/dist/components/icons/index.cjs +10 -0
  109. package/dist/components/icons/index.d.cts +2 -1
  110. package/dist/components/icons/index.d.ts +2 -1
  111. package/dist/components/icons/index.js +3 -1
  112. package/dist/components/input/index.cjs +37 -0
  113. package/dist/components/input/index.d.cts +1 -0
  114. package/dist/components/input/index.d.ts +1 -0
  115. package/dist/components/input/index.js +14 -0
  116. package/dist/components/link/index.js +3 -14
  117. package/dist/components/loading-overlay/index.cjs +44 -1878
  118. package/dist/components/loading-overlay/index.d.cts +19 -6
  119. package/dist/components/loading-overlay/index.d.ts +19 -6
  120. package/dist/components/loading-overlay/index.js +7 -1874
  121. package/dist/components/menu/index.cjs +239 -0
  122. package/dist/components/menu/index.d.cts +39 -0
  123. package/dist/components/menu/index.d.ts +39 -0
  124. package/dist/components/menu/index.js +11 -0
  125. package/dist/components/navbar/index.cjs +61 -15
  126. package/dist/components/navbar/index.d.cts +12 -9
  127. package/dist/components/navbar/index.d.ts +12 -9
  128. package/dist/components/navbar/index.js +5 -38
  129. package/dist/components/number-input/index.cjs +9 -1
  130. package/dist/components/number-input/index.js +3 -26
  131. package/dist/components/pagination/index.cjs +215 -0
  132. package/dist/components/pagination/index.d.cts +41 -0
  133. package/dist/components/pagination/index.d.ts +41 -0
  134. package/dist/components/pagination/index.js +9 -0
  135. package/dist/components/password-input/index.cjs +2 -2
  136. package/dist/components/password-input/index.js +3 -225
  137. package/dist/components/persona/index.cjs +101 -36
  138. package/dist/components/persona/index.d.cts +131 -5
  139. package/dist/components/persona/index.d.ts +131 -5
  140. package/dist/components/persona/index.js +8 -144
  141. package/dist/components/pin-input/index.js +3 -21
  142. package/dist/components/popover/index.cjs +214 -0
  143. package/dist/components/popover/index.d.cts +37 -0
  144. package/dist/components/popover/index.d.ts +37 -0
  145. package/dist/components/popover/index.js +11 -0
  146. package/dist/components/progress/index.cjs +31 -0
  147. package/dist/components/progress/index.d.cts +1 -0
  148. package/dist/components/progress/index.d.ts +1 -0
  149. package/dist/components/progress/index.js +8 -0
  150. package/dist/components/progress-circle/index.cjs +31 -0
  151. package/dist/components/progress-circle/index.d.cts +1 -0
  152. package/dist/components/progress-circle/index.d.ts +1 -0
  153. package/dist/components/progress-circle/index.js +8 -0
  154. package/dist/components/radio/index.js +4 -16
  155. package/dist/components/search-input/index.cjs +8 -0
  156. package/dist/components/search-input/index.js +4 -114
  157. package/dist/components/segmented-control/index.cjs +60 -0
  158. package/dist/components/segmented-control/index.d.cts +14 -0
  159. package/dist/components/segmented-control/index.d.ts +14 -0
  160. package/dist/components/segmented-control/index.js +8 -0
  161. package/dist/components/select/index.cjs +8 -0
  162. package/dist/components/select/index.js +6 -95
  163. package/dist/components/sidebar/index.cjs +66 -32
  164. package/dist/components/sidebar/index.d.cts +30 -25
  165. package/dist/components/sidebar/index.d.ts +30 -25
  166. package/dist/components/sidebar/index.js +7 -101
  167. package/dist/components/status/index.cjs +45 -0
  168. package/dist/components/status/index.d.cts +17 -0
  169. package/dist/components/status/index.d.ts +17 -0
  170. package/dist/components/status/index.js +8 -0
  171. package/dist/components/steps/index.cjs +17 -10
  172. package/dist/components/steps/index.d.cts +4 -4
  173. package/dist/components/steps/index.d.ts +4 -4
  174. package/dist/components/steps/index.js +6 -67
  175. package/dist/components/switch/index.js +3 -18
  176. package/dist/components/tabs/index.cjs +35 -0
  177. package/dist/components/tabs/index.d.cts +1 -0
  178. package/dist/components/tabs/index.d.ts +1 -0
  179. package/dist/components/tabs/index.js +12 -0
  180. package/dist/components/tag/index.cjs +53 -0
  181. package/dist/components/tag/index.d.cts +12 -0
  182. package/dist/components/tag/index.d.ts +12 -0
  183. package/dist/components/tag/index.js +8 -0
  184. package/dist/components/textarea/index.cjs +31 -0
  185. package/dist/components/textarea/index.d.cts +1 -0
  186. package/dist/components/textarea/index.d.ts +1 -0
  187. package/dist/components/textarea/index.js +8 -0
  188. package/dist/components/toaster/index.cjs +204 -0
  189. package/dist/components/toaster/index.d.cts +11 -0
  190. package/dist/components/toaster/index.d.ts +11 -0
  191. package/dist/components/toaster/index.js +12 -0
  192. package/dist/components/tooltip/index.cjs +57 -0
  193. package/dist/components/tooltip/index.d.cts +14 -0
  194. package/dist/components/tooltip/index.d.ts +14 -0
  195. package/dist/components/tooltip/index.js +8 -0
  196. package/dist/index.cjs +8618 -5735
  197. package/dist/index.d.cts +50 -2
  198. package/dist/index.d.ts +50 -2
  199. package/dist/index.js +5733 -5021
  200. package/dist/theme/tokens/colors.cjs +349 -0
  201. package/dist/theme/tokens/colors.d.cts +856 -0
  202. package/dist/theme/tokens/colors.d.ts +856 -0
  203. package/dist/theme/tokens/colors.js +8 -0
  204. package/dist/types-DnFoUudY.d.cts +10 -0
  205. package/dist/types-DnFoUudY.d.ts +10 -0
  206. package/package.json +11 -4
  207. package/dist/chunk-VBIVLREP.js +0 -45
  208. /package/dist/{chunk-KHRLZUV4.js → chunk-O2WVT2BP.js} +0 -0
@@ -0,0 +1,204 @@
1
+ 'use client'
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/components/toaster/index.ts
22
+ var toaster_exports = {};
23
+ __export(toaster_exports, {
24
+ Toaster: () => Toaster,
25
+ toast: () => toast
26
+ });
27
+ module.exports = __toCommonJS(toaster_exports);
28
+
29
+ // src/components/toaster/toaster.tsx
30
+ var import_react4 = require("react");
31
+ var import_react5 = require("@chakra-ui/react");
32
+
33
+ // src/components/close-button/close-button.tsx
34
+ var import_react2 = require("react");
35
+ var import_react3 = require("@chakra-ui/react");
36
+
37
+ // src/components/icons/create-icon.tsx
38
+ var import_react = require("@chakra-ui/react");
39
+ var createIcon = (props) => {
40
+ return (0, import_react.createIcon)({
41
+ viewBox: "0 0 24 24",
42
+ defaultProps: {
43
+ fill: "none",
44
+ stroke: "currentColor",
45
+ strokeWidth: "2",
46
+ strokeLinecap: "round",
47
+ strokeLinejoin: "round"
48
+ },
49
+ ...props
50
+ });
51
+ };
52
+
53
+ // src/components/icons/icons.tsx
54
+ var import_jsx_runtime = require("react/jsx-runtime");
55
+ var ChevronUpIcon = createIcon({
56
+ displayName: "ChevronUpIcon",
57
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("polyline", { points: "18 15 12 9 6 15" })
58
+ });
59
+ var ChevronDownIcon = createIcon({
60
+ displayName: "ChevronDownIcon",
61
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("polyline", { points: "6 9 12 15 18 9" })
62
+ });
63
+ var ChevronLeftIcon = createIcon({
64
+ displayName: "ChevronLeftIcon",
65
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("polyline", { points: "15 18 9 12 15 6" })
66
+ });
67
+ var ChevronRightIcon = createIcon({
68
+ displayName: "ChevronRightIcon",
69
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("polyline", { points: "9 18 15 12 9 6" })
70
+ });
71
+ var HamburgerIcon = createIcon({
72
+ displayName: "ChevronDownIcon",
73
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { fill: "none", children: [
74
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
75
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
76
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "3", y1: "18", x2: "21", y2: "18" })
77
+ ] })
78
+ });
79
+ var CloseIcon = createIcon({
80
+ displayName: "CloseIcon",
81
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
82
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
83
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
84
+ ] })
85
+ });
86
+ var FilterIcon = createIcon({
87
+ displayName: "FilterIcon",
88
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" })
89
+ });
90
+ var CalendarIcon = createIcon({
91
+ displayName: "CalendarIcon",
92
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
93
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }),
94
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "16", y1: "2", x2: "16", y2: "6" }),
95
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "8", y1: "2", x2: "8", y2: "6" }),
96
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "3", y1: "10", x2: "21", y2: "10" })
97
+ ] })
98
+ });
99
+ var PlusIcon = createIcon({
100
+ displayName: "PlusIcon",
101
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
102
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
103
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "5", y1: "12", x2: "19", y2: "12" })
104
+ ] })
105
+ });
106
+ var MinusIcon = createIcon({
107
+ displayName: "MinusIcon",
108
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "5", y1: "12", x2: "19", y2: "12" }) })
109
+ });
110
+ var ViewOffIcon = createIcon({
111
+ displayName: "ViewOffIcon",
112
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
113
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }),
114
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
115
+ ] })
116
+ });
117
+ var ViewIcon = createIcon({
118
+ displayName: "ViewOffIcon",
119
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
120
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
121
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "3" })
122
+ ] })
123
+ });
124
+ var SearchIcon = createIcon({
125
+ displayName: "SearchIcon",
126
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
127
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "11", cy: "11", r: "8" }),
128
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
129
+ ] })
130
+ });
131
+ var CheckIcon = createIcon({
132
+ displayName: "CheckIcon",
133
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("polyline", { points: "20 6 9 17 4 12" }) })
134
+ });
135
+ var EllipsisIcon = createIcon({
136
+ displayName: "EllipsisIcon",
137
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
138
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "1" }),
139
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "19", cy: "12", r: "1" }),
140
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "5", cy: "12", r: "1" })
141
+ ] })
142
+ });
143
+
144
+ // src/components/close-button/close-button.tsx
145
+ var import_jsx_runtime2 = require("react/jsx-runtime");
146
+ var CloseButton = (0, import_react2.forwardRef)(
147
+ function CloseButton2(props, ref) {
148
+ var _a;
149
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react3.IconButton, { variant: "ghost", "aria-label": "Close", ref, ...props, children: (_a = props.children) != null ? _a : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CloseIcon, {}) });
150
+ }
151
+ );
152
+
153
+ // src/components/toaster/toaster.tsx
154
+ var import_jsx_runtime3 = require("react/jsx-runtime");
155
+ var defaultOptions = {
156
+ placement: "bottom-end",
157
+ pauseOnPageIdle: true
158
+ };
159
+ var toast = (0, import_react5.createToaster)(defaultOptions);
160
+ var Toaster = (props) => {
161
+ const { closable: defaultClosable = true, ...options } = props || {};
162
+ const toaster = (0, import_react4.useMemo)(() => {
163
+ toast = (0, import_react5.createToaster)({
164
+ ...defaultOptions,
165
+ ...options
166
+ });
167
+ return toast;
168
+ }, [options]);
169
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Toaster, { toaster, insetInline: { mdDown: "4" }, children: (toast2) => {
170
+ var _a;
171
+ const closable = ((_a = toast2.meta) == null ? void 0 : _a.closable) === false ? false : defaultClosable && toast2.type !== "loading";
172
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(ToastRoot, { children: [
173
+ toast2.type === "loading" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Spinner, { size: "sm", color: "colorPalette.solid", mt: "0.5" }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Toast.Indicator, {}),
174
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_react5.Stack, { gap: "1", flex: "1", maxWidth: "100%", children: [
175
+ toast2.title && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Toast.Title, { children: toast2.title }),
176
+ toast2.description && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Toast.Description, { children: toast2.description }),
177
+ toast2.action && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Toast.ActionTrigger, { children: toast2.action.label })
178
+ ] }),
179
+ closable !== false && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Toast.CloseTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CloseButton, { size: "xs" }) })
180
+ ] });
181
+ } }) });
182
+ };
183
+ function ToastRoot(props) {
184
+ const [rect, setRect] = (0, import_react4.useState)();
185
+ const rectCallbackRef = (0, import_react4.useCallback)((el) => {
186
+ setRect(el == null ? void 0 : el.getBoundingClientRect());
187
+ }, []);
188
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
189
+ import_react5.Toast.Root,
190
+ {
191
+ ref: rectCallbackRef,
192
+ width: { md: "sm" },
193
+ css: {
194
+ "--toast-height": `${rect == null ? void 0 : rect.height}px`
195
+ },
196
+ children: props.children
197
+ }
198
+ );
199
+ }
200
+ // Annotate the CommonJS export names for ESM import in node:
201
+ 0 && (module.exports = {
202
+ Toaster,
203
+ toast
204
+ });
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as _ark_ui_react from '@ark-ui/react';
3
+ import { CreateToasterProps } from '@chakra-ui/react';
4
+
5
+ declare let toast: _ark_ui_react.CreateToasterReturn;
6
+ interface ToasterProps extends Partial<CreateToasterProps> {
7
+ closable?: boolean;
8
+ }
9
+ declare const Toaster: (props?: ToasterProps) => react_jsx_runtime.JSX.Element;
10
+
11
+ export { Toaster, type ToasterProps, toast };
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as _ark_ui_react from '@ark-ui/react';
3
+ import { CreateToasterProps } from '@chakra-ui/react';
4
+
5
+ declare let toast: _ark_ui_react.CreateToasterReturn;
6
+ interface ToasterProps extends Partial<CreateToasterProps> {
7
+ closable?: boolean;
8
+ }
9
+ declare const Toaster: (props?: ToasterProps) => react_jsx_runtime.JSX.Element;
10
+
11
+ export { Toaster, type ToasterProps, toast };
@@ -0,0 +1,12 @@
1
+ 'use client'
2
+ import {
3
+ Toaster,
4
+ toast
5
+ } from "../../chunk-RLIAFHVM.js";
6
+ import "../../chunk-YXGJOOMM.js";
7
+ import "../../chunk-4TPVIHNO.js";
8
+ import "../../chunk-RTMS5TJN.js";
9
+ export {
10
+ Toaster,
11
+ toast
12
+ };
@@ -0,0 +1,57 @@
1
+ 'use client'
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/components/tooltip/index.ts
22
+ var tooltip_exports = {};
23
+ __export(tooltip_exports, {
24
+ Tooltip: () => Tooltip
25
+ });
26
+ module.exports = __toCommonJS(tooltip_exports);
27
+
28
+ // src/components/tooltip/tooltip.tsx
29
+ var import_react = require("react");
30
+ var import_react2 = require("@chakra-ui/react");
31
+ var import_jsx_runtime = require("react/jsx-runtime");
32
+ var Tooltip = (0, import_react.forwardRef)(
33
+ function Tooltip2(props, ref) {
34
+ const {
35
+ showArrow,
36
+ children,
37
+ disabled,
38
+ portalled,
39
+ content,
40
+ contentProps,
41
+ portalRef,
42
+ ...rest
43
+ } = props;
44
+ if (disabled) return children;
45
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react2.Tooltip.Root, { ...rest, children: [
46
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Tooltip.Trigger, { asChild: true, children }),
47
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Tooltip.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react2.Tooltip.Content, { ref, ...contentProps, children: [
48
+ showArrow && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Tooltip.Arrow, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Tooltip.ArrowTip, {}) }),
49
+ content
50
+ ] }) }) })
51
+ ] });
52
+ }
53
+ );
54
+ // Annotate the CommonJS export names for ESM import in node:
55
+ 0 && (module.exports = {
56
+ Tooltip
57
+ });
@@ -0,0 +1,14 @@
1
+ import * as react from 'react';
2
+ import { Tooltip as Tooltip$1 } from '@chakra-ui/react';
3
+
4
+ interface TooltipProps extends Tooltip$1.RootProps {
5
+ showArrow?: boolean;
6
+ portalled?: boolean;
7
+ portalRef?: React.RefObject<HTMLElement>;
8
+ content: React.ReactNode;
9
+ contentProps?: Tooltip$1.ContentProps;
10
+ disabled?: boolean;
11
+ }
12
+ declare const Tooltip: react.ForwardRefExoticComponent<TooltipProps & react.RefAttributes<HTMLDivElement>>;
13
+
14
+ export { Tooltip, type TooltipProps };
@@ -0,0 +1,14 @@
1
+ import * as react from 'react';
2
+ import { Tooltip as Tooltip$1 } from '@chakra-ui/react';
3
+
4
+ interface TooltipProps extends Tooltip$1.RootProps {
5
+ showArrow?: boolean;
6
+ portalled?: boolean;
7
+ portalRef?: React.RefObject<HTMLElement>;
8
+ content: React.ReactNode;
9
+ contentProps?: Tooltip$1.ContentProps;
10
+ disabled?: boolean;
11
+ }
12
+ declare const Tooltip: react.ForwardRefExoticComponent<TooltipProps & react.RefAttributes<HTMLDivElement>>;
13
+
14
+ export { Tooltip, type TooltipProps };
@@ -0,0 +1,8 @@
1
+ 'use client'
2
+ import {
3
+ Tooltip
4
+ } from "../../chunk-QSNSWCTM.js";
5
+ import "../../chunk-RTMS5TJN.js";
6
+ export {
7
+ Tooltip
8
+ };