@lateralus-ai/shipping-ui 2.0.0-dev.19 → 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,150 +1,150 @@
1
- import {
2
- Pill,
3
- PillInfo,
4
- ResultRow,
5
- SearchModalPanel,
6
- SectionHeader,
7
- } from "../../patterns/Search";
8
- import {
9
- FigmaContent,
10
- FigmaGrid,
11
- FigmaPage,
12
- FigmaSection,
13
- FigmaVariant,
14
- } from "../_layout";
15
- import { FIGMA_WIDTHS } from "./figma-widths";
16
-
17
- const recentItems = [
18
- { variant: "report" as const, title: "Engine Room Oil Leak" },
19
- { variant: "chat" as const, title: "Low Water Pressure on Board" },
20
- {
21
- variant: "chat" as const,
22
- title: "Generator Vibrating Excessively",
23
- state: "active" as const,
24
- },
25
- {
26
- variant: "issue" as const,
27
- title:
28
- "Intermittent Flickering of Navigation Lights Possibly Due to Bulb Failure or Signal Unit Errors",
29
- },
30
- ];
31
-
32
- const resultItems = [
33
- {
34
- variant: "report" as const,
35
- title: "Persistent Engine Room Oil Leak",
36
- subtitle: (
37
- <>
38
- We’ve got a persistent oil leak from the{" "}
39
- <span className="text-caption-2-em text-display-on-light-primary">
40
- fuel pump
41
- </span>
42
- . I’ve tightened what I could, but it keeps seeping.
43
- </>
44
- ),
45
- },
46
- {
47
- variant: "chat" as const,
48
- title: "Ballast Pump Not Starting",
49
- subtitle: (
50
- <>
51
- The{" "}
52
- <span className="text-caption-2-em text-display-on-light-primary">
53
- fuel pump
54
- </span>{" "}
55
- won’t start consistently. Sometimes it works, sometimes it doesn’t.
56
- </>
57
- ),
58
- },
59
- {
60
- variant: "issue" as const,
61
- title:
62
- "Excessive Rust on Fuel Pump and Piping with Unclear Material Specifications and Corrosion Protection Measures",
63
- subtitle: "Created by Jake Silva on March 28",
64
- state: "active" as const,
65
- },
66
- {
67
- variant: "report" as const,
68
- title: "Engine Room Oil Leak",
69
- subtitle: (
70
- <>
71
- We’ve spotted a steady oil leak near the{" "}
72
- <span className="text-caption-2-em text-display-on-light-primary">
73
- fuel pump
74
- </span>
75
- . Not sure if it’s a gasket or a cracked line.
76
- </>
77
- ),
78
- },
79
- ];
80
-
81
- export const SearchCanvas = () => (
82
- <FigmaPage title="Search" width={FIGMA_WIDTHS.search}>
83
- <FigmaContent>
84
- <FigmaSection label="Pill">
85
- <FigmaGrid gap={16}>
86
- <Pill>All</Pill>
87
- <Pill state="active">Reports</Pill>
88
- <Pill size="small">Issues</Pill>
89
- <Pill size="small" state="active">
90
- Chats
91
- </Pill>
92
- </FigmaGrid>
93
- </FigmaSection>
94
-
95
- <FigmaSection label="Pill Info">
96
- <FigmaGrid gap={16}>
97
- <PillInfo />
98
- <PillInfo type="completed" />
99
- </FigmaGrid>
100
- </FigmaSection>
101
-
102
- <FigmaSection label="Result Row">
103
- <div className="max-w-xl space-y-2">
104
- <ResultRow />
105
- <ResultRow
106
- variant="chat"
107
- title="Port state control discussion"
108
- subtitle="2 days ago"
109
- />
110
- <ResultRow
111
- variant="issue"
112
- title="Critical valve malfunction"
113
- subtitle="Open · High priority"
114
- />
115
- </div>
116
- </FigmaSection>
117
-
118
- <FigmaSection label="Section Header">
119
- <div className="max-w-xl">
120
- <SectionHeader label="Reports" />
121
- </div>
122
- </FigmaSection>
123
-
124
- <FigmaSection label="Search Modal">
125
- <FigmaGrid gap={32}>
126
- <FigmaVariant label="Idle">
127
- <div className="w-[700px] overflow-hidden rounded-xl border border-divider-primary bg-background-primary shadow-raise3">
128
- <SearchModalPanel state="idle" recentItems={recentItems} />
129
- </div>
130
- </FigmaVariant>
131
- <FigmaVariant label="Loading">
132
- <div className="w-[700px] overflow-hidden rounded-xl border border-divider-primary bg-background-primary shadow-raise3">
133
- <SearchModalPanel state="loading" query="fuel pump" />
134
- </div>
135
- </FigmaVariant>
136
- <FigmaVariant label="Results">
137
- <div className="w-[700px] overflow-hidden rounded-xl border border-divider-primary bg-background-primary shadow-raise3">
138
- <SearchModalPanel
139
- state="results"
140
- query="fuel pump"
141
- filter="all"
142
- resultItems={resultItems}
143
- />
144
- </div>
145
- </FigmaVariant>
146
- </FigmaGrid>
147
- </FigmaSection>
148
- </FigmaContent>
149
- </FigmaPage>
150
- );
1
+ import {
2
+ Pill,
3
+ PillInfo,
4
+ ResultRow,
5
+ SearchModalPanel,
6
+ SectionHeader,
7
+ } from "../../patterns/Search";
8
+ import {
9
+ FigmaContent,
10
+ FigmaGrid,
11
+ FigmaPage,
12
+ FigmaSection,
13
+ FigmaVariant,
14
+ } from "../_layout";
15
+ import { FIGMA_WIDTHS } from "./figma-widths";
16
+
17
+ const recentItems = [
18
+ { variant: "report" as const, title: "Engine Room Oil Leak" },
19
+ { variant: "chat" as const, title: "Low Water Pressure on Board" },
20
+ {
21
+ variant: "chat" as const,
22
+ title: "Generator Vibrating Excessively",
23
+ state: "active" as const,
24
+ },
25
+ {
26
+ variant: "issue" as const,
27
+ title:
28
+ "Intermittent Flickering of Navigation Lights Possibly Due to Bulb Failure or Signal Unit Errors",
29
+ },
30
+ ];
31
+
32
+ const resultItems = [
33
+ {
34
+ variant: "report" as const,
35
+ title: "Persistent Engine Room Oil Leak",
36
+ subtitle: (
37
+ <>
38
+ We’ve got a persistent oil leak from the{" "}
39
+ <span className="text-caption-2-em text-display-on-light-primary">
40
+ fuel pump
41
+ </span>
42
+ . I’ve tightened what I could, but it keeps seeping.
43
+ </>
44
+ ),
45
+ },
46
+ {
47
+ variant: "chat" as const,
48
+ title: "Ballast Pump Not Starting",
49
+ subtitle: (
50
+ <>
51
+ The{" "}
52
+ <span className="text-caption-2-em text-display-on-light-primary">
53
+ fuel pump
54
+ </span>{" "}
55
+ won’t start consistently. Sometimes it works, sometimes it doesn’t.
56
+ </>
57
+ ),
58
+ },
59
+ {
60
+ variant: "issue" as const,
61
+ title:
62
+ "Excessive Rust on Fuel Pump and Piping with Unclear Material Specifications and Corrosion Protection Measures",
63
+ subtitle: "Created by Jake Silva on March 28",
64
+ state: "active" as const,
65
+ },
66
+ {
67
+ variant: "report" as const,
68
+ title: "Engine Room Oil Leak",
69
+ subtitle: (
70
+ <>
71
+ We’ve spotted a steady oil leak near the{" "}
72
+ <span className="text-caption-2-em text-display-on-light-primary">
73
+ fuel pump
74
+ </span>
75
+ . Not sure if it’s a gasket or a cracked line.
76
+ </>
77
+ ),
78
+ },
79
+ ];
80
+
81
+ export const SearchCanvas = () => (
82
+ <FigmaPage title="Search" width={FIGMA_WIDTHS.search}>
83
+ <FigmaContent>
84
+ <FigmaSection label="Pill">
85
+ <FigmaGrid gap={16}>
86
+ <Pill>All</Pill>
87
+ <Pill state="active">Reports</Pill>
88
+ <Pill size="small">Issues</Pill>
89
+ <Pill size="small" state="active">
90
+ Chats
91
+ </Pill>
92
+ </FigmaGrid>
93
+ </FigmaSection>
94
+
95
+ <FigmaSection label="Pill Info">
96
+ <FigmaGrid gap={16}>
97
+ <PillInfo />
98
+ <PillInfo type="completed" />
99
+ </FigmaGrid>
100
+ </FigmaSection>
101
+
102
+ <FigmaSection label="Result Row">
103
+ <div className="max-w-xl space-y-2">
104
+ <ResultRow />
105
+ <ResultRow
106
+ variant="chat"
107
+ title="Port state control discussion"
108
+ subtitle="2 days ago"
109
+ />
110
+ <ResultRow
111
+ variant="issue"
112
+ title="Critical valve malfunction"
113
+ subtitle="Open · High priority"
114
+ />
115
+ </div>
116
+ </FigmaSection>
117
+
118
+ <FigmaSection label="Section Header">
119
+ <div className="max-w-xl">
120
+ <SectionHeader label="Reports" />
121
+ </div>
122
+ </FigmaSection>
123
+
124
+ <FigmaSection label="Search Modal">
125
+ <FigmaGrid gap={32}>
126
+ <FigmaVariant label="Idle">
127
+ <div className="w-[700px] overflow-hidden rounded-xl border border-divider-primary bg-background-primary shadow-raise3">
128
+ <SearchModalPanel state="idle" recentItems={recentItems} />
129
+ </div>
130
+ </FigmaVariant>
131
+ <FigmaVariant label="Loading">
132
+ <div className="w-[700px] overflow-hidden rounded-xl border border-divider-primary bg-background-primary shadow-raise3">
133
+ <SearchModalPanel state="loading" query="fuel pump" />
134
+ </div>
135
+ </FigmaVariant>
136
+ <FigmaVariant label="Results">
137
+ <div className="w-[700px] overflow-hidden rounded-xl border border-divider-primary bg-background-primary shadow-raise3">
138
+ <SearchModalPanel
139
+ state="results"
140
+ query="fuel pump"
141
+ filter="all"
142
+ resultItems={resultItems}
143
+ />
144
+ </div>
145
+ </FigmaVariant>
146
+ </FigmaGrid>
147
+ </FigmaSection>
148
+ </FigmaContent>
149
+ </FigmaPage>
150
+ );