@windrun-huaiin/third-ui 5.9.5 → 5.9.7
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.
- package/dist/clerk/index.js +101 -88
- package/dist/clerk/index.js.map +1 -1
- package/dist/clerk/index.mjs +101 -88
- package/dist/clerk/index.mjs.map +1 -1
- package/dist/fuma/mdx/index.js +110 -93
- package/dist/fuma/mdx/index.js.map +1 -1
- package/dist/fuma/mdx/index.mjs +110 -93
- package/dist/fuma/mdx/index.mjs.map +1 -1
- package/dist/fuma/server.js +101 -88
- package/dist/fuma/server.js.map +1 -1
- package/dist/fuma/server.mjs +101 -88
- package/dist/fuma/server.mjs.map +1 -1
- package/dist/main/index.d.mts +44 -2
- package/dist/main/index.d.ts +44 -2
- package/dist/main/index.js +255 -95
- package/dist/main/index.js.map +1 -1
- package/dist/main/index.mjs +252 -94
- package/dist/main/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/fuma/mdx/gradient-button.tsx +14 -14
- package/src/main/index.ts +2 -1
- package/src/main/x-button.tsx +199 -0
package/dist/main/index.mjs
CHANGED
|
@@ -1277,6 +1277,7 @@ __export(limited_lucide_icons_exports, {
|
|
|
1277
1277
|
Info: () => Info,
|
|
1278
1278
|
Keyboard: () => Keyboard,
|
|
1279
1279
|
LandPlot: () => LandPlot,
|
|
1280
|
+
Languages: () => Languages,
|
|
1280
1281
|
Layout: () => PanelsTopLeft,
|
|
1281
1282
|
LayoutTemplate: () => LayoutTemplate,
|
|
1282
1283
|
LibraryIcon: () => Library,
|
|
@@ -2110,86 +2111,97 @@ var __iconNode62 = [
|
|
|
2110
2111
|
];
|
|
2111
2112
|
var LandPlot = createLucideIcon("land-plot", __iconNode62);
|
|
2112
2113
|
|
|
2113
|
-
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/
|
|
2114
|
+
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/languages.js
|
|
2114
2115
|
var __iconNode63 = [
|
|
2116
|
+
["path", { d: "m5 8 6 6", key: "1wu5hv" }],
|
|
2117
|
+
["path", { d: "m4 14 6-6 2-3", key: "1k1g8d" }],
|
|
2118
|
+
["path", { d: "M2 5h12", key: "or177f" }],
|
|
2119
|
+
["path", { d: "M7 2h1", key: "1t2jsx" }],
|
|
2120
|
+
["path", { d: "m22 22-5-10-5 10", key: "don7ne" }],
|
|
2121
|
+
["path", { d: "M14 18h6", key: "1m8k6r" }]
|
|
2122
|
+
];
|
|
2123
|
+
var Languages = createLucideIcon("languages", __iconNode63);
|
|
2124
|
+
|
|
2125
|
+
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/layout-template.js
|
|
2126
|
+
var __iconNode64 = [
|
|
2115
2127
|
["rect", { width: "18", height: "7", x: "3", y: "3", rx: "1", key: "f1a2em" }],
|
|
2116
2128
|
["rect", { width: "9", height: "7", x: "3", y: "14", rx: "1", key: "jqznyg" }],
|
|
2117
2129
|
["rect", { width: "5", height: "7", x: "16", y: "14", rx: "1", key: "q5h2i8" }]
|
|
2118
2130
|
];
|
|
2119
|
-
var LayoutTemplate = createLucideIcon("layout-template",
|
|
2131
|
+
var LayoutTemplate = createLucideIcon("layout-template", __iconNode64);
|
|
2120
2132
|
|
|
2121
2133
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/library.js
|
|
2122
|
-
var
|
|
2134
|
+
var __iconNode65 = [
|
|
2123
2135
|
["path", { d: "m16 6 4 14", key: "ji33uf" }],
|
|
2124
2136
|
["path", { d: "M12 6v14", key: "1n7gus" }],
|
|
2125
2137
|
["path", { d: "M8 8v12", key: "1gg7y9" }],
|
|
2126
2138
|
["path", { d: "M4 4v16", key: "6qkkli" }]
|
|
2127
2139
|
];
|
|
2128
|
-
var Library = createLucideIcon("library",
|
|
2140
|
+
var Library = createLucideIcon("library", __iconNode65);
|
|
2129
2141
|
|
|
2130
2142
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/link.js
|
|
2131
|
-
var
|
|
2143
|
+
var __iconNode66 = [
|
|
2132
2144
|
["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }],
|
|
2133
2145
|
["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }]
|
|
2134
2146
|
];
|
|
2135
|
-
var Link = createLucideIcon("link",
|
|
2147
|
+
var Link = createLucideIcon("link", __iconNode66);
|
|
2136
2148
|
|
|
2137
2149
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/list-todo.js
|
|
2138
|
-
var
|
|
2150
|
+
var __iconNode67 = [
|
|
2139
2151
|
["rect", { x: "3", y: "5", width: "6", height: "6", rx: "1", key: "1defrl" }],
|
|
2140
2152
|
["path", { d: "m3 17 2 2 4-4", key: "1jhpwq" }],
|
|
2141
2153
|
["path", { d: "M13 6h8", key: "15sg57" }],
|
|
2142
2154
|
["path", { d: "M13 12h8", key: "h98zly" }],
|
|
2143
2155
|
["path", { d: "M13 18h8", key: "oe0vm4" }]
|
|
2144
2156
|
];
|
|
2145
|
-
var ListTodo = createLucideIcon("list-todo",
|
|
2157
|
+
var ListTodo = createLucideIcon("list-todo", __iconNode67);
|
|
2146
2158
|
|
|
2147
2159
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/loader-circle.js
|
|
2148
|
-
var
|
|
2149
|
-
var LoaderCircle = createLucideIcon("loader-circle",
|
|
2160
|
+
var __iconNode68 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
2161
|
+
var LoaderCircle = createLucideIcon("loader-circle", __iconNode68);
|
|
2150
2162
|
|
|
2151
2163
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/log-in.js
|
|
2152
|
-
var
|
|
2164
|
+
var __iconNode69 = [
|
|
2153
2165
|
["path", { d: "m10 17 5-5-5-5", key: "1bsop3" }],
|
|
2154
2166
|
["path", { d: "M15 12H3", key: "6jk70r" }],
|
|
2155
2167
|
["path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4", key: "u53s6r" }]
|
|
2156
2168
|
];
|
|
2157
|
-
var LogIn = createLucideIcon("log-in",
|
|
2169
|
+
var LogIn = createLucideIcon("log-in", __iconNode69);
|
|
2158
2170
|
|
|
2159
2171
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/log-out.js
|
|
2160
|
-
var
|
|
2172
|
+
var __iconNode70 = [
|
|
2161
2173
|
["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
|
|
2162
2174
|
["path", { d: "M21 12H9", key: "dn1m92" }],
|
|
2163
2175
|
["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
|
|
2164
2176
|
];
|
|
2165
|
-
var LogOut = createLucideIcon("log-out",
|
|
2177
|
+
var LogOut = createLucideIcon("log-out", __iconNode70);
|
|
2166
2178
|
|
|
2167
2179
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/mail.js
|
|
2168
|
-
var
|
|
2180
|
+
var __iconNode71 = [
|
|
2169
2181
|
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
2170
2182
|
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
2171
2183
|
];
|
|
2172
|
-
var Mail = createLucideIcon("mail",
|
|
2184
|
+
var Mail = createLucideIcon("mail", __iconNode71);
|
|
2173
2185
|
|
|
2174
2186
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/message-circle-code.js
|
|
2175
|
-
var
|
|
2187
|
+
var __iconNode72 = [
|
|
2176
2188
|
["path", { d: "M10 9.5 8 12l2 2.5", key: "3mjy60" }],
|
|
2177
2189
|
["path", { d: "m14 9.5 2 2.5-2 2.5", key: "1bir2l" }],
|
|
2178
2190
|
["path", { d: "M7.9 20A9 9 0 1 0 4 16.1L2 22z", key: "k85zhp" }]
|
|
2179
2191
|
];
|
|
2180
|
-
var MessageCircleCode = createLucideIcon("message-circle-code",
|
|
2192
|
+
var MessageCircleCode = createLucideIcon("message-circle-code", __iconNode72);
|
|
2181
2193
|
|
|
2182
2194
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/message-circle-more.js
|
|
2183
|
-
var
|
|
2195
|
+
var __iconNode73 = [
|
|
2184
2196
|
["path", { d: "M7.9 20A9 9 0 1 0 4 16.1L2 22Z", key: "vv11sd" }],
|
|
2185
2197
|
["path", { d: "M8 12h.01", key: "czm47f" }],
|
|
2186
2198
|
["path", { d: "M12 12h.01", key: "1mp3jc" }],
|
|
2187
2199
|
["path", { d: "M16 12h.01", key: "1l6xoz" }]
|
|
2188
2200
|
];
|
|
2189
|
-
var MessageCircleMore = createLucideIcon("message-circle-more",
|
|
2201
|
+
var MessageCircleMore = createLucideIcon("message-circle-more", __iconNode73);
|
|
2190
2202
|
|
|
2191
2203
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/mouse-pointer-click.js
|
|
2192
|
-
var
|
|
2204
|
+
var __iconNode74 = [
|
|
2193
2205
|
["path", { d: "M14 4.1 12 6", key: "ita8i4" }],
|
|
2194
2206
|
["path", { d: "m5.1 8-2.9-.8", key: "1go3kf" }],
|
|
2195
2207
|
["path", { d: "m6 12-1.9 2", key: "mnht97" }],
|
|
@@ -2202,10 +2214,10 @@ var __iconNode73 = [
|
|
|
2202
2214
|
}
|
|
2203
2215
|
]
|
|
2204
2216
|
];
|
|
2205
|
-
var MousePointerClick = createLucideIcon("mouse-pointer-click",
|
|
2217
|
+
var MousePointerClick = createLucideIcon("mouse-pointer-click", __iconNode74);
|
|
2206
2218
|
|
|
2207
2219
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/palette.js
|
|
2208
|
-
var
|
|
2220
|
+
var __iconNode75 = [
|
|
2209
2221
|
[
|
|
2210
2222
|
"path",
|
|
2211
2223
|
{
|
|
@@ -2218,25 +2230,25 @@ var __iconNode74 = [
|
|
|
2218
2230
|
["circle", { cx: "6.5", cy: "12.5", r: ".5", fill: "currentColor", key: "qy21gx" }],
|
|
2219
2231
|
["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }]
|
|
2220
2232
|
];
|
|
2221
|
-
var Palette = createLucideIcon("palette",
|
|
2233
|
+
var Palette = createLucideIcon("palette", __iconNode75);
|
|
2222
2234
|
|
|
2223
2235
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/panel-left.js
|
|
2224
|
-
var
|
|
2236
|
+
var __iconNode76 = [
|
|
2225
2237
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
2226
2238
|
["path", { d: "M9 3v18", key: "fh3hqa" }]
|
|
2227
2239
|
];
|
|
2228
|
-
var PanelLeft = createLucideIcon("panel-left",
|
|
2240
|
+
var PanelLeft = createLucideIcon("panel-left", __iconNode76);
|
|
2229
2241
|
|
|
2230
2242
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/panels-top-left.js
|
|
2231
|
-
var
|
|
2243
|
+
var __iconNode77 = [
|
|
2232
2244
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
2233
2245
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
2234
2246
|
["path", { d: "M9 21V9", key: "1oto5p" }]
|
|
2235
2247
|
];
|
|
2236
|
-
var PanelsTopLeft = createLucideIcon("panels-top-left",
|
|
2248
|
+
var PanelsTopLeft = createLucideIcon("panels-top-left", __iconNode77);
|
|
2237
2249
|
|
|
2238
2250
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/paw-print.js
|
|
2239
|
-
var
|
|
2251
|
+
var __iconNode78 = [
|
|
2240
2252
|
["circle", { cx: "11", cy: "4", r: "2", key: "vol9p0" }],
|
|
2241
2253
|
["circle", { cx: "18", cy: "8", r: "2", key: "17gozi" }],
|
|
2242
2254
|
["circle", { cx: "20", cy: "16", r: "2", key: "1v9bxh" }],
|
|
@@ -2248,10 +2260,10 @@ var __iconNode77 = [
|
|
|
2248
2260
|
}
|
|
2249
2261
|
]
|
|
2250
2262
|
];
|
|
2251
|
-
var PawPrint = createLucideIcon("paw-print",
|
|
2263
|
+
var PawPrint = createLucideIcon("paw-print", __iconNode78);
|
|
2252
2264
|
|
|
2253
2265
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/pencil.js
|
|
2254
|
-
var
|
|
2266
|
+
var __iconNode79 = [
|
|
2255
2267
|
[
|
|
2256
2268
|
"path",
|
|
2257
2269
|
{
|
|
@@ -2261,18 +2273,18 @@ var __iconNode78 = [
|
|
|
2261
2273
|
],
|
|
2262
2274
|
["path", { d: "m15 5 4 4", key: "1mk7zo" }]
|
|
2263
2275
|
];
|
|
2264
|
-
var Pencil = createLucideIcon("pencil",
|
|
2276
|
+
var Pencil = createLucideIcon("pencil", __iconNode79);
|
|
2265
2277
|
|
|
2266
2278
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/pi.js
|
|
2267
|
-
var
|
|
2279
|
+
var __iconNode80 = [
|
|
2268
2280
|
["line", { x1: "9", x2: "9", y1: "4", y2: "20", key: "ovs5a5" }],
|
|
2269
2281
|
["path", { d: "M4 7c0-1.7 1.3-3 3-3h13", key: "10pag4" }],
|
|
2270
2282
|
["path", { d: "M18 20c-1.7 0-3-1.3-3-3V4", key: "1gaosr" }]
|
|
2271
2283
|
];
|
|
2272
|
-
var Pi = createLucideIcon("pi",
|
|
2284
|
+
var Pi = createLucideIcon("pi", __iconNode80);
|
|
2273
2285
|
|
|
2274
2286
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/qr-code.js
|
|
2275
|
-
var
|
|
2287
|
+
var __iconNode81 = [
|
|
2276
2288
|
["rect", { width: "5", height: "5", x: "3", y: "3", rx: "1", key: "1tu5fj" }],
|
|
2277
2289
|
["rect", { width: "5", height: "5", x: "16", y: "3", rx: "1", key: "1v8r4q" }],
|
|
2278
2290
|
["rect", { width: "5", height: "5", x: "3", y: "16", rx: "1", key: "1x03jg" }],
|
|
@@ -2286,10 +2298,10 @@ var __iconNode80 = [
|
|
|
2286
2298
|
["path", { d: "M21 12v.01", key: "1lwtk9" }],
|
|
2287
2299
|
["path", { d: "M12 21v-1", key: "1880an" }]
|
|
2288
2300
|
];
|
|
2289
|
-
var QrCode = createLucideIcon("qr-code",
|
|
2301
|
+
var QrCode = createLucideIcon("qr-code", __iconNode81);
|
|
2290
2302
|
|
|
2291
2303
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/receipt-text.js
|
|
2292
|
-
var
|
|
2304
|
+
var __iconNode82 = [
|
|
2293
2305
|
[
|
|
2294
2306
|
"path",
|
|
2295
2307
|
{ d: "M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z", key: "q3az6g" }
|
|
@@ -2298,19 +2310,19 @@ var __iconNode81 = [
|
|
|
2298
2310
|
["path", { d: "M16 12H8", key: "1fr5h0" }],
|
|
2299
2311
|
["path", { d: "M13 16H8", key: "wsln4y" }]
|
|
2300
2312
|
];
|
|
2301
|
-
var ReceiptText = createLucideIcon("receipt-text",
|
|
2313
|
+
var ReceiptText = createLucideIcon("receipt-text", __iconNode82);
|
|
2302
2314
|
|
|
2303
2315
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/refresh-ccw.js
|
|
2304
|
-
var
|
|
2316
|
+
var __iconNode83 = [
|
|
2305
2317
|
["path", { d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "14sxne" }],
|
|
2306
2318
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
2307
2319
|
["path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", key: "1hlbsb" }],
|
|
2308
2320
|
["path", { d: "M16 16h5v5", key: "ccwih5" }]
|
|
2309
2321
|
];
|
|
2310
|
-
var RefreshCcw = createLucideIcon("refresh-ccw",
|
|
2322
|
+
var RefreshCcw = createLucideIcon("refresh-ccw", __iconNode83);
|
|
2311
2323
|
|
|
2312
2324
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/regex.js
|
|
2313
|
-
var
|
|
2325
|
+
var __iconNode84 = [
|
|
2314
2326
|
["path", { d: "M17 3v10", key: "15fgeh" }],
|
|
2315
2327
|
["path", { d: "m12.67 5.5 8.66 5", key: "1gpheq" }],
|
|
2316
2328
|
["path", { d: "m12.67 10.5 8.66-5", key: "1dkfa6" }],
|
|
@@ -2319,10 +2331,10 @@ var __iconNode83 = [
|
|
|
2319
2331
|
{ d: "M9 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2z", key: "swwfx4" }
|
|
2320
2332
|
]
|
|
2321
2333
|
];
|
|
2322
|
-
var Regex = createLucideIcon("regex",
|
|
2334
|
+
var Regex = createLucideIcon("regex", __iconNode84);
|
|
2323
2335
|
|
|
2324
2336
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/replace.js
|
|
2325
|
-
var
|
|
2337
|
+
var __iconNode85 = [
|
|
2326
2338
|
["path", { d: "M14 4a2 2 0 0 1 2-2", key: "1w2hp7" }],
|
|
2327
2339
|
["path", { d: "M16 10a2 2 0 0 1-2-2", key: "shjach" }],
|
|
2328
2340
|
["path", { d: "M20 2a2 2 0 0 1 2 2", key: "188mtx" }],
|
|
@@ -2331,10 +2343,10 @@ var __iconNode84 = [
|
|
|
2331
2343
|
["path", { d: "M6 10V5a3 3 0 0 1 3-3h1", key: "3y3t5z" }],
|
|
2332
2344
|
["rect", { x: "2", y: "14", width: "8", height: "8", rx: "2", key: "4rksxw" }]
|
|
2333
2345
|
];
|
|
2334
|
-
var Replace = createLucideIcon("replace",
|
|
2346
|
+
var Replace = createLucideIcon("replace", __iconNode85);
|
|
2335
2347
|
|
|
2336
2348
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/rocket.js
|
|
2337
|
-
var
|
|
2349
|
+
var __iconNode86 = [
|
|
2338
2350
|
[
|
|
2339
2351
|
"path",
|
|
2340
2352
|
{
|
|
@@ -2352,35 +2364,35 @@ var __iconNode85 = [
|
|
|
2352
2364
|
["path", { d: "M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0", key: "1f8sc4" }],
|
|
2353
2365
|
["path", { d: "M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5", key: "qeys4" }]
|
|
2354
2366
|
];
|
|
2355
|
-
var Rocket = createLucideIcon("rocket",
|
|
2367
|
+
var Rocket = createLucideIcon("rocket", __iconNode86);
|
|
2356
2368
|
|
|
2357
2369
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/rss.js
|
|
2358
|
-
var
|
|
2370
|
+
var __iconNode87 = [
|
|
2359
2371
|
["path", { d: "M4 11a9 9 0 0 1 9 9", key: "pv89mb" }],
|
|
2360
2372
|
["path", { d: "M4 4a16 16 0 0 1 16 16", key: "k0647b" }],
|
|
2361
2373
|
["circle", { cx: "5", cy: "19", r: "1", key: "bfqh0e" }]
|
|
2362
2374
|
];
|
|
2363
|
-
var Rss = createLucideIcon("rss",
|
|
2375
|
+
var Rss = createLucideIcon("rss", __iconNode87);
|
|
2364
2376
|
|
|
2365
2377
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/scale.js
|
|
2366
|
-
var
|
|
2378
|
+
var __iconNode88 = [
|
|
2367
2379
|
["path", { d: "m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z", key: "7g6ntu" }],
|
|
2368
2380
|
["path", { d: "m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z", key: "ijws7r" }],
|
|
2369
2381
|
["path", { d: "M7 21h10", key: "1b0cd5" }],
|
|
2370
2382
|
["path", { d: "M12 3v18", key: "108xh3" }],
|
|
2371
2383
|
["path", { d: "M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2", key: "3gwbw2" }]
|
|
2372
2384
|
];
|
|
2373
|
-
var Scale = createLucideIcon("scale",
|
|
2385
|
+
var Scale = createLucideIcon("scale", __iconNode88);
|
|
2374
2386
|
|
|
2375
2387
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/search.js
|
|
2376
|
-
var
|
|
2388
|
+
var __iconNode89 = [
|
|
2377
2389
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
2378
2390
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
2379
2391
|
];
|
|
2380
|
-
var Search = createLucideIcon("search",
|
|
2392
|
+
var Search = createLucideIcon("search", __iconNode89);
|
|
2381
2393
|
|
|
2382
2394
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/send-horizontal.js
|
|
2383
|
-
var
|
|
2395
|
+
var __iconNode90 = [
|
|
2384
2396
|
[
|
|
2385
2397
|
"path",
|
|
2386
2398
|
{
|
|
@@ -2390,27 +2402,27 @@ var __iconNode89 = [
|
|
|
2390
2402
|
],
|
|
2391
2403
|
["path", { d: "M6 12h16", key: "s4cdu5" }]
|
|
2392
2404
|
];
|
|
2393
|
-
var SendHorizontal = createLucideIcon("send-horizontal",
|
|
2405
|
+
var SendHorizontal = createLucideIcon("send-horizontal", __iconNode90);
|
|
2394
2406
|
|
|
2395
2407
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/server.js
|
|
2396
|
-
var
|
|
2408
|
+
var __iconNode91 = [
|
|
2397
2409
|
["rect", { width: "20", height: "8", x: "2", y: "2", rx: "2", ry: "2", key: "ngkwjq" }],
|
|
2398
2410
|
["rect", { width: "20", height: "8", x: "2", y: "14", rx: "2", ry: "2", key: "iecqi9" }],
|
|
2399
2411
|
["line", { x1: "6", x2: "6.01", y1: "6", y2: "6", key: "16zg32" }],
|
|
2400
2412
|
["line", { x1: "6", x2: "6.01", y1: "18", y2: "18", key: "nzw8ys" }]
|
|
2401
2413
|
];
|
|
2402
|
-
var Server = createLucideIcon("server",
|
|
2414
|
+
var Server = createLucideIcon("server", __iconNode91);
|
|
2403
2415
|
|
|
2404
2416
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/share.js
|
|
2405
|
-
var
|
|
2417
|
+
var __iconNode92 = [
|
|
2406
2418
|
["path", { d: "M12 2v13", key: "1km8f5" }],
|
|
2407
2419
|
["path", { d: "m16 6-4-4-4 4", key: "13yo43" }],
|
|
2408
2420
|
["path", { d: "M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8", key: "1b2hhj" }]
|
|
2409
2421
|
];
|
|
2410
|
-
var Share = createLucideIcon("share",
|
|
2422
|
+
var Share = createLucideIcon("share", __iconNode92);
|
|
2411
2423
|
|
|
2412
2424
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/shield-user.js
|
|
2413
|
-
var
|
|
2425
|
+
var __iconNode93 = [
|
|
2414
2426
|
[
|
|
2415
2427
|
"path",
|
|
2416
2428
|
{
|
|
@@ -2421,10 +2433,10 @@ var __iconNode92 = [
|
|
|
2421
2433
|
["path", { d: "M6.376 18.91a6 6 0 0 1 11.249.003", key: "hnjrf2" }],
|
|
2422
2434
|
["circle", { cx: "12", cy: "11", r: "4", key: "1gt34v" }]
|
|
2423
2435
|
];
|
|
2424
|
-
var ShieldUser = createLucideIcon("shield-user",
|
|
2436
|
+
var ShieldUser = createLucideIcon("shield-user", __iconNode93);
|
|
2425
2437
|
|
|
2426
2438
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/shield.js
|
|
2427
|
-
var
|
|
2439
|
+
var __iconNode94 = [
|
|
2428
2440
|
[
|
|
2429
2441
|
"path",
|
|
2430
2442
|
{
|
|
@@ -2433,10 +2445,10 @@ var __iconNode93 = [
|
|
|
2433
2445
|
}
|
|
2434
2446
|
]
|
|
2435
2447
|
];
|
|
2436
|
-
var Shield = createLucideIcon("shield",
|
|
2448
|
+
var Shield = createLucideIcon("shield", __iconNode94);
|
|
2437
2449
|
|
|
2438
2450
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/sigma.js
|
|
2439
|
-
var
|
|
2451
|
+
var __iconNode95 = [
|
|
2440
2452
|
[
|
|
2441
2453
|
"path",
|
|
2442
2454
|
{
|
|
@@ -2445,10 +2457,10 @@ var __iconNode94 = [
|
|
|
2445
2457
|
}
|
|
2446
2458
|
]
|
|
2447
2459
|
];
|
|
2448
|
-
var Sigma = createLucideIcon("sigma",
|
|
2460
|
+
var Sigma = createLucideIcon("sigma", __iconNode95);
|
|
2449
2461
|
|
|
2450
2462
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/sparkles.js
|
|
2451
|
-
var
|
|
2463
|
+
var __iconNode96 = [
|
|
2452
2464
|
[
|
|
2453
2465
|
"path",
|
|
2454
2466
|
{
|
|
@@ -2461,10 +2473,10 @@ var __iconNode95 = [
|
|
|
2461
2473
|
["path", { d: "M4 17v2", key: "vumght" }],
|
|
2462
2474
|
["path", { d: "M5 18H3", key: "zchphs" }]
|
|
2463
2475
|
];
|
|
2464
|
-
var Sparkles = createLucideIcon("sparkles",
|
|
2476
|
+
var Sparkles = createLucideIcon("sparkles", __iconNode96);
|
|
2465
2477
|
|
|
2466
2478
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/spline-pointer.js
|
|
2467
|
-
var
|
|
2479
|
+
var __iconNode97 = [
|
|
2468
2480
|
[
|
|
2469
2481
|
"path",
|
|
2470
2482
|
{
|
|
@@ -2476,10 +2488,10 @@ var __iconNode96 = [
|
|
|
2476
2488
|
["circle", { cx: "19", cy: "5", r: "2", key: "mhkx31" }],
|
|
2477
2489
|
["circle", { cx: "5", cy: "19", r: "2", key: "v8kfzx" }]
|
|
2478
2490
|
];
|
|
2479
|
-
var SplinePointer = createLucideIcon("spline-pointer",
|
|
2491
|
+
var SplinePointer = createLucideIcon("spline-pointer", __iconNode97);
|
|
2480
2492
|
|
|
2481
2493
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/sprout.js
|
|
2482
|
-
var
|
|
2494
|
+
var __iconNode98 = [
|
|
2483
2495
|
["path", { d: "M7 20h10", key: "e6iznv" }],
|
|
2484
2496
|
["path", { d: "M10 20c5.5-2.5.8-6.4 3-10", key: "161w41" }],
|
|
2485
2497
|
[
|
|
@@ -2497,10 +2509,10 @@ var __iconNode97 = [
|
|
|
2497
2509
|
}
|
|
2498
2510
|
]
|
|
2499
2511
|
];
|
|
2500
|
-
var Sprout = createLucideIcon("sprout",
|
|
2512
|
+
var Sprout = createLucideIcon("sprout", __iconNode98);
|
|
2501
2513
|
|
|
2502
2514
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/square-dashed-bottom-code.js
|
|
2503
|
-
var
|
|
2515
|
+
var __iconNode99 = [
|
|
2504
2516
|
["path", { d: "M10 9.5 8 12l2 2.5", key: "3mjy60" }],
|
|
2505
2517
|
["path", { d: "M14 21h1", key: "v9vybs" }],
|
|
2506
2518
|
["path", { d: "m14 9.5 2 2.5-2 2.5", key: "1bir2l" }],
|
|
@@ -2510,18 +2522,18 @@ var __iconNode98 = [
|
|
|
2510
2522
|
],
|
|
2511
2523
|
["path", { d: "M9 21h1", key: "15o7lz" }]
|
|
2512
2524
|
];
|
|
2513
|
-
var SquareDashedBottomCode = createLucideIcon("square-dashed-bottom-code",
|
|
2525
|
+
var SquareDashedBottomCode = createLucideIcon("square-dashed-bottom-code", __iconNode99);
|
|
2514
2526
|
|
|
2515
2527
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/square-terminal.js
|
|
2516
|
-
var
|
|
2528
|
+
var __iconNode100 = [
|
|
2517
2529
|
["path", { d: "m7 11 2-2-2-2", key: "1lz0vl" }],
|
|
2518
2530
|
["path", { d: "M11 13h4", key: "1p7l4v" }],
|
|
2519
2531
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }]
|
|
2520
2532
|
];
|
|
2521
|
-
var SquareTerminal = createLucideIcon("square-terminal",
|
|
2533
|
+
var SquareTerminal = createLucideIcon("square-terminal", __iconNode100);
|
|
2522
2534
|
|
|
2523
2535
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/star.js
|
|
2524
|
-
var
|
|
2536
|
+
var __iconNode101 = [
|
|
2525
2537
|
[
|
|
2526
2538
|
"path",
|
|
2527
2539
|
{
|
|
@@ -2530,26 +2542,26 @@ var __iconNode100 = [
|
|
|
2530
2542
|
}
|
|
2531
2543
|
]
|
|
2532
2544
|
];
|
|
2533
|
-
var Star = createLucideIcon("star",
|
|
2545
|
+
var Star = createLucideIcon("star", __iconNode101);
|
|
2534
2546
|
|
|
2535
2547
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/tablets.js
|
|
2536
|
-
var
|
|
2548
|
+
var __iconNode102 = [
|
|
2537
2549
|
["circle", { cx: "7", cy: "7", r: "5", key: "x29byf" }],
|
|
2538
2550
|
["circle", { cx: "17", cy: "17", r: "5", key: "1op1d2" }],
|
|
2539
2551
|
["path", { d: "M12 17h10", key: "ls21zv" }],
|
|
2540
2552
|
["path", { d: "m3.46 10.54 7.08-7.08", key: "1rehiu" }]
|
|
2541
2553
|
];
|
|
2542
|
-
var Tablets = createLucideIcon("tablets",
|
|
2554
|
+
var Tablets = createLucideIcon("tablets", __iconNode102);
|
|
2543
2555
|
|
|
2544
2556
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/terminal.js
|
|
2545
|
-
var
|
|
2557
|
+
var __iconNode103 = [
|
|
2546
2558
|
["path", { d: "M12 19h8", key: "baeox8" }],
|
|
2547
2559
|
["path", { d: "m4 17 6-6-6-6", key: "1yngyt" }]
|
|
2548
2560
|
];
|
|
2549
|
-
var Terminal = createLucideIcon("terminal",
|
|
2561
|
+
var Terminal = createLucideIcon("terminal", __iconNode103);
|
|
2550
2562
|
|
|
2551
2563
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/twitter.js
|
|
2552
|
-
var
|
|
2564
|
+
var __iconNode104 = [
|
|
2553
2565
|
[
|
|
2554
2566
|
"path",
|
|
2555
2567
|
{
|
|
@@ -2558,25 +2570,25 @@ var __iconNode103 = [
|
|
|
2558
2570
|
}
|
|
2559
2571
|
]
|
|
2560
2572
|
];
|
|
2561
|
-
var Twitter = createLucideIcon("twitter",
|
|
2573
|
+
var Twitter = createLucideIcon("twitter", __iconNode104);
|
|
2562
2574
|
|
|
2563
2575
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/workflow.js
|
|
2564
|
-
var
|
|
2576
|
+
var __iconNode105 = [
|
|
2565
2577
|
["rect", { width: "8", height: "8", x: "3", y: "3", rx: "2", key: "by2w9f" }],
|
|
2566
2578
|
["path", { d: "M7 11v4a2 2 0 0 0 2 2h4", key: "xkn7yn" }],
|
|
2567
2579
|
["rect", { width: "8", height: "8", x: "13", y: "13", rx: "2", key: "1cgmvn" }]
|
|
2568
2580
|
];
|
|
2569
|
-
var Workflow = createLucideIcon("workflow",
|
|
2581
|
+
var Workflow = createLucideIcon("workflow", __iconNode105);
|
|
2570
2582
|
|
|
2571
2583
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/x.js
|
|
2572
|
-
var
|
|
2584
|
+
var __iconNode106 = [
|
|
2573
2585
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
2574
2586
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
2575
2587
|
];
|
|
2576
|
-
var X = createLucideIcon("x",
|
|
2588
|
+
var X = createLucideIcon("x", __iconNode106);
|
|
2577
2589
|
|
|
2578
2590
|
// ../../node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/zap.js
|
|
2579
|
-
var
|
|
2591
|
+
var __iconNode107 = [
|
|
2580
2592
|
[
|
|
2581
2593
|
"path",
|
|
2582
2594
|
{
|
|
@@ -2585,7 +2597,7 @@ var __iconNode106 = [
|
|
|
2585
2597
|
}
|
|
2586
2598
|
]
|
|
2587
2599
|
];
|
|
2588
|
-
var Zap = createLucideIcon("zap",
|
|
2600
|
+
var Zap = createLucideIcon("zap", __iconNode107);
|
|
2589
2601
|
|
|
2590
2602
|
// ../base-ui/src/components/global-icon.tsx
|
|
2591
2603
|
import React32 from "react";
|
|
@@ -2928,10 +2940,11 @@ function GradientButton({
|
|
|
2928
2940
|
href,
|
|
2929
2941
|
openInNewTab = true,
|
|
2930
2942
|
onClick,
|
|
2931
|
-
loadingText
|
|
2943
|
+
loadingText,
|
|
2932
2944
|
preventDoubleClick = true
|
|
2933
2945
|
}) {
|
|
2934
2946
|
const [isLoading, setIsLoading] = useState(false);
|
|
2947
|
+
const actualLoadingText = loadingText || (title == null ? void 0 : title.toString().trim()) || "Loading...";
|
|
2935
2948
|
const getAlignmentClass = () => {
|
|
2936
2949
|
switch (align) {
|
|
2937
2950
|
case "center":
|
|
@@ -2964,11 +2977,14 @@ function GradientButton({
|
|
|
2964
2977
|
}
|
|
2965
2978
|
});
|
|
2966
2979
|
const isDisabled = disabled || isLoading;
|
|
2967
|
-
const displayTitle = isLoading ?
|
|
2980
|
+
const displayTitle = isLoading ? actualLoadingText : title;
|
|
2968
2981
|
const displayIcon = isLoading ? /* @__PURE__ */ jsx35(globalLucideIcons.Loader2, { className: "h-4 w-4 text-white animate-spin" }) : icon ? React36.cloneElement(icon, {
|
|
2969
2982
|
className: "h-4 w-4 text-white"
|
|
2970
2983
|
}) : /* @__PURE__ */ jsx35(globalLucideIcons.ArrowRight, { className: "h-4 w-4 text-white" });
|
|
2971
|
-
const buttonContent = /* @__PURE__ */ jsxs11(Fragment3, { children: [
|
|
2984
|
+
const buttonContent = onClick ? /* @__PURE__ */ jsxs11(Fragment3, { children: [
|
|
2985
|
+
/* @__PURE__ */ jsx35("span", { children: displayIcon }),
|
|
2986
|
+
/* @__PURE__ */ jsx35("span", { className: "ml-1", children: displayTitle })
|
|
2987
|
+
] }) : /* @__PURE__ */ jsxs11(Fragment3, { children: [
|
|
2972
2988
|
/* @__PURE__ */ jsx35("span", { children: displayTitle }),
|
|
2973
2989
|
/* @__PURE__ */ jsx35("span", { className: "ml-1", children: displayIcon })
|
|
2974
2990
|
] });
|
|
@@ -2985,7 +3001,7 @@ function GradientButton({
|
|
|
2985
3001
|
${className}
|
|
2986
3002
|
`;
|
|
2987
3003
|
return /* @__PURE__ */ jsx35("div", { className: `flex flex-col sm:flex-row gap-3 ${getAlignmentClass()}`, children: onClick ? (
|
|
2988
|
-
//
|
|
3004
|
+
// for click
|
|
2989
3005
|
/* @__PURE__ */ jsx35(
|
|
2990
3006
|
Button,
|
|
2991
3007
|
{
|
|
@@ -2997,7 +3013,7 @@ function GradientButton({
|
|
|
2997
3013
|
}
|
|
2998
3014
|
)
|
|
2999
3015
|
) : (
|
|
3000
|
-
//
|
|
3016
|
+
// for Link
|
|
3001
3017
|
/* @__PURE__ */ jsx35(
|
|
3002
3018
|
Button,
|
|
3003
3019
|
{
|
|
@@ -6017,6 +6033,145 @@ function AdsAlertDialog({
|
|
|
6017
6033
|
}
|
|
6018
6034
|
) });
|
|
6019
6035
|
}
|
|
6036
|
+
|
|
6037
|
+
// src/main/x-button.tsx
|
|
6038
|
+
import { useState as useState15, useRef as useRef12, useEffect as useEffect17 } from "react";
|
|
6039
|
+
import { Fragment as Fragment9, jsx as jsx56, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6040
|
+
var XButtonIcons = {
|
|
6041
|
+
copy: /* @__PURE__ */ jsx56(globalLucideIcons.Copy, { className: "w-5 h-5 mr-1" }),
|
|
6042
|
+
checkCheck: /* @__PURE__ */ jsx56(globalLucideIcons.CheckCheck, { className: "w-5 h-5 mr-1" }),
|
|
6043
|
+
globe: /* @__PURE__ */ jsx56(globalLucideIcons.Languages, { className: "w-5 h-5 mr-1" }),
|
|
6044
|
+
loader: /* @__PURE__ */ jsx56(globalLucideIcons.Loader2, { className: "w-5 h-5 mr-1 animate-spin" }),
|
|
6045
|
+
download: /* @__PURE__ */ jsx56(globalLucideIcons.Download, { className: "w-5 h-5 mr-1" }),
|
|
6046
|
+
upload: /* @__PURE__ */ jsx56(globalLucideIcons.ImageUp, { className: "w-5 h-5 mr-1" }),
|
|
6047
|
+
share: /* @__PURE__ */ jsx56(globalLucideIcons.Share, { className: "w-5 h-5 mr-1" }),
|
|
6048
|
+
edit: /* @__PURE__ */ jsx56(globalLucideIcons.Pencil, { className: "w-5 h-5 mr-1" })
|
|
6049
|
+
};
|
|
6050
|
+
function XButton(props) {
|
|
6051
|
+
var _a, _b;
|
|
6052
|
+
const [isLoading, setIsLoading] = useState15(false);
|
|
6053
|
+
const [menuOpen, setMenuOpen] = useState15(false);
|
|
6054
|
+
const menuRef = useRef12(null);
|
|
6055
|
+
useEffect17(() => {
|
|
6056
|
+
if (props.type === "split") {
|
|
6057
|
+
const handleClickOutside = (event) => {
|
|
6058
|
+
if (menuRef.current && !menuRef.current.contains(event.target)) {
|
|
6059
|
+
setMenuOpen(false);
|
|
6060
|
+
}
|
|
6061
|
+
};
|
|
6062
|
+
if (menuOpen) {
|
|
6063
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
6064
|
+
}
|
|
6065
|
+
return () => {
|
|
6066
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
6067
|
+
};
|
|
6068
|
+
}
|
|
6069
|
+
}, [menuOpen, props.type]);
|
|
6070
|
+
const handleButtonClick = (onClick) => __async(null, null, function* () {
|
|
6071
|
+
if (isLoading) return;
|
|
6072
|
+
setIsLoading(true);
|
|
6073
|
+
try {
|
|
6074
|
+
yield onClick();
|
|
6075
|
+
} catch (error) {
|
|
6076
|
+
console.error("Button click error:", error);
|
|
6077
|
+
} finally {
|
|
6078
|
+
setIsLoading(false);
|
|
6079
|
+
}
|
|
6080
|
+
});
|
|
6081
|
+
const baseButtonClass = "flex items-center justify-center px-4 py-2 bg-neutral-200 dark:bg-neutral-800 text-neutral-700 dark:text-white text-sm font-semibold transition-colors hover:bg-neutral-300 dark:hover:bg-neutral-700";
|
|
6082
|
+
const disabledClass = "opacity-60 cursor-not-allowed";
|
|
6083
|
+
if (props.type === "single") {
|
|
6084
|
+
const { button, loadingText: loadingText2, minWidth = "min-w-[110px]", className: className2 = "" } = props;
|
|
6085
|
+
const isDisabled = button.disabled || isLoading;
|
|
6086
|
+
const actualLoadingText2 = loadingText2 || ((_a = button.text) == null ? void 0 : _a.trim()) || "Loading...";
|
|
6087
|
+
return /* @__PURE__ */ jsx56(
|
|
6088
|
+
"button",
|
|
6089
|
+
{
|
|
6090
|
+
onClick: () => handleButtonClick(button.onClick),
|
|
6091
|
+
disabled: isDisabled,
|
|
6092
|
+
className: `${minWidth} ${baseButtonClass} rounded-full ${isDisabled ? disabledClass : ""} ${className2}`,
|
|
6093
|
+
title: button.text,
|
|
6094
|
+
children: isLoading ? /* @__PURE__ */ jsxs26(Fragment9, { children: [
|
|
6095
|
+
/* @__PURE__ */ jsx56(globalLucideIcons.Loader2, { className: "w-5 h-5 mr-1 animate-spin" }),
|
|
6096
|
+
/* @__PURE__ */ jsx56("span", { children: actualLoadingText2 })
|
|
6097
|
+
] }) : /* @__PURE__ */ jsxs26(Fragment9, { children: [
|
|
6098
|
+
button.icon,
|
|
6099
|
+
/* @__PURE__ */ jsx56("span", { children: button.text })
|
|
6100
|
+
] })
|
|
6101
|
+
}
|
|
6102
|
+
);
|
|
6103
|
+
}
|
|
6104
|
+
const { mainButton, menuItems, loadingText, menuWidth = "w-40", className = "", mainButtonClassName = "", dropdownButtonClassName = "" } = props;
|
|
6105
|
+
const isMainDisabled = mainButton.disabled || isLoading;
|
|
6106
|
+
const actualLoadingText = loadingText || ((_b = mainButton.text) == null ? void 0 : _b.trim()) || "Loading...";
|
|
6107
|
+
return /* @__PURE__ */ jsxs26("div", { className: `relative flex bg-neutral-200 dark:bg-neutral-800 rounded-full ${className}`, children: [
|
|
6108
|
+
/* @__PURE__ */ jsx56(
|
|
6109
|
+
"button",
|
|
6110
|
+
{
|
|
6111
|
+
onClick: () => handleButtonClick(mainButton.onClick),
|
|
6112
|
+
disabled: isMainDisabled,
|
|
6113
|
+
className: `flex-1 ${baseButtonClass} rounded-l-full ${isMainDisabled ? disabledClass : ""} ${mainButtonClassName}`,
|
|
6114
|
+
onMouseDown: (e) => {
|
|
6115
|
+
if (e.button === 2) e.preventDefault();
|
|
6116
|
+
},
|
|
6117
|
+
style: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
|
|
6118
|
+
children: isLoading ? /* @__PURE__ */ jsxs26(Fragment9, { children: [
|
|
6119
|
+
/* @__PURE__ */ jsx56(globalLucideIcons.Loader2, { className: "w-5 h-5 mr-1 animate-spin" }),
|
|
6120
|
+
/* @__PURE__ */ jsx56("span", { children: actualLoadingText })
|
|
6121
|
+
] }) : /* @__PURE__ */ jsxs26(Fragment9, { children: [
|
|
6122
|
+
mainButton.icon,
|
|
6123
|
+
/* @__PURE__ */ jsx56("span", { children: mainButton.text })
|
|
6124
|
+
] })
|
|
6125
|
+
}
|
|
6126
|
+
),
|
|
6127
|
+
/* @__PURE__ */ jsx56(
|
|
6128
|
+
"span",
|
|
6129
|
+
{
|
|
6130
|
+
className: `flex items-center justify-center w-10 py-2 cursor-pointer transition hover:bg-neutral-300 dark:hover:bg-neutral-700 rounded-r-full ${dropdownButtonClassName}`,
|
|
6131
|
+
onClick: (e) => {
|
|
6132
|
+
e.stopPropagation();
|
|
6133
|
+
setMenuOpen((v) => !v);
|
|
6134
|
+
},
|
|
6135
|
+
tabIndex: 0,
|
|
6136
|
+
style: { borderTopLeftRadius: 0, borderBottomLeftRadius: 0 },
|
|
6137
|
+
children: /* @__PURE__ */ jsx56(globalLucideIcons.ChevronDown, { className: "w-6 h-6" })
|
|
6138
|
+
}
|
|
6139
|
+
),
|
|
6140
|
+
menuOpen && /* @__PURE__ */ jsx56(
|
|
6141
|
+
"div",
|
|
6142
|
+
{
|
|
6143
|
+
ref: menuRef,
|
|
6144
|
+
className: `absolute right-0 top-full ${menuWidth} bg-white dark:bg-neutral-800 text-neutral-800 dark:text-white text-sm rounded-xl shadow-lg z-50 border border-neutral-200 dark:border-neutral-700 overflow-hidden animate-fade-in`,
|
|
6145
|
+
children: menuItems.map((item, index) => /* @__PURE__ */ jsxs26(
|
|
6146
|
+
"button",
|
|
6147
|
+
{
|
|
6148
|
+
onClick: () => {
|
|
6149
|
+
handleButtonClick(item.onClick);
|
|
6150
|
+
setMenuOpen(false);
|
|
6151
|
+
},
|
|
6152
|
+
disabled: item.disabled,
|
|
6153
|
+
className: `flex items-center w-full px-4 py-3 transition hover:bg-neutral-300 dark:hover:bg-neutral-600 text-left relative ${item.disabled ? disabledClass : ""}`,
|
|
6154
|
+
children: [
|
|
6155
|
+
/* @__PURE__ */ jsxs26("span", { className: "flex items-center", children: [
|
|
6156
|
+
item.icon,
|
|
6157
|
+
/* @__PURE__ */ jsx56("span", { children: item.text })
|
|
6158
|
+
] }),
|
|
6159
|
+
item.tag && /* @__PURE__ */ jsx56(
|
|
6160
|
+
"span",
|
|
6161
|
+
{
|
|
6162
|
+
className: "absolute right-3 top-1 text-[10px] font-semibold",
|
|
6163
|
+
style: { color: item.tag.color || "#A855F7", pointerEvents: "none" },
|
|
6164
|
+
children: item.tag.text
|
|
6165
|
+
}
|
|
6166
|
+
)
|
|
6167
|
+
]
|
|
6168
|
+
},
|
|
6169
|
+
index
|
|
6170
|
+
))
|
|
6171
|
+
}
|
|
6172
|
+
)
|
|
6173
|
+
] });
|
|
6174
|
+
}
|
|
6020
6175
|
export {
|
|
6021
6176
|
AdsAlertDialog,
|
|
6022
6177
|
CTA,
|
|
@@ -6030,7 +6185,9 @@ export {
|
|
|
6030
6185
|
PricePlan,
|
|
6031
6186
|
SeoContent,
|
|
6032
6187
|
Tips,
|
|
6033
|
-
Usage
|
|
6188
|
+
Usage,
|
|
6189
|
+
XButton,
|
|
6190
|
+
XButtonIcons
|
|
6034
6191
|
};
|
|
6035
6192
|
/*! Bundled license information:
|
|
6036
6193
|
|
|
@@ -6100,6 +6257,7 @@ lucide-react/dist/esm/icons/infinity.js:
|
|
|
6100
6257
|
lucide-react/dist/esm/icons/info.js:
|
|
6101
6258
|
lucide-react/dist/esm/icons/keyboard.js:
|
|
6102
6259
|
lucide-react/dist/esm/icons/land-plot.js:
|
|
6260
|
+
lucide-react/dist/esm/icons/languages.js:
|
|
6103
6261
|
lucide-react/dist/esm/icons/layout-template.js:
|
|
6104
6262
|
lucide-react/dist/esm/icons/library.js:
|
|
6105
6263
|
lucide-react/dist/esm/icons/link.js:
|