@bsuite/ui 1.3.0 → 1.3.1

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.
@@ -93,7 +93,7 @@ export function DataUnavailable({ state, title, description, reason, onRetry, re
93
93
  const showRetry = Boolean(onRetry) && state !== 'forbidden';
94
94
  return (_jsxs("div", { "data-slot": "data-unavailable", "data-state": state, role: preset.role, "aria-live": preset.live, "aria-busy": state === 'loading' || undefined, className: cn(
95
95
  // Dashed + hatched: deliberately unlike every populated surface.
96
- 'relative isolate flex flex-col items-center justify-center overflow-hidden', 'rounded-lg border border-dashed text-center', size === 'compact' ? 'min-h-32 gap-2 p-4' : 'min-h-48 gap-3 p-8', TONE_SURFACE[preset.tone], className), ...props, children: [_jsx(Hatch, {}), _jsxs("div", { className: "relative flex flex-col items-center gap-3", children: [_jsx(StateIcon, { icon: preset.icon }), _jsxs("div", { className: "space-y-1", children: [_jsx("p", { className: "text-base font-semibold text-foreground", children: title ?? preset.title }), _jsx("p", { className: "mx-auto max-w-prose text-sm text-muted-foreground", children: description ?? preset.description })] }), reason ? (_jsxs("div", { className: "mx-auto w-full max-w-prose", children: [_jsx("p", { className: "mb-1 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: "Reason" }), _jsx("pre", { className: "overflow-x-auto whitespace-pre-wrap break-words rounded-md border border-border bg-card/80 px-3 py-2 text-left font-mono text-xs text-muted-foreground", children: reason })] })) : null, showRetry || action ? (_jsxs("div", { className: "mt-1 flex flex-wrap items-center justify-center gap-2", children: [showRetry ? (_jsx("button", { type: "button", onClick: onRetry, className: cn('inline-flex items-center rounded-md border border-border bg-card px-3 py-1.5', 'text-sm font-medium text-foreground', 'hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring'), children: retryLabel })) : null, action] })) : null] })] }));
96
+ 'relative isolate flex flex-col items-center justify-center overflow-hidden', 'rounded-lg border border-dashed text-center', size === 'compact' ? 'min-h-32 gap-2 p-4' : 'min-h-48 gap-3 p-8', TONE_SURFACE[preset.tone], className), ...props, children: [_jsx(Hatch, {}), _jsxs("div", { className: "relative flex flex-col items-center gap-3", children: [_jsx(StateIcon, { icon: preset.icon }), _jsxs("div", { className: "space-y-1", children: [_jsx("p", { className: "text-base font-semibold text-foreground", children: title ?? preset.title }), _jsx("p", { className: "mx-auto max-w-prose text-sm text-muted-foreground", children: description ?? preset.description })] }), reason ? (_jsxs("div", { className: "mx-auto w-full max-w-prose", children: [_jsx("p", { className: "mb-1 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: "Reason" }), _jsx("pre", { className: "overflow-x-auto whitespace-pre-wrap break-words rounded-md border border-border bg-card/80 px-3 py-2 text-left font-mono text-xs text-muted-foreground", children: reason })] })) : null, showRetry || action ? (_jsxs("div", { className: "mt-1 flex flex-wrap items-center justify-center gap-2", children: [showRetry ? (_jsx("button", { type: "button", onClick: onRetry, className: cn('inline-flex items-center rounded-md border border-border-interactive bg-card px-3 py-1.5', 'text-sm font-medium text-foreground', 'hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring'), children: retryLabel })) : null, action] })) : null] })] }));
97
97
  }
98
98
  /**
99
99
  * Postgres/PostgREST codes that mean "refused", not "broken".
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsuite/ui",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {
@@ -93,12 +93,12 @@
93
93
  "test": "vitest run"
94
94
  },
95
95
  "dependencies": {
96
- "@radix-ui/react-dialog": "^1.1.16",
97
- "@radix-ui/react-popover": "^1.1.16",
96
+ "@radix-ui/react-dialog": "^1.1.23",
97
+ "@radix-ui/react-popover": "^1.1.23",
98
98
  "clsx": "^2.1.1",
99
99
  "cmdk": "^1.1.1",
100
- "lucide-react": "^1.17.0",
101
- "react-error-boundary": "^6.1.2",
100
+ "lucide-react": "^1.37.0",
101
+ "react-error-boundary": "^6.1.4",
102
102
  "tailwind-merge": "^3.6.0"
103
103
  },
104
104
  "peerDependencies": {
@@ -117,22 +117,22 @@
117
117
  },
118
118
  "devDependencies": {
119
119
  "@bsuite/theme": "workspace:^",
120
- "@storybook/react-vite": "^10.5.8",
121
- "@supabase/postgrest-js": "^2.108.1",
122
- "@tailwindcss/vite": "^4.3.0",
123
- "@testing-library/jest-dom": "^6.9.1",
124
- "@testing-library/react": "^16.3.2",
125
- "@testing-library/user-event": "^14.6.1",
126
- "@types/react": "^19.2.17",
127
- "@types/react-dom": "^19.2.3",
128
- "@vitejs/plugin-react": "^6.0.2",
129
- "jsdom": "^29.1.1",
130
- "react": "^19.2.7",
131
- "react-dom": "^19.2.7",
132
- "storybook": "^10.5.8",
133
- "tailwindcss": "^4.3.0",
134
- "typescript": "~6.0.3",
135
- "vite": "^8.0.16",
136
- "vitest": "^4.1.8"
120
+ "@storybook/react-vite": "^10.5.10",
121
+ "@supabase/postgrest-js": "^2.112.4",
122
+ "@tailwindcss/vite": "^4.3.3",
123
+ "@testing-library/jest-dom": "^7.0.1",
124
+ "@testing-library/react": "^16.3.3",
125
+ "@testing-library/user-event": "^14.6.6",
126
+ "@types/react": "^19.2.18",
127
+ "@types/react-dom": "^19.2.5",
128
+ "@vitejs/plugin-react": "^6.1.1",
129
+ "jsdom": "^30.0.1",
130
+ "react": "^19.2.8",
131
+ "react-dom": "^19.2.8",
132
+ "storybook": "^10.5.10",
133
+ "tailwindcss": "^4.3.3",
134
+ "typescript": "^6.0.3",
135
+ "vite": "^8.2.2",
136
+ "vitest": "^4.1.11"
137
137
  }
138
138
  }