@dust-tt/sparkle 0.2.222 → 0.2.223
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 +38 -38
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Collapsible.js +9 -9
- package/dist/esm/components/Collapsible.js.map +1 -1
- package/dist/esm/components/DataTable.js +2 -2
- package/dist/esm/components/DataTable.js.map +1 -1
- package/dist/esm/components/DropdownMenu.d.ts +2 -2
- package/dist/esm/components/DropdownMenu.d.ts.map +1 -1
- package/dist/esm/components/DropdownMenu.js +11 -11
- package/dist/esm/components/DropdownMenu.js.map +1 -1
- package/dist/esm/components/Item.js +11 -11
- package/dist/esm/components/Item.js.map +1 -1
- package/dist/esm/components/Tab.js +3 -3
- package/dist/esm/components/Tab.js.map +1 -1
- package/dist/esm/components/Tree.js +2 -2
- package/dist/esm/components/Tree.js.map +1 -1
- package/dist/esm/stories/DataTable.stories.d.ts.map +1 -1
- package/dist/esm/stories/DataTable.stories.js +2 -1
- package/dist/esm/stories/DataTable.stories.js.map +1 -1
- package/dist/sparkle.css +55 -16
- package/package.json +1 -1
- package/src/components/Collapsible.tsx +9 -9
- package/src/components/DataTable.tsx +2 -2
- package/src/components/DropdownMenu.tsx +19 -16
- package/src/components/Item.tsx +13 -13
- package/src/components/Tab.tsx +3 -3
- package/src/components/Tree.tsx +2 -2
- package/src/stories/DataTable.stories.tsx +2 -1
package/dist/cjs/index.js
CHANGED
|
@@ -71866,10 +71866,10 @@ var labelStyleClasses = {
|
|
|
71866
71866
|
warning: "s-font-semibold",
|
|
71867
71867
|
};
|
|
71868
71868
|
var labelColorClasses = {
|
|
71869
|
-
item: "s-text-element-600 dark:s-text-element-500-dark group-hover:s-text-action-500 group-active:s-text-action-700 dark:group-hover:s-text-action-600-dark dark:group-active:s-text-action-400-dark",
|
|
71870
|
-
action: "s-text-element-800 dark:s-text-element-800-dark group-hover:s-text-action-500 group-active:s-text-action-700 dark:group-hover:s-text-action-600-dark dark:group-active:s-text-action-400-dark",
|
|
71871
|
-
link: "s-text-element-800 dark:s-text-element-800-dark group-hover:s-text-action-500 group-active:s-text-action-700 dark:group-hover:s-text-action-600-dark dark:group-active:s-text-action-400-dark",
|
|
71872
|
-
warning: "s-text-warning-500 dark:s-text-warning-400-dark group-hover:s-text-warning-400 group-active:s-text-warning-700 dark:group-hover:s-text-warning-600-dark dark:group-active:s-text-warning-400-dark",
|
|
71869
|
+
item: "s-text-element-600 dark:s-text-element-500-dark group-hover/item:s-text-action-500 group-active/item:s-text-action-700 dark:group-hover/item:s-text-action-600-dark dark:group-active/item:s-text-action-400-dark",
|
|
71870
|
+
action: "s-text-element-800 dark:s-text-element-800-dark group-hover/item:s-text-action-500 group-active/item:s-text-action-700 dark:group-hover/item:s-text-action-600-dark dark:group-active/item:s-text-action-400-dark",
|
|
71871
|
+
link: "s-text-element-800 dark:s-text-element-800-dark group-hover/item:s-text-action-500 group-active/item:s-text-action-700 dark:group-hover/item:s-text-action-600-dark dark:group-active/item:s-text-action-400-dark",
|
|
71872
|
+
warning: "s-text-warning-500 dark:s-text-warning-400-dark group-hover/item:s-text-warning-400 group-active/item:s-text-warning-700 dark:group-hover/item:s-text-warning-600-dark dark:group-active/item:s-text-warning-400-dark",
|
|
71873
71873
|
};
|
|
71874
71874
|
var spacingClasses = {
|
|
71875
71875
|
sm: "s-py-2 s-gap-x-2",
|
|
@@ -71877,10 +71877,10 @@ var spacingClasses = {
|
|
|
71877
71877
|
lg: "s-py-3 s-gap-x-3",
|
|
71878
71878
|
};
|
|
71879
71879
|
var iconClasses$4 = {
|
|
71880
|
-
item: "s-text-element-600 group-hover:s-text-action-400 group-active:s-text-action-700 dark:group-hover:s-text-action-600-dark dark:group-active:s-text-action-400-dark",
|
|
71881
|
-
action: "s-text-element-600 group-hover:s-text-action-400 group-active:s-text-action-700 dark:group-hover:s-text-action-600-dark dark:group-active:s-text-action-400-dark",
|
|
71882
|
-
link: "s-text-brand group-hover:s-text-action-400 group-active:s-text-action-700 dark:group-hover:s-text-action-600-dark dark:group-active:s-text-action-400-dark",
|
|
71883
|
-
warning: "s-text-warning-400 group-hover:s-text-warning-300 group-active:s-text-warning-700 dark:group-hover:s-text-warning-600-dark dark:group-active:s-text-warning-400-dark",
|
|
71880
|
+
item: "s-text-element-600 group-hover/item:s-text-action-400 group-active/item:s-text-action-700 dark:group-hover/item:s-text-action-600-dark dark:group-active/item:s-text-action-400-dark",
|
|
71881
|
+
action: "s-text-element-600 group-hover/item:s-text-action-400 group-active/item:s-text-action-700 dark:group-hover/item:s-text-action-600-dark dark:group-active/item:s-text-action-400-dark",
|
|
71882
|
+
link: "s-text-brand group-hover/item:s-text-action-400 group-active/item:s-text-action-700 dark:group-hover/item:s-text-action-600-dark dark:group-active/item:s-text-action-400-dark",
|
|
71883
|
+
warning: "s-text-warning-400 group-hover/item:s-text-warning-300 group-active/item:s-text-warning-700 dark:group-hover/item:s-text-warning-600-dark dark:group-active/item:s-text-warning-400-dark",
|
|
71884
71884
|
};
|
|
71885
71885
|
function Item(_a) {
|
|
71886
71886
|
var label = _a.label, description = _a.description, visual = _a.visual, icon = _a.icon, _b = _a.style, style = _b === void 0 ? "action" : _b, _c = _a.spacing, spacing = _c === void 0 ? "sm" : _c, _d = _a.action, action = _d === void 0 ? SvgChevronRight$1 : _d, _e = _a.hasAction, hasAction = _e === void 0 ? true : _e, onClick = _a.onClick, _f = _a.selected, selected = _f === void 0 ? false : _f, _g = _a.disabled, disabled = _g === void 0 ? false : _g, _h = _a.className, className = _h === void 0 ? "" : _h, href = _a.href, target = _a.target;
|
|
@@ -71898,7 +71898,7 @@ function Item(_a) {
|
|
|
71898
71898
|
: iconClasses$4[style]) }));
|
|
71899
71899
|
}
|
|
71900
71900
|
var targetProps = target ? { target: target } : {};
|
|
71901
|
-
return (React.createElement(Link, __assign({ className: classNames("s-duration-400 s-group s-box-border s-flex s-select-none s-text-sm s-transition-colors s-ease-out", spacingClasses[spacing], disabled ? "" : "s-cursor-pointer", className), onClick: selected || disabled ? undefined : onClick, "aria-label": label, href: href || "#" }, targetProps),
|
|
71901
|
+
return (React.createElement(Link, __assign({ className: classNames("s-duration-400 s-group/item s-box-border s-flex s-select-none s-text-sm s-transition-colors s-ease-out", spacingClasses[spacing], disabled ? "s-cursor-default" : "s-cursor-pointer", className), onClick: selected || disabled ? undefined : onClick, "aria-label": label, href: href || "#" }, targetProps),
|
|
71902
71902
|
visualElement,
|
|
71903
71903
|
React.createElement("div", { className: classNames("s-flex s-grow s-flex-col s-gap-0 s-overflow-hidden") },
|
|
71904
71904
|
React.createElement("div", { className: classNames("s-transition-colors s-duration-200 s-ease-out", "s-grow s-truncate s-text-sm", labelStyleClasses[style], disabled
|
|
@@ -71911,12 +71911,12 @@ function Item(_a) {
|
|
|
71911
71911
|
: "s-text-element-700 dark:s-text-element-600-dark") }, description)),
|
|
71912
71912
|
React.createElement(Icon, { visual: action, className: hasAction
|
|
71913
71913
|
? classNames("s-shrink-0 s-transition-all s-duration-200 s-ease-out", hasAction === "hover"
|
|
71914
|
-
? "s-opacity-0 group-hover:s-opacity-100"
|
|
71914
|
+
? "s-opacity-0 group-hover/item:s-opacity-100"
|
|
71915
71915
|
: "", disabled
|
|
71916
71916
|
? "s-text-element-500 dark:s-text-element-500-dark"
|
|
71917
71917
|
: selected
|
|
71918
71918
|
? "s-text-action-400 s-opacity-100 dark:s-text-action-600-dark"
|
|
71919
|
-
: classNames("s-text-element-600 group-hover:s-text-action-400 group-active:s-text-action-700 dark:group-hover:s-text-action-600-dark dark:group-active:s-text-action-400-dark", hasAction ? "group-hover:s-opacity-100" : ""))
|
|
71919
|
+
: classNames("s-text-element-600 group-hover/item:s-text-action-400 group-active/item:s-text-action-700 dark:group-hover/item:s-text-action-600-dark dark:group-active/item:s-text-action-400-dark", hasAction ? "group-hover/item:s-opacity-100" : ""))
|
|
71920
71920
|
: "s-hidden", size: "sm" })));
|
|
71921
71921
|
}
|
|
71922
71922
|
Item.Entry = function (props) {
|
|
@@ -71956,11 +71956,11 @@ Item.List = function (_a) {
|
|
|
71956
71956
|
var ButtonRefContext = React.createContext(null);
|
|
71957
71957
|
var labelClasses$1 = {
|
|
71958
71958
|
base: "s-text-element-900 s-inline-flex s-transition-colors s-ease-out s-duration-400 s-box-border s-gap-x-2 s-select-none",
|
|
71959
|
-
hover: "group-hover:s-text-action-500",
|
|
71959
|
+
hover: "group-hover/dm:s-text-action-500",
|
|
71960
71960
|
active: "active:s-text-action-700",
|
|
71961
71961
|
dark: {
|
|
71962
71962
|
base: "dark:s-text-element-900-dark",
|
|
71963
|
-
hover: "dark:group-hover:s-text-action-400",
|
|
71963
|
+
hover: "dark:group-hover/dm:s-text-action-400",
|
|
71964
71964
|
active: "dark:active:s-text-action-600",
|
|
71965
71965
|
disabled: "dark:s-element-500-dark",
|
|
71966
71966
|
},
|
|
@@ -71972,22 +71972,22 @@ var labelSizeClasses = {
|
|
|
71972
71972
|
};
|
|
71973
71973
|
var iconClasses$3 = {
|
|
71974
71974
|
base: "s-text-element-700 s-transition-colors s-ease-out s-duration-400",
|
|
71975
|
-
hover: "group-hover:s-text-action-500",
|
|
71975
|
+
hover: "group-hover/dm:s-text-action-500",
|
|
71976
71976
|
active: "active:s-text-action-700",
|
|
71977
71977
|
disabled: "s-opacity-50",
|
|
71978
71978
|
dark: {
|
|
71979
71979
|
base: "dark:s-text-element-700-dark",
|
|
71980
|
-
hover: "dark:group-hover:s-text-action-500-dark",
|
|
71980
|
+
hover: "dark:group-hover/dm:s-text-action-500-dark",
|
|
71981
71981
|
active: "dark:active:s-text-action-600",
|
|
71982
71982
|
},
|
|
71983
71983
|
};
|
|
71984
71984
|
var chevronClasses = {
|
|
71985
71985
|
base: "s-text-element-600 s-mt-0.5",
|
|
71986
|
-
hover: "group-hover:s-text-action-400",
|
|
71986
|
+
hover: "group-hover/dm:s-text-action-400",
|
|
71987
71987
|
disabled: "s-element-500",
|
|
71988
71988
|
dark: {
|
|
71989
71989
|
base: "dark:s-text-element-600-dark",
|
|
71990
|
-
hover: "dark:group-hover:s-text-action-500-dark",
|
|
71990
|
+
hover: "dark:group-hover/dm:s-text-action-500-dark",
|
|
71991
71991
|
disabled: "dark:s-element-500-dark",
|
|
71992
71992
|
},
|
|
71993
71993
|
};
|
|
@@ -72004,7 +72004,7 @@ DropdownMenu.Button = function (_a) {
|
|
|
72004
72004
|
var finalChevronClasses = classNames(chevronClasses.base, !disabled ? chevronClasses.hover : "", chevronClasses.dark.base, !disabled ? chevronClasses.dark.hover : "", disabled ? chevronClasses.disabled : "");
|
|
72005
72005
|
var buttonRef = React.useContext(ButtonRefContext);
|
|
72006
72006
|
if (children) {
|
|
72007
|
-
return (React.createElement(qe$1.Button, { as: "div", disabled: disabled, ref: buttonRef, className: classNames(disabled ? "s-cursor-default" : "s-cursor-pointer", className, "s-group s-flex s-justify-items-center s-text-sm s-font-medium focus:s-outline-none focus:s-ring-0", label ? "s-gap-1.5" : "s-gap-0"), onClick: onClick }, tooltip ? (React.createElement(Tooltip, { position: tooltipPosition, label: tooltip }, children)) : (children)));
|
|
72007
|
+
return (React.createElement(qe$1.Button, { as: "div", disabled: disabled, ref: buttonRef, className: classNames(disabled ? "s-cursor-default" : "s-cursor-pointer", className, "s-group/dm s-flex s-justify-items-center s-text-sm s-font-medium focus:s-outline-none focus:s-ring-0", label ? "s-gap-1.5" : "s-gap-0"), onClick: onClick }, tooltip ? (React.createElement(Tooltip, { position: tooltipPosition, label: tooltip }, children)) : (children)));
|
|
72008
72008
|
}
|
|
72009
72009
|
var chevronIcon = type === "select"
|
|
72010
72010
|
? SvgChevronUpDown$1
|
|
@@ -72012,9 +72012,9 @@ DropdownMenu.Button = function (_a) {
|
|
|
72012
72012
|
? SvgChevronRight$1
|
|
72013
72013
|
: SvgChevronDown$1;
|
|
72014
72014
|
return (React.createElement(React.Fragment, null, tooltip ? (React.createElement(Tooltip, { label: tooltip, position: tooltipPosition },
|
|
72015
|
-
React.createElement(qe$1.Button, { disabled: disabled, ref: buttonRef, className: classNames(disabled ? "s-cursor-default" : "s-cursor-pointer", className, "s-group s-flex s-justify-items-center s-text-sm s-font-medium focus:s-outline-none focus:s-ring-0", label ? (size === "md" ? "s-gap-2" : "s-gap-1.5") : "s-gap-0.5") },
|
|
72015
|
+
React.createElement(qe$1.Button, { disabled: disabled, ref: buttonRef, className: classNames(disabled ? "s-cursor-default" : "s-cursor-pointer", className, "s-group/dm s-flex s-justify-items-center s-text-sm s-font-medium focus:s-outline-none focus:s-ring-0", label ? (size === "md" ? "s-gap-2" : "s-gap-1.5") : "s-gap-0.5") },
|
|
72016
72016
|
React.createElement(Icon, { visual: icon, size: size, className: finalIconClasses }),
|
|
72017
|
-
React.createElement(Icon, { visual: chevronIcon, size: size === "sm" ? "xs" : "sm", className: finalChevronClasses })))) : (React.createElement(qe$1.Button, { disabled: disabled, ref: buttonRef, className: classNames(disabled ? "s-cursor-default" : "s-cursor-pointer", className, "s-group s-flex s-justify-items-center s-text-sm s-font-medium focus:s-outline-none focus:s-ring-0", label ? (size === "md" ? "s-gap-2" : "s-gap-1.5") : "s-gap-0.5", type === "submenu" ? "s-opacity-50" : "") },
|
|
72017
|
+
React.createElement(Icon, { visual: chevronIcon, size: size === "sm" ? "xs" : "sm", className: finalChevronClasses })))) : (React.createElement(qe$1.Button, { disabled: disabled, ref: buttonRef, className: classNames(disabled ? "s-cursor-default" : "s-cursor-pointer", className, "s-group/dm s-flex s-justify-items-center s-text-sm s-font-medium focus:s-outline-none focus:s-ring-0", label ? (size === "md" ? "s-gap-2" : "s-gap-1.5") : "s-gap-0.5", type === "submenu" ? "s-opacity-50" : "") },
|
|
72018
72018
|
React.createElement(Icon, { visual: icon, size: size, className: finalIconClasses }),
|
|
72019
72019
|
React.createElement("span", { className: classNames(finalLabelClasses, type === "submenu" ? "s-w-full" : "") }, label),
|
|
72020
72020
|
React.createElement(Icon, { visual: chevronIcon, size: size === "sm" ? "xs" : "sm", className: finalChevronClasses })))));
|
|
@@ -72024,8 +72024,8 @@ DropdownMenu.Item = function (_a) {
|
|
|
72024
72024
|
return (
|
|
72025
72025
|
// need to use as="div" -- otherwise we get a "forwardRef" error in the console
|
|
72026
72026
|
React.createElement(qe$1.Item, { disabled: disabled, as: "div" }, hasChildren ? (React.createElement(DropdownMenu, { className: "s-w-full s-gap-x-2 s-py-2" },
|
|
72027
|
-
React.createElement(DropdownMenu.Button, { label: label, type: "submenu"
|
|
72028
|
-
children)) : (React.createElement(Item.Dropdown, {
|
|
72027
|
+
React.createElement(DropdownMenu.Button, { className: "s-w-full", disabled: disabled, label: label, type: "submenu" }),
|
|
72028
|
+
children)) : (React.createElement(Item.Dropdown, { className: "s-w-full", description: description, disabled: disabled, href: href, icon: icon, label: label, onClick: onClick, selected: selected, style: variant, visual: visual }))));
|
|
72029
72029
|
};
|
|
72030
72030
|
DropdownMenu.SectionHeader = function (_a) {
|
|
72031
72031
|
var label = _a.label;
|
|
@@ -99703,11 +99703,11 @@ Collapsible.Button = function (_a) {
|
|
|
99703
99703
|
var labelClasses = {
|
|
99704
99704
|
primary: {
|
|
99705
99705
|
base: "s-text-action-500 s-inline-flex s-transition-colors s-ease-out s-duration-400 s-box-border s-gap-x-2 s-select-none",
|
|
99706
|
-
hover: "group-hover:s-text-action-400",
|
|
99706
|
+
hover: "group-hover/col:s-text-action-400",
|
|
99707
99707
|
active: "active:s-text-action-600",
|
|
99708
99708
|
dark: {
|
|
99709
99709
|
base: "dark:s-text-action-500-dark",
|
|
99710
|
-
hover: "dark:group-hover:s-text-action-400-dark",
|
|
99710
|
+
hover: "dark:group-hover/col:s-text-action-400-dark",
|
|
99711
99711
|
active: "dark:active:s-text-action-600-dark",
|
|
99712
99712
|
disabled: "dark:s-element-500-dark",
|
|
99713
99713
|
},
|
|
@@ -99715,11 +99715,11 @@ Collapsible.Button = function (_a) {
|
|
|
99715
99715
|
},
|
|
99716
99716
|
secondary: {
|
|
99717
99717
|
base: "s-text-element-900 s-inline-flex s-transition-colors s-ease-out s-duration-400 s-box-border s-gap-x-2 s-select-none",
|
|
99718
|
-
hover: "group-hover:s-text-action-500",
|
|
99718
|
+
hover: "group-hover/col:s-text-action-500",
|
|
99719
99719
|
active: "active:s-text-action-600",
|
|
99720
99720
|
dark: {
|
|
99721
99721
|
base: "dark:s-text-element-900-dark",
|
|
99722
|
-
hover: "dark:group-hover:s-text-action-400-dark",
|
|
99722
|
+
hover: "dark:group-hover/col:s-text-action-400-dark",
|
|
99723
99723
|
active: "dark:active:s-text-action-600-dark",
|
|
99724
99724
|
disabled: "dark:s-element-500-dark",
|
|
99725
99725
|
},
|
|
@@ -99729,24 +99729,24 @@ Collapsible.Button = function (_a) {
|
|
|
99729
99729
|
var chevronClasses = {
|
|
99730
99730
|
primary: {
|
|
99731
99731
|
base: "s-text-element-600",
|
|
99732
|
-
hover: "group-hover:s-text-action-400",
|
|
99732
|
+
hover: "group-hover/col:s-text-action-400",
|
|
99733
99733
|
active: "active:s-text-action-700",
|
|
99734
99734
|
disabled: "s-element-500",
|
|
99735
99735
|
dark: {
|
|
99736
99736
|
base: "dark:s-text-element-600-dark",
|
|
99737
|
-
hover: "dark:group-hover:s-text-action-500-dark",
|
|
99737
|
+
hover: "dark:group-hover/col:s-text-action-500-dark",
|
|
99738
99738
|
active: "dark:active:s-text-action-700-dark",
|
|
99739
99739
|
disabled: "dark:s-element-500-dark",
|
|
99740
99740
|
},
|
|
99741
99741
|
},
|
|
99742
99742
|
secondary: {
|
|
99743
99743
|
base: "s-text-element-600",
|
|
99744
|
-
hover: "group-hover:s-text-action-400",
|
|
99744
|
+
hover: "group-hover/col:s-text-action-400",
|
|
99745
99745
|
active: "active:s-text-action-700",
|
|
99746
99746
|
disabled: "s-element-500",
|
|
99747
99747
|
dark: {
|
|
99748
99748
|
base: "dark:s-text-element-600-dark",
|
|
99749
|
-
hover: "dark:group-hover:s-text-action-500-dark",
|
|
99749
|
+
hover: "dark:group-hover/col:s-text-action-500-dark",
|
|
99750
99750
|
active: "dark:active:s-text-action-700-dark",
|
|
99751
99751
|
disabled: "dark:s-element-500-dark",
|
|
99752
99752
|
},
|
|
@@ -99754,7 +99754,7 @@ Collapsible.Button = function (_a) {
|
|
|
99754
99754
|
};
|
|
99755
99755
|
var finalLabelClasses = classNames(labelClasses[variant].base, labelClasses[variant].dark.base, !disabled ? labelClasses[variant].active : "", !disabled ? labelClasses[variant].dark.active : "", !disabled ? labelClasses[variant].hover : "", !disabled ? labelClasses[variant].dark.hover : "", disabled ? labelClasses[variant].disabled : "");
|
|
99756
99756
|
var finalChevronClasses = classNames(chevronClasses[variant].base, chevronClasses[variant].dark.base, !disabled ? chevronClasses[variant].active : "", !disabled ? chevronClasses[variant].dark.active : "", !disabled ? chevronClasses[variant].hover : "", !disabled ? chevronClasses[variant].dark.hover : "", disabled ? chevronClasses[variant].disabled : "");
|
|
99757
|
-
return (React.createElement(Ae$1.Button, { disabled: disabled, className: classNames(disabled ? "s-cursor-default" : "s-cursor-pointer", className, "s-group s-flex s-items-center s-justify-items-center s-gap-1 s-text-sm s-font-medium focus:s-outline-none focus:s-ring-0") },
|
|
99757
|
+
return (React.createElement(Ae$1.Button, { disabled: disabled, className: classNames(disabled ? "s-cursor-default" : "s-cursor-pointer", className, "s-group/col s-flex s-items-center s-justify-items-center s-gap-1 s-text-sm s-font-medium focus:s-outline-none focus:s-ring-0") },
|
|
99758
99758
|
React.createElement(Icon, { visual: open ? SvgChevronDown$1 : SvgChevronRight$1, size: "sm", className: finalChevronClasses }),
|
|
99759
99759
|
children ? children : React.createElement("span", { className: finalLabelClasses }, label)));
|
|
99760
99760
|
};
|
|
@@ -103342,9 +103342,9 @@ DataTable.Body = function Body(_a) {
|
|
|
103342
103342
|
};
|
|
103343
103343
|
DataTable.Row = function Row(_a) {
|
|
103344
103344
|
var children = _a.children, className = _a.className, onClick = _a.onClick, moreMenuItems = _a.moreMenuItems, props = __rest(_a, ["children", "className", "onClick", "moreMenuItems"]);
|
|
103345
|
-
return (React.createElement("tr", __assign({ className: classNames("s-group s-border-b s-border-structure-200 s-text-sm s-transition-colors s-duration-300 s-ease-out", onClick ? "s-cursor-pointer hover:s-bg-structure-50" : "", className || ""), onClick: onClick ? onClick : undefined }, props),
|
|
103345
|
+
return (React.createElement("tr", __assign({ className: classNames("s-group/dt s-border-b s-border-structure-200 s-text-sm s-transition-colors s-duration-300 s-ease-out", onClick ? "s-cursor-pointer hover:s-bg-structure-50" : "", className || ""), onClick: onClick ? onClick : undefined }, props),
|
|
103346
103346
|
children,
|
|
103347
|
-
React.createElement("td", { className: "s-w-1 s-cursor-pointer s-pl-1 s-text-element-600" }, moreMenuItems && (React.createElement(DropdownMenu, { className: "s-mr-1.5 s-flex" },
|
|
103347
|
+
React.createElement("td", { className: "s-w-1 s-cursor-pointer s-pl-1 s-text-element-600" }, moreMenuItems && moreMenuItems.length > 0 && (React.createElement(DropdownMenu, { className: "s-mr-1.5 s-flex" },
|
|
103348
103348
|
React.createElement(DropdownMenu.Button, { onClick: function (e) {
|
|
103349
103349
|
e.stopPropagation();
|
|
103350
103350
|
} },
|
|
@@ -128938,10 +128938,10 @@ var tabClasses = {
|
|
|
128938
128938
|
var iconClasses = {
|
|
128939
128939
|
default: {
|
|
128940
128940
|
base: "s-text-element-600",
|
|
128941
|
-
hover: "group-hover:s-text-action-400",
|
|
128941
|
+
hover: "group-hover/tab:s-text-action-400",
|
|
128942
128942
|
dark: {
|
|
128943
128943
|
base: "dark:s-text-element-600-dark",
|
|
128944
|
-
hover: "dark:group-hover:s-text-action-500-dark",
|
|
128944
|
+
hover: "dark:group-hover/tab:s-text-action-500-dark",
|
|
128945
128945
|
},
|
|
128946
128946
|
},
|
|
128947
128947
|
selected: {
|
|
@@ -128982,7 +128982,7 @@ function Tab(_a) {
|
|
|
128982
128982
|
var iconStateClasses = tab.current
|
|
128983
128983
|
? iconClasses.selected
|
|
128984
128984
|
: iconClasses.default;
|
|
128985
|
-
var finalTabClasses = classNames("s-group s-justify-center s-flex s-text-sm s-font-semibold s-py-2.5 s-transition-all ease-out s-duration-400 s-whitespace-nowrap s-select-none", variant === "default"
|
|
128985
|
+
var finalTabClasses = classNames("s-group/tab s-justify-center s-flex s-text-sm s-font-semibold s-py-2.5 s-transition-all ease-out s-duration-400 s-whitespace-nowrap s-select-none", variant === "default"
|
|
128986
128986
|
? tab.icon
|
|
128987
128987
|
? tab.hideLabel
|
|
128988
128988
|
? "s-px-3"
|
|
@@ -129089,7 +129089,7 @@ Tree.Item = function (_a) {
|
|
|
129089
129089
|
};
|
|
129090
129090
|
var childrenToRender = getChildren();
|
|
129091
129091
|
var treeItemStyleClasses = {
|
|
129092
|
-
base: "s-group s-flex s-cursor-default s-flex-row s-items-center",
|
|
129092
|
+
base: "s-group/tree s-flex s-cursor-default s-flex-row s-items-center",
|
|
129093
129093
|
isNavigatableBase: "s-border s-transition-colors s-duration-300 s-ease-out s-cursor-pointer",
|
|
129094
129094
|
isNavigatableUnselected: "s-border-structure-200/0 s-bg-white/0 hover:s-border-structure-200 hover:s-bg-white",
|
|
129095
129095
|
isNavigatableSelected: "s-border-structure-200 s-bg-white",
|
|
@@ -129119,7 +129119,7 @@ Tree.Item = function (_a) {
|
|
|
129119
129119
|
React.createElement("div", { className: classNames("s-truncate s-font-medium s-text-element-900", size === "sm" ? "s-ml-1 s-text-sm" : "s-ml-1 s-text-base") }, label),
|
|
129120
129120
|
React.createElement("div", { className: "s-grow" }),
|
|
129121
129121
|
actions && (React.createElement("div", { className: classNames("s-flex s-gap-2 s-pl-4", areActionsFading
|
|
129122
|
-
? "s-transform s-opacity-0 s-duration-300 group-hover:s-opacity-100"
|
|
129122
|
+
? "s-transform s-opacity-0 s-duration-300 group-hover/tree:s-opacity-100"
|
|
129123
129123
|
: "") }, actions))),
|
|
129124
129124
|
React.Children.count(childrenToRender) > 0 && (React.createElement("div", { className: "s-pl-2.5" }, childrenToRender))));
|
|
129125
129125
|
};
|