@moises.ai/design-system 3.6.12 → 3.6.13
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/index.js +109 -98
- package/package.json +1 -1
- package/src/lib/menu/renderItem.jsx +8 -1
package/dist/index.js
CHANGED
|
@@ -2407,7 +2407,7 @@ const im = "_container_1k1mq_1", lm = "_content_1k1mq_19", cm = "_title_1k1mq_26
|
|
|
2407
2407
|
] });
|
|
2408
2408
|
};
|
|
2409
2409
|
Am.displayName = "CigarBar";
|
|
2410
|
-
const hm = "_menuContent_1j71o_1", pm = "_menuSubContent_1j71o_2", mm = "_slideDownAndFade_1j71o_1", gm = "_slideLeftAndFade_1j71o_1", fm = "_slideUpAndFade_1j71o_1", vm = "_slideRightAndFade_1j71o_1", Cm = "_menuPortal_1j71o_84", ym = "_menuItem_1j71o_91", km = "_label_1j71o_106", Em = "_secondaryTextBottom_1j71o_110", Sm = "_secondaryTextRight_1j71o_111", Im = "_keybinding_1j71o_115", bm = "_leftIcon_1j71o_147", Bm = "_rightIcon_1j71o_148", wm = "_checkboxIndicatorSlot_1j71o_149", Rm = "_menuCheckboxIndicator_1j71o_155", Nm = "_menuSeparator_1j71o_160", xm = "_labelContainer_1j71o_180", Qm = "_rightSlot_1j71o_204", Tm = "_menuSub_1j71o_2", Jm = "_menuSubTrigger_1j71o_241", Dm = "_menuTrigger_1j71o_275", Pm = "_showActiveTrigger_1j71o_275", Um = "_menuLabel_1j71o_291", zm = "_menuItemSelected_1j71o_314", Mm = "_menuItemIndicator_1j71o_342", Om = "_menuCheckboxItem_1j71o_375", Fm = "_red_1j71o_379", Hm = "_cyan_1j71o_396",
|
|
2410
|
+
const hm = "_menuContent_1j71o_1", pm = "_menuSubContent_1j71o_2", mm = "_slideDownAndFade_1j71o_1", gm = "_slideLeftAndFade_1j71o_1", fm = "_slideUpAndFade_1j71o_1", vm = "_slideRightAndFade_1j71o_1", Cm = "_menuPortal_1j71o_84", ym = "_menuItem_1j71o_91", km = "_label_1j71o_106", Em = "_secondaryTextBottom_1j71o_110", Sm = "_secondaryTextRight_1j71o_111", Im = "_keybinding_1j71o_115", bm = "_leftIcon_1j71o_147", Bm = "_rightIcon_1j71o_148", wm = "_checkboxIndicatorSlot_1j71o_149", Rm = "_menuCheckboxIndicator_1j71o_155", Nm = "_menuSeparator_1j71o_160", xm = "_labelContainer_1j71o_180", Qm = "_rightSlot_1j71o_204", Tm = "_menuSub_1j71o_2", Jm = "_menuSubTrigger_1j71o_241", Dm = "_menuTrigger_1j71o_275", Pm = "_showActiveTrigger_1j71o_275", Um = "_menuLabel_1j71o_291", zm = "_menuItemSelected_1j71o_314", Mm = "_menuItemIndicator_1j71o_342", Om = "_menuCheckboxItem_1j71o_375", Fm = "_red_1j71o_379", Hm = "_cyan_1j71o_396", j = {
|
|
2411
2411
|
menuContent: hm,
|
|
2412
2412
|
menuSubContent: pm,
|
|
2413
2413
|
slideDownAndFade: mm,
|
|
@@ -2448,12 +2448,23 @@ const hm = "_menuContent_1j71o_1", pm = "_menuSubContent_1j71o_2", mm = "_slideD
|
|
|
2448
2448
|
var i;
|
|
2449
2449
|
switch (t.type) {
|
|
2450
2450
|
case "custom":
|
|
2451
|
-
return /* @__PURE__ */ r(
|
|
2451
|
+
return /* @__PURE__ */ r(
|
|
2452
|
+
"div",
|
|
2453
|
+
{
|
|
2454
|
+
className: f(
|
|
2455
|
+
j.menuItem,
|
|
2456
|
+
j[`menuItem-size-${s}`]
|
|
2457
|
+
),
|
|
2458
|
+
"data-disabled": t.disabled ? "" : void 0,
|
|
2459
|
+
children: t.customRender()
|
|
2460
|
+
},
|
|
2461
|
+
t.key
|
|
2462
|
+
);
|
|
2452
2463
|
case "separator":
|
|
2453
2464
|
return /* @__PURE__ */ r(
|
|
2454
2465
|
n.Separator,
|
|
2455
2466
|
{
|
|
2456
|
-
className:
|
|
2467
|
+
className: j.menuSeparator
|
|
2457
2468
|
},
|
|
2458
2469
|
t.key
|
|
2459
2470
|
);
|
|
@@ -2462,33 +2473,33 @@ const hm = "_menuContent_1j71o_1", pm = "_menuSubContent_1j71o_2", mm = "_slideD
|
|
|
2462
2473
|
n.Label,
|
|
2463
2474
|
{
|
|
2464
2475
|
className: f(
|
|
2465
|
-
|
|
2466
|
-
|
|
2476
|
+
j.menuLabel,
|
|
2477
|
+
j[`menuLabel-size-${s}`]
|
|
2467
2478
|
),
|
|
2468
2479
|
children: t.label
|
|
2469
2480
|
},
|
|
2470
2481
|
t.key
|
|
2471
2482
|
);
|
|
2472
2483
|
case "sub":
|
|
2473
|
-
return /* @__PURE__ */ g(n.Sub, { className:
|
|
2484
|
+
return /* @__PURE__ */ g(n.Sub, { className: j.menuSub, children: [
|
|
2474
2485
|
/* @__PURE__ */ g(
|
|
2475
2486
|
n.SubTrigger,
|
|
2476
2487
|
{
|
|
2477
2488
|
className: f(
|
|
2478
|
-
|
|
2479
|
-
|
|
2489
|
+
j.menuSubTrigger,
|
|
2490
|
+
j[`menuSubTrigger-size-${s}`],
|
|
2480
2491
|
{
|
|
2481
|
-
[
|
|
2482
|
-
[
|
|
2492
|
+
[j.red]: t.color === "red" && !t.disabled,
|
|
2493
|
+
[j.cyan]: t.color === "cyan" && !t.disabled
|
|
2483
2494
|
}
|
|
2484
2495
|
),
|
|
2485
2496
|
children: [
|
|
2486
2497
|
t.label,
|
|
2487
|
-
/* @__PURE__ */ r("div", { className:
|
|
2498
|
+
/* @__PURE__ */ r("div", { className: j.rightSlot, children: /* @__PURE__ */ r(sc, {}) })
|
|
2488
2499
|
]
|
|
2489
2500
|
}
|
|
2490
2501
|
),
|
|
2491
|
-
/* @__PURE__ */ r(n.SubContent, { className:
|
|
2502
|
+
/* @__PURE__ */ r(n.SubContent, { className: j.menuSubContent, children: (i = t == null ? void 0 : t.children) == null ? void 0 : i.map(
|
|
2492
2503
|
(l) => e(l, s, a, o)
|
|
2493
2504
|
) })
|
|
2494
2505
|
] }, t.key);
|
|
@@ -2497,11 +2508,11 @@ const hm = "_menuContent_1j71o_1", pm = "_menuSubContent_1j71o_2", mm = "_slideD
|
|
|
2497
2508
|
n.Item,
|
|
2498
2509
|
{
|
|
2499
2510
|
className: f(
|
|
2500
|
-
|
|
2501
|
-
|
|
2511
|
+
j.menuItem,
|
|
2512
|
+
j[`menuItem-size-${s}`],
|
|
2502
2513
|
{
|
|
2503
|
-
[
|
|
2504
|
-
[
|
|
2514
|
+
[j.red]: t.color === "red" && !t.disabled,
|
|
2515
|
+
[j.cyan]: t.color === "cyan" && !t.disabled
|
|
2505
2516
|
}
|
|
2506
2517
|
),
|
|
2507
2518
|
onSelect: (l) => {
|
|
@@ -2510,15 +2521,15 @@ const hm = "_menuContent_1j71o_1", pm = "_menuSubContent_1j71o_2", mm = "_slideD
|
|
|
2510
2521
|
},
|
|
2511
2522
|
disabled: t.disabled,
|
|
2512
2523
|
children: [
|
|
2513
|
-
t.icon && /* @__PURE__ */ r("span", { className:
|
|
2514
|
-
/* @__PURE__ */ g("div", { className:
|
|
2515
|
-
/* @__PURE__ */ r("span", { className:
|
|
2516
|
-
t.secondaryText && t.secondaryTextPosition === "bottom" && /* @__PURE__ */ r("span", { className:
|
|
2524
|
+
t.icon && /* @__PURE__ */ r("span", { className: j.leftIcon, children: t.icon }),
|
|
2525
|
+
/* @__PURE__ */ g("div", { className: j.labelContainer, children: [
|
|
2526
|
+
/* @__PURE__ */ r("span", { className: j.label, children: t.label }),
|
|
2527
|
+
t.secondaryText && t.secondaryTextPosition === "bottom" && /* @__PURE__ */ r("span", { className: j.secondaryTextBottom, children: t.secondaryText })
|
|
2517
2528
|
] }),
|
|
2518
|
-
/* @__PURE__ */ g("div", { className:
|
|
2519
|
-
t.secondaryText && t.secondaryTextPosition !== "bottom" && /* @__PURE__ */ r("span", { className:
|
|
2520
|
-
t.keybinding && /* @__PURE__ */ r("span", { className:
|
|
2521
|
-
t.rightIcon && /* @__PURE__ */ r("span", { className:
|
|
2529
|
+
/* @__PURE__ */ g("div", { className: j.rightSlot, children: [
|
|
2530
|
+
t.secondaryText && t.secondaryTextPosition !== "bottom" && /* @__PURE__ */ r("span", { className: j.secondaryTextRight, children: t.secondaryText }),
|
|
2531
|
+
t.keybinding && /* @__PURE__ */ r("span", { className: j.keybinding, children: t.keybinding }),
|
|
2532
|
+
t.rightIcon && /* @__PURE__ */ r("span", { className: j.rightIcon, children: t.rightIcon })
|
|
2522
2533
|
] })
|
|
2523
2534
|
]
|
|
2524
2535
|
},
|
|
@@ -2537,21 +2548,21 @@ const hm = "_menuContent_1j71o_1", pm = "_menuSubContent_1j71o_2", mm = "_slideD
|
|
|
2537
2548
|
o || l.preventDefault();
|
|
2538
2549
|
},
|
|
2539
2550
|
className: f(
|
|
2540
|
-
|
|
2541
|
-
|
|
2551
|
+
j.menuItem,
|
|
2552
|
+
j.menuCheckboxItem,
|
|
2542
2553
|
{
|
|
2543
|
-
[
|
|
2544
|
-
[
|
|
2545
|
-
[
|
|
2546
|
-
[
|
|
2554
|
+
[j.menuItemSelected]: t.checked,
|
|
2555
|
+
[j[`menuItem-size-${s}`]]: s,
|
|
2556
|
+
[j.red]: t.color === "red" && !t.disabled,
|
|
2557
|
+
[j.cyan]: t.color === "cyan" && !t.disabled
|
|
2547
2558
|
}
|
|
2548
2559
|
),
|
|
2549
2560
|
disabled: t.disabled,
|
|
2550
2561
|
children: [
|
|
2551
|
-
/* @__PURE__ */ r("span", { className:
|
|
2562
|
+
/* @__PURE__ */ r("span", { className: j.checkboxIndicatorSlot, children: /* @__PURE__ */ r(
|
|
2552
2563
|
n.ItemIndicator,
|
|
2553
2564
|
{
|
|
2554
|
-
className:
|
|
2565
|
+
className: j.menuCheckboxIndicator,
|
|
2555
2566
|
children: /* @__PURE__ */ r(
|
|
2556
2567
|
ma,
|
|
2557
2568
|
{
|
|
@@ -2561,15 +2572,15 @@ const hm = "_menuContent_1j71o_1", pm = "_menuSubContent_1j71o_2", mm = "_slideD
|
|
|
2561
2572
|
)
|
|
2562
2573
|
}
|
|
2563
2574
|
) }),
|
|
2564
|
-
t.icon && /* @__PURE__ */ r("span", { className:
|
|
2565
|
-
/* @__PURE__ */ g("div", { className:
|
|
2566
|
-
/* @__PURE__ */ r("span", { className:
|
|
2567
|
-
t.secondaryText && t.secondaryTextPosition === "bottom" && /* @__PURE__ */ r("span", { className:
|
|
2575
|
+
t.icon && /* @__PURE__ */ r("span", { className: j.leftIcon, children: t.icon }),
|
|
2576
|
+
/* @__PURE__ */ g("div", { className: j.labelContainer, children: [
|
|
2577
|
+
/* @__PURE__ */ r("span", { className: j.label, children: t.label }),
|
|
2578
|
+
t.secondaryText && t.secondaryTextPosition === "bottom" && /* @__PURE__ */ r("span", { className: j.secondaryTextBottom, children: t.secondaryText })
|
|
2568
2579
|
] }),
|
|
2569
|
-
/* @__PURE__ */ g("div", { className:
|
|
2570
|
-
t.secondaryText && t.secondaryTextPosition !== "bottom" && /* @__PURE__ */ r("span", { className:
|
|
2571
|
-
t.keybinding && /* @__PURE__ */ r("span", { className:
|
|
2572
|
-
t.rightIcon && /* @__PURE__ */ r("span", { className:
|
|
2580
|
+
/* @__PURE__ */ g("div", { className: j.rightSlot, children: [
|
|
2581
|
+
t.secondaryText && t.secondaryTextPosition !== "bottom" && /* @__PURE__ */ r("span", { className: j.secondaryTextRight, children: t.secondaryText }),
|
|
2582
|
+
t.keybinding && /* @__PURE__ */ r("span", { className: j.keybinding, children: t.keybinding }),
|
|
2583
|
+
t.rightIcon && /* @__PURE__ */ r("span", { className: j.rightIcon, children: t.rightIcon })
|
|
2573
2584
|
] })
|
|
2574
2585
|
]
|
|
2575
2586
|
},
|
|
@@ -2591,11 +2602,11 @@ const hm = "_menuContent_1j71o_1", pm = "_menuSubContent_1j71o_2", mm = "_slideD
|
|
|
2591
2602
|
closeOnSelect: i = !0,
|
|
2592
2603
|
...l
|
|
2593
2604
|
}) => o ? n : /* @__PURE__ */ g(Kl, { children: [
|
|
2594
|
-
/* @__PURE__ */ r(Gl, { className:
|
|
2605
|
+
/* @__PURE__ */ r(Gl, { className: j.menuTrigger, asChild: !0, children: n }),
|
|
2595
2606
|
(e == null ? void 0 : e.length) > 0 && /* @__PURE__ */ r(
|
|
2596
2607
|
Xl,
|
|
2597
2608
|
{
|
|
2598
|
-
className: f(
|
|
2609
|
+
className: f(j.menuContent, t),
|
|
2599
2610
|
side: l.side,
|
|
2600
2611
|
align: l.align,
|
|
2601
2612
|
sideOffset: 5,
|
|
@@ -2822,8 +2833,8 @@ const Km = "_DataTable_17x9s_1", Gm = "_titleText_17x9s_23", Xm = "_artistText_1
|
|
|
2822
2833
|
}
|
|
2823
2834
|
),
|
|
2824
2835
|
/* @__PURE__ */ g(y, { direction: "column", style: { minWidth: 0, flex: 1 }, children: [
|
|
2825
|
-
/* @__PURE__ */ r(
|
|
2826
|
-
/* @__PURE__ */ r(
|
|
2836
|
+
/* @__PURE__ */ r(L, { size: "2", className: Z.titleText, children: R.title }),
|
|
2837
|
+
/* @__PURE__ */ r(L, { size: "1", className: Z.artistText, children: R.artist })
|
|
2827
2838
|
] })
|
|
2828
2839
|
] }), []), U = x(
|
|
2829
2840
|
(R) => {
|
|
@@ -2833,7 +2844,7 @@ const Km = "_DataTable_17x9s_1", Gm = "_titleText_17x9s_23", Xm = "_artistText_1
|
|
|
2833
2844
|
), D = x((R, H, le) => {
|
|
2834
2845
|
var ct;
|
|
2835
2846
|
const Qe = (R == null ? void 0 : R[H.id]) ?? (R == null ? void 0 : R[`${H.id}Formatted`]), De = ((ct = H.render) == null ? void 0 : ct.call(H, { row: R, value: Qe, column: H, index: le })) ?? Qe;
|
|
2836
|
-
return typeof De == "string" || typeof De == "number" || De == null ? /* @__PURE__ */ r(
|
|
2847
|
+
return typeof De == "string" || typeof De == "number" || De == null ? /* @__PURE__ */ r(L, { size: "2", className: Z.cellText, children: De }) : De;
|
|
2837
2848
|
}, []), { style: N, ...W } = p, X = typeof h == "number" ? `${h}px` : h, V = typeof A == "number" ? `${A}px` : A;
|
|
2838
2849
|
return /* @__PURE__ */ g(
|
|
2839
2850
|
fr,
|
|
@@ -2879,14 +2890,14 @@ const Km = "_DataTable_17x9s_1", Gm = "_titleText_17x9s_23", Xm = "_artistText_1
|
|
|
2879
2890
|
[Z.sortedColumn]: Pr(C) === Pr(R.id)
|
|
2880
2891
|
}),
|
|
2881
2892
|
children: /* @__PURE__ */ g(y, { align: "center", gap: "3", height: "24px", children: [
|
|
2882
|
-
H === 0 ? /* @__PURE__ */ r(
|
|
2893
|
+
H === 0 ? /* @__PURE__ */ r(L, { size: "2", className: Z.headerTextFirst, children: R.label }) : /* @__PURE__ */ g(
|
|
2883
2894
|
"button",
|
|
2884
2895
|
{
|
|
2885
2896
|
type: "button",
|
|
2886
2897
|
className: Z.sortButton,
|
|
2887
2898
|
onClick: () => M(R.id),
|
|
2888
2899
|
children: [
|
|
2889
|
-
/* @__PURE__ */ r(
|
|
2900
|
+
/* @__PURE__ */ r(L, { size: "2", children: R.label }),
|
|
2890
2901
|
C === R.id && ((i == null ? void 0 : i.sort) === "DESC" ? /* @__PURE__ */ r(ac, { width: 16, height: 16 }) : /* @__PURE__ */ r(oc, { width: 16, height: 16 }))
|
|
2891
2902
|
]
|
|
2892
2903
|
}
|
|
@@ -3085,17 +3096,17 @@ const Us = ({ children: n, ...e }) => /* @__PURE__ */ r(
|
|
|
3085
3096
|
_l,
|
|
3086
3097
|
{
|
|
3087
3098
|
asChild: !0,
|
|
3088
|
-
className: f(
|
|
3089
|
-
[
|
|
3099
|
+
className: f(j.menuTrigger, {
|
|
3100
|
+
[j.showActiveTrigger]: s
|
|
3090
3101
|
}),
|
|
3091
3102
|
disabled: i,
|
|
3092
3103
|
children: n
|
|
3093
3104
|
}
|
|
3094
3105
|
),
|
|
3095
|
-
l ? /* @__PURE__ */ r(Ir, { className:
|
|
3106
|
+
l ? /* @__PURE__ */ r(Ir, { className: j.menuPortal, children: /* @__PURE__ */ r(Us, { asChild: !0, children: /* @__PURE__ */ r(
|
|
3096
3107
|
br,
|
|
3097
3108
|
{
|
|
3098
|
-
className: f(
|
|
3109
|
+
className: f(j.menuContent, t),
|
|
3099
3110
|
size: a,
|
|
3100
3111
|
side: A.side,
|
|
3101
3112
|
align: A.align,
|
|
@@ -3122,10 +3133,10 @@ const Us = ({ children: n, ...e }) => /* @__PURE__ */ r(
|
|
|
3122
3133
|
}
|
|
3123
3134
|
)
|
|
3124
3135
|
}
|
|
3125
|
-
) }) }) : /* @__PURE__ */ r(Ir, { className:
|
|
3136
|
+
) }) }) : /* @__PURE__ */ r(Ir, { className: j.menuPortal, children: /* @__PURE__ */ r(Us, { asChild: !0, children: /* @__PURE__ */ r(
|
|
3126
3137
|
br,
|
|
3127
3138
|
{
|
|
3128
|
-
className: f(
|
|
3139
|
+
className: f(j.menuContent, t),
|
|
3129
3140
|
size: a,
|
|
3130
3141
|
side: A.side,
|
|
3131
3142
|
align: A.align,
|
|
@@ -4604,7 +4615,7 @@ const JS = ({
|
|
|
4604
4615
|
}) => /* @__PURE__ */ g(y, { width: "200px", direction: "column", children: [
|
|
4605
4616
|
/* @__PURE__ */ g(y, { gap: "4", direction: "column", children: [
|
|
4606
4617
|
/* @__PURE__ */ g(y, { gap: "2", direction: "column", children: [
|
|
4607
|
-
/* @__PURE__ */ r(
|
|
4618
|
+
/* @__PURE__ */ r(L, { size: "2", weight: "medium", children: n._("Sub-division") }),
|
|
4608
4619
|
/* @__PURE__ */ r(
|
|
4609
4620
|
Pn,
|
|
4610
4621
|
{
|
|
@@ -4619,11 +4630,11 @@ const JS = ({
|
|
|
4619
4630
|
)
|
|
4620
4631
|
] }),
|
|
4621
4632
|
/* @__PURE__ */ g(y, { gap: "2", direction: "column", children: [
|
|
4622
|
-
/* @__PURE__ */ r(
|
|
4633
|
+
/* @__PURE__ */ r(L, { size: "2", weight: "medium", children: n._("Metronome volume") }),
|
|
4623
4634
|
/* @__PURE__ */ r(Si, { onChangeValue: o, volume: t })
|
|
4624
4635
|
] }),
|
|
4625
4636
|
/* @__PURE__ */ g(y, { gap: "1", direction: "column", children: [
|
|
4626
|
-
/* @__PURE__ */ r(
|
|
4637
|
+
/* @__PURE__ */ r(L, { size: "2", weight: "medium", children: "Count-in" }),
|
|
4627
4638
|
/* @__PURE__ */ r(
|
|
4628
4639
|
Pn,
|
|
4629
4640
|
{
|
|
@@ -5147,8 +5158,8 @@ function BC({ className: n, user: e, collapsed: t, ...s }) {
|
|
|
5147
5158
|
}
|
|
5148
5159
|
),
|
|
5149
5160
|
/* @__PURE__ */ g("div", { className: Ve.userContent, children: [
|
|
5150
|
-
/* @__PURE__ */ r(
|
|
5151
|
-
/* @__PURE__ */ r(
|
|
5161
|
+
/* @__PURE__ */ r(L, { size: "2", weight: "regular", className: Ve.userName, children: e.name }),
|
|
5162
|
+
/* @__PURE__ */ r(L, { size: "1", weight: "regular", className: Ve.userStatus, children: e.plan })
|
|
5152
5163
|
] })
|
|
5153
5164
|
] }),
|
|
5154
5165
|
/* @__PURE__ */ r("div", { className: Ve.userMenuWrapper, children: /* @__PURE__ */ r(ns, { hovered: a }) })
|
|
@@ -5497,7 +5508,7 @@ const a1 = "_select_egrq6_1", o1 = "_levelMeter_egrq6_5", i1 = "_levelMeterTrack
|
|
|
5497
5508
|
high: h1
|
|
5498
5509
|
}, p1 = "_textSize0_1rdyc_1", m1 = {
|
|
5499
5510
|
textSize0: p1
|
|
5500
|
-
},
|
|
5511
|
+
}, L = ({ size: n, className: e, children: t, ...s }) => {
|
|
5501
5512
|
const a = n === "0";
|
|
5502
5513
|
return /* @__PURE__ */ r(
|
|
5503
5514
|
P,
|
|
@@ -5509,7 +5520,7 @@ const a1 = "_select_egrq6_1", o1 = "_levelMeter_egrq6_5", i1 = "_levelMeterTrack
|
|
|
5509
5520
|
}
|
|
5510
5521
|
);
|
|
5511
5522
|
};
|
|
5512
|
-
|
|
5523
|
+
L.displayName = "Text";
|
|
5513
5524
|
const g1 = "_selectContent_183an_2", f1 = "_selectTrigger_183an_68", v1 = "_soft_183an_68", C1 = "_ghost_183an_69", y1 = "_selectItem_183an_98", k1 = "_hideIndicator_183an_125", E1 = "_size1_183an_129", S1 = "_size2_183an_134", We = {
|
|
5514
5525
|
selectContent: g1,
|
|
5515
5526
|
selectTrigger: f1,
|
|
@@ -5769,7 +5780,7 @@ const H1 = ({
|
|
|
5769
5780
|
inputLevel: v
|
|
5770
5781
|
}) => /* @__PURE__ */ g(y, { direction: "column", gap: "4", width: "200px", children: [
|
|
5771
5782
|
/* @__PURE__ */ g(y, { gap: "1", direction: "column", children: [
|
|
5772
|
-
/* @__PURE__ */ r(
|
|
5783
|
+
/* @__PURE__ */ r(L, { size: "2", mb: "1", weight: "medium", children: n._("Source") }),
|
|
5773
5784
|
/* @__PURE__ */ r(
|
|
5774
5785
|
Ft,
|
|
5775
5786
|
{
|
|
@@ -5796,7 +5807,7 @@ const H1 = ({
|
|
|
5796
5807
|
)
|
|
5797
5808
|
] }),
|
|
5798
5809
|
/* @__PURE__ */ g(y, { gap: "2", direction: "column", children: [
|
|
5799
|
-
/* @__PURE__ */ r(
|
|
5810
|
+
/* @__PURE__ */ r(L, { size: "2", weight: "medium", children: n._("Input Level") }),
|
|
5800
5811
|
/* @__PURE__ */ r("div", { className: _e.levelMeter, children: /* @__PURE__ */ r("div", { className: _e.levelMeterTrack, children: /* @__PURE__ */ r("div", { className: _e.levelMeterRow, children: Array.from({ length: 17 }, (m, C) => {
|
|
5801
5812
|
const E = Math.max(0, (v - 5) / 25) * 17, b = C < E;
|
|
5802
5813
|
let I = "low";
|
|
@@ -5828,7 +5839,7 @@ const H1 = ({
|
|
|
5828
5839
|
/* @__PURE__ */ r(He, { style: { width: "100%" } }),
|
|
5829
5840
|
/* @__PURE__ */ g(y, { gap: "2", mb: "2", direction: "column", children: [
|
|
5830
5841
|
/* @__PURE__ */ g(y, { align: "center", justify: "between", children: [
|
|
5831
|
-
/* @__PURE__ */ r(
|
|
5842
|
+
/* @__PURE__ */ r(L, { size: "2", weight: "medium", children: n._("Monitor (Feedback)") }),
|
|
5832
5843
|
/* @__PURE__ */ r(
|
|
5833
5844
|
rt,
|
|
5834
5845
|
{
|
|
@@ -5841,7 +5852,7 @@ const H1 = ({
|
|
|
5841
5852
|
a && /* @__PURE__ */ g(y, { direction: "column", gap: "2", children: [
|
|
5842
5853
|
/* @__PURE__ */ g(y, { align: "center", justify: "between", children: [
|
|
5843
5854
|
/* @__PURE__ */ r(
|
|
5844
|
-
|
|
5855
|
+
L,
|
|
5845
5856
|
{
|
|
5846
5857
|
size: "1",
|
|
5847
5858
|
weight: "medium",
|
|
@@ -5850,7 +5861,7 @@ const H1 = ({
|
|
|
5850
5861
|
children: n._("Monitor level")
|
|
5851
5862
|
}
|
|
5852
5863
|
),
|
|
5853
|
-
/* @__PURE__ */ g(
|
|
5864
|
+
/* @__PURE__ */ g(L, { size: "1", style: { color: "var(--neutral-10)" }, children: [
|
|
5854
5865
|
Math.round(s),
|
|
5855
5866
|
"%"
|
|
5856
5867
|
] })
|
|
@@ -6044,8 +6055,8 @@ const X1 = "_tooltipTriggerWrapper_1hj63_1", Y1 = "_newSetlistItem_1hj63_6", Z1
|
|
|
6044
6055
|
sideOffset: 5,
|
|
6045
6056
|
...A,
|
|
6046
6057
|
children: [
|
|
6047
|
-
/* @__PURE__ */ r(
|
|
6048
|
-
t && /* @__PURE__ */ r(
|
|
6058
|
+
/* @__PURE__ */ r(L, { size: "1", className: Jt.TooltipText, children: e }),
|
|
6059
|
+
t && /* @__PURE__ */ r(L, { size: "0", className: f(
|
|
6049
6060
|
Jt.TooltipShortcut,
|
|
6050
6061
|
Jt[`TooltipShortcut--${s}`]
|
|
6051
6062
|
), children: t }),
|
|
@@ -6842,7 +6853,7 @@ const Sn = (n) => {
|
|
|
6842
6853
|
children: [
|
|
6843
6854
|
n.conditioningAudio ? /* @__PURE__ */ g(y, { direction: "row", align: "center", gap: "2", justify: "center", children: [
|
|
6844
6855
|
/* @__PURE__ */ r(Bc, { width: 16, height: 16 }),
|
|
6845
|
-
/* @__PURE__ */ g(
|
|
6856
|
+
/* @__PURE__ */ g(L, { size: "1", children: [
|
|
6846
6857
|
n.conditioningAudioName,
|
|
6847
6858
|
" (",
|
|
6848
6859
|
mk(n),
|
|
@@ -6863,7 +6874,7 @@ const Sn = (n) => {
|
|
|
6863
6874
|
onClick: s,
|
|
6864
6875
|
children: [
|
|
6865
6876
|
/* @__PURE__ */ r(Rc, { width: 16, height: 16 }),
|
|
6866
|
-
/* @__PURE__ */ r(
|
|
6877
|
+
/* @__PURE__ */ r(L, { size: "1", children: t._("Select Reference Audio") })
|
|
6867
6878
|
]
|
|
6868
6879
|
}
|
|
6869
6880
|
)
|
|
@@ -7121,7 +7132,7 @@ function Ik({
|
|
|
7121
7132
|
),
|
|
7122
7133
|
a === "1" && /* @__PURE__ */ g(y, { justify: "between", align: "center", children: [
|
|
7123
7134
|
/* @__PURE__ */ g(y, { align: "center", gap: "2", children: [
|
|
7124
|
-
/* @__PURE__ */ r(
|
|
7135
|
+
/* @__PURE__ */ r(L, { size: "2", children: t._("Optimize Conditioning") }),
|
|
7125
7136
|
/* @__PURE__ */ r(
|
|
7126
7137
|
Je,
|
|
7127
7138
|
{
|
|
@@ -7141,7 +7152,7 @@ function Ik({
|
|
|
7141
7152
|
] }),
|
|
7142
7153
|
/* @__PURE__ */ g(y, { justify: "between", align: "center", children: [
|
|
7143
7154
|
/* @__PURE__ */ g(y, { align: "center", gap: "2", children: [
|
|
7144
|
-
/* @__PURE__ */ r(
|
|
7155
|
+
/* @__PURE__ */ r(L, { size: "2", children: t._("Use Project Chords") }),
|
|
7145
7156
|
/* @__PURE__ */ r(
|
|
7146
7157
|
Je,
|
|
7147
7158
|
{
|
|
@@ -7536,7 +7547,7 @@ const Rn = {
|
|
|
7536
7547
|
showBackground: !1,
|
|
7537
7548
|
showIcon: !1,
|
|
7538
7549
|
children: /* @__PURE__ */ r(
|
|
7539
|
-
|
|
7550
|
+
L,
|
|
7540
7551
|
{
|
|
7541
7552
|
size: "2",
|
|
7542
7553
|
style: {
|
|
@@ -7555,7 +7566,7 @@ const Rn = {
|
|
|
7555
7566
|
ctaLabel: i._("Clear"),
|
|
7556
7567
|
showBackground: !1,
|
|
7557
7568
|
showIcon: !1,
|
|
7558
|
-
children: /* @__PURE__ */ r(
|
|
7569
|
+
children: /* @__PURE__ */ r(L, { size: "1", children: i._(
|
|
7559
7570
|
"An error occurred while generating the track. Please try again."
|
|
7560
7571
|
) })
|
|
7561
7572
|
}
|
|
@@ -7608,7 +7619,7 @@ function Tk({
|
|
|
7608
7619
|
onClick: s,
|
|
7609
7620
|
showIcon: !1,
|
|
7610
7621
|
showBackground: !1,
|
|
7611
|
-
children: /* @__PURE__ */ r(
|
|
7622
|
+
children: /* @__PURE__ */ r(L, { size: "2", children: n._("Select audio file to separate") })
|
|
7612
7623
|
}
|
|
7613
7624
|
),
|
|
7614
7625
|
/* @__PURE__ */ r(
|
|
@@ -7819,7 +7830,7 @@ const Gr = {
|
|
|
7819
7830
|
};
|
|
7820
7831
|
return /* @__PURE__ */ g(y, { direction: "column", height: "100%", children: [
|
|
7821
7832
|
e && /* @__PURE__ */ g(y, { direction: "column", pb: "2", children: [
|
|
7822
|
-
/* @__PURE__ */ r(
|
|
7833
|
+
/* @__PURE__ */ r(L, { size: "2", weight: "medium", mb: "2", children: n._("Basic Models") }),
|
|
7823
7834
|
/* @__PURE__ */ r(
|
|
7824
7835
|
Os,
|
|
7825
7836
|
{
|
|
@@ -7832,7 +7843,7 @@ const Gr = {
|
|
|
7832
7843
|
onSelect: I
|
|
7833
7844
|
}
|
|
7834
7845
|
),
|
|
7835
|
-
/* @__PURE__ */ r(
|
|
7846
|
+
/* @__PURE__ */ r(L, { size: "2", weight: "medium", mt: "2", children: n._("Music Stems") })
|
|
7836
7847
|
] }),
|
|
7837
7848
|
/* @__PURE__ */ r(
|
|
7838
7849
|
Os,
|
|
@@ -7902,14 +7913,14 @@ const Gr = {
|
|
|
7902
7913
|
handleFileChange: a
|
|
7903
7914
|
}
|
|
7904
7915
|
),
|
|
7905
|
-
m && !h && /* @__PURE__ */ r(xe, { showIcon: !1, showBackground: !1, children: /* @__PURE__ */ r(
|
|
7916
|
+
m && !h && /* @__PURE__ */ r(xe, { showIcon: !1, showBackground: !1, children: /* @__PURE__ */ r(L, { size: "2", children: n._("Stems separation initialized!") }) }),
|
|
7906
7917
|
h && /* @__PURE__ */ r(
|
|
7907
7918
|
xe,
|
|
7908
7919
|
{
|
|
7909
7920
|
type: "error",
|
|
7910
7921
|
showIcon: !1,
|
|
7911
7922
|
showBackground: !1,
|
|
7912
|
-
children: /* @__PURE__ */ r(
|
|
7923
|
+
children: /* @__PURE__ */ r(L, { size: "2", children: h })
|
|
7913
7924
|
}
|
|
7914
7925
|
)
|
|
7915
7926
|
]
|
|
@@ -7965,7 +7976,7 @@ const Gr = {
|
|
|
7965
7976
|
align: "center",
|
|
7966
7977
|
height: s ? "84px" : "116px",
|
|
7967
7978
|
children: /* @__PURE__ */ r(
|
|
7968
|
-
|
|
7979
|
+
L,
|
|
7969
7980
|
{
|
|
7970
7981
|
size: "1",
|
|
7971
7982
|
weight: "medium",
|
|
@@ -7980,7 +7991,7 @@ const Gr = {
|
|
|
7980
7991
|
/* @__PURE__ */ g(y, { direction: "column", gap: "2", children: [
|
|
7981
7992
|
/* @__PURE__ */ g(y, { width: "100%", justify: "between", align: "center", children: [
|
|
7982
7993
|
/* @__PURE__ */ r(y, { align: "center", gap: "2", children: /* @__PURE__ */ r(
|
|
7983
|
-
|
|
7994
|
+
L,
|
|
7984
7995
|
{
|
|
7985
7996
|
size: "1",
|
|
7986
7997
|
weight: "medium",
|
|
@@ -7988,7 +7999,7 @@ const Gr = {
|
|
|
7988
7999
|
children: e._("Tempo")
|
|
7989
8000
|
}
|
|
7990
8001
|
) }),
|
|
7991
|
-
/* @__PURE__ */ g(
|
|
8002
|
+
/* @__PURE__ */ g(L, { size: "1", weight: "regular", children: [
|
|
7992
8003
|
t,
|
|
7993
8004
|
" ",
|
|
7994
8005
|
e._("bpm")
|
|
@@ -7996,7 +8007,7 @@ const Gr = {
|
|
|
7996
8007
|
] }),
|
|
7997
8008
|
/* @__PURE__ */ g(y, { width: "100%", justify: "between", align: "center", children: [
|
|
7998
8009
|
/* @__PURE__ */ r(y, { align: "center", gap: "2", children: /* @__PURE__ */ r(
|
|
7999
|
-
|
|
8010
|
+
L,
|
|
8000
8011
|
{
|
|
8001
8012
|
size: "1",
|
|
8002
8013
|
weight: "medium",
|
|
@@ -8004,7 +8015,7 @@ const Gr = {
|
|
|
8004
8015
|
children: e._("Time Signature")
|
|
8005
8016
|
}
|
|
8006
8017
|
) }),
|
|
8007
|
-
/* @__PURE__ */ g(
|
|
8018
|
+
/* @__PURE__ */ g(L, { size: "1", weight: "regular", children: [
|
|
8008
8019
|
o,
|
|
8009
8020
|
" / ",
|
|
8010
8021
|
i
|
|
@@ -8012,7 +8023,7 @@ const Gr = {
|
|
|
8012
8023
|
] }),
|
|
8013
8024
|
l && /* @__PURE__ */ g(y, { width: "100%", justify: "between", align: "center", children: [
|
|
8014
8025
|
/* @__PURE__ */ r(y, { align: "center", gap: "2", children: /* @__PURE__ */ r(
|
|
8015
|
-
|
|
8026
|
+
L,
|
|
8016
8027
|
{
|
|
8017
8028
|
size: "1",
|
|
8018
8029
|
weight: "medium",
|
|
@@ -8020,11 +8031,11 @@ const Gr = {
|
|
|
8020
8031
|
children: e._("Root Key")
|
|
8021
8032
|
}
|
|
8022
8033
|
) }),
|
|
8023
|
-
/* @__PURE__ */ r(
|
|
8034
|
+
/* @__PURE__ */ r(L, { size: "1", weight: "regular", children: l })
|
|
8024
8035
|
] })
|
|
8025
8036
|
] }),
|
|
8026
8037
|
/* @__PURE__ */ r(y, { width: "80%", mx: "auto", justify: "center", children: /* @__PURE__ */ g(
|
|
8027
|
-
|
|
8038
|
+
L,
|
|
8028
8039
|
{
|
|
8029
8040
|
size: "1",
|
|
8030
8041
|
weight: "regular",
|
|
@@ -8229,9 +8240,9 @@ const Dt = 30, gs = 200, Gk = [
|
|
|
8229
8240
|
);
|
|
8230
8241
|
return /* @__PURE__ */ g(he, { children: [
|
|
8231
8242
|
/* @__PURE__ */ g(y, { mb: "2", mt: "3", width: "100%", justify: "between", align: "center", children: [
|
|
8232
|
-
/* @__PURE__ */ r(y, { align: "center", gap: "2", children: /* @__PURE__ */ r(
|
|
8243
|
+
/* @__PURE__ */ r(y, { align: "center", gap: "2", children: /* @__PURE__ */ r(L, { size: "2", weight: "medium", children: t._("Tempo") }) }),
|
|
8233
8244
|
/* @__PURE__ */ r(
|
|
8234
|
-
|
|
8245
|
+
L,
|
|
8235
8246
|
{
|
|
8236
8247
|
size: "2",
|
|
8237
8248
|
weight: "regular",
|
|
@@ -8307,7 +8318,7 @@ const Dt = 30, gs = 200, Gk = [
|
|
|
8307
8318
|
return /* @__PURE__ */ g(he, { children: [
|
|
8308
8319
|
/* @__PURE__ */ r(tE, { bpm: t, onTempoChange: n, i18n: l }),
|
|
8309
8320
|
/* @__PURE__ */ g(y, { gap: "1", mt: "4", direction: "column", children: [
|
|
8310
|
-
/* @__PURE__ */ r(
|
|
8321
|
+
/* @__PURE__ */ r(L, { size: "2", children: l._("Time signature") }),
|
|
8311
8322
|
/* @__PURE__ */ g(y, { width: "100%", gap: "1", align: "center", children: [
|
|
8312
8323
|
/* @__PURE__ */ r(
|
|
8313
8324
|
Ft,
|
|
@@ -8318,7 +8329,7 @@ const Dt = 30, gs = 200, Gk = [
|
|
|
8318
8329
|
items: Yk
|
|
8319
8330
|
}
|
|
8320
8331
|
),
|
|
8321
|
-
/* @__PURE__ */ r(
|
|
8332
|
+
/* @__PURE__ */ r(L, { size: "2", children: "/" }),
|
|
8322
8333
|
/* @__PURE__ */ r(
|
|
8323
8334
|
Ft,
|
|
8324
8335
|
{
|
|
@@ -8331,7 +8342,7 @@ const Dt = 30, gs = 200, Gk = [
|
|
|
8331
8342
|
] })
|
|
8332
8343
|
] }),
|
|
8333
8344
|
/* @__PURE__ */ g(y, { gap: "1", mt: "4", direction: "column", children: [
|
|
8334
|
-
/* @__PURE__ */ r(
|
|
8345
|
+
/* @__PURE__ */ r(L, { size: "2", children: l._("Root Key") }),
|
|
8335
8346
|
/* @__PURE__ */ r(y, { width: "100%", gap: "1", align: "center", children: /* @__PURE__ */ r(
|
|
8336
8347
|
Ft,
|
|
8337
8348
|
{
|
|
@@ -8363,7 +8374,7 @@ const Dt = 30, gs = 200, Gk = [
|
|
|
8363
8374
|
timeSignatureBottom: p
|
|
8364
8375
|
}) => /* @__PURE__ */ g(y, { width: "200px", direction: "column", children: [
|
|
8365
8376
|
/* @__PURE__ */ g(y, { width: "100%", justify: "between", children: [
|
|
8366
|
-
/* @__PURE__ */ g(
|
|
8377
|
+
/* @__PURE__ */ g(L, { size: "2", children: [
|
|
8367
8378
|
" ",
|
|
8368
8379
|
e._("AI Auto Detect")
|
|
8369
8380
|
] }),
|
|
@@ -8498,7 +8509,7 @@ const lE = "_track_1xe9y_1", cE = "_leftIcon_1xe9y_9", dE = "_name_1xe9y_15", uE
|
|
|
8498
8509
|
}
|
|
8499
8510
|
),
|
|
8500
8511
|
/* @__PURE__ */ r(Er, { content: n, children: /* @__PURE__ */ r(
|
|
8501
|
-
|
|
8512
|
+
L,
|
|
8502
8513
|
{
|
|
8503
8514
|
size: "2",
|
|
8504
8515
|
className: pe.name,
|
|
@@ -8585,7 +8596,7 @@ function NE({ name: n, errorsRef: e, children: t }) {
|
|
|
8585
8596
|
const s = e.current[n];
|
|
8586
8597
|
return /* @__PURE__ */ g(y, { direction: "column", gap: "1", children: [
|
|
8587
8598
|
t,
|
|
8588
|
-
s && /* @__PURE__ */ r(
|
|
8599
|
+
s && /* @__PURE__ */ r(L, { size: "1", color: "red", children: s })
|
|
8589
8600
|
] });
|
|
8590
8601
|
}
|
|
8591
8602
|
function US({ schema: n }) {
|
|
@@ -8621,7 +8632,7 @@ function US({ schema: n }) {
|
|
|
8621
8632
|
i.current = i.current.filter((C) => C !== m);
|
|
8622
8633
|
}), []), p = (m) => {
|
|
8623
8634
|
const C = s[m];
|
|
8624
|
-
return C ? /* @__PURE__ */ r(
|
|
8635
|
+
return C ? /* @__PURE__ */ r(L, { size: "1", color: "red", children: C }) : null;
|
|
8625
8636
|
}, k = (m) => {
|
|
8626
8637
|
t(m ?? n.parse({})), a({});
|
|
8627
8638
|
}, v = x(
|
|
@@ -10310,7 +10321,7 @@ function oS({
|
|
|
10310
10321
|
/* @__PURE__ */ r(Zn, { minWidth: "350px", maxWidth: "100%", side: "top", children: /* @__PURE__ */ r(Ae, { children: /* @__PURE__ */ g(y, { direction: "column", gap: "4", children: [
|
|
10311
10322
|
/* @__PURE__ */ g(y, { justify: "between", align: "center", children: [
|
|
10312
10323
|
/* @__PURE__ */ g(y, { align: "center", gap: "2", children: [
|
|
10313
|
-
/* @__PURE__ */ r(
|
|
10324
|
+
/* @__PURE__ */ r(L, { size: "2", style: { color: "var(--white)" }, children: s._("Isolate Vocals") }),
|
|
10314
10325
|
/* @__PURE__ */ r(
|
|
10315
10326
|
Je,
|
|
10316
10327
|
{
|
|
@@ -10421,7 +10432,7 @@ function AS({
|
|
|
10421
10432
|
onClick: a,
|
|
10422
10433
|
showIcon: !1,
|
|
10423
10434
|
showBackground: !1,
|
|
10424
|
-
children: /* @__PURE__ */ r(
|
|
10435
|
+
children: /* @__PURE__ */ r(L, { size: "2", children: t._("Select audio file to convert ") })
|
|
10425
10436
|
}
|
|
10426
10437
|
) });
|
|
10427
10438
|
}
|
|
@@ -10673,7 +10684,7 @@ export {
|
|
|
10673
10684
|
wS as Table,
|
|
10674
10685
|
RS as Tabs,
|
|
10675
10686
|
sE as TempoControlsForm,
|
|
10676
|
-
|
|
10687
|
+
L as Text,
|
|
10677
10688
|
Ji as TextArea,
|
|
10678
10689
|
Di as TextField,
|
|
10679
10690
|
Us as Theme,
|
package/package.json
CHANGED
|
@@ -18,7 +18,14 @@ export const createRenderItem = (MenuPrimitives) => {
|
|
|
18
18
|
switch (opt.type) {
|
|
19
19
|
case 'custom':
|
|
20
20
|
return (
|
|
21
|
-
<div
|
|
21
|
+
<div
|
|
22
|
+
key={opt.key}
|
|
23
|
+
className={classNames(
|
|
24
|
+
styles.menuItem,
|
|
25
|
+
styles[`menuItem-size-${size}`],
|
|
26
|
+
)}
|
|
27
|
+
data-disabled={opt.disabled ? '' : undefined}
|
|
28
|
+
>
|
|
22
29
|
{opt.customRender()}
|
|
23
30
|
</div>
|
|
24
31
|
)
|