@levo-so/react 0.1.14 → 0.1.16

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 (106) hide show
  1. package/dist/CheckboxWidget-CNoS-2W3.js +124 -0
  2. package/dist/CollectionFormBuilder-MAo2Ob3a.js +1199 -0
  3. package/dist/{CurrencyWidget-COoMkfsA.js → CurrencyWidget-Cu1Cthnw.js} +5 -5
  4. package/dist/{DateTimeWidget-DcbQ3smI.js → DateTimeWidget-N-wuCRSJ.js} +3 -3
  5. package/dist/DefaultFormVariant-IqWi1BiT.js +81 -0
  6. package/dist/DropdownWidget-BFttB4b-.js +115 -0
  7. package/dist/{EmailWidget-CG9oNUM5.js → EmailWidget-D_SqXx3M.js} +11 -11
  8. package/dist/FormCaptcha-CJ9KgDu0.js +197 -0
  9. package/dist/GeocoderWidget-Bxt3TeAf.js +68 -0
  10. package/dist/LevoProvider-BAZy7_tP.js +223 -0
  11. package/dist/{MultiGeocoderWidget-D3Xmv8g4.js → MultiGeocoderWidget-DFjuXZBN.js} +6 -6
  12. package/dist/{MultiTextWidget-CyQRcWC8.js → MultiTextWidget-CZzT51cH.js} +14 -14
  13. package/dist/{PhoneWidget-C1Jt7kXL.js → PhoneWidget--K5aS16s.js} +5 -5
  14. package/dist/{RadioWidget-BrLNF-I2.js → RadioWidget-BbMPtR3P.js} +9 -9
  15. package/dist/{RichTextWidget-BogYcPtS.js → RichTextWidget-Cce3Bw8d.js} +21 -21
  16. package/dist/Spinner-Bzu2xCFZ.js +405 -0
  17. package/dist/{StepsFormVariant-Bx-jdciC.js → StepsFormVariant-5wZbYAA9.js} +58 -55
  18. package/dist/{SwitchWidget-BT0-waP9.js → SwitchWidget-B0wkSWxa.js} +5 -5
  19. package/dist/{TextWidget-Bvsz-hey.js → TextWidget-ldbMuLB0.js} +7 -7
  20. package/dist/{TextareaWidget-8SLym--T.js → TextareaWidget-S8bKUTv0.js} +3 -3
  21. package/dist/{ToggleCheckboxWidget-VrCQBF5C.js → ToggleCheckboxWidget-CPduXE6Y.js} +7 -7
  22. package/dist/Tooltip-DEBnSqlo.js +36 -0
  23. package/dist/{URLWidget-B99nKr6N.js → URLWidget-KbhE2ZUA.js} +2 -2
  24. package/dist/UploadWidget-DFvfDUT6.js +616 -0
  25. package/dist/audience/components/block.d.ts.map +1 -1
  26. package/dist/audience/components/component.d.ts.map +1 -1
  27. package/dist/audience/components/page.d.ts.map +1 -1
  28. package/dist/audience/index.js +1 -1
  29. package/dist/collection/components/Altcha.d.ts +10 -0
  30. package/dist/collection/components/Altcha.d.ts.map +1 -0
  31. package/dist/collection/components/FormCaptcha.d.ts +3 -0
  32. package/dist/collection/components/FormCaptcha.d.ts.map +1 -0
  33. package/dist/collection/components/core/AsyncSelectPaginate/AsyncSelectPaginate.d.ts.map +1 -1
  34. package/dist/collection/components/core/Checkbox/Checbox.d.ts.map +1 -1
  35. package/dist/collection/components/core/Input/Input.d.ts.map +1 -1
  36. package/dist/collection/components/core/Switch/Switch.d.ts.map +1 -1
  37. package/dist/collection/components/renderer/RenderCommonField.d.ts.map +1 -1
  38. package/dist/collection/components/widgets/FieldWrapper.d.ts.map +1 -1
  39. package/dist/collection/components/widgets/FormHelperText.d.ts.map +1 -1
  40. package/dist/collection/components/widgets/FormLabel.d.ts.map +1 -1
  41. package/dist/collection/components/widgets/checkboxWidget/CheckboxWidget.d.ts +1 -1
  42. package/dist/collection/components/widgets/checkboxWidget/CheckboxWidget.d.ts.map +1 -1
  43. package/dist/collection/components/widgets/collectionWidget/CollectionWidgetM2M.d.ts +7 -0
  44. package/dist/collection/components/widgets/collectionWidget/CollectionWidgetM2M.d.ts.map +1 -0
  45. package/dist/collection/components/widgets/collectionWidget/{CollectionWidget.d.ts → CollectionWidgetM2O.d.ts} +1 -1
  46. package/dist/collection/components/widgets/collectionWidget/CollectionWidgetM2O.d.ts.map +1 -0
  47. package/dist/collection/components/widgets/collectionWidget/SelectedCollectionItems.d.ts +8 -0
  48. package/dist/collection/components/widgets/collectionWidget/SelectedCollectionItems.d.ts.map +1 -0
  49. package/dist/collection/components/widgets/currencyWidget/CurrencyWidget.d.ts.map +1 -1
  50. package/dist/collection/components/widgets/dateTimeWidget/DateTimeWidget.d.ts.map +1 -1
  51. package/dist/collection/components/widgets/dropdownWidget/DropdownWidget.d.ts.map +1 -1
  52. package/dist/collection/components/widgets/geocoderWidget/GeocoderWidget.d.ts.map +1 -1
  53. package/dist/collection/components/widgets/multiGeocoderWidget/MultiGeocoderWidget.d.ts.map +1 -1
  54. package/dist/collection/components/widgets/multiTextWidget/MultiTextWidget.d.ts.map +1 -1
  55. package/dist/collection/components/widgets/phoneWidget/PhoneWidget.d.ts.map +1 -1
  56. package/dist/collection/components/widgets/radioWidget/RadioWidget.d.ts.map +1 -1
  57. package/dist/collection/components/widgets/richTextWidget/RichTextWidget.d.ts.map +1 -1
  58. package/dist/collection/components/widgets/textWidget/TextWidget.d.ts.map +1 -1
  59. package/dist/collection/components/widgets/textareaWidget/TextareaWidget.d.ts.map +1 -1
  60. package/dist/collection/components/widgets/uploadWidget/ExternalURL.d.ts +11 -0
  61. package/dist/collection/components/widgets/uploadWidget/ExternalURL.d.ts.map +1 -0
  62. package/dist/collection/components/widgets/uploadWidget/FileUploadDropBox.d.ts.map +1 -1
  63. package/dist/collection/components/widgets/uploadWidget/FileUploadModal.d.ts.map +1 -1
  64. package/dist/collection/components/widgets/uploadWidget/ImportFromAssets.d.ts.map +1 -1
  65. package/dist/collection/components/widgets/uploadWidget/UploadWidget.d.ts.map +1 -1
  66. package/dist/collection/index.js +13 -12
  67. package/dist/collection/lib/FormBuilder.d.ts.map +1 -1
  68. package/dist/collection/lib/SaveDraftValues.d.ts.map +1 -1
  69. package/dist/collection/lib/hooks/useLevoForm.d.ts.map +1 -1
  70. package/dist/collection/lib/variants/DefaultFormVariant.d.ts.map +1 -1
  71. package/dist/collection/lib/variants/StepsFormVariant.d.ts.map +1 -1
  72. package/dist/collection/utils/formHelpers.d.ts.map +1 -1
  73. package/dist/collection/utils/index.d.ts +2 -0
  74. package/dist/collection/utils/index.d.ts.map +1 -1
  75. package/dist/components/Dialog.d.ts.map +1 -1
  76. package/dist/components/Spinner.d.ts.map +1 -1
  77. package/dist/components/Table.d.ts +11 -0
  78. package/dist/components/Table.d.ts.map +1 -0
  79. package/dist/components/Tabs.d.ts.map +1 -1
  80. package/dist/components/Tooltip.d.ts.map +1 -1
  81. package/dist/components/button/Button.d.ts.map +1 -1
  82. package/dist/components/index.js +29 -29
  83. package/dist/constants/fileUploadPresets.d.ts +4 -2
  84. package/dist/constants/fileUploadPresets.d.ts.map +1 -1
  85. package/dist/index.css +1 -1
  86. package/dist/index.js +75 -75
  87. package/dist/membership/components/Button.d.ts.map +1 -1
  88. package/dist/membership/components/Container.d.ts.map +1 -1
  89. package/dist/membership/components/Core.d.ts.map +1 -1
  90. package/dist/membership/index.js +2 -3
  91. package/dist/page-BKyDlf0z.js +212 -0
  92. package/dist/utils/errorHandler.d.ts.map +1 -1
  93. package/package.json +12 -11
  94. package/dist/CheckboxWidget-BctVOZiO.js +0 -118
  95. package/dist/CollectionFormBuilder-B6CAVKhg.js +0 -772
  96. package/dist/DefaultFormVariant-C6zbKgwB.js +0 -80
  97. package/dist/DropdownWidget-DszCTSWr.js +0 -115
  98. package/dist/GeocoderWidget-CXu17A7y.js +0 -310
  99. package/dist/LevoProvider-BI6g_T4E.js +0 -212
  100. package/dist/Spinner-DzGH5rKe.js +0 -297
  101. package/dist/Tooltip-CI4i4mYr.js +0 -144
  102. package/dist/UploadWidget-ZebPWZZZ.js +0 -505
  103. package/dist/collection/components/widgets/collectionWidget/CollectionWidget.d.ts.map +0 -1
  104. package/dist/fileUploadPresets-2raQmHT0.js +0 -74
  105. package/dist/page-yeiAPg3O.js +0 -200
  106. package/dist/useLevoForm-DjvUas25.js +0 -166
@@ -1,212 +0,0 @@
1
- "use client";
2
- var j = Object.defineProperty;
3
- var D = (r, l, o) => l in r ? j(r, l, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[l] = o;
4
- var p = (r, l, o) => D(r, typeof l != "symbol" ? l + "" : l, o);
5
- import { j as B } from "./jsx-runtime-B6kdoens.js";
6
- import k from "wretch";
7
- import { createContext as G, useContext as W } from "react";
8
- var q = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9
- function z(r) {
10
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
11
- }
12
- var T = class {
13
- constructor(r) {
14
- p(this, "client");
15
- this.client = r;
16
- }
17
- }, F = { exports: {} };
18
- (function(r) {
19
- (function(l, o) {
20
- r.exports ? r.exports = o() : l.log = o();
21
- })(q, function() {
22
- var l = function() {
23
- }, o = "undefined", L = typeof window !== o && typeof window.navigator !== o && /Trident\/|MSIE /.test(window.navigator.userAgent), g = [
24
- "trace",
25
- "debug",
26
- "info",
27
- "warn",
28
- "error"
29
- ], c = {}, a = null;
30
- function b(t, i) {
31
- var e = t[i];
32
- if (typeof e.bind == "function")
33
- return e.bind(t);
34
- try {
35
- return Function.prototype.bind.call(e, t);
36
- } catch {
37
- return function() {
38
- return Function.prototype.apply.apply(e, [t, arguments]);
39
- };
40
- }
41
- }
42
- function S() {
43
- console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
44
- }
45
- function U(t) {
46
- return t === "debug" && (t = "log"), typeof console === o ? !1 : t === "trace" && L ? S : console[t] !== void 0 ? b(console, t) : console.log !== void 0 ? b(console, "log") : l;
47
- }
48
- function d() {
49
- for (var t = this.getLevel(), i = 0; i < g.length; i++) {
50
- var e = g[i];
51
- this[e] = i < t ? l : this.methodFactory(e, t, this.name);
52
- }
53
- if (this.log = this.debug, typeof console === o && t < this.levels.SILENT)
54
- return "No console available for logging";
55
- }
56
- function A(t) {
57
- return function() {
58
- typeof console !== o && (d.call(this), this[t].apply(this, arguments));
59
- };
60
- }
61
- function M(t, i, e) {
62
- return U(t) || A.apply(this, arguments);
63
- }
64
- function E(t, i) {
65
- var e = this, w, m, f, u = "loglevel";
66
- typeof t == "string" ? u += ":" + t : typeof t == "symbol" && (u = void 0);
67
- function O(n) {
68
- var s = (g[n] || "silent").toUpperCase();
69
- if (!(typeof window === o || !u)) {
70
- try {
71
- window.localStorage[u] = s;
72
- return;
73
- } catch {
74
- }
75
- try {
76
- window.document.cookie = encodeURIComponent(u) + "=" + s + ";";
77
- } catch {
78
- }
79
- }
80
- }
81
- function C() {
82
- var n;
83
- if (!(typeof window === o || !u)) {
84
- try {
85
- n = window.localStorage[u];
86
- } catch {
87
- }
88
- if (typeof n === o)
89
- try {
90
- var s = window.document.cookie, h = encodeURIComponent(u), I = s.indexOf(h + "=");
91
- I !== -1 && (n = /^([^;]+)/.exec(
92
- s.slice(I + h.length + 1)
93
- )[1]);
94
- } catch {
95
- }
96
- return e.levels[n] === void 0 && (n = void 0), n;
97
- }
98
- }
99
- function P() {
100
- if (!(typeof window === o || !u)) {
101
- try {
102
- window.localStorage.removeItem(u);
103
- } catch {
104
- }
105
- try {
106
- window.document.cookie = encodeURIComponent(u) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
107
- } catch {
108
- }
109
- }
110
- }
111
- function v(n) {
112
- var s = n;
113
- if (typeof s == "string" && e.levels[s.toUpperCase()] !== void 0 && (s = e.levels[s.toUpperCase()]), typeof s == "number" && s >= 0 && s <= e.levels.SILENT)
114
- return s;
115
- throw new TypeError("log.setLevel() called with invalid level: " + n);
116
- }
117
- e.name = t, e.levels = {
118
- TRACE: 0,
119
- DEBUG: 1,
120
- INFO: 2,
121
- WARN: 3,
122
- ERROR: 4,
123
- SILENT: 5
124
- }, e.methodFactory = i || M, e.getLevel = function() {
125
- return f ?? m ?? w;
126
- }, e.setLevel = function(n, s) {
127
- return f = v(n), s !== !1 && O(f), d.call(e);
128
- }, e.setDefaultLevel = function(n) {
129
- m = v(n), C() || e.setLevel(n, !1);
130
- }, e.resetLevel = function() {
131
- f = null, P(), d.call(e);
132
- }, e.enableAll = function(n) {
133
- e.setLevel(e.levels.TRACE, n);
134
- }, e.disableAll = function(n) {
135
- e.setLevel(e.levels.SILENT, n);
136
- }, e.rebuild = function() {
137
- if (a !== e && (w = v(a.getLevel())), d.call(e), a === e)
138
- for (var n in c)
139
- c[n].rebuild();
140
- }, w = v(
141
- a ? a.getLevel() : "WARN"
142
- );
143
- var x = C();
144
- x != null && (f = v(x)), d.call(e);
145
- }
146
- a = new E(), a.getLogger = function(i) {
147
- if (typeof i != "symbol" && typeof i != "string" || i === "")
148
- throw new TypeError("You must supply a name when creating a logger.");
149
- var e = c[i];
150
- return e || (e = c[i] = new E(
151
- i,
152
- a.methodFactory
153
- )), e;
154
- };
155
- var N = typeof window !== o ? window.log : void 0;
156
- return a.noConflict = function() {
157
- return typeof window !== o && window.log === a && (window.log = N), a;
158
- }, a.getLoggers = function() {
159
- return c;
160
- }, a.default = a, a;
161
- });
162
- })(F);
163
- var J = F.exports;
164
- const y = /* @__PURE__ */ z(J);
165
- var K = class extends T {
166
- constructor(l) {
167
- super(l);
168
- p(this, "logger", y);
169
- y.setLevel(
170
- this.client.NODE_ENV === "production" ? y.levels.INFO : y.levels.DEBUG
171
- ), y.methodFactory = (o) => (L, g = {}) => {
172
- k().url(`${this.client.apiUrl}/v1/apm/logs/json`).post({
173
- timestamp: (/* @__PURE__ */ new Date()).toISOString(),
174
- level: o,
175
- message: L,
176
- ...g
177
- }).res().catch((c) => console.error(c));
178
- };
179
- }
180
- }, V = class extends T {
181
- constructor() {
182
- super(...arguments);
183
- p(this, "mediaBulkUpload", (l, o = {}) => this.client.fetch.url("/v1/assets/media/bulk").options(o).post(l).json());
184
- p(this, "getAllMedia", async (l = {}) => await this.client.fetch.url("/v1/assets/media/query").post(l).json());
185
- }
186
- };
187
- const R = G(null), X = ({
188
- children: r,
189
- client: l,
190
- ...o
191
- }) => /* @__PURE__ */ B.jsx(
192
- R.Provider,
193
- {
194
- value: {
195
- client: l,
196
- media: new V(l),
197
- logger: new K(l),
198
- ...o
199
- },
200
- children: r
201
- }
202
- ), Z = () => {
203
- const r = W(R);
204
- if (!r)
205
- throw new Error("useLevo must be used within LevoProvider");
206
- return r;
207
- };
208
- export {
209
- X as L,
210
- q as c,
211
- Z as u
212
- };
@@ -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
- };