@stackframe/stack-ui 2.5.16 → 2.5.18

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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @stackframe/stack-ui
2
2
 
3
+ ## 2.5.18
4
+
5
+ ### Patch Changes
6
+
7
+ - Multi-factor authentication
8
+ - Updated dependencies
9
+ - @stackframe/stack-shared@2.5.18
10
+
11
+ ## 2.5.17
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+ - @stackframe/stack-shared@2.5.17
17
+
3
18
  ## 2.5.16
4
19
 
5
20
  ### Patch Changes
@@ -7,5 +7,5 @@ export function SimpleTooltip(props) {
7
7
  props.type === 'info' ?
8
8
  _jsx(Info, { className: "w-4 h-4 text-zinc-500" }) :
9
9
  null;
10
- return (_jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex items-center gap-1", children: [props.children, " ", icon] }) }), _jsx(TooltipContent, { children: _jsx("div", { className: "max-w-60 text-center text-wrap", children: props.tooltip }) })] }) }));
10
+ return (_jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex items-center gap-1", children: [props.children, " ", icon] }) }), _jsx(TooltipContent, { children: _jsx("div", { className: "max-w-60 text-center text-wrap whitespace-pre-wrap", children: props.tooltip }) })] }) }));
11
11
  }
@@ -5,5 +5,6 @@ declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<H
5
5
  declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
6
6
  declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
7
7
  declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const CardSubtitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
8
9
  declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
9
- export { Card, ClickableCard, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
10
+ export { Card, ClickableCard, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, CardSubtitle };
@@ -5,14 +5,15 @@ const Card = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { r
5
5
  Card.displayName = "Card";
6
6
  const ClickableCard = React.forwardRef(({ 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
7
  ClickableCard.displayName = "ClickableCard";
8
- const CardHeader = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })));
8
+ const CardHeader = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex flex-col space-y-1.5 p-6 pb-0", className), ...props })));
9
9
  CardHeader.displayName = "CardHeader";
10
10
  const CardTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx("h3", { ref: ref, className: cn("font-semibold leading-none tracking-tight capitalize", className), ...props })));
11
11
  CardTitle.displayName = "CardTitle";
12
12
  const CardDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx("p", { ref: ref, className: cn("text-sm text-muted-foreground", className), ...props })));
13
13
  CardDescription.displayName = "CardDescription";
14
- const CardContent = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("p-6 pt-0", className), ...props })));
14
+ const CardContent = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("p-6", className), ...props })));
15
15
  CardContent.displayName = "CardContent";
16
+ const CardSubtitle = React.forwardRef(({ className, ...props }, ref) => (_jsx("h4", { ref: ref, className: cn("text-sm text-muted-foreground font-bold", className), ...props })));
16
17
  const CardFooter = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex items-center p-6 pt-0", className), ...props })));
17
18
  CardFooter.displayName = "CardFooter";
18
- export { Card, ClickableCard, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
19
+ export { Card, ClickableCard, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, CardSubtitle };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackframe/stack-ui",
3
- "version": "2.5.16",
3
+ "version": "2.5.18",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -66,7 +66,7 @@
66
66
  "react-hook-form": "^7.51.4",
67
67
  "react-resizable-panels": "^2.0.19",
68
68
  "tailwind-merge": "^2.3.0",
69
- "@stackframe/stack-shared": "2.5.16"
69
+ "@stackframe/stack-shared": "2.5.18"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@types/react": "^18.2.66",