@gaulatti/bleecker 0.1.14 → 0.1.17
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/dist/components/alert.js +12 -12
- package/dist/components/avatar.js +2 -2
- package/dist/components/button-group.js +8 -3
- package/dist/components/button.js +7 -7
- package/dist/components/card.js +1 -1
- package/dist/components/chart.d.ts +6 -0
- package/dist/components/chart.js +13 -0
- package/dist/components/checkbox.d.ts +7 -0
- package/dist/components/checkbox.js +10 -0
- package/dist/components/context-menu.d.ts +9 -0
- package/dist/components/context-menu.js +11 -0
- package/dist/components/data-table.d.ts +11 -0
- package/dist/components/data-table.js +31 -0
- package/dist/components/drawer.js +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/file-input.d.ts +8 -0
- package/dist/components/file-input.js +11 -0
- package/dist/components/input.d.ts +10 -0
- package/dist/components/input.js +11 -0
- package/dist/components/kbd.js +2 -2
- package/dist/components/label.d.ts +4 -0
- package/dist/components/label.js +7 -0
- package/dist/components/menubar.js +4 -4
- package/dist/components/modal.js +1 -1
- package/dist/components/navigation-menu.js +1 -1
- package/dist/components/panel.d.ts +8 -1
- package/dist/components/panel.js +12 -2
- package/dist/components/popover.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/separator.d.ts +6 -0
- package/dist/components/separator.js +6 -0
- package/dist/components/status-badge.js +4 -4
- package/dist/components/textarea.d.ts +8 -0
- package/dist/components/textarea.js +11 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/panel-layout.d.ts +2 -1
- package/dist/layout/panel-layout.js +10 -2
- package/dist/login-screen.d.ts +1 -0
- package/dist/login-screen.js +10 -0
- package/dist/styles.css +1 -1
- package/package.json +6 -1
- package/src/styles/global.css +30 -12
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './components/dialog-close-button';
|
|
|
13
13
|
export * from './components/drawer';
|
|
14
14
|
export * from './components/empty';
|
|
15
15
|
export * from './components/hover-card';
|
|
16
|
+
export * from './components/input';
|
|
16
17
|
export * from './components/kbd';
|
|
17
18
|
export * from './components/menubar';
|
|
18
19
|
export * from './components/navigation-menu';
|
|
@@ -20,11 +21,14 @@ export * from './components/otp-input';
|
|
|
20
21
|
export * from './components/popover';
|
|
21
22
|
export * from './components/progress';
|
|
22
23
|
export * from './components/radio-group';
|
|
24
|
+
export * from './components/checkbox';
|
|
23
25
|
export * from './components/scroll-area';
|
|
26
|
+
export * from './components/separator';
|
|
24
27
|
export * from './components/sheet';
|
|
25
28
|
export * from './components/slider';
|
|
26
29
|
export * from './components/sonner';
|
|
27
30
|
export * from './components/switch';
|
|
31
|
+
export * from './components/textarea';
|
|
28
32
|
export * from './components/toggle';
|
|
29
33
|
export * from './components/toggle-group';
|
|
30
34
|
export * from './components/tooltip';
|
|
@@ -41,6 +45,7 @@ export * from './components/pagination';
|
|
|
41
45
|
export * from './components/collection-filters';
|
|
42
46
|
export * from './components/command-spotlight';
|
|
43
47
|
export * from './components/select';
|
|
48
|
+
export * from './components/file-input';
|
|
44
49
|
export * from './components/section-header';
|
|
45
50
|
export * from './assets/logo';
|
|
46
51
|
export * from './components/panel';
|
package/dist/index.js
CHANGED
|
@@ -13,6 +13,7 @@ export * from './components/dialog-close-button.js';
|
|
|
13
13
|
export * from './components/drawer.js';
|
|
14
14
|
export * from './components/empty.js';
|
|
15
15
|
export * from './components/hover-card.js';
|
|
16
|
+
export * from './components/input.js';
|
|
16
17
|
export * from './components/kbd.js';
|
|
17
18
|
export * from './components/menubar.js';
|
|
18
19
|
export * from './components/navigation-menu.js';
|
|
@@ -20,11 +21,14 @@ export * from './components/otp-input.js';
|
|
|
20
21
|
export * from './components/popover.js';
|
|
21
22
|
export * from './components/progress.js';
|
|
22
23
|
export * from './components/radio-group.js';
|
|
24
|
+
export * from './components/checkbox.js';
|
|
23
25
|
export * from './components/scroll-area.js';
|
|
26
|
+
export * from './components/separator.js';
|
|
24
27
|
export * from './components/sheet.js';
|
|
25
28
|
export * from './components/slider.js';
|
|
26
29
|
export * from './components/sonner.js';
|
|
27
30
|
export * from './components/switch.js';
|
|
31
|
+
export * from './components/textarea.js';
|
|
28
32
|
export * from './components/toggle.js';
|
|
29
33
|
export * from './components/toggle-group.js';
|
|
30
34
|
export * from './components/tooltip.js';
|
|
@@ -41,6 +45,7 @@ export * from './components/pagination.js';
|
|
|
41
45
|
export * from './components/collection-filters.js';
|
|
42
46
|
export * from './components/command-spotlight.js';
|
|
43
47
|
export * from './components/select.js';
|
|
48
|
+
export * from './components/file-input.js';
|
|
44
49
|
export * from './components/section-header.js';
|
|
45
50
|
export * from './assets/logo.js';
|
|
46
51
|
export * from './components/panel.js';
|
package/dist/layout/app-shell.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from '../utils/cn.js';
|
|
3
3
|
export function AppShell({ children, className, contentClassName, footer, header, offsetHeader = true }) {
|
|
4
|
-
return (_jsxs("div", { className: cn('min-h-screen flex flex-col bg-
|
|
4
|
+
return (_jsxs("div", { className: cn('min-h-screen flex flex-col bg-white text-text-primary dark:bg-deep-sea dark:text-text-primary', className), children: [header, _jsx("main", { className: cn('flex-1 flex flex-col min-h-0', offsetHeader && 'pt-20', contentClassName), children: _jsx("div", { className: 'flex-1 flex flex-col min-h-0', children: children }) }), footer] }));
|
|
5
5
|
}
|
|
@@ -5,9 +5,10 @@ export interface PanelLayoutProps {
|
|
|
5
5
|
/**
|
|
6
6
|
* `scroll` — panels have a fixed width and the container scrolls horizontally.
|
|
7
7
|
* `expand` — panels flex-grow to fill the available width.
|
|
8
|
+
* `monitor` — panels scroll horizontally, but gaps and padding are removed for seamless column snapping.
|
|
8
9
|
* @default 'scroll'
|
|
9
10
|
*/
|
|
10
|
-
mode?: 'scroll' | 'expand';
|
|
11
|
+
mode?: 'scroll' | 'expand' | 'monitor';
|
|
11
12
|
/** Padding applied around the panel container */
|
|
12
13
|
padding?: string;
|
|
13
14
|
}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { cn } from '../utils/cn.js';
|
|
4
|
-
export function PanelLayout({ children, className, mode = 'scroll', padding
|
|
5
|
-
|
|
4
|
+
export function PanelLayout({ children, className, mode = 'scroll', padding }) {
|
|
5
|
+
// Determine default padding based on mode if not explicitly provided
|
|
6
|
+
const resolvedPadding = padding ?? (mode === 'monitor' ? 'p-0 gap-0' : 'p-6');
|
|
7
|
+
return (_jsx("div", { className: cn('flex flex-1 min-h-0', mode === 'scroll' || mode === 'monitor' ? 'overflow-x-auto' : 'overflow-x-visible', resolvedPadding, className), children: _jsx("div", { className: cn('flex h-full min-h-0', mode === 'monitor' ? 'gap-0 flex-nowrap' : mode === 'scroll' ? 'gap-5 flex-nowrap' : 'gap-5 flex-wrap flex-1'), children: React.Children.map(children, (child) => {
|
|
8
|
+
if (!React.isValidElement(child))
|
|
9
|
+
return child;
|
|
10
|
+
// If in monitor mode, auto-inject the monitor variant to Panel components
|
|
11
|
+
const childProps = mode === 'monitor' && typeof child.type !== 'string' ? { variant: 'monitor' } : {};
|
|
12
|
+
return (_jsx("div", { className: cn('flex flex-col h-full min-h-0', mode === 'expand' && 'flex-1 min-w-0'), children: React.cloneElement(child, childProps) }));
|
|
13
|
+
}) }) }));
|
|
6
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LoginScreen: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Card } from './components/card.js';
|
|
3
|
+
import { Button } from './components/button.js';
|
|
4
|
+
import { Input } from './components/input.js';
|
|
5
|
+
import { Label } from './components/label.js';
|
|
6
|
+
export const LoginScreen = () => {
|
|
7
|
+
return (_jsx("div", { className: 'flex min-h-screen items-center justify-center bg-white dark:bg-deep-sea p-4', children: _jsx(Card, { className: 'w-full max-w-sm p-6', children: _jsxs("div", { className: 'space-y-6', children: [_jsxs("div", { className: 'space-y-1.5 text-center', children: [_jsx("h2", { className: 'text-2xl font-semibold tracking-tight text-text-primary dark:text-text-primary', children: "Welcome Back" }), _jsx("p", { className: 'text-sm text-text-secondary dark:text-text-secondary', children: "Sign in to your account to continue." })] }), _jsxs("form", { className: 'space-y-4', onSubmit: (e) => {
|
|
8
|
+
e.preventDefault();
|
|
9
|
+
}, children: [_jsxs("div", { className: 'space-y-2', children: [_jsx(Label, { htmlFor: 'email', children: "Email Address" }), _jsx(Input, { id: 'email', type: 'email', placeholder: 'jane@example.com', required: true })] }), _jsxs("div", { className: 'space-y-2', children: [_jsxs("div", { className: 'flex items-center justify-between', children: [_jsx(Label, { htmlFor: 'password', children: "Password" }), _jsx("a", { href: '#', className: 'text-sm font-medium text-sea hover:underline dark:text-accent-blue', children: "Forgot password?" })] }), _jsx(Input, { id: 'password', type: 'password', required: true }), _jsx("p", { className: 'text-xs text-terracotta mt-1', children: "This field is required." })] }), _jsx(Button, { className: 'w-full mt-2', type: 'submit', children: "Sign In" })] }), _jsxs("div", { className: 'text-center text-sm text-text-secondary dark:text-text-secondary', children: ["Don't have an account?", ' ', _jsx("a", { href: '#', className: 'font-medium text-sea hover:underline dark:text-accent-blue', children: "Sign up" })] })] }) }) }));
|
|
10
|
+
};
|