@stackframe/stack-ui 2.7.23 → 2.7.26
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 +21 -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/select.d.ts +2 -0
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/skeleton.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @stackframe/stack-ui
|
|
2
2
|
|
|
3
|
+
## 2.7.26
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Various changes
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @stackframe/stack-shared@2.7.26
|
|
10
|
+
|
|
11
|
+
## 2.7.25
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Various changes
|
|
16
|
+
- @stackframe/stack-shared@2.7.25
|
|
17
|
+
|
|
18
|
+
## 2.7.24
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- @stackframe/stack-shared@2.7.24
|
|
23
|
+
|
|
3
24
|
## 2.7.23
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -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 };
|
|
@@ -4,6 +4,8 @@ declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
|
4
4
|
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
6
6
|
declare const SelectTrigger: React.FC<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
7
|
+
loading?: boolean | undefined;
|
|
8
|
+
} & {
|
|
7
9
|
ref?: React.Ref<HTMLButtonElement> | undefined;
|
|
8
10
|
}>;
|
|
9
11
|
declare const SelectScrollUpButton: React.FC<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
@@ -7,7 +7,7 @@ import { cn } from "../../lib/utils";
|
|
|
7
7
|
const Select = SelectPrimitive.Root;
|
|
8
8
|
const SelectGroup = SelectPrimitive.Group;
|
|
9
9
|
const SelectValue = SelectPrimitive.Value;
|
|
10
|
-
const SelectTrigger = forwardRefIfNeeded(({ className, children, ...props }, ref) => (_jsxs(SelectPrimitive.Trigger, { ref: ref, className: cn("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", className), ...props, children: [children, _jsx(SelectPrimitive.Icon, { asChild: true, children: _jsx(CaretSortIcon, { className: "h-4 w-4 opacity-50" }) })] })));
|
|
10
|
+
const SelectTrigger = forwardRefIfNeeded(({ className, children, loading, ...props }, ref) => (_jsxs(SelectPrimitive.Trigger, { ref: ref, className: cn("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", loading && "cursor-wait", className), ...props, children: [children, _jsx(SelectPrimitive.Icon, { asChild: true, children: loading ? (_jsx("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent opacity-50" })) : (_jsx(CaretSortIcon, { className: "h-4 w-4 opacity-50" })) })] })));
|
|
11
11
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
12
12
|
const SelectScrollUpButton = forwardRefIfNeeded(({ className, ...props }, ref) => (_jsx(SelectPrimitive.ScrollUpButton, { ref: ref, className: cn("flex cursor-default items-center justify-center py-1", className), ...props, children: _jsx(ChevronUpIcon, {}) })));
|
|
13
13
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
@@ -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.26",
|
|
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.26"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@types/react": "^18.2.12",
|