@epicbagel/saas-kit 1.2.0 → 1.2.2

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.
@@ -12,7 +12,9 @@ var gapStyles = {
12
12
  sm: "gap-2",
13
13
  compact: "gap-3",
14
14
  md: "gap-4",
15
- lg: "gap-6"
15
+ lg: "gap-6",
16
+ xl: "gap-10",
17
+ "2xl": "gap-18"
16
18
  };
17
19
  var directionStyles = {
18
20
  vertical: "flex flex-col",
@@ -12,7 +12,9 @@ var gapStyles = {
12
12
  sm: "gap-2",
13
13
  compact: "gap-3",
14
14
  md: "gap-4",
15
- lg: "gap-6"
15
+ lg: "gap-6",
16
+ xl: "gap-10",
17
+ "2xl": "gap-18"
16
18
  };
17
19
  var directionStyles = {
18
20
  vertical: "flex flex-col",
@@ -4,7 +4,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const alertVariants: (props?: ({
7
- variant?: "success" | "default" | "destructive" | "warning" | null | undefined;
7
+ variant?: "default" | "destructive" | "success" | "warning" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface AlertProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
10
10
  marginBottom?: "none" | "md";
@@ -4,7 +4,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const alertVariants: (props?: ({
7
- variant?: "success" | "default" | "destructive" | "warning" | null | undefined;
7
+ variant?: "default" | "destructive" | "success" | "warning" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface AlertProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
10
10
  marginBottom?: "none" | "md";
@@ -4,7 +4,7 @@ import { VariantProps } from 'class-variance-authority';
4
4
  import { ElementType } from 'react';
5
5
 
6
6
  declare const badgeVariants: (props?: ({
7
- variant?: "neutral" | "error" | "success" | "default" | "secondary" | "destructive" | "outline" | "warning" | "info" | null | undefined;
7
+ variant?: "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "error" | "info" | "neutral" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
10
10
  weight?: "normal" | "semibold" | "bold";
@@ -4,7 +4,7 @@ import { VariantProps } from 'class-variance-authority';
4
4
  import { ElementType } from 'react';
5
5
 
6
6
  declare const badgeVariants: (props?: ({
7
- variant?: "neutral" | "error" | "success" | "default" | "secondary" | "destructive" | "outline" | "warning" | "info" | null | undefined;
7
+ variant?: "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "error" | "info" | "neutral" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
10
10
  weight?: "normal" | "semibold" | "bold";
@@ -5,7 +5,7 @@ import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare function BubbleGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
7
7
  declare const bubbleVariants: (props?: ({
8
- variant?: "default" | "muted" | "ghost" | "secondary" | "destructive" | "outline" | "tinted" | null | undefined;
8
+ variant?: "default" | "muted" | "secondary" | "destructive" | "outline" | "ghost" | "tinted" | null | undefined;
9
9
  } & class_variance_authority_types.ClassProp) | undefined) => string;
10
10
  declare function Bubble({ variant, align, className, ...props }: React.ComponentProps<"div"> & VariantProps<typeof bubbleVariants> & {
11
11
  align?: "start" | "end";
@@ -5,7 +5,7 @@ import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare function BubbleGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
7
7
  declare const bubbleVariants: (props?: ({
8
- variant?: "default" | "muted" | "ghost" | "secondary" | "destructive" | "outline" | "tinted" | null | undefined;
8
+ variant?: "default" | "muted" | "secondary" | "destructive" | "outline" | "ghost" | "tinted" | null | undefined;
9
9
  } & class_variance_authority_types.ClassProp) | undefined) => string;
10
10
  declare function Bubble({ variant, align, className, ...props }: React.ComponentProps<"div"> & VariantProps<typeof bubbleVariants> & {
11
11
  align?: "start" | "end";
@@ -4,8 +4,8 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const buttonVariants: (props?: ({
7
- variant?: "link" | "default" | "ghost" | "secondary" | "destructive" | "outline" | "outline-muted" | "quiet" | "ghost-destructive" | "link-muted" | "inverted" | "status-error" | "status-warning" | "status-muted" | null | undefined;
8
- size?: "filter" | "status" | "toolbar" | "sm" | "lg" | "default" | "micro" | "tone" | "compact" | "hero" | "icon" | "icon-lg" | "icon-sm" | "icon-md" | "icon-xs" | "icon-compact" | "icon-micro" | "bare" | "voice-sm" | "voice" | "suggestion" | null | undefined;
7
+ variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "outline-muted" | "ghost" | "quiet" | "ghost-destructive" | "link-muted" | "inverted" | "status-error" | "status-warning" | "status-muted" | null | undefined;
8
+ size?: "filter" | "status" | "toolbar" | "sm" | "lg" | "default" | "micro" | "compact" | "hero" | "icon" | "icon-lg" | "icon-sm" | "icon-md" | "icon-xs" | "icon-compact" | "icon-micro" | "bare" | "voice-sm" | "voice" | "suggestion" | "tone" | null | undefined;
9
9
  width?: "auto" | "full" | "responsive" | null | undefined;
10
10
  align?: "center" | "start" | null | undefined;
11
11
  shrink?: boolean | null | undefined;
@@ -4,8 +4,8 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const buttonVariants: (props?: ({
7
- variant?: "link" | "default" | "ghost" | "secondary" | "destructive" | "outline" | "outline-muted" | "quiet" | "ghost-destructive" | "link-muted" | "inverted" | "status-error" | "status-warning" | "status-muted" | null | undefined;
8
- size?: "filter" | "status" | "toolbar" | "sm" | "lg" | "default" | "micro" | "tone" | "compact" | "hero" | "icon" | "icon-lg" | "icon-sm" | "icon-md" | "icon-xs" | "icon-compact" | "icon-micro" | "bare" | "voice-sm" | "voice" | "suggestion" | null | undefined;
7
+ variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "outline-muted" | "ghost" | "quiet" | "ghost-destructive" | "link-muted" | "inverted" | "status-error" | "status-warning" | "status-muted" | null | undefined;
8
+ size?: "filter" | "status" | "toolbar" | "sm" | "lg" | "default" | "micro" | "compact" | "hero" | "icon" | "icon-lg" | "icon-sm" | "icon-md" | "icon-xs" | "icon-compact" | "icon-micro" | "bare" | "voice-sm" | "voice" | "suggestion" | "tone" | null | undefined;
9
9
  width?: "auto" | "full" | "responsive" | null | undefined;
10
10
  align?: "center" | "start" | null | undefined;
11
11
  shrink?: boolean | null | undefined;
@@ -150,7 +150,7 @@ var ChatThread = _react.forwardRef.call(void 0,
150
150
  _chunkXABXUP6Lcjs.MessageScrollerContent,
151
151
  {
152
152
  className: _chunkKWLSBTB2cjs.cn.call(void 0,
153
- workspace ? "mx-auto w-full max-w-3xl gap-7 px-4 py-6 md:px-6 md:py-8" : "gap-2.5 px-px py-px"
153
+ workspace ? "mx-auto w-full max-w-3xl gap-10 px-4 py-6 md:px-6 md:py-8" : "gap-2.5 px-px py-px"
154
154
  ),
155
155
  children: [
156
156
  messages.map((m, index) => {
@@ -164,7 +164,7 @@ var ChatThread = _react.forwardRef.call(void 0,
164
164
  {
165
165
  messageId: m.id,
166
166
  scrollAnchor: m.id === anchorId,
167
- className: "flex flex-col gap-3",
167
+ className: _chunkKWLSBTB2cjs.cn.call(void 0, "flex flex-col", workspace ? "gap-5" : "gap-3"),
168
168
  children: [
169
169
  startsTimelineSection ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TimelineMarker, { label: relativeTime }) : null,
170
170
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2AU7ZRGXcjs.Message, { align: isUser ? "end" : "start", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2AU7ZRGXcjs.MessageContent, { children: [
@@ -150,7 +150,7 @@ var ChatThread = forwardRef(
150
150
  MessageScrollerContent,
151
151
  {
152
152
  className: cn(
153
- workspace ? "mx-auto w-full max-w-3xl gap-7 px-4 py-6 md:px-6 md:py-8" : "gap-2.5 px-px py-px"
153
+ workspace ? "mx-auto w-full max-w-3xl gap-10 px-4 py-6 md:px-6 md:py-8" : "gap-2.5 px-px py-px"
154
154
  ),
155
155
  children: [
156
156
  messages.map((m, index) => {
@@ -164,7 +164,7 @@ var ChatThread = forwardRef(
164
164
  {
165
165
  messageId: m.id,
166
166
  scrollAnchor: m.id === anchorId,
167
- className: "flex flex-col gap-3",
167
+ className: cn("flex flex-col", workspace ? "gap-5" : "gap-3"),
168
168
  children: [
169
169
  startsTimelineSection ? /* @__PURE__ */ jsx(TimelineMarker, { label: relativeTime }) : null,
170
170
  /* @__PURE__ */ jsx(Message, { align: isUser ? "end" : "start", children: /* @__PURE__ */ jsxs(MessageContent, { children: [
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _chunkRSFEKQDRcjs = require('../chunk-RSFEKQDR.cjs');
4
+ var _chunkJ467F76Icjs = require('../chunk-J467F76I.cjs');
5
5
 
6
6
 
7
7
  var _chunkLELBCBDTcjs = require('../chunk-LELBCBDT.cjs');
@@ -24,8 +24,8 @@ var CompactAppShell = _react.forwardRef.call(void 0,
24
24
  ref,
25
25
  className: _chunkKWLSBTB2cjs.cn.call(void 0, "min-h-0 bg-background p-4 text-foreground", widths[width], className),
26
26
  ...props,
27
- children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkRSFEKQDRcjs.Stack, { gap: "md", children: [
28
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkRSFEKQDRcjs.Stack, { gap: "xs", children: [
27
+ children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkJ467F76Icjs.Stack, { gap: "md", children: [
28
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkJ467F76Icjs.Stack, { gap: "xs", children: [
29
29
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLELBCBDTcjs.Heading, { level: 1, className: "text-base", children: title }),
30
30
  description
31
31
  ] }),
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Stack
4
- } from "../chunk-6RVPQGYS.js";
4
+ } from "../chunk-WNWBKEWV.js";
5
5
  import {
6
6
  Heading
7
7
  } from "../chunk-H2O6NMLZ.js";
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
 
4
4
 
5
- var _chunkRSFEKQDRcjs = require('../chunk-RSFEKQDR.cjs');
5
+ var _chunkJ467F76Icjs = require('../chunk-J467F76I.cjs');
6
6
 
7
7
 
8
8
  var _chunkL4DH72UFcjs = require('../chunk-L4DH72UF.cjs');
@@ -23,7 +23,7 @@ function DecisionActions({
23
23
  }) {
24
24
  const fill = layout === "fill";
25
25
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
26
- _chunkRSFEKQDRcjs.Stack,
26
+ _chunkJ467F76Icjs.Stack,
27
27
  {
28
28
  direction: "horizontal",
29
29
  gap: "sm",
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
  import {
4
4
  Stack
5
- } from "../chunk-6RVPQGYS.js";
5
+ } from "../chunk-WNWBKEWV.js";
6
6
  import {
7
7
  Button
8
8
  } from "../chunk-HQRWRRZJ.js";
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _chunkRSFEKQDRcjs = require('../chunk-RSFEKQDR.cjs');
4
+ var _chunkJ467F76Icjs = require('../chunk-J467F76I.cjs');
5
5
  require('../chunk-KWLSBTB2.cjs');
6
6
 
7
7
 
8
- exports.Stack = _chunkRSFEKQDRcjs.Stack;
8
+ exports.Stack = _chunkJ467F76Icjs.Stack;
@@ -5,9 +5,13 @@ import { HTMLAttributes, ElementType } from 'react';
5
5
  * Stack — flex container with a canonical gap scale.
6
6
  *
7
7
  * Consumers stop guessing between `gap-2`, `gap-3`, `gap-4`, etc.
8
- * Five sizes map to the shared spacing scale from no gap through large.
8
+ * Eight sizes map to the shared spacing scale: `none` (0), `xs` (0.25rem),
9
+ * `sm` (0.5rem), `compact` (0.75rem), `md` (1rem), `lg` (1.5rem), `xl`
10
+ * (2.5rem) and `2xl` (4.5rem). `xl` and `2xl` set blocks apart, such as a card
11
+ * that follows a paragraph and should read as its own block rather than the
12
+ * paragraph's continuation.
9
13
  */
10
- type StackGap = "none" | "xs" | "sm" | "compact" | "md" | "lg";
14
+ type StackGap = "none" | "xs" | "sm" | "compact" | "md" | "lg" | "xl" | "2xl";
11
15
  type StackDirection = "vertical" | "horizontal";
12
16
  interface StackProps extends HTMLAttributes<HTMLElement> {
13
17
  gap?: StackGap;
@@ -5,9 +5,13 @@ import { HTMLAttributes, ElementType } from 'react';
5
5
  * Stack — flex container with a canonical gap scale.
6
6
  *
7
7
  * Consumers stop guessing between `gap-2`, `gap-3`, `gap-4`, etc.
8
- * Five sizes map to the shared spacing scale from no gap through large.
8
+ * Eight sizes map to the shared spacing scale: `none` (0), `xs` (0.25rem),
9
+ * `sm` (0.5rem), `compact` (0.75rem), `md` (1rem), `lg` (1.5rem), `xl`
10
+ * (2.5rem) and `2xl` (4.5rem). `xl` and `2xl` set blocks apart, such as a card
11
+ * that follows a paragraph and should read as its own block rather than the
12
+ * paragraph's continuation.
9
13
  */
10
- type StackGap = "none" | "xs" | "sm" | "compact" | "md" | "lg";
14
+ type StackGap = "none" | "xs" | "sm" | "compact" | "md" | "lg" | "xl" | "2xl";
11
15
  type StackDirection = "vertical" | "horizontal";
12
16
  interface StackProps extends HTMLAttributes<HTMLElement> {
13
17
  gap?: StackGap;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Stack
4
- } from "../chunk-6RVPQGYS.js";
4
+ } from "../chunk-WNWBKEWV.js";
5
5
  import "../chunk-G6SRSWXB.js";
6
6
  export {
7
7
  Stack
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epicbagel/saas-kit",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Accessible React primitives, layout components and design tokens for SaaS apps, built on Radix UI and Tailwind CSS v4.",
5
5
  "license": "MIT",
6
6
  "keywords": [