@inf-monkeys-tech/monkeys-design 0.4.34 → 0.4.36
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/LICENSE +21 -21
- package/README.md +226 -226
- package/dist/components/base/index.js.map +1 -1
- package/dist/components/base/index.mjs.map +1 -1
- package/dist/components/data-explorer/index.js.map +1 -1
- package/dist/components/data-explorer/index.mjs.map +1 -1
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/index.mjs.map +1 -1
- package/dist/components/login/index.js.map +1 -1
- package/dist/components/login/index.mjs.map +1 -1
- package/dist/components/toast/index.d.mts +75 -0
- package/dist/components/toast/index.d.ts +75 -0
- package/dist/components/toast/index.js +283 -0
- package/dist/components/toast/index.js.map +1 -0
- package/dist/components/toast/index.mjs +273 -0
- package/dist/components/toast/index.mjs.map +1 -0
- package/dist/components/toolbar/index.js.map +1 -1
- package/dist/components/toolbar/index.mjs.map +1 -1
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/icons/oauth/index.js.map +1 -1
- package/dist/icons/oauth/index.mjs.map +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +284 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +276 -11
- package/dist/index.mjs.map +1 -1
- package/dist/palette/index.js.map +1 -1
- package/dist/palette/index.mjs.map +1 -1
- package/dist/registry/index.js.map +1 -1
- package/dist/registry/index.mjs.map +1 -1
- package/dist/styles/artist-login.scss +374 -374
- package/dist/styles/global.scss +21 -21
- package/dist/styles/workflow-board.scss +440 -440
- package/dist/styles/workflow-nodes.css +340 -340
- package/dist/theme-system/index.js.map +1 -1
- package/dist/theme-system/index.mjs.map +1 -1
- package/dist/themes/artist/index.js.map +1 -1
- package/dist/themes/artist/index.mjs.map +1 -1
- package/dist/themes/bsd/index.js.map +1 -1
- package/dist/themes/bsd/index.mjs.map +1 -1
- package/dist/themes/concept/index.js.map +1 -1
- package/dist/themes/concept/index.mjs.map +1 -1
- package/dist/themes/default/index.js.map +1 -1
- package/dist/themes/default/index.mjs.map +1 -1
- package/package.json +146 -139
package/dist/index.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
3
3
|
import * as ContextMenu from '@radix-ui/react-context-menu';
|
|
4
4
|
import * as DropdownMenu3 from '@radix-ui/react-dropdown-menu';
|
|
5
5
|
import { useSensors, useSensor, PointerSensor, DndContext, DragOverlay, useDroppable, useDraggable } from '@dnd-kit/core';
|
|
6
|
+
import { toast as toast$1, Toaster } from 'sonner';
|
|
6
7
|
import * as Tooltip from '@radix-ui/react-tooltip';
|
|
7
8
|
|
|
8
9
|
var __create = Object.create;
|
|
@@ -722,7 +723,7 @@ var require_lodash = __commonJS({
|
|
|
722
723
|
}
|
|
723
724
|
var runInContext = (function runInContext2(context) {
|
|
724
725
|
context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
|
|
725
|
-
var Array2 = context.Array,
|
|
726
|
+
var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
|
|
726
727
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
|
727
728
|
var coreJsData = context["__core-js_shared__"];
|
|
728
729
|
var funcToString = funcProto.toString;
|
|
@@ -747,8 +748,8 @@ var require_lodash = __commonJS({
|
|
|
747
748
|
} catch (e) {
|
|
748
749
|
}
|
|
749
750
|
})();
|
|
750
|
-
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow =
|
|
751
|
-
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined2, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow =
|
|
751
|
+
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
752
|
+
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined2, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
|
|
752
753
|
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
|
|
753
754
|
var metaMap = WeakMap && new WeakMap();
|
|
754
755
|
var realNames = {};
|
|
@@ -24558,7 +24559,271 @@ function WorkbenchLaneView({
|
|
|
24558
24559
|
}) }) : null })
|
|
24559
24560
|
] });
|
|
24560
24561
|
}
|
|
24561
|
-
|
|
24562
|
+
var DEFAULT_TOAST_DURATION = 5200;
|
|
24563
|
+
var TOAST_DEDUPE_WINDOW = 1200;
|
|
24564
|
+
var DEFAULT_MESSAGES = {
|
|
24565
|
+
errorTitle: "Error",
|
|
24566
|
+
warningTitle: "Warning",
|
|
24567
|
+
defaultErrorDescription: "Something went wrong.",
|
|
24568
|
+
defaultWarningDescription: "Please check and try again."
|
|
24569
|
+
};
|
|
24570
|
+
var ACTIONABLE_TOAST_PATTERNS = [
|
|
24571
|
+
/^(please|select|enter|provide|write|choose|confirm|fill)\b/i,
|
|
24572
|
+
/^(请|请选择|请先|请输入|请填写|请确认|请留意)/
|
|
24573
|
+
];
|
|
24574
|
+
var DEFAULT_TOAST_CLASS_NAMES = {
|
|
24575
|
+
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
24576
|
+
description: "group-[.toast]:text-muted-foreground",
|
|
24577
|
+
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
24578
|
+
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
|
|
24579
|
+
};
|
|
24580
|
+
var recentToastSignatures = /* @__PURE__ */ new Map();
|
|
24581
|
+
function cn4(...classNames) {
|
|
24582
|
+
return classNames.filter(Boolean).join(" ");
|
|
24583
|
+
}
|
|
24584
|
+
function isToastInput(input) {
|
|
24585
|
+
if (!input || typeof input !== "object" || isValidElement(input)) {
|
|
24586
|
+
return false;
|
|
24587
|
+
}
|
|
24588
|
+
return "title" in input || "description" in input || "variant" in input;
|
|
24589
|
+
}
|
|
24590
|
+
function isEmptyToastContent(value) {
|
|
24591
|
+
return value == null || typeof value === "string" && !value.trim();
|
|
24592
|
+
}
|
|
24593
|
+
function normalizeToastInput(input, variant, options) {
|
|
24594
|
+
const { description: _description, ...baseOptions } = options ?? {};
|
|
24595
|
+
if (isToastInput(input)) {
|
|
24596
|
+
return {
|
|
24597
|
+
...baseOptions,
|
|
24598
|
+
...input,
|
|
24599
|
+
variant: input.variant ?? variant
|
|
24600
|
+
};
|
|
24601
|
+
}
|
|
24602
|
+
return {
|
|
24603
|
+
...baseOptions,
|
|
24604
|
+
title: input,
|
|
24605
|
+
variant
|
|
24606
|
+
};
|
|
24607
|
+
}
|
|
24608
|
+
function resolveValue(candidate, value) {
|
|
24609
|
+
if (typeof candidate === "function") {
|
|
24610
|
+
return candidate(value);
|
|
24611
|
+
}
|
|
24612
|
+
return candidate;
|
|
24613
|
+
}
|
|
24614
|
+
function shouldEmitToast(signature) {
|
|
24615
|
+
const now = Date.now();
|
|
24616
|
+
for (const [key, timestamp] of recentToastSignatures.entries()) {
|
|
24617
|
+
if (now - timestamp > TOAST_DEDUPE_WINDOW) {
|
|
24618
|
+
recentToastSignatures.delete(key);
|
|
24619
|
+
}
|
|
24620
|
+
}
|
|
24621
|
+
const previousTimestamp = recentToastSignatures.get(signature);
|
|
24622
|
+
if (previousTimestamp && now - previousTimestamp < TOAST_DEDUPE_WINDOW) {
|
|
24623
|
+
return false;
|
|
24624
|
+
}
|
|
24625
|
+
recentToastSignatures.set(signature, now);
|
|
24626
|
+
return true;
|
|
24627
|
+
}
|
|
24628
|
+
function translateMessage(translate, value) {
|
|
24629
|
+
return translate ? translate(value, { defaultValue: value }) : value;
|
|
24630
|
+
}
|
|
24631
|
+
function getDefaultMessage(messages, key) {
|
|
24632
|
+
return messages?.[key] ?? DEFAULT_MESSAGES[key];
|
|
24633
|
+
}
|
|
24634
|
+
function emitToast(input) {
|
|
24635
|
+
const { title, description, duration, variant = "info", ...options } = input;
|
|
24636
|
+
const message = isEmptyToastContent(title) ? description : title;
|
|
24637
|
+
if (isEmptyToastContent(message)) {
|
|
24638
|
+
return void 0;
|
|
24639
|
+
}
|
|
24640
|
+
const descriptionValue = !isEmptyToastContent(description) && description !== message ? description : void 0;
|
|
24641
|
+
const sonnerOptions = {
|
|
24642
|
+
...options,
|
|
24643
|
+
description: descriptionValue,
|
|
24644
|
+
duration: duration ?? DEFAULT_TOAST_DURATION
|
|
24645
|
+
};
|
|
24646
|
+
switch (variant) {
|
|
24647
|
+
case "error":
|
|
24648
|
+
return toast$1.error(message, sonnerOptions);
|
|
24649
|
+
case "warning":
|
|
24650
|
+
return toast$1.warning(message, sonnerOptions);
|
|
24651
|
+
case "success":
|
|
24652
|
+
return toast$1.success(message, sonnerOptions);
|
|
24653
|
+
default:
|
|
24654
|
+
return toast$1(message, sonnerOptions);
|
|
24655
|
+
}
|
|
24656
|
+
}
|
|
24657
|
+
function extractToastMessage(value, fallback = "") {
|
|
24658
|
+
if (!value) return fallback;
|
|
24659
|
+
if (typeof value === "string") {
|
|
24660
|
+
const nextMessage = value.trim();
|
|
24661
|
+
return nextMessage || fallback;
|
|
24662
|
+
}
|
|
24663
|
+
if (value instanceof Error) {
|
|
24664
|
+
const nextMessage = String(value.message || "").trim();
|
|
24665
|
+
return nextMessage || fallback;
|
|
24666
|
+
}
|
|
24667
|
+
if (typeof value === "object" && typeof value.message === "string") {
|
|
24668
|
+
const nextMessage = value.message.trim();
|
|
24669
|
+
if (nextMessage) return nextMessage;
|
|
24670
|
+
}
|
|
24671
|
+
if (typeof value === "object" && typeof value.title === "string") {
|
|
24672
|
+
const nextTitle = value.title.trim();
|
|
24673
|
+
if (nextTitle) return nextTitle;
|
|
24674
|
+
}
|
|
24675
|
+
return fallback;
|
|
24676
|
+
}
|
|
24677
|
+
function resolveToastVariantForMessage(value) {
|
|
24678
|
+
const message = extractToastMessage(value);
|
|
24679
|
+
if (ACTIONABLE_TOAST_PATTERNS.some((pattern) => pattern.test(message))) {
|
|
24680
|
+
return "warning";
|
|
24681
|
+
}
|
|
24682
|
+
return "error";
|
|
24683
|
+
}
|
|
24684
|
+
function MonkeysToaster({
|
|
24685
|
+
className,
|
|
24686
|
+
closeButton = true,
|
|
24687
|
+
position = "bottom-right",
|
|
24688
|
+
richColors = true,
|
|
24689
|
+
toastOptions,
|
|
24690
|
+
useThemeClassNames = true,
|
|
24691
|
+
visibleToasts = 10,
|
|
24692
|
+
...props
|
|
24693
|
+
}) {
|
|
24694
|
+
return /* @__PURE__ */ jsx(
|
|
24695
|
+
Toaster,
|
|
24696
|
+
{
|
|
24697
|
+
className: cn4("pointer-events-auto toaster group", className),
|
|
24698
|
+
closeButton,
|
|
24699
|
+
position,
|
|
24700
|
+
richColors,
|
|
24701
|
+
toastOptions: {
|
|
24702
|
+
...toastOptions,
|
|
24703
|
+
classNames: useThemeClassNames ? {
|
|
24704
|
+
...DEFAULT_TOAST_CLASS_NAMES,
|
|
24705
|
+
...toastOptions?.classNames
|
|
24706
|
+
} : toastOptions?.classNames
|
|
24707
|
+
},
|
|
24708
|
+
visibleToasts,
|
|
24709
|
+
...props
|
|
24710
|
+
}
|
|
24711
|
+
);
|
|
24712
|
+
}
|
|
24713
|
+
function MonkeysToastProvider({ children, toasterProps }) {
|
|
24714
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
24715
|
+
children,
|
|
24716
|
+
/* @__PURE__ */ jsx(MonkeysToaster, { ...toasterProps })
|
|
24717
|
+
] });
|
|
24718
|
+
}
|
|
24719
|
+
function useToastOnValue(value, options = {}) {
|
|
24720
|
+
const previousSignatureRef = useRef(null);
|
|
24721
|
+
const translate = options.translate;
|
|
24722
|
+
useEffect(() => {
|
|
24723
|
+
if (!value) {
|
|
24724
|
+
previousSignatureRef.current = null;
|
|
24725
|
+
return;
|
|
24726
|
+
}
|
|
24727
|
+
const variant = resolveValue(options.variant, value) ?? "error";
|
|
24728
|
+
const rawTitle = resolveValue(options.title, value);
|
|
24729
|
+
const rawFallbackDescription = resolveValue(options.fallbackDescription, value);
|
|
24730
|
+
const rawDescription = resolveValue(options.description, value) ?? extractToastMessage(value, rawFallbackDescription || "");
|
|
24731
|
+
const title = translateMessage(
|
|
24732
|
+
translate,
|
|
24733
|
+
rawTitle || getDefaultMessage(options.messages, variant === "warning" ? "warningTitle" : "errorTitle")
|
|
24734
|
+
);
|
|
24735
|
+
const description = translateMessage(
|
|
24736
|
+
translate,
|
|
24737
|
+
rawDescription || getDefaultMessage(
|
|
24738
|
+
options.messages,
|
|
24739
|
+
variant === "warning" ? "defaultWarningDescription" : "defaultErrorDescription"
|
|
24740
|
+
)
|
|
24741
|
+
);
|
|
24742
|
+
const signature = resolveValue(options.signature, value) || [variant, title, description].join("|");
|
|
24743
|
+
if (previousSignatureRef.current === signature) {
|
|
24744
|
+
return;
|
|
24745
|
+
}
|
|
24746
|
+
previousSignatureRef.current = signature;
|
|
24747
|
+
if (!shouldEmitToast(signature)) {
|
|
24748
|
+
return;
|
|
24749
|
+
}
|
|
24750
|
+
toast.show({
|
|
24751
|
+
variant,
|
|
24752
|
+
title,
|
|
24753
|
+
description,
|
|
24754
|
+
duration: resolveValue(options.duration, value)
|
|
24755
|
+
});
|
|
24756
|
+
}, [
|
|
24757
|
+
options.description,
|
|
24758
|
+
options.duration,
|
|
24759
|
+
options.fallbackDescription,
|
|
24760
|
+
options.messages,
|
|
24761
|
+
options.signature,
|
|
24762
|
+
options.title,
|
|
24763
|
+
options.variant,
|
|
24764
|
+
translate,
|
|
24765
|
+
value
|
|
24766
|
+
]);
|
|
24767
|
+
}
|
|
24768
|
+
function useToastFeed(items, options = {}) {
|
|
24769
|
+
const previousVisibleSignaturesRef = useRef(/* @__PURE__ */ new Set());
|
|
24770
|
+
const translate = options.translate;
|
|
24771
|
+
const emitItem = useCallback(
|
|
24772
|
+
(item, index, visibleSignatures) => {
|
|
24773
|
+
const variant = item.variant ?? "info";
|
|
24774
|
+
const title = translateMessage(
|
|
24775
|
+
translate,
|
|
24776
|
+
item.title || getDefaultMessage(options.messages, variant === "warning" ? "warningTitle" : "errorTitle")
|
|
24777
|
+
);
|
|
24778
|
+
const description = translateMessage(
|
|
24779
|
+
translate,
|
|
24780
|
+
item.description || getDefaultMessage(
|
|
24781
|
+
options.messages,
|
|
24782
|
+
variant === "warning" ? "defaultWarningDescription" : "defaultErrorDescription"
|
|
24783
|
+
)
|
|
24784
|
+
);
|
|
24785
|
+
const signature = item.signature || [variant, title, description, index].join("|");
|
|
24786
|
+
visibleSignatures.add(signature);
|
|
24787
|
+
if (previousVisibleSignaturesRef.current.has(signature) || !shouldEmitToast(signature)) {
|
|
24788
|
+
return;
|
|
24789
|
+
}
|
|
24790
|
+
toast.show({
|
|
24791
|
+
variant,
|
|
24792
|
+
title,
|
|
24793
|
+
description,
|
|
24794
|
+
duration: item.duration
|
|
24795
|
+
});
|
|
24796
|
+
},
|
|
24797
|
+
[options.messages, translate]
|
|
24798
|
+
);
|
|
24799
|
+
useEffect(() => {
|
|
24800
|
+
const visibleSignatures = /* @__PURE__ */ new Set();
|
|
24801
|
+
items.forEach((item, index) => {
|
|
24802
|
+
if (item) {
|
|
24803
|
+
emitItem(item, index, visibleSignatures);
|
|
24804
|
+
}
|
|
24805
|
+
});
|
|
24806
|
+
previousVisibleSignaturesRef.current = visibleSignatures;
|
|
24807
|
+
}, [emitItem, items]);
|
|
24808
|
+
}
|
|
24809
|
+
var toast = Object.assign(
|
|
24810
|
+
(message, options) => toast$1(message, options),
|
|
24811
|
+
{
|
|
24812
|
+
show: emitToast,
|
|
24813
|
+
error: (input, options) => emitToast(normalizeToastInput(input, "error", options)),
|
|
24814
|
+
warning: (input, options) => emitToast(normalizeToastInput(input, "warning", options)),
|
|
24815
|
+
success: (input, options) => emitToast(normalizeToastInput(input, "success", options)),
|
|
24816
|
+
info: (input, options) => emitToast(normalizeToastInput(input, "info", options)),
|
|
24817
|
+
message: toast$1.message,
|
|
24818
|
+
promise: toast$1.promise,
|
|
24819
|
+
dismiss: toast$1.dismiss,
|
|
24820
|
+
loading: toast$1.loading,
|
|
24821
|
+
custom: toast$1.custom,
|
|
24822
|
+
getHistory: toast$1.getHistory,
|
|
24823
|
+
getToasts: toast$1.getToasts
|
|
24824
|
+
}
|
|
24825
|
+
);
|
|
24826
|
+
function cn5(...inputs) {
|
|
24562
24827
|
return inputs.filter(Boolean).join(" ");
|
|
24563
24828
|
}
|
|
24564
24829
|
function SunIcon({ className }) {
|
|
@@ -24610,7 +24875,7 @@ function DarkModeSelector({
|
|
|
24610
24875
|
const trigger = /* @__PURE__ */ jsx(DropdownMenu3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
24611
24876
|
"button",
|
|
24612
24877
|
{
|
|
24613
|
-
className:
|
|
24878
|
+
className: cn5(
|
|
24614
24879
|
"inline-flex h-8 w-8 items-center justify-center rounded-md text-[hsl(var(--foreground))] hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))] transition-colors focus-visible:outline-none",
|
|
24615
24880
|
className
|
|
24616
24881
|
),
|
|
@@ -24644,7 +24909,7 @@ function DarkModeSelector({
|
|
|
24644
24909
|
children: options.map(({ value, label, Icon }) => /* @__PURE__ */ jsxs(
|
|
24645
24910
|
DropdownMenu3.Item,
|
|
24646
24911
|
{
|
|
24647
|
-
className:
|
|
24912
|
+
className: cn5(
|
|
24648
24913
|
"relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))]",
|
|
24649
24914
|
mode === value && "bg-[hsl(var(--accent))]"
|
|
24650
24915
|
),
|
|
@@ -24706,7 +24971,7 @@ function DarkModeSubMenu({
|
|
|
24706
24971
|
{
|
|
24707
24972
|
checked: mode === value,
|
|
24708
24973
|
disabled: mode === value,
|
|
24709
|
-
className:
|
|
24974
|
+
className: cn5(
|
|
24710
24975
|
"relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 pl-7 text-sm outline-none transition-colors hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))] data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
|
|
24711
24976
|
),
|
|
24712
24977
|
onCheckedChange: () => onModeChange(value),
|
|
@@ -24722,7 +24987,7 @@ function DarkModeSubMenu({
|
|
|
24722
24987
|
) })
|
|
24723
24988
|
] });
|
|
24724
24989
|
}
|
|
24725
|
-
function
|
|
24990
|
+
function cn6(...inputs) {
|
|
24726
24991
|
return inputs.filter(Boolean).join(" ");
|
|
24727
24992
|
}
|
|
24728
24993
|
function GlobeIcon({ className }) {
|
|
@@ -24742,7 +25007,7 @@ function I18nSelector({
|
|
|
24742
25007
|
const trigger = /* @__PURE__ */ jsx(DropdownMenu3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
24743
25008
|
"button",
|
|
24744
25009
|
{
|
|
24745
|
-
className:
|
|
25010
|
+
className: cn6(
|
|
24746
25011
|
"inline-flex h-8 w-8 items-center justify-center rounded-md text-[hsl(var(--foreground))] hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))] transition-colors focus-visible:outline-none",
|
|
24747
25012
|
className
|
|
24748
25013
|
),
|
|
@@ -24776,7 +25041,7 @@ function I18nSelector({
|
|
|
24776
25041
|
children: languages.map(({ code, label }) => /* @__PURE__ */ jsx(
|
|
24777
25042
|
DropdownMenu3.Item,
|
|
24778
25043
|
{
|
|
24779
|
-
className:
|
|
25044
|
+
className: cn6(
|
|
24780
25045
|
"relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))]",
|
|
24781
25046
|
currentLanguage === code && "bg-[hsl(var(--accent))]"
|
|
24782
25047
|
),
|
|
@@ -24851,6 +25116,6 @@ lodash/lodash.js:
|
|
|
24851
25116
|
*)
|
|
24852
25117
|
*/
|
|
24853
25118
|
|
|
24854
|
-
export { ARTIST_CONFIG, ARTIST_DEFAULT_QUICK_ACTIONS, AppHeader, AppLayout, AppSidebar, ArtistLandingPage, AuthDivider, BSD_CONFIG, BSD_DEFAULT_FEATURE_CARDS, BaseAccordion, BaseAvatar, BaseBadge, BaseBreadcrumb, BaseButton, BaseCheckbox, BaseContextMenu, BaseContextMenuCheckboxItem, BaseContextMenuContent, BaseContextMenuItem, BaseContextMenuLabel, BaseContextMenuRadioGroup, BaseContextMenuRadioItem, BaseContextMenuSeparator, BaseContextMenuSub, BaseContextMenuSubContent, BaseContextMenuSubTrigger, BaseContextMenuTrigger, BaseDescriptionList, BaseDialog, BaseDivider, BaseDropdownMenu, BaseEmptyState, BaseField, BaseInput, BaseLayout, BaseLayoutPane, BaseLayoutResizeHandle, BaseLayoutSplit, BaseLoadingState, BaseMultiSelect, BaseNotice, BasePagination, BasePanel, BaseProgress, BaseRadioGroup, BaseSectionHeader, BaseSegmentedControl, BaseSelect, BaseSkeleton, BaseSwitch, BaseTable, BaseTableBody, BaseTableCaption, BaseTableCell, BaseTableContainer, BaseTableEmpty, BaseTableFooter, BaseTableFooterBar, BaseTableHead, BaseTableHeader, BaseTableLoading, BaseTableRow, BaseTabs, BaseTextarea, BaseToolbar, BaseTooltip, BsdLandingPage, BsdToolboxPanel, CONCEPT_CONFIG, CONCEPT_DEFAULT_QUICK_ACTIONS, ConceptDesignLandingPage, DarkModeSelector, DarkModeSubMenu, DataExplorerActionBar, DataExplorerButton, DataExplorerCheckbox, DataExplorerCollectionFooter, DataExplorerDetailField, DataExplorerDetailSection, DataExplorerDetailShell, DataExplorerDisplayActionMenu, DataExplorerDisplayCard, DataExplorerDisplayCollectionView, DataExplorerDisplayListItem, DataExplorerDisplayMedia, DataExplorerImagePreview, DataExplorerPage, DataExplorerRecordCard, DataExplorerSelect, DataExplorerToolbarActions, DataExplorerToolbarShell, DataExplorerTree, DataExplorerTreeShell, DataExplorerView, DataExplorerViewCollection, DataExplorerViewItem, DataExplorerViewItemShell, DataExplorerViewShell, DataExplorerViewTree, DefaultLandingPage, DynamicComponent, EmailAuth, I18nSelector, InteractiveTable, InteractiveTableEditableTextCell, InteractiveTableReadonlyCell, InteractiveTableSelectCell, LoginLayout, NavButton, OAuthButton, OIDCButton, PendingApproval, WorkbenchContentPane, WorkbenchContentToolbar, WorkbenchDetailSidebar, WorkbenchGalleryCard, WorkbenchGallerySettingsButton, WorkbenchGallerySettingsPanel, WorkbenchGalleryView, WorkbenchLaneView, WorkbenchMasonryLayout, WorkbenchResizableSidebar, WorkbenchTableView, applyMonkeysTheme, calculateHue, calculateLightness, calculateSaturation, clearRegistry, cn3 as cn, createSolidColorScale, genTailwindTheme, getBaseBadgeToneClassName, getBaseButtonToneClassName, getBaseMenuItemToneClassName, getBaseNoticeToneClassName, getDataExplorerActionToneClassName, getDataExplorerMenuItemToneClassName, getRegisteredComponents, getRegisteredThemes, getThemeConfig, hasCustomComponent, markDarkColor, registerComponent, registerTheme, resolveBaseAppearance, resolveComponent, resolveDataExplorerAppearance, resolveMonkeysTheme, setNeocardTheme, setTailwindTheme, useDarkMode };
|
|
25119
|
+
export { ARTIST_CONFIG, ARTIST_DEFAULT_QUICK_ACTIONS, AppHeader, AppLayout, AppSidebar, ArtistLandingPage, AuthDivider, BSD_CONFIG, BSD_DEFAULT_FEATURE_CARDS, BaseAccordion, BaseAvatar, BaseBadge, BaseBreadcrumb, BaseButton, BaseCheckbox, BaseContextMenu, BaseContextMenuCheckboxItem, BaseContextMenuContent, BaseContextMenuItem, BaseContextMenuLabel, BaseContextMenuRadioGroup, BaseContextMenuRadioItem, BaseContextMenuSeparator, BaseContextMenuSub, BaseContextMenuSubContent, BaseContextMenuSubTrigger, BaseContextMenuTrigger, BaseDescriptionList, BaseDialog, BaseDivider, BaseDropdownMenu, BaseEmptyState, BaseField, BaseInput, BaseLayout, BaseLayoutPane, BaseLayoutResizeHandle, BaseLayoutSplit, BaseLoadingState, BaseMultiSelect, BaseNotice, BasePagination, BasePanel, BaseProgress, BaseRadioGroup, BaseSectionHeader, BaseSegmentedControl, BaseSelect, BaseSkeleton, BaseSwitch, BaseTable, BaseTableBody, BaseTableCaption, BaseTableCell, BaseTableContainer, BaseTableEmpty, BaseTableFooter, BaseTableFooterBar, BaseTableHead, BaseTableHeader, BaseTableLoading, BaseTableRow, BaseTabs, BaseTextarea, BaseToolbar, BaseTooltip, BsdLandingPage, BsdToolboxPanel, CONCEPT_CONFIG, CONCEPT_DEFAULT_QUICK_ACTIONS, ConceptDesignLandingPage, DarkModeSelector, DarkModeSubMenu, DataExplorerActionBar, DataExplorerButton, DataExplorerCheckbox, DataExplorerCollectionFooter, DataExplorerDetailField, DataExplorerDetailSection, DataExplorerDetailShell, DataExplorerDisplayActionMenu, DataExplorerDisplayCard, DataExplorerDisplayCollectionView, DataExplorerDisplayListItem, DataExplorerDisplayMedia, DataExplorerImagePreview, DataExplorerPage, DataExplorerRecordCard, DataExplorerSelect, DataExplorerToolbarActions, DataExplorerToolbarShell, DataExplorerTree, DataExplorerTreeShell, DataExplorerView, DataExplorerViewCollection, DataExplorerViewItem, DataExplorerViewItemShell, DataExplorerViewShell, DataExplorerViewTree, DefaultLandingPage, DynamicComponent, EmailAuth, I18nSelector, InteractiveTable, InteractiveTableEditableTextCell, InteractiveTableReadonlyCell, InteractiveTableSelectCell, LoginLayout, MonkeysToastProvider, MonkeysToaster, NavButton, OAuthButton, OIDCButton, PendingApproval, MonkeysToastProvider as ToastProvider, MonkeysToaster as Toaster, WorkbenchContentPane, WorkbenchContentToolbar, WorkbenchDetailSidebar, WorkbenchGalleryCard, WorkbenchGallerySettingsButton, WorkbenchGallerySettingsPanel, WorkbenchGalleryView, WorkbenchLaneView, WorkbenchMasonryLayout, WorkbenchResizableSidebar, WorkbenchTableView, applyMonkeysTheme, calculateHue, calculateLightness, calculateSaturation, clearRegistry, cn3 as cn, createSolidColorScale, extractToastMessage, genTailwindTheme, getBaseBadgeToneClassName, getBaseButtonToneClassName, getBaseMenuItemToneClassName, getBaseNoticeToneClassName, getDataExplorerActionToneClassName, getDataExplorerMenuItemToneClassName, getRegisteredComponents, getRegisteredThemes, getThemeConfig, hasCustomComponent, markDarkColor, registerComponent, registerTheme, resolveBaseAppearance, resolveComponent, resolveDataExplorerAppearance, resolveMonkeysTheme, resolveToastVariantForMessage, setNeocardTheme, setTailwindTheme, toast, useDarkMode, useToastFeed, useToastOnValue };
|
|
24855
25120
|
//# sourceMappingURL=index.mjs.map
|
|
24856
25121
|
//# sourceMappingURL=index.mjs.map
|