@wealthx/shadcn 1.2.1 → 1.3.0

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 (247) hide show
  1. package/.turbo/turbo-build.log +203 -150
  2. package/CHANGELOG.md +29 -0
  3. package/dist/{chunk-4Y6R4WEC.mjs → chunk-2A5RRQGG.mjs} +9 -22
  4. package/dist/{chunk-TS2ZX2VS.mjs → chunk-2UM72RJ7.mjs} +11 -15
  5. package/dist/{chunk-A56YQQHG.mjs → chunk-3NCUZIFP.mjs} +2 -2
  6. package/dist/chunk-3OYFOX3X.mjs +79 -0
  7. package/dist/{chunk-RP3SQYA3.mjs → chunk-3TTACBDP.mjs} +9 -4
  8. package/dist/chunk-4GAWMKMI.mjs +710 -0
  9. package/dist/{chunk-SYOD63OZ.mjs → chunk-5FQIKDKP.mjs} +6 -6
  10. package/dist/{chunk-K3JYD4IU.mjs → chunk-5IS7G74I.mjs} +11 -4
  11. package/dist/chunk-6AW4KJHE.mjs +235 -0
  12. package/dist/chunk-6CR5N2JW.mjs +302 -0
  13. package/dist/{chunk-XIRTEFKH.mjs → chunk-6DZEXFNB.mjs} +36 -8
  14. package/dist/chunk-6O6KD7CE.mjs +271 -0
  15. package/dist/chunk-7PV3IWCN.mjs +33 -0
  16. package/dist/{chunk-SPJ5KXW7.mjs → chunk-7S5AESZO.mjs} +5 -5
  17. package/dist/{chunk-RYCLWMZ7.mjs → chunk-ABFDMHOR.mjs} +9 -7
  18. package/dist/{chunk-SWGT756Z.mjs → chunk-AMQZRHEZ.mjs} +10 -4
  19. package/dist/{chunk-WOEHFRGB.mjs → chunk-BDYZCBRT.mjs} +4 -4
  20. package/dist/{chunk-WAZD7NFU.mjs → chunk-BKNFWEH2.mjs} +6 -6
  21. package/dist/{chunk-CLIN5525.mjs → chunk-C7CQJNMR.mjs} +1 -1
  22. package/dist/{chunk-D4ILTPOG.mjs → chunk-CFMQP5QS.mjs} +5 -4
  23. package/dist/{chunk-VPBN3WOO.mjs → chunk-DGHAXJBN.mjs} +9 -7
  24. package/dist/chunk-DOEO3CDL.mjs +27 -0
  25. package/dist/{chunk-KUDCQ4FI.mjs → chunk-DUJTAXMH.mjs} +9 -4
  26. package/dist/{chunk-GGM2UYGG.mjs → chunk-EBXQWIYG.mjs} +10 -4
  27. package/dist/{chunk-PMB3A7V3.mjs → chunk-EI5F6FMT.mjs} +1 -1
  28. package/dist/chunk-EWRB4PAD.mjs +468 -0
  29. package/dist/chunk-FAKPBKLT.mjs +253 -0
  30. package/dist/chunk-FNQXOAYJ.mjs +169 -0
  31. package/dist/{chunk-4CX4SBRO.mjs → chunk-GHC7LLUX.mjs} +14 -5
  32. package/dist/chunk-HBZLGDIN.mjs +507 -0
  33. package/dist/{chunk-SIZMLSRU.mjs → chunk-HISNT2MG.mjs} +8 -6
  34. package/dist/{chunk-PR6V5XKM.mjs → chunk-HVY6KCCF.mjs} +7 -4
  35. package/dist/chunk-I3RZS7V2.mjs +136 -0
  36. package/dist/chunk-IAE3F7DR.mjs +1962 -0
  37. package/dist/{chunk-ZRO5JO3H.mjs → chunk-IHMFS7NZ.mjs} +81 -84
  38. package/dist/{chunk-PCPLO5HT.mjs → chunk-IOJRDS6V.mjs} +96 -14
  39. package/dist/{chunk-LHYCMLVA.mjs → chunk-JKGDCQTZ.mjs} +11 -4
  40. package/dist/{chunk-H45TKD34.mjs → chunk-JMHR3YGZ.mjs} +1 -1
  41. package/dist/{chunk-4MN6UQHG.mjs → chunk-K5A5L6T2.mjs} +17 -39
  42. package/dist/{chunk-CSDO6VBW.mjs → chunk-LBMRIB3G.mjs} +10 -10
  43. package/dist/chunk-LV35NGVG.mjs +272 -0
  44. package/dist/{chunk-FZIXGLMV.mjs → chunk-M3FV7LOK.mjs} +5 -12
  45. package/dist/{chunk-FMAXJ2SI.mjs → chunk-MBON7YRJ.mjs} +1 -1
  46. package/dist/chunk-MIZQHHUO.mjs +441 -0
  47. package/dist/chunk-MN5NYQCL.mjs +29 -0
  48. package/dist/chunk-NL3ZO62D.mjs +31 -0
  49. package/dist/{chunk-Q76O3RIQ.mjs → chunk-NMOI6CQD.mjs} +1 -1
  50. package/dist/{chunk-P6AM5V7O.mjs → chunk-OODBHKG7.mjs} +1 -1
  51. package/dist/chunk-PBL4OQV2.mjs +283 -0
  52. package/dist/{chunk-3WMX6KWS.mjs → chunk-PU4YZQXV.mjs} +11 -12
  53. package/dist/chunk-QMY3AZJH.mjs +80 -0
  54. package/dist/{chunk-BL3DXM2X.mjs → chunk-QZ4RE6NA.mjs} +11 -4
  55. package/dist/{chunk-VACKZOMY.mjs → chunk-R3VSPKNP.mjs} +3 -3
  56. package/dist/{chunk-OPNQAVVH.mjs → chunk-RJI6GKVF.mjs} +8 -6
  57. package/dist/{chunk-WG6JGJXB.mjs → chunk-T4BJLT57.mjs} +1 -1
  58. package/dist/chunk-U4NDAF2P.mjs +207 -0
  59. package/dist/{chunk-DOH3EHX7.mjs → chunk-U5X52X37.mjs} +1 -1
  60. package/dist/chunk-UMTOX62O.mjs +415 -0
  61. package/dist/{chunk-7MMXNK3C.mjs → chunk-VLARHE5V.mjs} +8 -6
  62. package/dist/{chunk-2I5S2AMY.mjs → chunk-XREGSKX3.mjs} +2 -2
  63. package/dist/{chunk-JNQORUPP.mjs → chunk-YJG55G2H.mjs} +14 -11
  64. package/dist/chunk-ZC45IGZO.mjs +388 -0
  65. package/dist/components/ui/add-column-modal.js +42 -14
  66. package/dist/components/ui/add-column-modal.mjs +4 -4
  67. package/dist/components/ui/add-lead-modal.js +42 -11
  68. package/dist/components/ui/add-lead-modal.mjs +3 -3
  69. package/dist/components/ui/advisor-card.js +497 -0
  70. package/dist/components/ui/advisor-card.mjs +13 -0
  71. package/dist/components/ui/ai-assistant-drawer.js +11 -10
  72. package/dist/components/ui/ai-assistant-drawer.mjs +3 -3
  73. package/dist/components/ui/alert-dialog.js +2 -2
  74. package/dist/components/ui/alert-dialog.mjs +2 -2
  75. package/dist/components/ui/appointment-action-dialogs.js +1160 -0
  76. package/dist/components/ui/appointment-action-dialogs.mjs +23 -0
  77. package/dist/components/ui/appointment-availability-settings.js +1590 -0
  78. package/dist/components/ui/appointment-availability-settings.mjs +23 -0
  79. package/dist/components/ui/appointment-book-dialog.js +1744 -0
  80. package/dist/components/ui/appointment-book-dialog.mjs +27 -0
  81. package/dist/components/ui/appointment-calendar-view.js +833 -0
  82. package/dist/components/ui/appointment-calendar-view.mjs +14 -0
  83. package/dist/components/ui/appointment-detail-sheet.js +1517 -0
  84. package/dist/components/ui/appointment-detail-sheet.mjs +24 -0
  85. package/dist/components/ui/appointment-gmail-connect.js +467 -0
  86. package/dist/components/ui/appointment-gmail-connect.mjs +14 -0
  87. package/dist/components/ui/appointment-mini-card.js +345 -0
  88. package/dist/components/ui/appointment-mini-card.mjs +11 -0
  89. package/dist/components/ui/appointment-time-slot-picker.js +311 -0
  90. package/dist/components/ui/appointment-time-slot-picker.mjs +13 -0
  91. package/dist/components/ui/appointment-upcoming-card.js +1268 -0
  92. package/dist/components/ui/appointment-upcoming-card.mjs +21 -0
  93. package/dist/components/ui/backoffice-alert-history-chart.js +11 -5
  94. package/dist/components/ui/backoffice-alert-history-chart.mjs +5 -4
  95. package/dist/components/ui/backoffice-alerts-chart.js +786 -0
  96. package/dist/components/ui/backoffice-alerts-chart.mjs +19 -0
  97. package/dist/components/ui/backoffice-connections-chart.js +817 -0
  98. package/dist/components/ui/backoffice-connections-chart.mjs +19 -0
  99. package/dist/components/ui/backoffice-contact-history-chart.js +11 -5
  100. package/dist/components/ui/backoffice-contact-history-chart.mjs +5 -4
  101. package/dist/components/ui/badge.js +6 -6
  102. package/dist/components/ui/badge.mjs +1 -1
  103. package/dist/components/ui/borrowing-capacity-line-chart.js +30 -21
  104. package/dist/components/ui/borrowing-capacity-line-chart.mjs +5 -4
  105. package/dist/components/ui/button.js +2 -2
  106. package/dist/components/ui/button.mjs +1 -1
  107. package/dist/components/ui/calendar.js +2 -2
  108. package/dist/components/ui/calendar.mjs +2 -2
  109. package/dist/components/ui/card.js +1 -1
  110. package/dist/components/ui/card.mjs +1 -1
  111. package/dist/components/ui/cash-balance-line-chart.js +31 -23
  112. package/dist/components/ui/cash-balance-line-chart.mjs +5 -4
  113. package/dist/components/ui/cashflow-bar-chart.js +12 -5
  114. package/dist/components/ui/cashflow-bar-chart.mjs +5 -4
  115. package/dist/components/ui/chip.js +97 -18
  116. package/dist/components/ui/chip.mjs +3 -2
  117. package/dist/components/ui/color-picker.js +547 -0
  118. package/dist/components/ui/color-picker.mjs +24 -0
  119. package/dist/components/ui/data-table.js +182 -129
  120. package/dist/components/ui/data-table.mjs +3 -2
  121. package/dist/components/ui/date-picker.js +48 -27
  122. package/dist/components/ui/date-picker.mjs +4 -3
  123. package/dist/components/ui/dialog.js +37 -9
  124. package/dist/components/ui/dialog.mjs +2 -2
  125. package/dist/components/ui/expense-bar-chart.js +12 -5
  126. package/dist/components/ui/expense-bar-chart.mjs +5 -4
  127. package/dist/components/ui/field.mjs +2 -2
  128. package/dist/components/ui/financial-cards.js +322 -155
  129. package/dist/components/ui/financial-cards.mjs +5 -3
  130. package/dist/components/ui/financial-drawers.js +2 -2
  131. package/dist/components/ui/financial-drawers.mjs +3 -3
  132. package/dist/components/ui/financial-sections.js +14 -10
  133. package/dist/components/ui/financial-sections.mjs +6 -5
  134. package/dist/components/ui/form-primitives.js +4 -4
  135. package/dist/components/ui/form-primitives.mjs +3 -3
  136. package/dist/components/ui/income-bar-chart.js +12 -5
  137. package/dist/components/ui/income-bar-chart.mjs +5 -4
  138. package/dist/components/ui/input-group.js +2 -2
  139. package/dist/components/ui/input-group.mjs +2 -2
  140. package/dist/components/ui/kanban-column.js +52 -44
  141. package/dist/components/ui/kanban-column.mjs +7 -5
  142. package/dist/components/ui/opportunity-card.js +52 -44
  143. package/dist/components/ui/opportunity-card.mjs +6 -4
  144. package/dist/components/ui/opportunity-edit-modals.js +1371 -1267
  145. package/dist/components/ui/opportunity-edit-modals.mjs +10 -10
  146. package/dist/components/ui/opportunity-summary-tab.js +2748 -2161
  147. package/dist/components/ui/opportunity-summary-tab.mjs +16 -16
  148. package/dist/components/ui/page-header.js +92 -0
  149. package/dist/components/ui/page-header.mjs +8 -0
  150. package/dist/components/ui/page-top-bar.js +88 -0
  151. package/dist/components/ui/page-top-bar.mjs +8 -0
  152. package/dist/components/ui/pagination.js +303 -19
  153. package/dist/components/ui/pagination.mjs +11 -4
  154. package/dist/components/ui/pipeline-board.js +209 -195
  155. package/dist/components/ui/pipeline-board.mjs +10 -8
  156. package/dist/components/ui/pipeline-dialogs.js +118 -69
  157. package/dist/components/ui/pipeline-dialogs.mjs +8 -7
  158. package/dist/components/ui/pipeline-primitives.js +6 -6
  159. package/dist/components/ui/pipeline-primitives.mjs +2 -2
  160. package/dist/components/ui/property-cashflow-doughnut-chart.js +14 -12
  161. package/dist/components/ui/property-cashflow-doughnut-chart.mjs +5 -4
  162. package/dist/components/ui/property-debt-equity-doughnut-chart.js +14 -12
  163. package/dist/components/ui/property-debt-equity-doughnut-chart.mjs +5 -4
  164. package/dist/components/ui/property-mobile-estimate-line-chart.js +16 -14
  165. package/dist/components/ui/property-mobile-estimate-line-chart.mjs +5 -4
  166. package/dist/components/ui/sidebar-nav.js +679 -0
  167. package/dist/components/ui/sidebar-nav.mjs +14 -0
  168. package/dist/components/ui/stage-timeline.js +6 -6
  169. package/dist/components/ui/stage-timeline.mjs +3 -3
  170. package/dist/components/ui/stepper.js +283 -0
  171. package/dist/components/ui/stepper.mjs +18 -0
  172. package/dist/components/ui/toggle-group.js +4 -4
  173. package/dist/components/ui/toggle-group.mjs +2 -2
  174. package/dist/components/ui/toggle.js +4 -4
  175. package/dist/components/ui/toggle.mjs +1 -1
  176. package/dist/components/ui/transactions-expense-categories-doughnut-chart.js +18 -16
  177. package/dist/components/ui/transactions-expense-categories-doughnut-chart.mjs +5 -4
  178. package/dist/components/ui/transactions-income-expense-bar-chart.js +28 -12
  179. package/dist/components/ui/transactions-income-expense-bar-chart.mjs +5 -4
  180. package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.js +18 -16
  181. package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.mjs +5 -4
  182. package/dist/index.js +12927 -8522
  183. package/dist/index.mjs +288 -190
  184. package/dist/lib/typography.js +10 -10
  185. package/dist/lib/typography.mjs +1 -1
  186. package/dist/styles.css +1 -1
  187. package/package.json +86 -1
  188. package/src/components/index.tsx +146 -0
  189. package/src/components/ui/add-column-modal.tsx +7 -7
  190. package/src/components/ui/add-lead-modal.tsx +6 -3
  191. package/src/components/ui/advisor-card.tsx +227 -0
  192. package/src/components/ui/ai-assistant-drawer.tsx +4 -3
  193. package/src/components/ui/appointment-action-dialogs.tsx +297 -0
  194. package/src/components/ui/appointment-availability-settings.tsx +645 -0
  195. package/src/components/ui/appointment-book-dialog.tsx +618 -0
  196. package/src/components/ui/appointment-calendar-view.tsx +510 -0
  197. package/src/components/ui/appointment-detail-sheet.tsx +415 -0
  198. package/src/components/ui/appointment-gmail-connect.tsx +188 -0
  199. package/src/components/ui/appointment-mini-card.tsx +104 -0
  200. package/src/components/ui/appointment-time-slot-picker.tsx +123 -0
  201. package/src/components/ui/appointment-upcoming-card.tsx +635 -0
  202. package/src/components/ui/backoffice-alert-history-chart.tsx +10 -2
  203. package/src/components/ui/backoffice-alerts-chart.tsx +312 -0
  204. package/src/components/ui/backoffice-connections-chart.tsx +339 -0
  205. package/src/components/ui/backoffice-contact-history-chart.tsx +10 -2
  206. package/src/components/ui/badge.tsx +12 -6
  207. package/src/components/ui/borrowing-capacity-line-chart.tsx +4 -11
  208. package/src/components/ui/button.tsx +2 -2
  209. package/src/components/ui/card.tsx +1 -1
  210. package/src/components/ui/cash-balance-line-chart.tsx +4 -23
  211. package/src/components/ui/cashflow-bar-chart.tsx +9 -2
  212. package/src/components/ui/chart-shared.tsx +4 -11
  213. package/src/components/ui/chip.tsx +23 -19
  214. package/src/components/ui/color-picker.tsx +309 -0
  215. package/src/components/ui/data-table.tsx +117 -83
  216. package/src/components/ui/date-picker.tsx +42 -37
  217. package/src/components/ui/dialog.tsx +72 -6
  218. package/src/components/ui/expense-bar-chart.tsx +11 -2
  219. package/src/components/ui/financial-cards.tsx +99 -10
  220. package/src/components/ui/income-bar-chart.tsx +11 -2
  221. package/src/components/ui/opportunity-card.tsx +10 -39
  222. package/src/components/ui/opportunity-edit-modals.tsx +98 -36
  223. package/src/components/ui/opportunity-summary-tab.tsx +548 -232
  224. package/src/components/ui/page-header.tsx +57 -0
  225. package/src/components/ui/page-top-bar.tsx +48 -0
  226. package/src/components/ui/pagination.tsx +171 -22
  227. package/src/components/ui/pipeline-board.tsx +12 -5
  228. package/src/components/ui/property-cashflow-doughnut-chart.tsx +3 -1
  229. package/src/components/ui/property-debt-equity-doughnut-chart.tsx +3 -1
  230. package/src/components/ui/property-mobile-estimate-line-chart.tsx +3 -1
  231. package/src/components/ui/sidebar-nav.tsx +516 -0
  232. package/src/components/ui/stepper.tsx +347 -0
  233. package/src/components/ui/toggle.tsx +4 -4
  234. package/src/components/ui/transactions-expense-categories-doughnut-chart.tsx +3 -1
  235. package/src/components/ui/transactions-income-expense-bar-chart.tsx +12 -9
  236. package/src/components/ui/transactions-liabilities-breakdown-doughnut-chart.tsx +3 -1
  237. package/src/lib/format-currency.ts +44 -0
  238. package/src/lib/format-date.ts +50 -0
  239. package/src/lib/opportunity-constants.ts +12 -0
  240. package/src/lib/typography.ts +11 -11
  241. package/src/styles/globals.css +36 -34
  242. package/src/styles/styles-css.ts +1 -1
  243. package/tsup.config.ts +17 -0
  244. package/dist/chunk-PG6K5XEC.mjs +0 -475
  245. package/dist/chunk-WA6O6EUR.mjs +0 -1885
  246. package/dist/chunk-WNGWBVLV.mjs +0 -148
  247. package/dist/{chunk-LLVQKSU3.mjs → chunk-GD4BJDJR.mjs} +3 -3
@@ -0,0 +1,547 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
37
+ var __export = (target, all) => {
38
+ for (var name in all)
39
+ __defProp(target, name, { get: all[name], enumerable: true });
40
+ };
41
+ var __copyProps = (to, from, except, desc) => {
42
+ if (from && typeof from === "object" || typeof from === "function") {
43
+ for (let key of __getOwnPropNames(from))
44
+ if (!__hasOwnProp.call(to, key) && key !== except)
45
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
46
+ }
47
+ return to;
48
+ };
49
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
+ // If the importer is in node compatibility mode or this is not an ESM
51
+ // file that has been converted to a CommonJS file using a Babel-
52
+ // compatible transform (i.e. "__esModule" has not been set), then set
53
+ // "default" to the CommonJS "module.exports" for node compatibility.
54
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
+ mod
56
+ ));
57
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
58
+
59
+ // src/components/ui/color-picker.tsx
60
+ var color_picker_exports = {};
61
+ __export(color_picker_exports, {
62
+ COLOR_PICKER_PRESETS: () => COLOR_PICKER_PRESETS,
63
+ ColorPicker: () => ColorPicker,
64
+ ColorPickerContent: () => ColorPickerContent,
65
+ ColorSwatch: () => ColorSwatch,
66
+ isValidHex: () => isValidHex,
67
+ normalizeHex: () => normalizeHex
68
+ });
69
+ module.exports = __toCommonJS(color_picker_exports);
70
+ var React3 = __toESM(require("react"));
71
+
72
+ // src/lib/utils.ts
73
+ var import_clsx = require("clsx");
74
+ var import_tailwind_merge = require("tailwind-merge");
75
+ var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
76
+ extend: {
77
+ classGroups: {
78
+ "font-size": [
79
+ {
80
+ text: [
81
+ "display-large",
82
+ "display-medium",
83
+ "display-small",
84
+ "h1",
85
+ "h2",
86
+ "h3",
87
+ "h4",
88
+ "h5",
89
+ "h6",
90
+ "body-large",
91
+ "body-medium",
92
+ "body-small",
93
+ "label-large",
94
+ "label-medium",
95
+ "label-small",
96
+ "button",
97
+ "button-xs",
98
+ "caption",
99
+ "overline",
100
+ "code"
101
+ ]
102
+ }
103
+ ]
104
+ }
105
+ }
106
+ });
107
+ function cn(...inputs) {
108
+ return twMerge((0, import_clsx.clsx)(inputs));
109
+ }
110
+
111
+ // src/components/ui/popover.tsx
112
+ var import_popover = require("@base-ui/react/popover");
113
+
114
+ // src/lib/theme-provider.tsx
115
+ var import_react = require("react");
116
+ var import_jsx_runtime = require("react/jsx-runtime");
117
+ var ThemeVarsContext = (0, import_react.createContext)({});
118
+ function useThemeVars() {
119
+ return (0, import_react.useContext)(ThemeVarsContext);
120
+ }
121
+
122
+ // src/components/ui/popover.tsx
123
+ var import_jsx_runtime2 = require("react/jsx-runtime");
124
+ function Popover(_a) {
125
+ var props = __objRest(_a, []);
126
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_popover.Popover.Root, __spreadValues({ "data-slot": "popover" }, props));
127
+ }
128
+ function PopoverTrigger(_a) {
129
+ var props = __objRest(_a, []);
130
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_popover.Popover.Trigger, __spreadValues({ "data-slot": "popover-trigger" }, props));
131
+ }
132
+ function PopoverContent(_a) {
133
+ var _b = _a, {
134
+ className,
135
+ align = "center",
136
+ sideOffset = 4,
137
+ style
138
+ } = _b, props = __objRest(_b, [
139
+ "className",
140
+ "align",
141
+ "sideOffset",
142
+ "style"
143
+ ]);
144
+ const themeVars = useThemeVars();
145
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
146
+ import_popover.Popover.Positioner,
147
+ {
148
+ className: "z-[200]",
149
+ align,
150
+ sideOffset,
151
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
152
+ import_popover.Popover.Popup,
153
+ __spreadValues({
154
+ className: cn(
155
+ "z-50 w-72 border border-border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
156
+ className
157
+ ),
158
+ "data-slot": "popover-content",
159
+ style: __spreadValues(__spreadValues({}, themeVars), style)
160
+ }, props)
161
+ )
162
+ }
163
+ ) });
164
+ }
165
+
166
+ // src/components/ui/input.tsx
167
+ var import_jsx_runtime3 = require("react/jsx-runtime");
168
+ function Input(_a) {
169
+ var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
170
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
171
+ "input",
172
+ __spreadValues({
173
+ className: cn(
174
+ "h-9 w-full min-w-0 border border-input bg-transparent px-3 py-1 text-body-medium font-sans shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-label-medium file:text-foreground placeholder:font-normal placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 dark:bg-input/30",
175
+ "focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/20",
176
+ "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",
177
+ className
178
+ ),
179
+ "data-slot": "input",
180
+ type
181
+ }, props)
182
+ );
183
+ }
184
+
185
+ // src/components/ui/button.tsx
186
+ var import_react2 = require("react");
187
+ var import_class_variance_authority = require("class-variance-authority");
188
+ var import_lucide_react = require("lucide-react");
189
+
190
+ // src/lib/slot.tsx
191
+ var React2 = __toESM(require("react"));
192
+ function mergeRefs(...refs) {
193
+ return (value) => {
194
+ for (const ref of refs) {
195
+ if (typeof ref === "function") ref(value);
196
+ else if (ref !== null)
197
+ ref.current = value;
198
+ }
199
+ };
200
+ }
201
+ var Slot = React2.forwardRef(
202
+ (_a, forwardedRef) => {
203
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
204
+ const child = React2.Children.only(children);
205
+ if (!React2.isValidElement(child)) return null;
206
+ const childProps = child.props;
207
+ const merged = __spreadValues({}, props);
208
+ for (const key of Object.keys(childProps)) {
209
+ if (key === "className") {
210
+ merged.className = [props.className, childProps.className].filter(Boolean).join(" ");
211
+ } else if (key === "style") {
212
+ merged.style = __spreadValues(__spreadValues({}, props.style), childProps.style);
213
+ } else if (key.startsWith("on") && typeof childProps[key] === "function") {
214
+ const parentHandler = props[key];
215
+ if (typeof parentHandler === "function") {
216
+ merged[key] = (...args) => {
217
+ childProps[key](...args);
218
+ parentHandler(...args);
219
+ };
220
+ } else {
221
+ merged[key] = childProps[key];
222
+ }
223
+ } else {
224
+ merged[key] = childProps[key];
225
+ }
226
+ }
227
+ const childRef = child.ref;
228
+ merged.ref = forwardedRef ? mergeRefs(forwardedRef, childRef) : childRef;
229
+ return React2.cloneElement(
230
+ child,
231
+ merged
232
+ );
233
+ }
234
+ );
235
+ Slot.displayName = "Slot";
236
+
237
+ // src/components/ui/button.tsx
238
+ var import_jsx_runtime4 = require("react/jsx-runtime");
239
+ var buttonVariants = (0, import_class_variance_authority.cva)(
240
+ "inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 font-sans text-button whitespace-nowrap transition-all active:scale-[0.98] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
241
+ {
242
+ variants: {
243
+ variant: {
244
+ default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
245
+ secondary: "bg-brand-secondary text-brand-secondary-foreground shadow-xs hover:bg-brand-secondary/80 focus-visible:ring-brand-secondary/30",
246
+ destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",
247
+ outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground focus-visible:ring-border/50 dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
248
+ "outline-primary": "border border-primary text-foreground bg-transparent shadow-xs hover:bg-primary/5 focus-visible:ring-primary/50",
249
+ "outline-secondary": "border border-brand-secondary text-brand-secondary bg-transparent shadow-xs hover:bg-brand-secondary/10 focus-visible:ring-brand-secondary/30",
250
+ ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs focus-visible:ring-border/50 dark:hover:bg-accent/50",
251
+ link: "text-primary underline-offset-4 hover:underline"
252
+ },
253
+ size: {
254
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
255
+ xs: "h-6 gap-1 px-2 text-button-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
256
+ sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
257
+ lg: "h-10 px-6 has-[>svg]:px-4",
258
+ icon: "size-9",
259
+ "icon-xs": "size-6 [&_svg:not([class*='size-'])]:size-3",
260
+ "icon-sm": "size-8",
261
+ "icon-lg": "size-10"
262
+ }
263
+ },
264
+ defaultVariants: {
265
+ variant: "default",
266
+ size: "default"
267
+ }
268
+ }
269
+ );
270
+ var Button = (0, import_react2.forwardRef)(function Button2(_a, ref) {
271
+ var _b = _a, {
272
+ className,
273
+ variant,
274
+ size,
275
+ asChild = false,
276
+ loading = false,
277
+ disabled,
278
+ type = "button",
279
+ children
280
+ } = _b, props = __objRest(_b, [
281
+ "className",
282
+ "variant",
283
+ "size",
284
+ "asChild",
285
+ "loading",
286
+ "disabled",
287
+ "type",
288
+ "children"
289
+ ]);
290
+ const Comp = asChild ? Slot : "button";
291
+ const isIconOnly = size === "icon" || size === "icon-xs" || size === "icon-sm" || size === "icon-lg";
292
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
293
+ Comp,
294
+ __spreadProps(__spreadValues({
295
+ className: cn(buttonVariants({ variant, size, className })),
296
+ "data-size": size,
297
+ "data-slot": "button",
298
+ "data-variant": variant,
299
+ disabled: loading || disabled,
300
+ ref,
301
+ type
302
+ }, props), {
303
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
304
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.Loader2, { "aria-hidden": "true", className: "animate-spin" }),
305
+ !isIconOnly && children
306
+ ] }) : children
307
+ })
308
+ );
309
+ });
310
+
311
+ // src/components/ui/color-picker.tsx
312
+ var import_jsx_runtime5 = require("react/jsx-runtime");
313
+ var COLOR_PICKER_PRESETS = [
314
+ // Blues
315
+ "#1E40AF",
316
+ "#2563EB",
317
+ "#3B82F6",
318
+ "#60A5FA",
319
+ // Purples
320
+ "#7C3AED",
321
+ "#8B5CF6",
322
+ "#A78BFA",
323
+ "#C4B5FD",
324
+ // Greens
325
+ "#15803D",
326
+ "#16A34A",
327
+ "#22C55E",
328
+ "#4ADE80",
329
+ // Reds
330
+ "#B91C1C",
331
+ "#DC2626",
332
+ "#EF4444",
333
+ "#F87171",
334
+ // Oranges
335
+ "#C2410C",
336
+ "#EA580C",
337
+ "#F97316",
338
+ "#FB923C",
339
+ // Teals
340
+ "#0F766E",
341
+ "#0D9488",
342
+ "#14B8A6",
343
+ "#2DD4BF",
344
+ // Neutrals
345
+ "#111827",
346
+ "#374151",
347
+ "#6B7280",
348
+ "#D1D5DB"
349
+ ];
350
+ function isValidHex(value) {
351
+ return /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(value);
352
+ }
353
+ function normalizeHex(value) {
354
+ const stripped = value.replace(/^#/, "");
355
+ return `#${stripped}`;
356
+ }
357
+ function ColorSwatch({
358
+ color,
359
+ selected,
360
+ size = "md",
361
+ onClick,
362
+ className
363
+ }) {
364
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
365
+ Button,
366
+ {
367
+ type: "button",
368
+ variant: "ghost",
369
+ title: color,
370
+ "aria-label": `Select color ${color}`,
371
+ "aria-pressed": selected,
372
+ onClick: () => onClick == null ? void 0 : onClick(color),
373
+ className: cn(
374
+ "relative shrink-0 p-0 transition-all outline-none shadow-[inset_0_0_0_1px_rgba(0,0,0,0.12)]",
375
+ "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
376
+ size === "md" ? "size-7" : "size-5",
377
+ selected && "ring-2 ring-foreground ring-offset-1 ring-offset-background",
378
+ className
379
+ ),
380
+ style: { backgroundColor: color }
381
+ }
382
+ );
383
+ }
384
+ function ColorPickerContent({
385
+ value,
386
+ onChange,
387
+ presets = COLOR_PICKER_PRESETS
388
+ }) {
389
+ const [hexInput, setHexInput] = React3.useState(value);
390
+ React3.useEffect(() => {
391
+ setHexInput(value);
392
+ }, [value]);
393
+ function handleHexInputChange(e) {
394
+ const raw = e.target.value;
395
+ setHexInput(raw);
396
+ const normalized = normalizeHex(raw);
397
+ if (isValidHex(normalized)) {
398
+ onChange(normalized);
399
+ }
400
+ }
401
+ function handleHexBlur() {
402
+ const normalized = normalizeHex(hexInput);
403
+ if (isValidHex(normalized)) {
404
+ setHexInput(normalized);
405
+ if (normalized !== value) onChange(normalized);
406
+ } else {
407
+ setHexInput(value);
408
+ }
409
+ }
410
+ const normalizedInput = normalizeHex(hexInput);
411
+ const isValid = isValidHex(normalizedInput);
412
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { "data-slot": "color-picker-content", className: "flex flex-col gap-4", children: [
413
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { children: [
414
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "mb-2 text-xs font-medium text-muted-foreground", children: "Presets" }),
415
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "grid grid-cols-7 gap-1.5", children: presets.map((color) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
416
+ ColorSwatch,
417
+ {
418
+ color,
419
+ selected: value.toLowerCase() === color.toLowerCase(),
420
+ onClick: onChange
421
+ },
422
+ color
423
+ )) })
424
+ ] }),
425
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { children: [
426
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "mb-2 text-xs font-medium text-muted-foreground", children: "Custom hex" }),
427
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center gap-2", children: [
428
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
429
+ "label",
430
+ {
431
+ className: "relative size-9 shrink-0 cursor-pointer border border-border",
432
+ title: "Open color picker",
433
+ style: {
434
+ backgroundColor: isValid ? normalizedInput : value
435
+ },
436
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
437
+ "input",
438
+ {
439
+ type: "color",
440
+ "aria-label": "Native color picker",
441
+ value: isValid ? normalizedInput : value,
442
+ onChange: (e) => {
443
+ setHexInput(e.target.value);
444
+ onChange(e.target.value);
445
+ },
446
+ className: "absolute inset-0 h-full w-full cursor-pointer opacity-0"
447
+ }
448
+ )
449
+ }
450
+ ),
451
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
452
+ Input,
453
+ {
454
+ "aria-label": "Hex color value",
455
+ placeholder: "#000000",
456
+ value: hexInput,
457
+ onChange: handleHexInputChange,
458
+ onBlur: handleHexBlur,
459
+ maxLength: 7,
460
+ className: "h-9 flex-1 font-mono text-sm uppercase"
461
+ }
462
+ )
463
+ ] })
464
+ ] })
465
+ ] });
466
+ }
467
+ function ColorPicker({
468
+ value: controlledValue,
469
+ defaultValue = "#3B82F6",
470
+ onChange,
471
+ presets,
472
+ disabled,
473
+ label,
474
+ className
475
+ }) {
476
+ const isControlled = controlledValue !== void 0;
477
+ const [internalValue, setInternalValue] = React3.useState(defaultValue);
478
+ const color = isControlled ? controlledValue : internalValue;
479
+ const [open, setOpen] = React3.useState(false);
480
+ React3.useEffect(() => {
481
+ if (disabled) setOpen(false);
482
+ }, [disabled]);
483
+ function handleChange(newColor) {
484
+ if (!isControlled) setInternalValue(newColor);
485
+ onChange == null ? void 0 : onChange(newColor);
486
+ }
487
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
488
+ "div",
489
+ {
490
+ "data-slot": "color-picker",
491
+ className: cn("inline-flex flex-col gap-1.5 font-sans", className),
492
+ children: [
493
+ label && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-sm font-medium text-foreground", children: label }),
494
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
495
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
496
+ PopoverTrigger,
497
+ {
498
+ disabled,
499
+ className: cn(
500
+ "flex h-9 min-w-[140px] cursor-pointer items-center gap-2.5 border border-input bg-background px-3 text-sm outline-none transition-colors",
501
+ "hover:border-ring",
502
+ "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
503
+ "disabled:cursor-not-allowed disabled:opacity-50"
504
+ ),
505
+ children: [
506
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
507
+ "span",
508
+ {
509
+ "aria-hidden": true,
510
+ className: "size-5 shrink-0 border border-border/50",
511
+ style: { backgroundColor: color }
512
+ }
513
+ ),
514
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "font-mono text-xs uppercase tracking-wide", children: color })
515
+ ]
516
+ }
517
+ ),
518
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
519
+ PopoverContent,
520
+ {
521
+ className: "w-[220px] p-4",
522
+ align: "start",
523
+ "data-shadcn-scope": true,
524
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
525
+ ColorPickerContent,
526
+ {
527
+ value: color,
528
+ onChange: handleChange,
529
+ presets
530
+ }
531
+ )
532
+ }
533
+ )
534
+ ] })
535
+ ]
536
+ }
537
+ );
538
+ }
539
+ // Annotate the CommonJS export names for ESM import in node:
540
+ 0 && (module.exports = {
541
+ COLOR_PICKER_PRESETS,
542
+ ColorPicker,
543
+ ColorPickerContent,
544
+ ColorSwatch,
545
+ isValidHex,
546
+ normalizeHex
547
+ });
@@ -0,0 +1,24 @@
1
+ import {
2
+ COLOR_PICKER_PRESETS,
3
+ ColorPicker,
4
+ ColorPickerContent,
5
+ ColorSwatch,
6
+ isValidHex,
7
+ normalizeHex
8
+ } from "../../chunk-FAKPBKLT.mjs";
9
+ import "../../chunk-3GF7OVTP.mjs";
10
+ import "../../chunk-GYMYRIZP.mjs";
11
+ import "../../chunk-XREGSKX3.mjs";
12
+ import "../../chunk-DBHJ5KC3.mjs";
13
+ import "../../chunk-FEZKMUCF.mjs";
14
+ import "../../chunk-QOJ2DQD6.mjs";
15
+ import "../../chunk-VLQZANBF.mjs";
16
+ import "../../chunk-FWCSY2DS.mjs";
17
+ export {
18
+ COLOR_PICKER_PRESETS,
19
+ ColorPicker,
20
+ ColorPickerContent,
21
+ ColorSwatch,
22
+ isValidHex,
23
+ normalizeHex
24
+ };