@levo-so/react 0.1.14 → 0.1.15

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 (73) hide show
  1. package/dist/CheckboxWidget-BGS61gcL.js +124 -0
  2. package/dist/CollectionFormBuilder-BIvx_z08.js +1197 -0
  3. package/dist/{CurrencyWidget-COoMkfsA.js → CurrencyWidget-sD8ijLvw.js} +5 -5
  4. package/dist/{DateTimeWidget-DcbQ3smI.js → DateTimeWidget-KrcsxgEF.js} +3 -3
  5. package/dist/DefaultFormVariant-j1HgVDiI.js +127 -0
  6. package/dist/DropdownWidget-rm5oUqOE.js +113 -0
  7. package/dist/{EmailWidget-CG9oNUM5.js → EmailWidget-CvZKOywL.js} +11 -11
  8. package/dist/GeocoderWidget-CSsp_-hW.js +68 -0
  9. package/dist/{LevoProvider-BI6g_T4E.js → LevoProvider-Do3jjJ4j.js} +0 -1
  10. package/dist/{MultiGeocoderWidget-D3Xmv8g4.js → MultiGeocoderWidget-Blqz-lHX.js} +6 -6
  11. package/dist/{MultiTextWidget-CyQRcWC8.js → MultiTextWidget-CxVpyf06.js} +14 -14
  12. package/dist/{PhoneWidget-C1Jt7kXL.js → PhoneWidget-DezcchSP.js} +5 -5
  13. package/dist/{RadioWidget-BrLNF-I2.js → RadioWidget-SfD1fFDG.js} +9 -9
  14. package/dist/{RichTextWidget-BogYcPtS.js → RichTextWidget-Cg3RizdO.js} +21 -21
  15. package/dist/Spinner-Bzu2xCFZ.js +405 -0
  16. package/dist/{StepsFormVariant-Bx-jdciC.js → StepsFormVariant-D35dFYK6.js} +9 -9
  17. package/dist/{SwitchWidget-BT0-waP9.js → SwitchWidget-Id6BNlPe.js} +5 -5
  18. package/dist/{TextWidget-Bvsz-hey.js → TextWidget-CtFaQde1.js} +7 -7
  19. package/dist/{TextareaWidget-8SLym--T.js → TextareaWidget-BKzAeMod.js} +3 -3
  20. package/dist/{ToggleCheckboxWidget-VrCQBF5C.js → ToggleCheckboxWidget-nSlie9sE.js} +7 -7
  21. package/dist/Tooltip-DEBnSqlo.js +36 -0
  22. package/dist/{URLWidget-B99nKr6N.js → URLWidget-DtJai3xY.js} +2 -2
  23. package/dist/UploadWidget-Dxx2_FYo.js +616 -0
  24. package/dist/audience/components/page.d.ts.map +1 -1
  25. package/dist/audience/index.js +1 -1
  26. package/dist/collection/components/Altcha.d.ts +10 -0
  27. package/dist/collection/components/Altcha.d.ts.map +1 -0
  28. package/dist/collection/components/renderer/RenderCommonField.d.ts.map +1 -1
  29. package/dist/collection/components/widgets/checkboxWidget/CheckboxWidget.d.ts +1 -1
  30. package/dist/collection/components/widgets/checkboxWidget/CheckboxWidget.d.ts.map +1 -1
  31. package/dist/collection/components/widgets/collectionWidget/CollectionWidgetM2M.d.ts +7 -0
  32. package/dist/collection/components/widgets/collectionWidget/CollectionWidgetM2M.d.ts.map +1 -0
  33. package/dist/collection/components/widgets/collectionWidget/{CollectionWidget.d.ts → CollectionWidgetM2O.d.ts} +1 -1
  34. package/dist/collection/components/widgets/collectionWidget/CollectionWidgetM2O.d.ts.map +1 -0
  35. package/dist/collection/components/widgets/collectionWidget/SelectedCollectionItems.d.ts +8 -0
  36. package/dist/collection/components/widgets/collectionWidget/SelectedCollectionItems.d.ts.map +1 -0
  37. package/dist/collection/components/widgets/dropdownWidget/DropdownWidget.d.ts.map +1 -1
  38. package/dist/collection/components/widgets/geocoderWidget/GeocoderWidget.d.ts.map +1 -1
  39. package/dist/collection/components/widgets/uploadWidget/ExternalURL.d.ts +11 -0
  40. package/dist/collection/components/widgets/uploadWidget/ExternalURL.d.ts.map +1 -0
  41. package/dist/collection/components/widgets/uploadWidget/FileUploadDropBox.d.ts.map +1 -1
  42. package/dist/collection/components/widgets/uploadWidget/FileUploadModal.d.ts.map +1 -1
  43. package/dist/collection/components/widgets/uploadWidget/ImportFromAssets.d.ts.map +1 -1
  44. package/dist/collection/index.js +13 -12
  45. package/dist/collection/lib/hooks/useLevoForm.d.ts +2 -1
  46. package/dist/collection/lib/hooks/useLevoForm.d.ts.map +1 -1
  47. package/dist/collection/lib/variants/DefaultFormVariant.d.ts.map +1 -1
  48. package/dist/collection/utils/formHelpers.d.ts.map +1 -1
  49. package/dist/collection/utils/index.d.ts +2 -0
  50. package/dist/collection/utils/index.d.ts.map +1 -1
  51. package/dist/components/Table.d.ts +11 -0
  52. package/dist/components/Table.d.ts.map +1 -0
  53. package/dist/components/index.js +29 -29
  54. package/dist/constants/fileUploadPresets.d.ts +4 -2
  55. package/dist/constants/fileUploadPresets.d.ts.map +1 -1
  56. package/dist/index.css +1 -1
  57. package/dist/index.js +75 -75
  58. package/dist/membership/index.js +1 -1
  59. package/dist/page-DgqTELmZ.js +212 -0
  60. package/dist/useLevoForm-3jSJ9I6v.js +170 -0
  61. package/package.json +8 -7
  62. package/dist/CheckboxWidget-BctVOZiO.js +0 -118
  63. package/dist/CollectionFormBuilder-B6CAVKhg.js +0 -772
  64. package/dist/DefaultFormVariant-C6zbKgwB.js +0 -80
  65. package/dist/DropdownWidget-DszCTSWr.js +0 -115
  66. package/dist/GeocoderWidget-CXu17A7y.js +0 -310
  67. package/dist/Spinner-DzGH5rKe.js +0 -297
  68. package/dist/Tooltip-CI4i4mYr.js +0 -144
  69. package/dist/UploadWidget-ZebPWZZZ.js +0 -505
  70. package/dist/collection/components/widgets/collectionWidget/CollectionWidget.d.ts.map +0 -1
  71. package/dist/fileUploadPresets-2raQmHT0.js +0 -74
  72. package/dist/page-yeiAPg3O.js +0 -200
  73. package/dist/useLevoForm-DjvUas25.js +0 -166
@@ -1,297 +0,0 @@
1
- "use client";
2
- import { j as c } from "./jsx-runtime-B6kdoens.js";
3
- import * as d from "@radix-ui/react-tabs";
4
- import * as m from "react";
5
- import l from "react";
6
- import { c as u } from "./cn-C9QoOYNG.js";
7
- import { Slot as B } from "@radix-ui/react-slot";
8
- import { twMerge as j } from "tailwind-merge";
9
- import { cva as O } from "class-variance-authority";
10
- var x = {
11
- color: void 0,
12
- size: void 0,
13
- className: void 0,
14
- style: void 0,
15
- attr: void 0
16
- }, p = l.createContext && /* @__PURE__ */ l.createContext(x), P = ["attr", "size", "title"];
17
- function M(t, e) {
18
- if (t == null) return {};
19
- var r = N(t, e), a, n;
20
- if (Object.getOwnPropertySymbols) {
21
- var o = Object.getOwnPropertySymbols(t);
22
- for (n = 0; n < o.length; n++)
23
- a = o[n], !(e.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(t, a) && (r[a] = t[a]);
24
- }
25
- return r;
26
- }
27
- function N(t, e) {
28
- if (t == null) return {};
29
- var r = {};
30
- for (var a in t)
31
- if (Object.prototype.hasOwnProperty.call(t, a)) {
32
- if (e.indexOf(a) >= 0) continue;
33
- r[a] = t[a];
34
- }
35
- return r;
36
- }
37
- function f() {
38
- return f = Object.assign ? Object.assign.bind() : function(t) {
39
- for (var e = 1; e < arguments.length; e++) {
40
- var r = arguments[e];
41
- for (var a in r)
42
- Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
43
- }
44
- return t;
45
- }, f.apply(this, arguments);
46
- }
47
- function b(t, e) {
48
- var r = Object.keys(t);
49
- if (Object.getOwnPropertySymbols) {
50
- var a = Object.getOwnPropertySymbols(t);
51
- e && (a = a.filter(function(n) {
52
- return Object.getOwnPropertyDescriptor(t, n).enumerable;
53
- })), r.push.apply(r, a);
54
- }
55
- return r;
56
- }
57
- function g(t) {
58
- for (var e = 1; e < arguments.length; e++) {
59
- var r = arguments[e] != null ? arguments[e] : {};
60
- e % 2 ? b(Object(r), !0).forEach(function(a) {
61
- L(t, a, r[a]);
62
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : b(Object(r)).forEach(function(a) {
63
- Object.defineProperty(t, a, Object.getOwnPropertyDescriptor(r, a));
64
- });
65
- }
66
- return t;
67
- }
68
- function L(t, e, r) {
69
- return e = C(e), e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
70
- }
71
- function C(t) {
72
- var e = S(t, "string");
73
- return typeof e == "symbol" ? e : e + "";
74
- }
75
- function S(t, e) {
76
- if (typeof t != "object" || !t) return t;
77
- var r = t[Symbol.toPrimitive];
78
- if (r !== void 0) {
79
- var a = r.call(t, e || "default");
80
- if (typeof a != "object") return a;
81
- throw new TypeError("@@toPrimitive must return a primitive value.");
82
- }
83
- return (e === "string" ? String : Number)(t);
84
- }
85
- function z(t) {
86
- return t && t.map((e, r) => /* @__PURE__ */ l.createElement(e.tag, g({
87
- key: r
88
- }, e.attr), z(e.child)));
89
- }
90
- function i(t) {
91
- return (e) => /* @__PURE__ */ l.createElement(E, f({
92
- attr: g({}, t.attr)
93
- }, e), z(t.child));
94
- }
95
- function E(t) {
96
- var e = (r) => {
97
- var {
98
- attr: a,
99
- size: n,
100
- title: o
101
- } = t, h = M(t, P), v = n || r.size || "1em", s;
102
- return r.className && (s = r.className), t.className && (s = (s ? s + " " : "") + t.className), /* @__PURE__ */ l.createElement("svg", f({
103
- stroke: "currentColor",
104
- fill: "currentColor",
105
- strokeWidth: "0"
106
- }, r.attr, a, h, {
107
- className: s,
108
- style: g(g({
109
- color: t.color || r.color
110
- }, r.style), t.style),
111
- height: v,
112
- width: v,
113
- xmlns: "http://www.w3.org/2000/svg"
114
- }), o && /* @__PURE__ */ l.createElement("title", null, o), t.children);
115
- };
116
- return p !== void 0 ? /* @__PURE__ */ l.createElement(p.Consumer, null, (r) => e(r)) : e(x);
117
- }
118
- function q(t) {
119
- return i({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M4 7h16v2H4zm0-4h16v2H4zm0 8h16v2H4zm0 4h16v2H4zm2 4h12v2H6z" }, child: [] }] })(t);
120
- }
121
- function F(t) {
122
- return i({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M4 19h16v2H4zm0-4h11v2H4zm0-4h16v2H4zm0-8h16v2H4zm0 4h11v2H4z" }, child: [] }] })(t);
123
- }
124
- function J(t) {
125
- return i({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M4 19h16v2H4zm3-4h10v2H7zm-3-4h16v2H4zm0-8h16v2H4zm3 4h10v2H7z" }, child: [] }] })(t);
126
- }
127
- function K(t) {
128
- return i({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M4 19h16v2H4zm5-4h11v2H9zm-5-4h16v2H4zm0-8h16v2H4zm5 4h11v2H9z" }, child: [] }] })(t);
129
- }
130
- function Q(t) {
131
- return i({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M17.061 11.22A4.46 4.46 0 0 0 18 8.5C18 6.019 15.981 4 13.5 4H6v15h8c2.481 0 4.5-2.019 4.5-4.5a4.48 4.48 0 0 0-1.439-3.28zM13.5 7c.827 0 1.5.673 1.5 1.5s-.673 1.5-1.5 1.5H9V7h4.5zm.5 9H9v-3h5c.827 0 1.5.673 1.5 1.5S14.827 16 14 16z" }, child: [] }] })(t);
132
- }
133
- function X(t) {
134
- return i({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M13.293 6.293 7.586 12l5.707 5.707 1.414-1.414L10.414 12l4.293-4.293z" }, child: [] }] })(t);
135
- }
136
- function Y(t) {
137
- return i({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M10.707 17.707 16.414 12l-5.707-5.707-1.414 1.414L13.586 12l-4.293 4.293z" }, child: [] }] })(t);
138
- }
139
- function Z(t) {
140
- return i({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M19 7V4H9v3h2.868L9.012 17H5v3h10v-3h-2.868l2.856-10z" }, child: [] }] })(t);
141
- }
142
- function $(t) {
143
- return i({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M8.465 11.293c1.133-1.133 3.109-1.133 4.242 0l.707.707 1.414-1.414-.707-.707c-.943-.944-2.199-1.465-3.535-1.465s-2.592.521-3.535 1.465L4.929 12a5.008 5.008 0 0 0 0 7.071 4.983 4.983 0 0 0 3.535 1.462A4.982 4.982 0 0 0 12 19.071l.707-.707-1.414-1.414-.707.707a3.007 3.007 0 0 1-4.243 0 3.005 3.005 0 0 1 0-4.243l2.122-2.121z" }, child: [] }, { tag: "path", attr: { d: "m12 4.929-.707.707 1.414 1.414.707-.707a3.007 3.007 0 0 1 4.243 0 3.005 3.005 0 0 1 0 4.243l-2.122 2.121c-1.133 1.133-3.109 1.133-4.242 0L10.586 12l-1.414 1.414.707.707c.943.944 2.199 1.465 3.535 1.465s2.592-.521 3.535-1.465L19.071 12a5.008 5.008 0 0 0 0-7.071 5.006 5.006 0 0 0-7.071 0z" }, child: [] }] })(t);
144
- }
145
- function tt(t) {
146
- return i({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M5.282 12.064c-.428.328-.72.609-.875.851-.155.24-.249.498-.279.768h2.679v-.748H5.413c.081-.081.152-.151.212-.201.062-.05.182-.142.361-.27.303-.218.511-.42.626-.604.116-.186.173-.375.173-.578a.898.898 0 0 0-.151-.512.892.892 0 0 0-.412-.341c-.174-.076-.419-.111-.733-.111-.3 0-.537.038-.706.114a.889.889 0 0 0-.396.338c-.094.143-.159.346-.194.604l.894.076c.025-.188.074-.317.147-.394a.375.375 0 0 1 .279-.108c.11 0 .2.035.272.108a.344.344 0 0 1 .108.258.55.55 0 0 1-.108.297c-.074.102-.241.254-.503.453zm.055 6.386a.398.398 0 0 1-.282-.105c-.074-.07-.128-.195-.162-.378L4 18.085c.059.204.142.372.251.506.109.133.248.235.417.306.168.069.399.103.692.103.3 0 .541-.047.725-.14a1 1 0 0 0 .424-.403c.098-.175.146-.354.146-.544a.823.823 0 0 0-.088-.393.708.708 0 0 0-.249-.261 1.015 1.015 0 0 0-.286-.11.943.943 0 0 0 .345-.299.673.673 0 0 0 .113-.383.747.747 0 0 0-.281-.596c-.187-.159-.49-.238-.909-.238-.365 0-.648.072-.847.219-.2.143-.334.353-.404.626l.844.151c.023-.162.067-.274.133-.338s.151-.098.257-.098a.33.33 0 0 1 .241.089c.059.06.087.139.087.238 0 .104-.038.193-.117.27s-.177.112-.293.112a.907.907 0 0 1-.116-.011l-.045.649a1.13 1.13 0 0 1 .289-.056c.132 0 .237.041.313.126.077.082.115.199.115.352 0 .146-.04.266-.119.354a.394.394 0 0 1-.301.134zm.948-10.083V5h-.739a1.47 1.47 0 0 1-.394.523c-.168.142-.404.262-.708.365v.754a2.595 2.595 0 0 0 .937-.48v2.206h.904zM9 6h11v2H9zm0 5h11v2H9zm0 5h11v2H9z" }, child: [] }] })(t);
147
- }
148
- function et(t) {
149
- return i({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M4 6h2v2H4zm0 5h2v2H4zm0 5h2v2H4zm16-8V6H8.023v2H18.8zM8 11h12v2H8zm0 5h12v2H8z" }, child: [] }] })(t);
150
- }
151
- function y(t) {
152
- return i({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M12 22c5.421 0 10-4.579 10-10h-2c0 4.337-3.663 8-8 8s-8-3.663-8-8c0-4.336 3.663-8 8-8V2C6.579 2 2 6.58 2 12c0 5.421 4.579 10 10 10z" }, child: [] }] })(t);
153
- }
154
- function rt(t) {
155
- return i({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M20 11h-8c-4 0-4-1.816-4-2.5C8 7.882 8 6 12 6c2.8 0 2.99 1.678 3 2.014L16 8h1c0-1.384-1.045-4-5-4-5.416 0-6 3.147-6 4.5 0 .728.148 1.667.736 2.5H4v2h16v-2zm-8 7c-3.793 0-3.99-1.815-4-2H6c0 .04.069 4 6 4 5.221 0 6-2.819 6-4.5 0-.146-.009-.317-.028-.5h-2.006c.032.2.034.376.034.5 0 .684 0 2.5-4 2.5z" }, child: [] }] })(t);
156
- }
157
- function at(t) {
158
- return i({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M5 18h14v2H5zM6 4v6c0 3.309 2.691 6 6 6s6-2.691 6-6V4h-2v6c0 2.206-1.794 4-4 4s-4-1.794-4-4V4H6z" }, child: [] }] })(t);
159
- }
160
- function it(t) {
161
- return i({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M16.949 14.121 19.071 12a5.008 5.008 0 0 0 0-7.071 5.006 5.006 0 0 0-7.071 0l-.707.707 1.414 1.414.707-.707a3.007 3.007 0 0 1 4.243 0 3.005 3.005 0 0 1 0 4.243l-2.122 2.121a2.723 2.723 0 0 1-.844.57L13.414 12l1.414-1.414-.707-.707a4.965 4.965 0 0 0-3.535-1.465c-.235 0-.464.032-.691.066L3.707 2.293 2.293 3.707l18 18 1.414-1.414-5.536-5.536c.277-.184.538-.396.778-.636zm-6.363 3.536a3.007 3.007 0 0 1-4.243 0 3.005 3.005 0 0 1 0-4.243l1.476-1.475-1.414-1.414L4.929 12a5.008 5.008 0 0 0 0 7.071 4.983 4.983 0 0 0 3.535 1.462A4.982 4.982 0 0 0 12 19.071l.707-.707-1.414-1.414-.707.707z" }, child: [] }] })(t);
162
- }
163
- const nt = d.Root, R = m.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ c.jsx(
164
- d.List,
165
- {
166
- ref: r,
167
- className: u(
168
- "inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",
169
- t
170
- ),
171
- ...e
172
- }
173
- ));
174
- R.displayName = d.List.displayName;
175
- const T = m.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ c.jsx(
176
- d.Trigger,
177
- {
178
- ref: r,
179
- className: u(
180
- "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
181
- t
182
- ),
183
- "data-levo-studio-interactive": "true",
184
- ...e
185
- }
186
- ));
187
- T.displayName = d.Trigger.displayName;
188
- const _ = m.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ c.jsx(
189
- d.Content,
190
- {
191
- ref: r,
192
- className: u(
193
- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
194
- t
195
- ),
196
- ...e
197
- }
198
- ));
199
- _.displayName = d.Content.displayName;
200
- const V = O(
201
- "inline-flex items-center justify-center text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed",
202
- {
203
- variants: {
204
- variant: {
205
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
206
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
207
- outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
208
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
209
- secondaryOutline: "bg-transparent border-[1px] border-solid border-white hover:bg-white hover:border-input",
210
- ghost: "hover:bg-accent hover:text-accent-foreground",
211
- link: "text-primary underline-offset-4 hover:underline"
212
- },
213
- size: {
214
- default: "h-10 px-4 py-2",
215
- xs: "h-8 px-3 text-xs",
216
- sm: "h-9 px-3",
217
- lg: "h-11 px-8",
218
- icon: "h-10 w-10",
219
- "icon-small": "h-8 w-8"
220
- },
221
- rounded: {
222
- small: "rounded",
223
- default: "rounded-md",
224
- large: "rounded-lg",
225
- full: "rounded-full"
226
- }
227
- },
228
- defaultVariants: {
229
- variant: "default",
230
- size: "default",
231
- rounded: "default"
232
- }
233
- }
234
- ), A = m.forwardRef(
235
- ({
236
- className: t,
237
- variant: e,
238
- size: r,
239
- rounded: a,
240
- asChild: n = !1,
241
- isLoading: o = !1,
242
- loadingText: h,
243
- disabled: v,
244
- ...s
245
- }, w) => {
246
- const H = n ? B : "button";
247
- return /* @__PURE__ */ c.jsx(
248
- H,
249
- {
250
- className: u(V({ variant: e, size: r, rounded: a, className: t })),
251
- ref: w,
252
- disabled: v || o,
253
- type: "button",
254
- ...s,
255
- children: o ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
256
- /* @__PURE__ */ c.jsx(
257
- y,
258
- {
259
- className: j(
260
- "h-4 w-4 animate-spin",
261
- h ? "mr-2" : ""
262
- )
263
- }
264
- ),
265
- h
266
- ] }) : s.children
267
- }
268
- );
269
- }
270
- );
271
- A.displayName = "Button";
272
- const ot = ({ className: t }) => /* @__PURE__ */ c.jsx(y, { className: u("h-8 w-8 animate-spin font-light", t) });
273
- export {
274
- A as B,
275
- i as G,
276
- ot as S,
277
- nt as T,
278
- R as a,
279
- V as b,
280
- T as c,
281
- _ as d,
282
- Q as e,
283
- Z as f,
284
- at as g,
285
- rt as h,
286
- et as i,
287
- tt as j,
288
- $ as k,
289
- it as l,
290
- F as m,
291
- J as n,
292
- K as o,
293
- q as p,
294
- y as q,
295
- X as r,
296
- Y as s
297
- };
@@ -1,144 +0,0 @@
1
- "use client";
2
- import { j as a } from "./jsx-runtime-B6kdoens.js";
3
- import * as s from "@radix-ui/react-dialog";
4
- import { X as N } from "lucide-react";
5
- import * as n from "react";
6
- import { c as l } from "./cn-C9QoOYNG.js";
7
- import * as d from "@radix-ui/react-tooltip";
8
- const j = s.Root, C = s.Trigger, y = s.Portal, m = n.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ a.jsx(
9
- s.Overlay,
10
- {
11
- ref: o,
12
- className: l(
13
- "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
14
- t
15
- ),
16
- ...e
17
- }
18
- ));
19
- m.displayName = s.Overlay.displayName;
20
- const c = n.forwardRef(({ className: t, children: e, hideCloseButton: o, ...i }, r) => /* @__PURE__ */ a.jsxs(y, { children: [
21
- /* @__PURE__ */ a.jsx(m, {}),
22
- /* @__PURE__ */ a.jsxs(
23
- s.Content,
24
- {
25
- ref: r,
26
- className: l(
27
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",
28
- t
29
- ),
30
- ...i,
31
- children: [
32
- e,
33
- !o && /* @__PURE__ */ a.jsxs(s.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
34
- /* @__PURE__ */ a.jsx(N, { className: "h-4 w-4" }),
35
- /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
36
- ] })
37
- ]
38
- }
39
- )
40
- ] }));
41
- c.displayName = s.Content.displayName;
42
- const p = ({
43
- className: t,
44
- ...e
45
- }) => /* @__PURE__ */ a.jsx(
46
- "div",
47
- {
48
- className: l(
49
- "flex flex-col space-y-1.5 text-center sm:text-left",
50
- t
51
- ),
52
- ...e
53
- }
54
- );
55
- p.displayName = "DialogHeader";
56
- const h = ({
57
- className: t,
58
- ...e
59
- }) => /* @__PURE__ */ a.jsx(
60
- "div",
61
- {
62
- className: l(
63
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
64
- t
65
- ),
66
- ...e
67
- }
68
- );
69
- h.displayName = "DialogFooter";
70
- const f = n.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ a.jsx(
71
- s.Title,
72
- {
73
- ref: o,
74
- className: l(
75
- "text-lg font-semibold leading-none tracking-tight",
76
- t
77
- ),
78
- ...e
79
- }
80
- ));
81
- f.displayName = s.Title.displayName;
82
- const g = n.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ a.jsx(
83
- s.Description,
84
- {
85
- ref: o,
86
- className: l("text-sm text-muted-foreground", t),
87
- ...e
88
- }
89
- ));
90
- g.displayName = s.Description.displayName;
91
- const R = ({
92
- isOpen: t,
93
- onClose: e,
94
- children: o,
95
- title: i,
96
- contentClassName: r,
97
- modal: u = !0
98
- }) => /* @__PURE__ */ a.jsx(j, { open: t, onOpenChange: e, modal: u, children: /* @__PURE__ */ a.jsxs(c, { className: r, children: [
99
- i && /* @__PURE__ */ a.jsxs(p, { className: "flex-1 font-medium", children: [
100
- /* @__PURE__ */ a.jsx(f, { children: i }),
101
- /* @__PURE__ */ a.jsx(g, {})
102
- ] }),
103
- /* @__PURE__ */ a.jsx("div", { className: "w-full", children: o })
104
- ] }) }), P = d.Provider, D = d.Root, b = d.Trigger, z = d.Portal, x = n.forwardRef(({ className: t, sideOffset: e = 4, ...o }, i) => /* @__PURE__ */ a.jsx(
105
- d.Content,
106
- {
107
- ref: i,
108
- sideOffset: e,
109
- className: l(
110
- "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 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",
111
- t
112
- ),
113
- ...o
114
- }
115
- ));
116
- x.displayName = d.Content.displayName;
117
- const k = ({
118
- children: t,
119
- label: e,
120
- labelClassName: o,
121
- contentClassName: i,
122
- asChild: r = !0
123
- }) => /* @__PURE__ */ a.jsxs(D, { children: [
124
- e && /* @__PURE__ */ a.jsx(x, { className: o, children: /* @__PURE__ */ a.jsx("p", { className: i, children: e }) }),
125
- /* @__PURE__ */ a.jsx(b, { asChild: r, children: t })
126
- ] });
127
- export {
128
- j as D,
129
- k as S,
130
- D as T,
131
- y as a,
132
- m as b,
133
- C as c,
134
- c as d,
135
- p as e,
136
- h as f,
137
- f as g,
138
- g as h,
139
- R as i,
140
- b as j,
141
- x as k,
142
- P as l,
143
- z as m
144
- };