@lateralus-ai/shipping-ui 2.0.0-dev.20 → 2.0.0-dev.4
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/Entry.d.ts +7 -27
- package/dist/components/Tabs.d.ts +5 -5
- package/dist/components/index.d.ts +2 -4
- package/dist/index.cjs +25 -25
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +3374 -3584
- package/dist/patterns/Search/ResultRow.d.ts +5 -11
- package/dist/patterns/Sidebar/sidebar-styles.d.ts +1 -2
- package/dist/primitives/Badge.d.ts +4 -7
- package/dist/primitives/index.d.ts +1 -1
- package/dist/tailwind-theme.d.ts +0 -4
- package/dist/{theme-entry-tLBc6zGT.mjs → theme-entry-BUK3MJUJ.mjs} +4 -8
- package/dist/theme-entry-ygTpGaNC.js +1 -0
- package/dist/theme.cjs +1 -1
- package/dist/theme.esm.js +1 -1
- package/package.json +128 -128
- package/src/components/Entry.tsx +45 -119
- package/src/components/Tabs.tsx +27 -33
- package/src/components/index.ts +1 -15
- package/src/index.ts +0 -11
- package/src/patterns/Search/ResultRow.tsx +38 -24
- package/src/patterns/Search/SearchModal.tsx +1 -7
- package/src/patterns/Sidebar/CollapsibleNavGroup.tsx +1 -1
- package/src/patterns/Sidebar/SidebarAction.tsx +17 -26
- package/src/patterns/Sidebar/SidebarEntry.tsx +39 -54
- package/src/patterns/Sidebar/SidebarLink.tsx +20 -30
- package/src/patterns/Sidebar/sidebar-styles.ts +1 -2
- package/src/primitives/Badge.tsx +10 -20
- package/src/primitives/Button.tsx +11 -16
- package/src/primitives/index.ts +1 -1
- package/src/stories/canvases/ContentCanvas.tsx +14 -253
- package/src/tailwind-theme.ts +182 -186
- package/src/utils/cn.ts +1 -28
- package/dist/components/PageHeader.d.ts +0 -41
- package/dist/components/ScrollableList.d.ts +0 -22
- package/dist/theme-entry-Dwr2mV7_.js +0 -1
- package/src/components/PageHeader.tsx +0 -132
- package/src/components/ScrollableList.tsx +0 -61
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
-
import { cn } from "../utils/cn";
|
|
3
|
-
|
|
4
|
-
export type ScrollableListProps = ComponentPropsWithoutRef<"div">;
|
|
5
|
-
export type ScrollableListHeaderProps = ComponentPropsWithoutRef<"div">;
|
|
6
|
-
export type ScrollableListBodyProps = ComponentPropsWithoutRef<"div">;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Fill-height list chrome — Figma `Table` (6154:152285).
|
|
10
|
-
* Outer grey-100 frame + header slot + internally scrolling grey-50 body.
|
|
11
|
-
* Column layout and rows are caller-owned children.
|
|
12
|
-
*/
|
|
13
|
-
function ScrollableListRoot({ className, ...props }: ScrollableListProps) {
|
|
14
|
-
return (
|
|
15
|
-
<div
|
|
16
|
-
className={cn(
|
|
17
|
-
"flex min-h-0 flex-1 flex-col gap-2 overflow-hidden rounded-lg bg-grey-100 p-1",
|
|
18
|
-
className,
|
|
19
|
-
)}
|
|
20
|
-
{...props}
|
|
21
|
-
/>
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Column title bar. Default left padding aligns with a 24px leading icon +
|
|
27
|
-
* 8px gap + 8px row padding (Figma). Override `className` when rows have no icon.
|
|
28
|
-
*/
|
|
29
|
-
function ScrollableListHeader({
|
|
30
|
-
className,
|
|
31
|
-
...props
|
|
32
|
-
}: ScrollableListHeaderProps) {
|
|
33
|
-
return (
|
|
34
|
-
<div
|
|
35
|
-
className={cn(
|
|
36
|
-
"flex shrink-0 items-start gap-8 pl-10 pr-2 py-1",
|
|
37
|
-
"text-caption-2-em text-display-on-light-secondary",
|
|
38
|
-
className,
|
|
39
|
-
)}
|
|
40
|
-
{...props}
|
|
41
|
-
/>
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/** Internally scrolling row region. */
|
|
46
|
-
function ScrollableListBody({ className, ...props }: ScrollableListBodyProps) {
|
|
47
|
-
return (
|
|
48
|
-
<div
|
|
49
|
-
className={cn(
|
|
50
|
-
"flex min-h-0 flex-1 flex-col gap-1 overflow-y-auto rounded bg-grey-50 p-1",
|
|
51
|
-
className,
|
|
52
|
-
)}
|
|
53
|
-
{...props}
|
|
54
|
-
/>
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export const ScrollableList = Object.assign(ScrollableListRoot, {
|
|
59
|
-
Header: ScrollableListHeader,
|
|
60
|
-
Body: ScrollableListBody,
|
|
61
|
-
});
|