@stackframe/stack-ui 2.7.23 → 2.7.25
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/CHANGELOG.md +13 -0
- package/dist/components/data-table/column-header.js +4 -4
- package/dist/components/data-table/faceted-filter.js +1 -1
- package/dist/components/ui/card.d.ts +1 -4
- package/dist/components/ui/card.js +1 -3
- package/dist/components/ui/skeleton.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
2
|
-
import { cn } from "../..";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
2
|
import { Button, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@stackframe/stack-ui";
|
|
4
|
-
import {
|
|
3
|
+
import { ArrowDown, ArrowUp } from "lucide-react";
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
5
|
function Item(props) {
|
|
6
6
|
return (_jsx(DropdownMenuItem, { onClick: props.onClick, children: _jsxs("div", { className: "flex items-center", children: [_jsx(props.icon, { className: "mr-2 h-3.5 w-3.5 text-muted-foreground/70" }), props.children] }) }));
|
|
7
7
|
}
|
|
8
8
|
export function DataTableColumnHeader({ column, columnTitle, className, }) {
|
|
9
|
-
return (_jsx("div", { className: cn("flex items-center space-x-2", className), children: _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs(Button, { variant: "ghost", size: "sm", className: "-ml-3 h-8 data-[state=open]:bg-accent", children: [_jsx("span", { children: columnTitle }), column.getIsSorted() === "desc" ? (_jsx(ArrowDown, { className: "ml-2 h-4 w-4" })) : column.getIsSorted() === "asc" ? (_jsx(ArrowUp, { className: "ml-2 h-4 w-4" })) : null] }) }), _jsxs(DropdownMenuContent, { align: "start", className: "stack-scope", children: [
|
|
9
|
+
return (_jsx("div", { className: cn("flex items-center space-x-2", className), children: _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs(Button, { variant: "ghost", size: "sm", className: cn("-ml-3 h-8 data-[state=open]:bg-accent", !column.getCanSort() && "pointer-events-none"), children: [_jsx("span", { children: columnTitle }), column.getIsSorted() === "desc" ? (_jsx(ArrowDown, { className: "ml-2 h-4 w-4" })) : column.getIsSorted() === "asc" ? (_jsx(ArrowUp, { className: "ml-2 h-4 w-4" })) : null] }) }), _jsxs(DropdownMenuContent, { align: "start", className: "stack-scope", children: [_jsx(Item, { icon: ArrowUp, onClick: () => column.toggleSorting(false), children: "Asc" }), _jsx(Item, { icon: ArrowDown, onClick: () => column.toggleSorting(true), children: "Desc" })] })] }) }));
|
|
10
10
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "../..";
|
|
3
2
|
import { CheckIcon } from "@radix-ui/react-icons";
|
|
4
3
|
import { Badge, Button, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, Popover, PopoverContent, PopoverTrigger, Separator } from "@stackframe/stack-ui";
|
|
5
4
|
import { ListFilter } from "lucide-react";
|
|
5
|
+
import { cn } from "../../lib/utils";
|
|
6
6
|
export function DataTableFacetedFilter({ column, title, options, }) {
|
|
7
7
|
const facets = column?.getFacetedUniqueValues();
|
|
8
8
|
const selectedValues = new Set(column?.getFilterValue());
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
declare const Card: import("react").FC<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
2
2
|
ref?: import("react").Ref<HTMLDivElement> | undefined;
|
|
3
3
|
}>;
|
|
4
|
-
declare const ClickableCard: import("react").FC<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
5
|
-
ref?: import("react").Ref<HTMLDivElement> | undefined;
|
|
6
|
-
}>;
|
|
7
4
|
declare const CardHeader: import("react").FC<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
8
5
|
ref?: import("react").Ref<HTMLDivElement> | undefined;
|
|
9
6
|
}>;
|
|
@@ -22,4 +19,4 @@ declare const CardSubtitle: import("react").FC<import("react").HTMLAttributes<HT
|
|
|
22
19
|
declare const CardFooter: import("react").FC<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
23
20
|
ref?: import("react").Ref<HTMLDivElement> | undefined;
|
|
24
21
|
}>;
|
|
25
|
-
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardSubtitle, CardTitle
|
|
22
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardSubtitle, CardTitle };
|
|
@@ -3,8 +3,6 @@ import { forwardRefIfNeeded } from "@stackframe/stack-shared/dist/utils/react";
|
|
|
3
3
|
import { cn } from "../../lib/utils";
|
|
4
4
|
const Card = forwardRefIfNeeded(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("rounded-xl border bg-card text-card-foreground shadow-sm", className), ...props })));
|
|
5
5
|
Card.displayName = "Card";
|
|
6
|
-
const ClickableCard = forwardRefIfNeeded(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("rounded-xl border bg-card text-card-foreground shadow-sm cursor-pointer hover:border-[color:var(--primary)] ease-in-out", className), ...props })));
|
|
7
|
-
ClickableCard.displayName = "ClickableCard";
|
|
8
6
|
const CardHeader = forwardRefIfNeeded(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex flex-col space-y-1.5 p-6 pb-0", className), ...props })));
|
|
9
7
|
CardHeader.displayName = "CardHeader";
|
|
10
8
|
const CardTitle = forwardRefIfNeeded(({ className, ...props }, ref) => (_jsx("h3", { ref: ref, className: cn("font-semibold leading-none tracking-tight capitalize", className), ...props })));
|
|
@@ -16,4 +14,4 @@ CardContent.displayName = "CardContent";
|
|
|
16
14
|
const CardSubtitle = forwardRefIfNeeded(({ className, ...props }, ref) => (_jsx("h4", { ref: ref, className: cn("text-sm text-muted-foreground font-bold", className), ...props })));
|
|
17
15
|
const CardFooter = forwardRefIfNeeded(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex items-center p-6 pt-0", className), ...props })));
|
|
18
16
|
CardFooter.displayName = "CardFooter";
|
|
19
|
-
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardSubtitle, CardTitle
|
|
17
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardSubtitle, CardTitle };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { cn } from "
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
4
4
|
function Skeleton({ className, ...props }) {
|
|
5
5
|
return (_jsx("div", { className: cn("animate-pulse rounded-md bg-primary/10", className), ...props }));
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackframe/stack-ui",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.25",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"react-hook-form": "^7.53.1",
|
|
77
77
|
"react-resizable-panels": "^2.1.6",
|
|
78
78
|
"tailwind-merge": "^2.5.4",
|
|
79
|
-
"@stackframe/stack-shared": "2.7.
|
|
79
|
+
"@stackframe/stack-shared": "2.7.25"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@types/react": "^18.2.12",
|