@dust-tt/sparkle 0.2.273-rc-3 → 0.2.273-rc-5
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 +10 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Button.d.ts +2 -2
- package/dist/esm/components/Button.d.ts.map +1 -1
- package/dist/esm/components/Button.js +5 -1
- package/dist/esm/components/Button.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/IconButton.d.ts.map +1 -1
- package/dist/esm/components/IconButton.js +4 -0
- package/dist/esm/components/IconButton.js.map +1 -1
- package/dist/esm/stories/Button.stories.d.ts.map +1 -1
- package/dist/esm/stories/Button.stories.js +3 -2
- package/dist/esm/stories/Button.stories.js.map +1 -1
- package/dist/sparkle.css +0 -5
- package/package.json +1 -1
- package/src/components/Button.tsx +6 -1
- package/src/components/DataTable.tsx +2 -2
- package/src/components/IconButton.tsx +5 -0
- package/src/stories/Button.stories.tsx +2 -1
package/dist/cjs/index.js
CHANGED
|
@@ -43732,9 +43732,10 @@ var SvgXMark$1 = SvgXMark;
|
|
|
43732
43732
|
var styleVariants$1 = {
|
|
43733
43733
|
primary: "s-bg-primary s-text-white hover:s-bg-primary-light active:s-bg-primary-dark disabled:s-bg-primary-muted",
|
|
43734
43734
|
highlight: "s-bg-highlight s-text-white hover:s-bg-highlight-light active:s-bg-highlight-dark disabled:s-bg-highlight-muted",
|
|
43735
|
-
warning: "s-bg-warning s-text-
|
|
43735
|
+
warning: "s-bg-warning s-text-white hover:s-bg-warning-light active:s-bg-warning-dark disabled:s-bg-warning-muted",
|
|
43736
43736
|
outline: "s-border s-text-primary-dark s-border-border-dark hover:s-text-primary hover:s-bg-primary-100 hover:s-border-primary-200 active:s-bg-primary-300 disabled:s-text-primary-muted disabled:s-border-structure-100",
|
|
43737
43737
|
ghost: "s-border s-border-primary-200/0 s-text-primary-950 hover:s-bg-primary-100 hover:s-text-primary-900 active:s-bg-primary-200 hover:s-border-primary-200 disabled:s-text-primary-400",
|
|
43738
|
+
white: "s-bg-white s-text-primary-dark s-border s-border-border-dark hover:s-bg-primary-100 hover:s-border-primary-200 active:s-bg-primary-300 disabled:s-text-primary-muted",
|
|
43738
43739
|
};
|
|
43739
43740
|
var sizeVariants = {
|
|
43740
43741
|
xs: "s-h-7 s-px-2.5 s-rounded-lg s-text-xs s-gap-1.5",
|
|
@@ -43755,11 +43756,13 @@ var spinnerVariantsMap = {
|
|
|
43755
43756
|
warning: "light",
|
|
43756
43757
|
outline: "dark",
|
|
43757
43758
|
ghost: "dark",
|
|
43759
|
+
white: "light",
|
|
43758
43760
|
};
|
|
43759
43761
|
var spinnerVariantsMapIsLoading = {
|
|
43760
43762
|
primary: "light",
|
|
43761
43763
|
highlight: "light",
|
|
43762
43764
|
warning: "light",
|
|
43765
|
+
white: "light",
|
|
43763
43766
|
outline: "slate400",
|
|
43764
43767
|
ghost: "slate400",
|
|
43765
43768
|
};
|
|
@@ -78239,6 +78242,10 @@ var styleVariants = {
|
|
|
78239
78242
|
"hover:s-text-slate-100 hover:s-text-slate-100" +
|
|
78240
78243
|
"active:s-text-slate-200 active:s-text-slate-200" +
|
|
78241
78244
|
"s-text-white/50 s-text-white/50",
|
|
78245
|
+
white: "s-text-element-700 dark:s-text-element-700-dark" +
|
|
78246
|
+
"hover:s-text-action-400 dark:hover:s-text-action-500-dark" +
|
|
78247
|
+
"active:s-text-action-600 dark:active:s-text-action-600-dark" +
|
|
78248
|
+
"s-text-element-500 dark:s-text-element-500-dark",
|
|
78242
78249
|
};
|
|
78243
78250
|
var iconButtonVariants = cva(baseClasses$3, {
|
|
78244
78251
|
variants: {
|
|
@@ -110124,7 +110131,7 @@ DataTable.Row = function Row(_a) {
|
|
|
110124
110131
|
children,
|
|
110125
110132
|
React.createElement("td", { className: "s-flex s-w-8 s-cursor-pointer s-items-center s-pl-1 s-text-element-600" }, moreMenuItems && moreMenuItems.length > 0 && (React.createElement(DropdownMenu$1, { className: "s-mr-1.5 s-flex" },
|
|
110126
110133
|
React.createElement(DropdownMenu$1.Button, null,
|
|
110127
|
-
React.createElement(IconButton, { icon: MoreIcon, size: "sm", variant: "
|
|
110134
|
+
React.createElement(IconButton, { icon: MoreIcon, size: "sm", variant: "outline", className: "s-m-1" })),
|
|
110128
110135
|
React.createElement(DropdownMenu$1.Items, { origin: "topRight", width: 220 }, moreMenuItems === null || moreMenuItems === void 0 ? void 0 : moreMenuItems.map(function (item, index) { return (React.createElement(DropdownMenu$1.Item, __assign({ key: index }, item))); })))))));
|
|
110129
110136
|
};
|
|
110130
110137
|
DataTable.Cell = function Cell(_a) {
|
|
@@ -110169,7 +110176,7 @@ DataTable.CellContentWithCopy = function CellContentWithCopy(_a) {
|
|
|
110169
110176
|
}); };
|
|
110170
110177
|
return (React.createElement("div", { className: classNames("s-flex s-items-center s-space-x-2", className || "") },
|
|
110171
110178
|
React.createElement("span", { className: "s-truncate" }, children),
|
|
110172
|
-
React.createElement(IconButton, { icon: isCopied ? ClipboardCheckIcon : ClipboardIcon, variant: "
|
|
110179
|
+
React.createElement(IconButton, { icon: isCopied ? ClipboardCheckIcon : ClipboardIcon, variant: "outline", onClick: function (e) { return __awaiter(_this, void 0, void 0, function () {
|
|
110173
110180
|
return __generator(this, function (_a) {
|
|
110174
110181
|
switch (_a.label) {
|
|
110175
110182
|
case 0:
|