@dust-tt/sparkle 0.2.275 → 0.2.276
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/cjs/index.js +103 -25
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Dialog.js +1 -1
- package/dist/esm/components/Dialog.js.map +1 -1
- package/dist/esm/components/Input.d.ts.map +1 -1
- package/dist/esm/components/Input.js +20 -7
- package/dist/esm/components/Input.js.map +1 -1
- package/dist/esm/components/Label.js +1 -1
- package/dist/esm/components/Label.js.map +1 -1
- package/dist/esm/components/NavigationList.d.ts +18 -0
- package/dist/esm/components/NavigationList.d.ts.map +1 -0
- package/dist/esm/components/NavigationList.js +70 -0
- package/dist/esm/components/NavigationList.js.map +1 -0
- package/dist/esm/components/NewDropdown.js +2 -2
- package/dist/esm/components/NewDropdown.js.map +1 -1
- package/dist/esm/components/Popover.js +1 -1
- package/dist/esm/components/RadioGroup.d.ts.map +1 -1
- package/dist/esm/components/RadioGroup.js +4 -4
- package/dist/esm/components/RadioGroup.js.map +1 -1
- package/dist/esm/components/Spinner.js +1 -1
- package/dist/esm/components/Tree.d.ts +2 -1
- package/dist/esm/components/Tree.d.ts.map +1 -1
- package/dist/esm/components/Tree.js +8 -8
- package/dist/esm/components/Tree.js.map +1 -1
- package/dist/esm/components/index.d.ts +2 -1
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +2 -1
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/stories/Input.stories.js +1 -1
- package/dist/esm/stories/Input.stories.js.map +1 -1
- package/dist/esm/stories/NavigationList.stories.d.ts +7 -0
- package/dist/esm/stories/NavigationList.stories.d.ts.map +1 -0
- package/dist/esm/stories/NavigationList.stories.js +140 -0
- package/dist/esm/stories/NavigationList.stories.js.map +1 -0
- package/dist/sparkle.css +95 -98
- package/package.json +1 -1
- package/src/components/Dialog.tsx +1 -1
- package/src/components/Input.tsx +44 -31
- package/src/components/Label.tsx +1 -1
- package/src/components/NavigationList.tsx +137 -0
- package/src/components/NewDropdown.tsx +2 -2
- package/src/components/Popover.tsx +1 -1
- package/src/components/RadioGroup.tsx +20 -22
- package/src/components/Spinner.tsx +1 -1
- package/src/components/Tree.tsx +10 -8
- package/src/components/index.ts +6 -1
- package/src/stories/Input.stories.tsx +14 -14
- package/src/stories/NavigationList.stories.tsx +173 -0
package/dist/cjs/index.js
CHANGED
|
@@ -79204,7 +79204,7 @@ var Label$2 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
|
79204
79204
|
Label$2.displayName = NAME$3;
|
|
79205
79205
|
var Root$6 = Label$2;
|
|
79206
79206
|
|
|
79207
|
-
var labelVariants = cn("s-text-sm s-text-foreground s-leading-none", "peer-disabled:s-cursor-not-allowed peer-disabled:s-opacity-70");
|
|
79207
|
+
var labelVariants = cn("s-text-sm s-font-medium s-text-foreground s-leading-none", "peer-disabled:s-cursor-not-allowed peer-disabled:s-opacity-70");
|
|
79208
79208
|
var Label$1 = React__namespace.forwardRef(function (_a, ref) {
|
|
79209
79209
|
var className = _a.className, props = __rest(_a, ["className"]);
|
|
79210
79210
|
return (React__namespace.createElement(Root$6, __assign({ ref: ref, className: cn(labelVariants, className) }, props)));
|
|
@@ -105674,7 +105674,7 @@ var colors = {
|
|
|
105674
105674
|
dark: [0.0588, 0.0902, 0.1647, 1],
|
|
105675
105675
|
purple900: [0.298, 0.1137, 0.5843, 1], // #4C1D95
|
|
105676
105676
|
pink900: [0.5137, 0.0941, 0.2627, 1], // #831843
|
|
105677
|
-
slate400: [0.
|
|
105677
|
+
slate400: [0.5804, 0.6392, 0.7216, 1], // #94A3B8
|
|
105678
105678
|
};
|
|
105679
105679
|
var isColorArray = function (arr) {
|
|
105680
105680
|
return (Array.isArray(arr) &&
|
|
@@ -111353,7 +111353,7 @@ var PopoverTrigger = Trigger$1;
|
|
|
111353
111353
|
var PopoverContent = React__namespace.forwardRef(function (_a, ref) {
|
|
111354
111354
|
var className = _a.className, _b = _a.align, align = _b === void 0 ? "center" : _b, _c = _a.sideOffset, sideOffset = _c === void 0 ? 4 : _c, _d = _a.fullWidth, fullWidth = _d === void 0 ? false : _d, props = __rest(_a, ["className", "align", "sideOffset", "fullWidth"]);
|
|
111355
111355
|
return (React__namespace.createElement(Portal$2, null,
|
|
111356
|
-
React__namespace.createElement(Content2$2, __assign({ ref: ref, align: align, sideOffset: sideOffset, className: cn("data-[state=open]:s-animate-in data-[state=open]:s-fade-in-0 data-[state=open]:s-zoom-in-95", "data-[state=closed]:s-animate-out data-[state=closed]:s-fade-out-0 data-[state=closed]:s-zoom-out-95", "data-[side=bottom]:s-slide-in-from-top-2", "data-[side=left]:s-slide-in-from-right-2", "data-[side=right]:s-slide-in-from-left-2", "data-[side=top]:s-slide-in-from-bottom-2", "s-z-50 s-rounded-
|
|
111356
|
+
React__namespace.createElement(Content2$2, __assign({ ref: ref, align: align, sideOffset: sideOffset, className: cn("data-[state=open]:s-animate-in data-[state=open]:s-fade-in-0 data-[state=open]:s-zoom-in-95", "data-[state=closed]:s-animate-out data-[state=closed]:s-fade-out-0 data-[state=closed]:s-zoom-out-95", "data-[side=bottom]:s-slide-in-from-top-2", "data-[side=left]:s-slide-in-from-right-2", "data-[side=right]:s-slide-in-from-left-2", "data-[side=top]:s-slide-in-from-bottom-2", "s-z-50 s-rounded-xl s-border s-bg-background s-text-primary-950 s-shadow-md s-outline-none", fullWidth ? "s-grow" : "s-w-72 s-p-4", className) }, props))));
|
|
111357
111357
|
});
|
|
111358
111358
|
function Popover(_a) {
|
|
111359
111359
|
var trigger = _a.trigger, _b = _a.popoverTriggerAsChild, popoverTriggerAsChild = _b === void 0 ? false : _b, content = _a.content, props = __rest(_a, ["trigger", "popoverTriggerAsChild", "content"]);
|
|
@@ -115118,7 +115118,7 @@ function Dialog(_a) {
|
|
|
115118
115118
|
React.createElement("div", { className: "s-flex s-w-full s-justify-end" },
|
|
115119
115119
|
React.createElement("div", { className: "s-flex s-gap-2" },
|
|
115120
115120
|
!isSaving && (React.createElement(React.Fragment, null,
|
|
115121
|
-
props.onCancel && (React.createElement(Button, { label: (_b = props.cancelLabel) !== null && _b !== void 0 ? _b : "Cancel", variant: "
|
|
115121
|
+
props.onCancel && (React.createElement(Button, { label: (_b = props.cancelLabel) !== null && _b !== void 0 ? _b : "Cancel", variant: "outline", onClick: props.onCancel })),
|
|
115122
115122
|
React.createElement(Button, { disabled: disabled, label: validateLabel, variant: validateVariant, onClick: onValidate }))),
|
|
115123
115123
|
isSaving && React.createElement(Spinner$1, { variant: "color" }))),
|
|
115124
115124
|
backgroundType !== "none" && (React.createElement("div", { className: "s-absolute s-bottom-0 s-left-0 s-right-0 s-top-0 s-z-0" },
|
|
@@ -116023,15 +116023,26 @@ function IconToggleButton(_a) {
|
|
|
116023
116023
|
return tooltip ? (React.createElement(Tooltip, { trigger: IconButtonToggleContent, label: tooltip, side: tooltipPosition })) : (IconButtonToggleContent);
|
|
116024
116024
|
}
|
|
116025
116025
|
|
|
116026
|
-
var
|
|
116026
|
+
var stateVariantStyles = {
|
|
116027
|
+
default: "focus-visible:s-ring-ring",
|
|
116028
|
+
disabled: "disabled:s-cursor-not-allowed disabled:s-opacity-50 disabled:s-text-muted-foreground",
|
|
116029
|
+
error: "s-border-border-warning focus:s-ring-ring-warning",
|
|
116030
|
+
};
|
|
116031
|
+
var inputStyleClasses = cva(cn("s-text-sm s-bg-background s-rounded-xl s-border s-border-border-dark s-flex s-h-9 s-w-full s-px-3 s-py-1.5 ", "file:s-border-0 file:s-bg-transparent file:s-text-sm file:s-font-medium file:s-text-foreground", "placeholder:s-text-muted-foreground", "focus-visible:s-outline-none focus-visible:s-ring-2 focus-visible:s-ring-offset-2 focus-visible:s-border-border-dark"), {
|
|
116032
|
+
variants: {
|
|
116033
|
+
state: stateVariantStyles,
|
|
116034
|
+
},
|
|
116035
|
+
defaultVariants: {
|
|
116036
|
+
state: "default",
|
|
116037
|
+
},
|
|
116038
|
+
});
|
|
116027
116039
|
var Input = React.forwardRef(function (_a, ref) {
|
|
116028
|
-
var className = _a.className, error = _a.error, value = _a.value, label = _a.label, _b = _a.showErrorLabel, showErrorLabel = _b === void 0 ? false : _b, props = __rest(_a, ["className", "error", "value", "label", "showErrorLabel"]);
|
|
116040
|
+
var className = _a.className, error = _a.error, value = _a.value, label = _a.label, disabled = _a.disabled, _b = _a.showErrorLabel, showErrorLabel = _b === void 0 ? false : _b, props = __rest(_a, ["className", "error", "value", "label", "disabled", "showErrorLabel"]);
|
|
116041
|
+
var state = error ? "error" : disabled ? "disabled" : "default";
|
|
116029
116042
|
return (React.createElement("div", { className: "s-flex s-flex-col s-gap-1 s-px-1" },
|
|
116030
|
-
label &&
|
|
116031
|
-
React.createElement("input", __assign({ ref: ref, className: cn(inputStyleClasses, className,
|
|
116032
|
-
|
|
116033
|
-
: cn("s-ring-warning-200 focus:s-ring-warning-300", "dark:s-ring-warning-200-dark dark:focus:s-ring-warning-300-dark")), "data-1p-ignore": props.type !== "password", value: value !== null && value !== void 0 ? value : undefined }, props)),
|
|
116034
|
-
React.createElement("div", { className: "s-ml-2 s-text-sm s-text-warning-500" }, showErrorLabel && error ? error : null)));
|
|
116043
|
+
label && React.createElement(Label$1, { htmlFor: props.name }, label),
|
|
116044
|
+
React.createElement("input", __assign({ ref: ref, className: cn(inputStyleClasses({ state: state }), className), "data-1p-ignore": props.type !== "password", value: value !== null && value !== void 0 ? value : undefined, disabled: disabled }, props)),
|
|
116045
|
+
showErrorLabel && error && (React.createElement("div", { className: "s-ml-3.5 s-text-xs s-text-foreground-warning" }, error))));
|
|
116035
116046
|
});
|
|
116036
116047
|
Input.displayName = "Input";
|
|
116037
116048
|
|
|
@@ -137574,6 +137585,69 @@ function Markdown(_a) {
|
|
|
137574
137585
|
}, className: className }, content));
|
|
137575
137586
|
}
|
|
137576
137587
|
|
|
137588
|
+
var listStyles = cva("s-flex", {
|
|
137589
|
+
variants: {
|
|
137590
|
+
layout: {
|
|
137591
|
+
container: "s-gap-1 s-flex-col s-overflow-hidden",
|
|
137592
|
+
item: cn("s-box-border s-items-center s-w-full s-flex s-gap-1.5 s-cursor-pointer s-select-none s-items-center s-outline-none s-rounded-xl s-text-sm s-px-3 s-py-2 s-transition-colors s-duration-300", "data-[disabled]:s-pointer-events-none data-[disabled]:s-text-muted-foreground", "hover:s-text-foreground hover:s-bg-structure-150"),
|
|
137593
|
+
},
|
|
137594
|
+
state: {
|
|
137595
|
+
active: "active:s-bg-structure-200",
|
|
137596
|
+
selected: "s-text-foreground s-font-medium s-bg-structure-150",
|
|
137597
|
+
unselected: "s-text-muted-foreground",
|
|
137598
|
+
},
|
|
137599
|
+
},
|
|
137600
|
+
defaultVariants: {
|
|
137601
|
+
layout: "container",
|
|
137602
|
+
state: "unselected",
|
|
137603
|
+
},
|
|
137604
|
+
});
|
|
137605
|
+
var labelStyles = cva("s-font-semibold s-pt-6 s-pb-2 s-text-xs s-whitespace-nowrap s-overflow-hidden s-text-ellipsis");
|
|
137606
|
+
var NavigationList = React__namespace.forwardRef(function (_a, ref) {
|
|
137607
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
137608
|
+
return (React__namespace.createElement("div", __assign({ ref: ref, className: cn(listStyles({ layout: "container" }), className) }, props)));
|
|
137609
|
+
});
|
|
137610
|
+
NavigationList.displayName = "NavigationList";
|
|
137611
|
+
var NavigationListItem = React__namespace.forwardRef(function (_a, ref) {
|
|
137612
|
+
var className = _a.className, selected = _a.selected, label = _a.label, icon = _a.icon, props = __rest(_a, ["className", "selected", "label", "icon"]);
|
|
137613
|
+
var _b = __read(React__namespace.useState(false), 2), isHovered = _b[0], setIsHovered = _b[1];
|
|
137614
|
+
var _c = __read(React__namespace.useState(false), 2), isPressed = _c[0], setIsPressed = _c[1];
|
|
137615
|
+
var handleMouseDown = function (event) {
|
|
137616
|
+
if (!event.target.closest(".new-button-class")) {
|
|
137617
|
+
setIsPressed(true);
|
|
137618
|
+
}
|
|
137619
|
+
};
|
|
137620
|
+
return (React__namespace.createElement("div", __assign({ className: className, ref: ref }, props),
|
|
137621
|
+
React__namespace.createElement("div", { className: listStyles({
|
|
137622
|
+
layout: "item",
|
|
137623
|
+
state: selected ? "selected" : isPressed ? "active" : "unselected",
|
|
137624
|
+
}), onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () {
|
|
137625
|
+
setIsHovered(false);
|
|
137626
|
+
setIsPressed(false);
|
|
137627
|
+
}, onMouseDown: handleMouseDown, onMouseUp: function () { return setIsPressed(false); } },
|
|
137628
|
+
icon && React__namespace.createElement(Icon, { visual: icon, size: "sm" }),
|
|
137629
|
+
label && (React__namespace.createElement("span", { className: "s-grow s-overflow-hidden s-text-ellipsis s-whitespace-nowrap" }, label)),
|
|
137630
|
+
isHovered && (React__namespace.createElement("div", { className: "-s-mr-2 s-flex s-h-4 s-items-center" },
|
|
137631
|
+
React__namespace.createElement(Button, { variant: "ghost", icon: MoreIcon, size: "xs", onClick: function (e) { return e.stopPropagation(); }, onMouseDown: function (e) { return e.stopPropagation(); }, onMouseUp: function (e) { return e.stopPropagation(); } }))))));
|
|
137632
|
+
});
|
|
137633
|
+
NavigationListItem.displayName = "NavigationListItem";
|
|
137634
|
+
var variantStyles = cva("", {
|
|
137635
|
+
variants: {
|
|
137636
|
+
variant: {
|
|
137637
|
+
primary: "s-text-foreground",
|
|
137638
|
+
secondary: "s-text-muted-foreground",
|
|
137639
|
+
},
|
|
137640
|
+
},
|
|
137641
|
+
defaultVariants: {
|
|
137642
|
+
variant: "primary",
|
|
137643
|
+
},
|
|
137644
|
+
});
|
|
137645
|
+
var NavigationListLabel = React__namespace.forwardRef(function (_a, ref) {
|
|
137646
|
+
var className = _a.className, variant = _a.variant, label = _a.label, props = __rest(_a, ["className", "variant", "label"]);
|
|
137647
|
+
return (React__namespace.createElement("div", __assign({ ref: ref, className: cn(labelStyles(), variantStyles({ variant: variant }), className) }, props), label));
|
|
137648
|
+
});
|
|
137649
|
+
NavigationListLabel.displayName = "NavigationListLabel";
|
|
137650
|
+
|
|
137577
137651
|
// packages/core/primitive/src/primitive.tsx
|
|
137578
137652
|
function composeEventHandlers$3(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
137579
137653
|
return function handleEvent(event) {
|
|
@@ -140547,7 +140621,7 @@ var SubContent2 = DropdownMenuSubContent;
|
|
|
140547
140621
|
|
|
140548
140622
|
var menuStyleClasses = {
|
|
140549
140623
|
inset: "s-pl-8",
|
|
140550
|
-
container: cn("s-rounded-
|
|
140624
|
+
container: cn("s-rounded-xl s-border s-border-hovering s-bg-white s-p-1 s-text-primary-950", "s-z-50 s-min-w-[8rem] s-overflow-hidden", "data-[state=open]:s-animate-in data-[state=closed]:s-animate-out data-[state=closed]:s-fade-out-0 data-[state=open]:s-fade-in-0 data-[state=closed]:s-zoom-out-95 data-[state=open]:s-zoom-in-95 data-[side=bottom]:s-slide-in-from-top-2 data-[side=left]:s-slide-in-from-right-2 data-[side=right]:s-slide-in-from-left-2 data-[side=top]:s-slide-in-from-bottom-2"),
|
|
140551
140625
|
item: cva("s-relative s-flex s-gap-2 s-cursor-pointer s-select-none s-items-center s-outline-none s-rounded-md s-text-sm s-font-medium s-px-2 s-py-2 s-transition-colors s-duration-300 data-[disabled]:s-pointer-events-none data-[disabled]:s-text-primary-400", {
|
|
140552
140626
|
variants: {
|
|
140553
140627
|
variant: {
|
|
@@ -140577,7 +140651,7 @@ var NewDropdownMenuTrigger = Trigger;
|
|
|
140577
140651
|
var ItemWithLabelIconAndDescription = function (_a) {
|
|
140578
140652
|
var label = _a.label, icon = _a.icon, description = _a.description, children = _a.children;
|
|
140579
140653
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
140580
|
-
label && (React__namespace.createElement("div", { className: "s-grid s-grid-cols-[auto,1fr] s-gap-x-1" },
|
|
140654
|
+
label && (React__namespace.createElement("div", { className: "s-grid s-grid-cols-[auto,1fr] s-gap-x-1.5" },
|
|
140581
140655
|
icon && (React__namespace.createElement("div", { className: cn("s-flex", description ? "s-items-start s-pt-0.5" : "s-items-center") },
|
|
140582
140656
|
React__namespace.createElement(Icon, { size: "xs", visual: icon }))),
|
|
140583
140657
|
React__namespace.createElement("div", { className: "s-flex s-flex-col" },
|
|
@@ -141836,14 +141910,14 @@ var radioIndicatorStyles = cva("s-bg-primary s-flex s-items-center s-justify-cen
|
|
|
141836
141910
|
});
|
|
141837
141911
|
var RadioGroup = React__namespace.forwardRef(function (_a, ref) {
|
|
141838
141912
|
var className = _a.className, props = __rest(_a, ["className"]);
|
|
141839
|
-
return (React__namespace.createElement(Root2, __assign({ className: cn("s-grid", className) }, props, { ref: ref })));
|
|
141913
|
+
return (React__namespace.createElement(Root2, __assign({ className: cn("s-grid s-gap-2", className) }, props, { ref: ref })));
|
|
141840
141914
|
});
|
|
141841
141915
|
RadioGroup.displayName = Root2.displayName;
|
|
141842
141916
|
var RadioGroupItem = React__namespace.forwardRef(function (_a, ref) {
|
|
141843
141917
|
var tooltipMessage = _a.tooltipMessage, className = _a.className, size = _a.size, _b = _a.tooltipAsChild, tooltipAsChild = _b === void 0 ? false : _b, props = __rest(_a, ["tooltipMessage", "className", "size", "tooltipAsChild"]);
|
|
141844
|
-
|
|
141845
|
-
|
|
141846
|
-
|
|
141918
|
+
var item = (React__namespace.createElement(Item2, __assign({ ref: ref, className: cn(radioStyles({ size: size }), className) }, props),
|
|
141919
|
+
React__namespace.createElement(Indicator, { className: radioIndicatorStyles({ size: size }) })));
|
|
141920
|
+
return (React__namespace.createElement("div", { className: cn("s-group", size === "sm" ? "s-h-5 s-w-5" : "-s-mt-1.5 s-h-4 s-w-4") }, tooltipMessage ? (React__namespace.createElement(Tooltip, { triggerAsChild: tooltipAsChild, trigger: item, label: React__namespace.createElement("span", null, tooltipMessage) })) : (item)));
|
|
141847
141921
|
});
|
|
141848
141922
|
RadioGroupItem.displayName = Item2.displayName;
|
|
141849
141923
|
var RadioGroupChoice = React__namespace.forwardRef(function (_a, ref) {
|
|
@@ -142953,7 +143027,7 @@ var TextArea = React.forwardRef(function (_a, ref) {
|
|
|
142953
143027
|
TextArea.displayName = "TextArea";
|
|
142954
143028
|
|
|
142955
143029
|
function Tree(_a) {
|
|
142956
|
-
var children = _a.children, isLoading = _a.isLoading, _b = _a.isBoxed, isBoxed = _b === void 0 ? false : _b, tailwindIconTextColor = _a.tailwindIconTextColor, _c = _a.variant, variant = _c === void 0 ? "finder" : _c;
|
|
143030
|
+
var children = _a.children, isLoading = _a.isLoading, _b = _a.isBoxed, isBoxed = _b === void 0 ? false : _b, tailwindIconTextColor = _a.tailwindIconTextColor, _c = _a.variant, variant = _c === void 0 ? "finder" : _c, className = _a.className;
|
|
142957
143031
|
var modifiedChildren = React.Children.map(children, function (child) {
|
|
142958
143032
|
// /!\ Limitation: This stops on the first invalid element.
|
|
142959
143033
|
// Meaning that if Tree.Item is not the first child, it will not work.
|
|
@@ -142970,15 +143044,15 @@ function Tree(_a) {
|
|
|
142970
143044
|
}
|
|
142971
143045
|
return child;
|
|
142972
143046
|
});
|
|
142973
|
-
return isLoading ? (React.createElement("div", { className: "s-py-2 s-pl-4" },
|
|
143047
|
+
return isLoading ? (React.createElement("div", { className: cn("s-py-2 s-pl-4", className) },
|
|
142974
143048
|
React.createElement(Spinner$1, { size: "xs", variant: "dark" }))) : (React.createElement("div", { className: cn("s-flex s-flex-col s-gap-0.5 s-overflow-hidden", isBoxed &&
|
|
142975
|
-
"s-rounded-xl s-border s-border-structure-200 s-bg-structure-50 s-p-4") }, modifiedChildren));
|
|
143049
|
+
"s-rounded-xl s-border s-border-structure-200 s-bg-structure-50 s-p-4", className) }, modifiedChildren));
|
|
142976
143050
|
}
|
|
142977
143051
|
var treeItemStyleClasses = {
|
|
142978
|
-
base: "s-group/tree s-flex s-cursor-default s-flex-row s-items-center s-gap-2 s-py-
|
|
142979
|
-
isNavigatableBase: "s-rounded-
|
|
142980
|
-
isNavigatableUnselected: "s-
|
|
142981
|
-
isNavigatableSelected: "s-
|
|
143052
|
+
base: "s-group/tree s-flex s-cursor-default s-flex-row s-items-center s-gap-2 s-py-2",
|
|
143053
|
+
isNavigatableBase: "s-rounded-xl s-pl-1.5 s-pr-3 s-transition-colors s-duration-300 s-ease-out s-cursor-pointer",
|
|
143054
|
+
isNavigatableUnselected: "s-bg-structure-150/0 hover:s-bg-structure-150",
|
|
143055
|
+
isNavigatableSelected: "s-font-medium s-bg-structure-150",
|
|
142982
143056
|
};
|
|
142983
143057
|
Tree.Item = function (_a) {
|
|
142984
143058
|
var label = _a.label, _b = _a.type, type = _b === void 0 ? "node" : _b, _c = _a.className, className = _c === void 0 ? "" : _c, _d = _a.labelClassName, labelClassName = _d === void 0 ? "" : _d, _e = _a.tailwindIconTextColor, tailwindIconTextColor = _e === void 0 ? "s-text-element-800" : _e, visual = _a.visual, checkbox = _a.checkbox, onChevronClick = _a.onChevronClick, collapsed = _a.collapsed, defaultCollapsed = _a.defaultCollapsed, actions = _a.actions, _f = _a.areActionsFading, areActionsFading = _f === void 0 ? true : _f, renderTreeItems = _a.renderTreeItems, children = _a.children, _g = _a.isNavigatable, isNavigatable = _g === void 0 ? false : _g, _h = _a.isSelected, isSelected = _h === void 0 ? false : _h, onItemClick = _a.onItemClick;
|
|
@@ -143010,7 +143084,7 @@ Tree.Item = function (_a) {
|
|
|
143010
143084
|
} })),
|
|
143011
143085
|
type === "leaf" && React.createElement("div", { className: "s-w-4 s-flex-shrink-0" }),
|
|
143012
143086
|
checkbox && React.createElement(Checkbox, __assign({}, checkbox, { size: "xs" })),
|
|
143013
|
-
React.createElement(Icon, { visual: visual, size: "
|
|
143087
|
+
React.createElement(Icon, { visual: visual, size: "sm", className: tailwindIconTextColor }),
|
|
143014
143088
|
React.createElement("div", { className: "s-font-regular s-truncate s-text-sm s-text-element-900 ".concat(labelClassName) }, label),
|
|
143015
143089
|
React.createElement("div", { className: "s-grow" }),
|
|
143016
143090
|
actions && (React.createElement("div", { className: cn("s-flex s-gap-2 s-pl-4", areActionsFading &&
|
|
@@ -143505,6 +143579,9 @@ exports.MoreIcon = MoreIcon;
|
|
|
143505
143579
|
exports.MoreStrokeIcon = SvgMore$1;
|
|
143506
143580
|
exports.MovingMailIcon = SvgMovingMail$3;
|
|
143507
143581
|
exports.MovingMailStrokeIcon = SvgMovingMail$1;
|
|
143582
|
+
exports.NavigationList = NavigationList;
|
|
143583
|
+
exports.NavigationListItem = NavigationListItem;
|
|
143584
|
+
exports.NavigationListLabel = NavigationListLabel;
|
|
143508
143585
|
exports.NewDropdownMenu = NewDropdownMenu;
|
|
143509
143586
|
exports.NewDropdownMenuCheckboxItem = NewDropdownMenuCheckboxItem;
|
|
143510
143587
|
exports.NewDropdownMenuContent = NewDropdownMenuContent;
|
|
@@ -143573,6 +143650,7 @@ exports.SalesforceLogo = SvgSalesforce$1;
|
|
|
143573
143650
|
exports.ScanIcon = SvgScan$3;
|
|
143574
143651
|
exports.ScanStrokeIcon = SvgScan$1;
|
|
143575
143652
|
exports.ScrollArea = ScrollArea;
|
|
143653
|
+
exports.ScrollBar = ScrollBar;
|
|
143576
143654
|
exports.Searchbar = Searchbar;
|
|
143577
143655
|
exports.Separator = Separator;
|
|
143578
143656
|
exports.ServerIcon = SvgServer$3;
|