@gaulatti/bleecker 0.1.40 → 0.1.42
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/LICENSE +21 -0
- package/README.md +58 -1
- package/dist/components/alert-dialog.js +7 -42
- package/dist/components/attention-surface.d.ts +11 -0
- package/dist/components/attention-surface.js +16 -0
- package/dist/components/command-spotlight.js +34 -49
- package/dist/components/context-menu.js +7 -1
- package/dist/components/drawer.js +2 -2
- package/dist/components/dropdown-menu.js +12 -2
- package/dist/components/modal.js +7 -57
- package/dist/components/popover.js +3 -1
- package/dist/components/select.js +3 -1
- package/dist/components/sheet.js +2 -2
- package/dist/components/tooltip.js +3 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.js +6 -2
- package/dist/layout/feed-column.d.ts +12 -0
- package/dist/layout/feed-column.js +12 -0
- package/dist/layout/feed-grid.d.ts +5 -0
- package/dist/layout/feed-grid.js +6 -0
- package/dist/styles.css +1 -1
- package/dist/theme/theme-script.d.ts +1 -1
- package/dist/theme/theme-script.js +1 -1
- package/dist/utils/attention-color.d.ts +25 -0
- package/dist/utils/attention-color.js +27 -0
- package/dist/utils/hooks.d.ts +13 -2
- package/dist/utils/hooks.js +205 -35
- package/package.json +9 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export * from './core';
|
|
2
|
-
export * from './tokens';
|
|
1
|
+
export * from './core/index';
|
|
2
|
+
export * from './tokens/index';
|
|
3
3
|
export * from './components/brand-lockup';
|
|
4
4
|
export * from './components/bauhaus-background';
|
|
5
5
|
export * from './components/activity-item';
|
|
6
|
+
export * from './components/attention-surface';
|
|
6
7
|
export * from './components/button';
|
|
7
8
|
export * from './components/button-group';
|
|
8
9
|
export * from './components/card';
|
|
@@ -103,6 +104,8 @@ export * from './layout/admin-shell';
|
|
|
103
104
|
export * from './layout/auth-shell';
|
|
104
105
|
export * from './layout/detail-layout';
|
|
105
106
|
export * from './layout/footer';
|
|
107
|
+
export * from './layout/feed-column';
|
|
108
|
+
export * from './layout/feed-grid';
|
|
106
109
|
export * from './layout/header';
|
|
107
110
|
export * from './layout/page-frame';
|
|
108
111
|
export * from './layout/panel-layout';
|
|
@@ -111,5 +114,6 @@ export * from './theme/theme-provider';
|
|
|
111
114
|
export * from './theme/theme-script';
|
|
112
115
|
export * from './theme/types';
|
|
113
116
|
export * from './utils/cn';
|
|
117
|
+
export * from './utils/attention-color';
|
|
114
118
|
export * from './utils/format';
|
|
115
119
|
export * from './utils/hooks';
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export * from './core.js';
|
|
2
|
-
export * from './tokens.js';
|
|
1
|
+
export * from './core/index.js';
|
|
2
|
+
export * from './tokens/index.js';
|
|
3
3
|
export * from './components/brand-lockup.js';
|
|
4
4
|
export * from './components/bauhaus-background.js';
|
|
5
5
|
export * from './components/activity-item.js';
|
|
6
|
+
export * from './components/attention-surface.js';
|
|
6
7
|
export * from './components/button.js';
|
|
7
8
|
export * from './components/button-group.js';
|
|
8
9
|
export * from './components/card.js';
|
|
@@ -103,6 +104,8 @@ export * from './layout/admin-shell.js';
|
|
|
103
104
|
export * from './layout/auth-shell.js';
|
|
104
105
|
export * from './layout/detail-layout.js';
|
|
105
106
|
export * from './layout/footer.js';
|
|
107
|
+
export * from './layout/feed-column.js';
|
|
108
|
+
export * from './layout/feed-grid.js';
|
|
106
109
|
export * from './layout/header.js';
|
|
107
110
|
export * from './layout/page-frame.js';
|
|
108
111
|
export * from './layout/panel-layout.js';
|
|
@@ -111,5 +114,6 @@ export * from './theme/theme-provider.js';
|
|
|
111
114
|
export * from './theme/theme-script.js';
|
|
112
115
|
export * from './theme/types.js';
|
|
113
116
|
export * from './utils/cn.js';
|
|
117
|
+
export * from './utils/attention-color.js';
|
|
114
118
|
export * from './utils/format.js';
|
|
115
119
|
export * from './utils/hooks.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface FeedColumnProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
accent?: string;
|
|
4
|
+
bodyClassName?: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
count?: number;
|
|
7
|
+
filter?: React.ReactNode;
|
|
8
|
+
title: string;
|
|
9
|
+
viewportRef?: React.Ref<HTMLDivElement>;
|
|
10
|
+
width?: number | string;
|
|
11
|
+
}
|
|
12
|
+
export declare function FeedColumn({ accent, bodyClassName, children, className, count, filter, style, title, viewportRef, width, ...props }: FeedColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../utils/cn.js';
|
|
3
|
+
export function FeedColumn({ accent = 'var(--color-sea)', bodyClassName, children, className, count, filter, style, title, viewportRef, width = 372, ...props }) {
|
|
4
|
+
const resolvedWidth = typeof width === 'number' ? `${width}px` : width;
|
|
5
|
+
return (_jsxs("section", { ...props, className: cn('flex h-full min-h-0 shrink-0 flex-col overflow-hidden rounded-[12px] border', 'bg-deep-sea/75 shadow-[0_22px_54px_-38px_rgba(0,0,0,0.95)]', className), style: {
|
|
6
|
+
background: `linear-gradient(45deg, color-mix(in oklab, ${accent} 11%, rgba(24,37,49,.88)) 0, rgba(24,37,49,.88) 13rem, rgba(13,24,33,.96) 32rem)`,
|
|
7
|
+
borderColor: `color-mix(in oklab, ${accent} 15%, rgba(255,255,255,.075))`,
|
|
8
|
+
minWidth: resolvedWidth,
|
|
9
|
+
width: resolvedWidth,
|
|
10
|
+
...style
|
|
11
|
+
}, children: [_jsxs("header", { className: 'shrink-0 border-b border-white/[0.065] px-4 pb-4 pt-4', children: [_jsxs("div", { className: 'mb-4 flex min-h-7 items-center gap-2.5', children: [_jsx("span", { "aria-hidden": 'true', className: 'h-2 w-2 rounded-full shadow-[0_0_14px_currentColor]', style: { backgroundColor: accent, color: accent } }), _jsx("h2", { className: 'flex-1 text-[11px] font-semibold uppercase tracking-[0.12em]', style: { color: accent }, children: title }), count !== undefined ? (_jsx("span", { className: 'rounded-full border border-white/[0.08] bg-black/15 px-2.5 py-1 text-[11px] font-semibold tabular-nums text-text-primary/85', children: count })) : null] }), filter] }), _jsx("div", { className: cn('h-full min-h-0 overflow-y-auto p-3', bodyClassName), ref: viewportRef, children: children })] }));
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface FeedGridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
minColumnWidth?: number | string;
|
|
4
|
+
}
|
|
5
|
+
export declare function FeedGrid({ children, className, minColumnWidth, style, ...props }: FeedGridProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../utils/cn.js';
|
|
3
|
+
export function FeedGrid({ children, className, minColumnWidth = 340, style, ...props }) {
|
|
4
|
+
const resolvedWidth = typeof minColumnWidth === 'number' ? `${minColumnWidth}px` : minColumnWidth;
|
|
5
|
+
return (_jsx("div", { ...props, className: cn('grid gap-3 p-4', className), style: { gridTemplateColumns: `repeat(auto-fill, minmax(min(100%, ${resolvedWidth}), 1fr))`, ...style }, children: children }));
|
|
6
|
+
}
|