@lateralus-ai/shipping-ui 2.0.0-dev.20 → 2.0.0-dev.3

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.
Files changed (41) hide show
  1. package/dist/components/Entry.d.ts +7 -27
  2. package/dist/components/Tabs.d.ts +5 -5
  3. package/dist/components/index.d.ts +2 -4
  4. package/dist/index.cjs +25 -25
  5. package/dist/index.d.ts +2 -2
  6. package/dist/index.esm.js +4628 -4857
  7. package/dist/patterns/Search/ResultRow.d.ts +5 -11
  8. package/dist/patterns/Sidebar/sidebar-styles.d.ts +1 -2
  9. package/dist/primitives/Badge.d.ts +4 -7
  10. package/dist/primitives/index.d.ts +1 -1
  11. package/dist/tailwind-theme.d.ts +4 -8
  12. package/dist/{theme-entry-tLBc6zGT.mjs → theme-entry-CxDa1D0_.mjs} +8 -12
  13. package/dist/theme-entry-D2X3Ptjf.js +1 -0
  14. package/dist/theme.cjs +1 -1
  15. package/dist/theme.esm.js +1 -1
  16. package/package.json +2 -2
  17. package/src/components/Entry.tsx +45 -119
  18. package/src/components/Tabs.tsx +139 -146
  19. package/src/components/index.ts +42 -56
  20. package/src/index.ts +74 -85
  21. package/src/patterns/Search/ResultRow.tsx +58 -44
  22. package/src/patterns/Search/SearchModal.tsx +292 -310
  23. package/src/patterns/Search/index.ts +31 -31
  24. package/src/patterns/Sidebar/CollapsibleNavGroup.tsx +1 -1
  25. package/src/patterns/Sidebar/SidebarAction.tsx +17 -26
  26. package/src/patterns/Sidebar/SidebarEntry.tsx +39 -54
  27. package/src/patterns/Sidebar/SidebarLink.tsx +20 -30
  28. package/src/patterns/Sidebar/sidebar-styles.ts +1 -2
  29. package/src/patterns/Skeleton/Skeleton.tsx +56 -56
  30. package/src/primitives/Badge.tsx +10 -20
  31. package/src/primitives/Button.tsx +11 -16
  32. package/src/primitives/index.ts +1 -1
  33. package/src/stories/canvases/ContentCanvas.tsx +114 -353
  34. package/src/stories/canvases/SearchCanvas.tsx +150 -150
  35. package/src/tailwind-theme.ts +182 -186
  36. package/src/utils/cn.ts +1 -28
  37. package/dist/components/PageHeader.d.ts +0 -41
  38. package/dist/components/ScrollableList.d.ts +0 -22
  39. package/dist/theme-entry-Dwr2mV7_.js +0 -1
  40. package/src/components/PageHeader.tsx +0 -132
  41. 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
- });