@lateralus-ai/shipping-ui 1.4.15 → 2.0.0-dev.0

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 (438) hide show
  1. package/README.md +70 -53
  2. package/dist/components/Checkbox.d.ts +9 -0
  3. package/dist/components/Chip.d.ts +15 -0
  4. package/dist/components/EmptyState.d.ts +10 -0
  5. package/dist/components/Entry.d.ts +13 -0
  6. package/dist/components/Header.d.ts +9 -0
  7. package/dist/components/Input.d.ts +11 -0
  8. package/dist/components/InputType.d.ts +10 -0
  9. package/dist/components/ModalPanel.d.ts +7 -7
  10. package/dist/components/PdfViewer/ImageViewer.d.ts +2 -2
  11. package/dist/components/PdfViewer/PdfViewer.d.ts +2 -2
  12. package/dist/components/ReportInput.d.ts +10 -0
  13. package/dist/components/Tab.d.ts +7 -0
  14. package/dist/components/Tabs.d.ts +11 -12
  15. package/dist/components/index.d.ts +11 -4
  16. package/dist/domain/Filters/FilterPill.d.ts +6 -0
  17. package/dist/domain/Filters/FilteredPill.d.ts +8 -0
  18. package/dist/domain/Filters/FiltersBar.d.ts +12 -0
  19. package/dist/domain/Filters/index.d.ts +3 -0
  20. package/dist/domain/Forms/FormCard.d.ts +12 -0
  21. package/dist/domain/Forms/FormHeader.d.ts +8 -0
  22. package/dist/domain/Forms/ListRow.d.ts +8 -0
  23. package/dist/domain/Forms/RiskMeter.d.ts +8 -0
  24. package/dist/domain/Forms/index.d.ts +4 -0
  25. package/dist/domain/Library/File.d.ts +8 -0
  26. package/dist/domain/Library/Folder.d.ts +8 -0
  27. package/dist/domain/Library/Folders.d.ts +11 -0
  28. package/dist/domain/Library/ListRow.d.ts +8 -0
  29. package/dist/domain/Library/Navigation.d.ts +7 -0
  30. package/dist/domain/Library/index.d.ts +5 -0
  31. package/dist/domain/Report/InfoHeading.d.ts +7 -0
  32. package/dist/domain/Report/InfoRow.d.ts +8 -0
  33. package/dist/domain/Report/Report.d.ts +7 -0
  34. package/dist/domain/Report/SectionHeader.d.ts +10 -0
  35. package/dist/domain/Report/TaskRow.d.ts +11 -0
  36. package/dist/domain/Report/index.d.ts +5 -0
  37. package/dist/domain/Settings/EquipmentRow.d.ts +8 -0
  38. package/dist/domain/Settings/MemberRow.d.ts +11 -0
  39. package/dist/domain/Settings/SettingRow.d.ts +10 -0
  40. package/dist/domain/Settings/index.d.ts +3 -0
  41. package/dist/domain/Ships/ShipRow.d.ts +10 -0
  42. package/dist/domain/Ships/index.d.ts +1 -0
  43. package/dist/domain/Workflows/GroupHeader.d.ts +8 -0
  44. package/dist/domain/Workflows/Importance.d.ts +8 -0
  45. package/dist/domain/Workflows/Progress.d.ts +7 -0
  46. package/dist/domain/Workflows/Question.d.ts +9 -0
  47. package/dist/domain/Workflows/StatusPopover.d.ts +7 -0
  48. package/dist/domain/Workflows/Task.d.ts +9 -0
  49. package/dist/domain/Workflows/TaskHeader.d.ts +9 -0
  50. package/dist/domain/Workflows/WorkflowFilters.d.ts +6 -0
  51. package/dist/domain/Workflows/WorkflowForm.d.ts +8 -0
  52. package/dist/domain/Workflows/WorkflowHeader.d.ts +11 -0
  53. package/dist/domain/Workflows/WorkflowListItem.d.ts +11 -0
  54. package/dist/domain/Workflows/WorkflowProgress.d.ts +6 -0
  55. package/dist/domain/Workflows/WorkflowRow.d.ts +10 -0
  56. package/dist/domain/Workflows/index.d.ts +13 -0
  57. package/dist/domain/index.d.ts +7 -0
  58. package/dist/icons/ArrowIcon.d.ts +8 -0
  59. package/dist/icons/ChevronIcon.d.ts +8 -0
  60. package/dist/icons/Icon.d.ts +96 -0
  61. package/dist/icons/arrow-paths.d.ts +12 -0
  62. package/dist/icons/chevron-paths.d.ts +27 -0
  63. package/dist/icons/createIcon.d.ts +34 -0
  64. package/dist/icons/generated.d.ts +68 -0
  65. package/dist/icons/icon-sizes.d.ts +5 -0
  66. package/dist/icons/icons-data.d.ts +1023 -0
  67. package/dist/icons/index.d.ts +13 -0
  68. package/dist/icons/types.d.ts +10 -0
  69. package/dist/illustrations/AuditPreparation.d.ts +4 -0
  70. package/dist/illustrations/CompletedTasks.d.ts +4 -0
  71. package/dist/illustrations/Creation.d.ts +4 -0
  72. package/dist/illustrations/InternalAudit.d.ts +4 -0
  73. package/dist/illustrations/Invite.d.ts +4 -0
  74. package/dist/illustrations/PortStateControl.d.ts +4 -0
  75. package/dist/illustrations/Processing.d.ts +4 -0
  76. package/dist/illustrations/QuestionsDone.d.ts +4 -0
  77. package/dist/illustrations/RightShipInspection.d.ts +4 -0
  78. package/dist/illustrations/Upload.d.ts +4 -0
  79. package/dist/illustrations/WorkflowCreated.d.ts +4 -0
  80. package/dist/illustrations/Workflows.d.ts +4 -0
  81. package/dist/illustrations/createIllustration.d.ts +11 -0
  82. package/dist/illustrations/index.d.ts +13 -0
  83. package/dist/index.cjs +64 -80
  84. package/dist/index.d.ts +9 -3
  85. package/dist/index.esm.js +10964 -36537
  86. package/dist/patterns/Chat/Attachment.d.ts +6 -0
  87. package/dist/patterns/Chat/ChatEntry.d.ts +10 -0
  88. package/dist/patterns/Chat/ChatHeader.d.ts +7 -0
  89. package/dist/patterns/Chat/ChatInput.d.ts +5 -0
  90. package/dist/patterns/Chat/ChatStatus.d.ts +6 -0
  91. package/dist/patterns/Chat/ChatTile.d.ts +9 -0
  92. package/dist/patterns/Chat/Copilot.d.ts +8 -0
  93. package/dist/patterns/Chat/Draft.d.ts +5 -0
  94. package/dist/patterns/Chat/Greeting.d.ts +7 -0
  95. package/dist/patterns/Chat/Reference.d.ts +6 -0
  96. package/dist/patterns/Chat/Source.d.ts +6 -0
  97. package/dist/patterns/Chat/Sources.d.ts +5 -0
  98. package/dist/patterns/Chat/Suggestion.d.ts +5 -0
  99. package/dist/patterns/Chat/Suggestions.d.ts +4 -0
  100. package/dist/patterns/Chat/index.d.ts +14 -0
  101. package/dist/patterns/Modal/Invitee.d.ts +8 -0
  102. package/dist/patterns/Modal/ModalFooter.d.ts +6 -0
  103. package/dist/patterns/Modal/ModalHeader.d.ts +10 -0
  104. package/dist/patterns/Modal/index.d.ts +3 -0
  105. package/dist/patterns/Search/Pill.d.ts +10 -0
  106. package/dist/patterns/Search/PillInfo.d.ts +8 -0
  107. package/dist/patterns/Search/ResultRow.d.ts +10 -0
  108. package/dist/patterns/Search/SearchModal.d.ts +6 -0
  109. package/dist/patterns/Search/SectionHeader.d.ts +5 -0
  110. package/dist/patterns/Search/index.d.ts +5 -0
  111. package/dist/patterns/Sidebar/Account.d.ts +22 -0
  112. package/dist/patterns/Sidebar/ActivityNavGroup.d.ts +17 -0
  113. package/dist/patterns/Sidebar/CollapsibleNavGroup.d.ts +24 -0
  114. package/dist/patterns/Sidebar/Indicator.d.ts +6 -0
  115. package/dist/patterns/Sidebar/NewChat.d.ts +10 -0
  116. package/dist/patterns/Sidebar/Sidebar.d.ts +13 -0
  117. package/dist/patterns/Sidebar/SidebarAction.d.ts +11 -0
  118. package/dist/patterns/Sidebar/SidebarEntry.d.ts +25 -0
  119. package/dist/patterns/Sidebar/SidebarHeading.d.ts +11 -0
  120. package/dist/patterns/Sidebar/SidebarLink.d.ts +22 -0
  121. package/dist/patterns/Sidebar/SidebarShell.d.ts +11 -0
  122. package/dist/patterns/Sidebar/Switcher.d.ts +8 -0
  123. package/dist/patterns/Sidebar/constants.d.ts +2 -0
  124. package/dist/patterns/Sidebar/figma-assets.d.ts +3 -0
  125. package/dist/patterns/Sidebar/figma-demo-content.d.ts +75 -0
  126. package/dist/patterns/Sidebar/figma-sidebar-nav.d.ts +12 -0
  127. package/dist/patterns/Sidebar/index.d.ts +13 -0
  128. package/dist/patterns/Sidebar/sidebar-styles.d.ts +45 -0
  129. package/dist/patterns/Skeleton/Skeleton.d.ts +6 -0
  130. package/dist/patterns/Skeleton/index.d.ts +1 -0
  131. package/dist/patterns/index.d.ts +5 -0
  132. package/dist/primitives/Avatar.d.ts +10 -0
  133. package/dist/primitives/Badge.d.ts +11 -0
  134. package/dist/primitives/Button.d.ts +13 -0
  135. package/dist/primitives/Callout.d.ts +7 -0
  136. package/dist/primitives/Count.d.ts +5 -0
  137. package/dist/primitives/DropdownMenu.d.ts +15 -0
  138. package/dist/primitives/GroupedAvatars.d.ts +7 -0
  139. package/dist/primitives/IconButton.d.ts +16 -0
  140. package/dist/primitives/Logo.d.ts +8 -0
  141. package/dist/primitives/MenuItem.d.ts +7 -0
  142. package/dist/primitives/Switch.d.ts +7 -0
  143. package/dist/primitives/ThinkingDot.d.ts +4 -0
  144. package/dist/primitives/Tooltip.d.ts +12 -0
  145. package/dist/primitives/index.d.ts +13 -0
  146. package/dist/style.css +1 -1
  147. package/dist/tailwind-theme.d.ts +234 -198
  148. package/dist/tokens/colors.d.ts +148 -0
  149. package/dist/tokens/elevation.d.ts +11 -0
  150. package/dist/tokens/index.d.ts +4 -0
  151. package/dist/tokens/semantic.d.ts +89 -0
  152. package/dist/tokens/typography.d.ts +85 -0
  153. package/package.json +27 -5
  154. package/src/components/Checkbox.tsx +77 -0
  155. package/src/components/Chip.tsx +69 -0
  156. package/src/components/EmptyState.tsx +44 -0
  157. package/src/components/Entry.tsx +64 -0
  158. package/src/components/Header.tsx +39 -0
  159. package/src/components/Input.tsx +69 -0
  160. package/src/components/InputType.tsx +76 -0
  161. package/src/components/ModalPanel.tsx +22 -37
  162. package/src/components/PdfViewer/ImageViewer.tsx +121 -182
  163. package/src/components/PdfViewer/PdfViewer.tsx +103 -155
  164. package/src/components/ReportInput.tsx +65 -0
  165. package/src/components/Tab.tsx +33 -0
  166. package/src/components/Tabs.tsx +43 -38
  167. package/src/components/index.ts +11 -4
  168. package/src/domain/Filters/FilterPill.tsx +25 -0
  169. package/src/domain/Filters/FilteredPill.tsx +39 -0
  170. package/src/domain/Filters/FiltersBar.tsx +76 -0
  171. package/src/domain/Filters/index.ts +3 -0
  172. package/src/domain/Forms/FormCard.tsx +61 -0
  173. package/src/domain/Forms/FormHeader.tsx +34 -0
  174. package/src/domain/Forms/ListRow.tsx +40 -0
  175. package/src/domain/Forms/RiskMeter.tsx +50 -0
  176. package/src/domain/Forms/index.ts +4 -0
  177. package/src/domain/Library/File.tsx +59 -0
  178. package/src/domain/Library/Folder.tsx +55 -0
  179. package/src/domain/Library/Folders.tsx +43 -0
  180. package/src/domain/Library/ListRow.tsx +40 -0
  181. package/src/domain/Library/Navigation.tsx +31 -0
  182. package/src/domain/Library/index.ts +5 -0
  183. package/src/domain/Report/InfoHeading.tsx +25 -0
  184. package/src/domain/Report/InfoRow.tsx +35 -0
  185. package/src/domain/Report/Report.tsx +53 -0
  186. package/src/domain/Report/SectionHeader.tsx +43 -0
  187. package/src/domain/Report/TaskRow.tsx +57 -0
  188. package/src/domain/Report/index.ts +5 -0
  189. package/src/domain/Settings/EquipmentRow.tsx +39 -0
  190. package/src/domain/Settings/MemberRow.tsx +53 -0
  191. package/src/domain/Settings/SettingRow.tsx +66 -0
  192. package/src/domain/Settings/index.ts +3 -0
  193. package/src/domain/Ships/ShipRow.tsx +49 -0
  194. package/src/domain/Ships/index.ts +1 -0
  195. package/src/domain/Workflows/GroupHeader.tsx +48 -0
  196. package/src/domain/Workflows/Importance.tsx +48 -0
  197. package/src/domain/Workflows/Progress.tsx +55 -0
  198. package/src/domain/Workflows/Question.tsx +42 -0
  199. package/src/domain/Workflows/StatusPopover.tsx +53 -0
  200. package/src/domain/Workflows/Task.tsx +46 -0
  201. package/src/domain/Workflows/TaskHeader.tsx +51 -0
  202. package/src/domain/Workflows/WorkflowFilters.tsx +40 -0
  203. package/src/domain/Workflows/WorkflowForm.tsx +40 -0
  204. package/src/domain/Workflows/WorkflowHeader.tsx +62 -0
  205. package/src/domain/Workflows/WorkflowListItem.tsx +45 -0
  206. package/src/domain/Workflows/WorkflowProgress.tsx +36 -0
  207. package/src/domain/Workflows/WorkflowRow.tsx +43 -0
  208. package/src/domain/Workflows/index.ts +13 -0
  209. package/src/domain/index.ts +37 -0
  210. package/src/icons/ArrowIcon.tsx +42 -0
  211. package/src/icons/ChevronIcon.tsx +42 -0
  212. package/src/icons/Icon.tsx +184 -0
  213. package/src/icons/arrow-paths.ts +8 -0
  214. package/src/icons/chevron-paths.ts +17 -0
  215. package/src/icons/createIcon.tsx +128 -0
  216. package/src/icons/generated.tsx +71 -0
  217. package/src/icons/icon-sizes.ts +20 -0
  218. package/src/icons/icons-data.ts +656 -0
  219. package/src/icons/index.ts +25 -0
  220. package/src/icons/types.ts +18 -0
  221. package/src/illustrations/AuditPreparation.tsx +15 -0
  222. package/src/illustrations/CompletedTasks.tsx +16 -0
  223. package/src/illustrations/Creation.tsx +13 -0
  224. package/src/illustrations/InternalAudit.tsx +13 -0
  225. package/src/illustrations/Invite.tsx +13 -0
  226. package/src/illustrations/PortStateControl.tsx +13 -0
  227. package/src/illustrations/Processing.tsx +17 -0
  228. package/src/illustrations/QuestionsDone.tsx +16 -0
  229. package/src/illustrations/RightShipInspection.tsx +18 -0
  230. package/src/illustrations/Upload.tsx +12 -0
  231. package/src/illustrations/WorkflowCreated.tsx +13 -0
  232. package/src/illustrations/Workflows.tsx +13 -0
  233. package/src/illustrations/createIllustration.tsx +30 -0
  234. package/src/illustrations/index.ts +14 -0
  235. package/src/index.ts +49 -3
  236. package/src/patterns/Chat/Attachment.tsx +27 -0
  237. package/src/patterns/Chat/ChatEntry.tsx +41 -0
  238. package/src/patterns/Chat/ChatHeader.tsx +39 -0
  239. package/src/patterns/Chat/ChatInput.tsx +35 -0
  240. package/src/patterns/Chat/ChatStatus.tsx +26 -0
  241. package/src/patterns/Chat/ChatTile.tsx +40 -0
  242. package/src/patterns/Chat/Copilot.tsx +50 -0
  243. package/src/patterns/Chat/Draft.tsx +23 -0
  244. package/src/patterns/Chat/Greeting.tsx +32 -0
  245. package/src/patterns/Chat/Reference.tsx +26 -0
  246. package/src/patterns/Chat/Source.tsx +27 -0
  247. package/src/patterns/Chat/Sources.tsx +23 -0
  248. package/src/patterns/Chat/Suggestion.tsx +23 -0
  249. package/src/patterns/Chat/Suggestions.tsx +21 -0
  250. package/src/patterns/Chat/index.ts +14 -0
  251. package/src/patterns/Modal/Invitee.tsx +44 -0
  252. package/src/patterns/Modal/ModalFooter.tsx +39 -0
  253. package/src/patterns/Modal/ModalHeader.tsx +77 -0
  254. package/src/patterns/Modal/index.ts +3 -0
  255. package/src/patterns/Search/Pill.tsx +44 -0
  256. package/src/patterns/Search/PillInfo.tsx +41 -0
  257. package/src/patterns/Search/ResultRow.tsx +52 -0
  258. package/src/patterns/Search/SearchModal.tsx +88 -0
  259. package/src/patterns/Search/SectionHeader.tsx +20 -0
  260. package/src/patterns/Search/index.ts +5 -0
  261. package/src/patterns/Sidebar/Account.tsx +193 -0
  262. package/src/patterns/Sidebar/ActivityNavGroup.tsx +71 -0
  263. package/src/patterns/Sidebar/CollapsibleNavGroup.tsx +106 -0
  264. package/src/patterns/Sidebar/Indicator.tsx +14 -0
  265. package/src/patterns/Sidebar/NewChat.tsx +71 -0
  266. package/src/patterns/Sidebar/Sidebar.tsx +363 -0
  267. package/src/patterns/Sidebar/SidebarAction.tsx +55 -0
  268. package/src/patterns/Sidebar/SidebarEntry.tsx +129 -0
  269. package/src/patterns/Sidebar/SidebarHeading.tsx +38 -0
  270. package/src/patterns/Sidebar/SidebarLink.tsx +125 -0
  271. package/src/patterns/Sidebar/SidebarShell.tsx +32 -0
  272. package/src/patterns/Sidebar/Switcher.tsx +116 -0
  273. package/src/patterns/Sidebar/assets/account-avatar-24.jpg +0 -0
  274. package/src/patterns/Sidebar/assets/account-avatar.jpg +0 -0
  275. package/src/patterns/Sidebar/assets/indicator-compliance.png +0 -0
  276. package/src/patterns/Sidebar/assets/indicator-technical.png +0 -0
  277. package/src/patterns/Sidebar/assets/logo-compliance-mark.png +5 -0
  278. package/src/patterns/Sidebar/assets/logo-compliance-mask.png +13 -0
  279. package/src/patterns/Sidebar/assets/logo-compliance.svg +17 -0
  280. package/src/patterns/Sidebar/assets/logo-technical-avatar.svg +17 -0
  281. package/src/patterns/Sidebar/assets/logo-technical-mark.png +5 -0
  282. package/src/patterns/Sidebar/assets/logo-technical.svg +16 -0
  283. package/src/patterns/Sidebar/constants.ts +2 -0
  284. package/src/patterns/Sidebar/figma-assets.ts +4 -0
  285. package/src/patterns/Sidebar/figma-demo-content.ts +30 -0
  286. package/src/patterns/Sidebar/figma-sidebar-nav.ts +79 -0
  287. package/src/patterns/Sidebar/index.ts +13 -0
  288. package/src/patterns/Sidebar/sidebar-styles.ts +101 -0
  289. package/src/patterns/Skeleton/Skeleton.tsx +57 -0
  290. package/src/patterns/Skeleton/index.ts +1 -0
  291. package/src/patterns/index.ts +5 -0
  292. package/src/primitives/Avatar.tsx +71 -0
  293. package/src/primitives/Badge.tsx +34 -0
  294. package/src/primitives/Button.tsx +67 -0
  295. package/src/primitives/Callout.tsx +21 -0
  296. package/src/primitives/Count.tsx +18 -0
  297. package/src/primitives/DropdownMenu.tsx +60 -0
  298. package/src/primitives/GroupedAvatars.tsx +36 -0
  299. package/src/primitives/IconButton.tsx +56 -0
  300. package/src/primitives/Logo.tsx +43 -0
  301. package/src/primitives/MenuItem.tsx +35 -0
  302. package/src/primitives/Switch.tsx +38 -0
  303. package/src/primitives/ThinkingDot.tsx +34 -0
  304. package/src/primitives/Tooltip.tsx +42 -0
  305. package/src/primitives/index.ts +13 -0
  306. package/src/stories/_layout/FigmaPage.tsx +94 -0
  307. package/src/stories/_layout/index.ts +8 -0
  308. package/src/stories/canvases/ButtonsCanvas.tsx +57 -0
  309. package/src/stories/canvases/ButtonsMatrixCanvas.tsx +64 -0
  310. package/src/stories/canvases/ChatCanvas.tsx +130 -0
  311. package/src/stories/canvases/ColorTokensCanvas.tsx +16 -0
  312. package/src/stories/canvases/ColorsCanvas.tsx +101 -0
  313. package/src/stories/canvases/ContentCanvas.tsx +88 -0
  314. package/src/stories/canvases/CoreCanvas.tsx +125 -0
  315. package/src/stories/canvases/DomainFormsCanvas.tsx +67 -0
  316. package/src/stories/canvases/FiltersCanvas.tsx +41 -0
  317. package/src/stories/canvases/FormsCanvas.tsx +71 -0
  318. package/src/stories/canvases/IconsCanvas.tsx +99 -0
  319. package/src/stories/canvases/IllustrationsCanvas.tsx +50 -0
  320. package/src/stories/canvases/LibraryCanvas.tsx +67 -0
  321. package/src/stories/canvases/ModalsCanvas.tsx +54 -0
  322. package/src/stories/canvases/RaiseLevelsCanvas.tsx +27 -0
  323. package/src/stories/canvases/ReportCanvas.tsx +33 -0
  324. package/src/stories/canvases/ReportLayoutCanvas.tsx +19 -0
  325. package/src/stories/canvases/SearchCanvas.tsx +65 -0
  326. package/src/stories/canvases/SettingsCanvas.tsx +41 -0
  327. package/src/stories/canvases/ShipsCanvas.tsx +38 -0
  328. package/src/stories/canvases/SidebarCanvas.tsx +147 -0
  329. package/src/stories/canvases/SidebarLayoutsCanvas.tsx +71 -0
  330. package/src/stories/canvases/SidebarPlayground.tsx +35 -0
  331. package/src/stories/canvases/SkeletonsCanvas.tsx +30 -0
  332. package/src/stories/canvases/TypographyCanvas.tsx +53 -0
  333. package/src/stories/canvases/WorkflowsCanvas.tsx +129 -0
  334. package/src/stories/canvases/figma-icons-layout.ts +318 -0
  335. package/src/stories/canvases/figma-sidebar-layout.ts +212 -0
  336. package/src/stories/canvases/figma-sidebar-layouts-layout.ts +84 -0
  337. package/src/stories/canvases/figma-widths.ts +28 -0
  338. package/src/stories/canvases/helpers.tsx +163 -0
  339. package/src/stories/components/Buttons.stories.tsx +12 -0
  340. package/src/stories/components/Chat.stories.tsx +12 -0
  341. package/src/stories/components/Content.stories.tsx +12 -0
  342. package/src/stories/components/Core.stories.tsx +12 -0
  343. package/src/stories/components/DomainForms.stories.tsx +12 -0
  344. package/src/stories/components/Filters.stories.tsx +12 -0
  345. package/src/stories/components/Forms.stories.tsx +12 -0
  346. package/src/stories/components/Icons.stories.tsx +12 -0
  347. package/src/stories/components/Illustrations.stories.tsx +12 -0
  348. package/src/stories/components/Library.stories.tsx +12 -0
  349. package/src/stories/components/Modals.stories.tsx +12 -0
  350. package/src/stories/components/Report.stories.tsx +12 -0
  351. package/src/stories/components/ReportLayout.stories.tsx +12 -0
  352. package/src/stories/components/Search.stories.tsx +12 -0
  353. package/src/stories/components/Settings.stories.tsx +12 -0
  354. package/src/stories/components/Ships.stories.tsx +12 -0
  355. package/src/stories/components/Sidebar.stories.tsx +37 -0
  356. package/src/stories/components/SidebarLayouts.stories.tsx +12 -0
  357. package/src/stories/components/Skeletons.stories.tsx +12 -0
  358. package/src/stories/components/Workflows.stories.tsx +12 -0
  359. package/src/stories/style-guide/Buttons.stories.tsx +12 -0
  360. package/src/stories/style-guide/ColorTokens.stories.tsx +12 -0
  361. package/src/stories/style-guide/Colors.stories.tsx +12 -0
  362. package/src/stories/style-guide/RaiseLevels.stories.tsx +12 -0
  363. package/src/stories/style-guide/Typography.stories.tsx +12 -0
  364. package/src/style.css +169 -2
  365. package/src/tailwind-theme.ts +164 -240
  366. package/src/tokens/colors.ts +82 -0
  367. package/src/tokens/elevation.ts +12 -0
  368. package/src/tokens/index.ts +4 -0
  369. package/src/tokens/semantic.ts +89 -0
  370. package/src/tokens/typography.ts +21 -0
  371. package/dist/components/HelloWorld.d.ts +0 -1
  372. package/dist/components/InputPrompt.d.ts +0 -20
  373. package/dist/components/SearchModal.d.ts +0 -24
  374. package/dist/components/Sidebar/Button.d.ts +0 -7
  375. package/dist/components/Sidebar/Container.d.ts +0 -5
  376. package/dist/components/Sidebar/Item.d.ts +0 -9
  377. package/dist/components/Sidebar/Layout.d.ts +0 -10
  378. package/dist/components/Sidebar/Provider.d.ts +0 -14
  379. package/dist/components/Sidebar/SecondaryItem.d.ts +0 -9
  380. package/dist/components/Sidebar/SideContainer.d.ts +0 -5
  381. package/dist/components/Sidebar/ToggleCollapseButton.d.ts +0 -1
  382. package/dist/components/Sidebar/index.d.ts +0 -8
  383. package/dist/components/icons/CloseSidebarIcon.d.ts +0 -2
  384. package/dist/components/icons/CloseSidebarMidIcon.d.ts +0 -1
  385. package/dist/components/icons/ExpandIcon.d.ts +0 -3
  386. package/dist/components/icons/SendArrowIcon.d.ts +0 -4
  387. package/dist/components/icons/SendArrowIconGreen.d.ts +0 -4
  388. package/dist/components/icons/SettingsIcon.d.ts +0 -3
  389. package/dist/components/icons/XIcon.d.ts +0 -3
  390. package/dist/material-theme.d.ts +0 -442
  391. package/dist/stories/Buttons.d.ts +0 -1
  392. package/dist/stories/Checkbox.d.ts +0 -1
  393. package/dist/stories/ColorPalette.d.ts +0 -1
  394. package/dist/stories/Dropdowns.d.ts +0 -1
  395. package/dist/stories/InputPrompt.d.ts +0 -1
  396. package/dist/stories/SearchModal.d.ts +0 -1
  397. package/dist/stories/Sidebar.d.ts +0 -1
  398. package/dist/stories/Typography.d.ts +0 -1
  399. package/src/components/HelloWorld.tsx +0 -3
  400. package/src/components/InputPrompt.tsx +0 -96
  401. package/src/components/SearchModal.tsx +0 -320
  402. package/src/components/Sidebar/Button.tsx +0 -20
  403. package/src/components/Sidebar/Container.tsx +0 -31
  404. package/src/components/Sidebar/Item.tsx +0 -39
  405. package/src/components/Sidebar/Layout.tsx +0 -32
  406. package/src/components/Sidebar/Provider.tsx +0 -47
  407. package/src/components/Sidebar/SecondaryItem.tsx +0 -39
  408. package/src/components/Sidebar/SideContainer.tsx +0 -31
  409. package/src/components/Sidebar/ToggleCollapseButton.tsx +0 -24
  410. package/src/components/Sidebar/index.ts +0 -8
  411. package/src/components/icons/CloseSidebarIcon.tsx +0 -19
  412. package/src/components/icons/CloseSidebarMidIcon.tsx +0 -19
  413. package/src/components/icons/ExpandIcon.tsx +0 -21
  414. package/src/components/icons/SendArrowIcon.tsx +0 -23
  415. package/src/components/icons/SendArrowIconGreen.tsx +0 -17
  416. package/src/components/icons/SettingsIcon.tsx +0 -33
  417. package/src/components/icons/XIcon.tsx +0 -21
  418. package/src/material-theme.ts +0 -477
  419. package/src/stories/Buttons.stories.tsx +0 -15
  420. package/src/stories/Buttons.tsx +0 -52
  421. package/src/stories/Checkbox.stories.tsx +0 -15
  422. package/src/stories/Checkbox.tsx +0 -56
  423. package/src/stories/ColorPalette.stories.tsx +0 -15
  424. package/src/stories/ColorPalette.tsx +0 -85
  425. package/src/stories/DocumentEditor.stories.tsx +0 -287
  426. package/src/stories/Dropdowns.stories.tsx +0 -15
  427. package/src/stories/Dropdowns.tsx +0 -52
  428. package/src/stories/InputPrompt.stories.tsx +0 -15
  429. package/src/stories/InputPrompt.tsx +0 -63
  430. package/src/stories/ModalHeader.stories.tsx +0 -36
  431. package/src/stories/PDFViewer.stories.tsx +0 -39
  432. package/src/stories/SearchModal.stories.tsx +0 -132
  433. package/src/stories/SearchModal.tsx +0 -82
  434. package/src/stories/Sidebar.stories.tsx +0 -15
  435. package/src/stories/Sidebar.tsx +0 -108
  436. package/src/stories/Tabs.stories.tsx +0 -51
  437. package/src/stories/Typography.stories.tsx +0 -15
  438. package/src/stories/Typography.tsx +0 -110
@@ -0,0 +1,318 @@
1
+ import type { ArrowDirection, ChevronDirection, IconSize } from "../../icons/types";
2
+ import type { IconName } from "../../icons/Icon";
3
+
4
+ /** Figma Icons > Content area — 710×1833, 24px padding inside dashed frames */
5
+ export const FIGMA_ICONS_CONTENT = {
6
+ width: 710,
7
+ height: 1833,
8
+ padding: 24,
9
+ } as const;
10
+
11
+ /** Icon symbol frames start below cursor sections in Figma Content */
12
+ export const FIGMA_ICONS_GRID_TOP = 297;
13
+ export const FIGMA_ICONS_GRID_HEIGHT =
14
+ FIGMA_ICONS_CONTENT.height - FIGMA_ICONS_GRID_TOP;
15
+
16
+ /** Browser SVG rendering vs Figma export — nudge icons to match baseline alignment */
17
+ export const FIGMA_ICON_RENDER_OFFSET = { x: -1, y: -1 } as const;
18
+
19
+ type IconSlot = {
20
+ kind: "icon";
21
+ name: IconName;
22
+ size: IconSize;
23
+ filled?: boolean;
24
+ variant?: string;
25
+ x: number;
26
+ y: number;
27
+ };
28
+
29
+ type ArrowSlot = {
30
+ kind: "arrow";
31
+ direction: ArrowDirection;
32
+ x: number;
33
+ y: number;
34
+ };
35
+
36
+ type ChevronSlot = {
37
+ kind: "chevron";
38
+ direction: ChevronDirection;
39
+ x: number;
40
+ y: number;
41
+ };
42
+
43
+ export type IconFrameSlot = IconSlot | ArrowSlot | ChevronSlot;
44
+
45
+ export type IconFrameLayout = {
46
+ x: number;
47
+ y: number;
48
+ width: number;
49
+ height: number;
50
+ slots: IconFrameSlot[];
51
+ };
52
+
53
+ const L = (
54
+ name: IconName,
55
+ size: IconSize,
56
+ x: number,
57
+ y: number,
58
+ filled?: boolean,
59
+ variant?: string,
60
+ ): IconSlot => ({
61
+ kind: "icon",
62
+ name,
63
+ size,
64
+ filled,
65
+ variant,
66
+ x,
67
+ y,
68
+ });
69
+
70
+ const outlinePair = (name: IconName): IconSlot[] => [
71
+ L(name, "large", 24, 24),
72
+ L(name, "small", 72, 28),
73
+ ];
74
+
75
+ const filledPair = (name: IconName): IconSlot[] => [
76
+ L(name, "large", 24, 24),
77
+ L(name, "large", 72, 24, true),
78
+ L(name, "small", 120, 28),
79
+ L(name, "small", 160, 28, true),
80
+ ];
81
+
82
+ const smallOnly = (name: IconName): IconSlot[] => [L(name, "small", 24, 24)];
83
+
84
+ const largeOnly = (name: IconName): IconSlot[] => [L(name, "large", 24, 24)];
85
+
86
+ /**
87
+ * Icon frames in Figma document order (top-to-bottom, left-to-right).
88
+ * Cursors sections omitted per design spec.
89
+ */
90
+ export const FIGMA_ICON_FRAMES: IconFrameLayout[] = [
91
+ {
92
+ x: 24,
93
+ y: 297,
94
+ width: 120,
95
+ height: 72,
96
+ slots: [
97
+ { kind: "arrow", direction: "left", x: 24, y: 24 },
98
+ { kind: "arrow", direction: "right", x: 72, y: 24 },
99
+ ],
100
+ },
101
+ { x: 168, y: 297, width: 112, height: 72, slots: outlinePair("attachment") },
102
+ {
103
+ x: 304,
104
+ y: 297,
105
+ width: 224,
106
+ height: 64,
107
+ slots: [
108
+ { kind: "chevron", direction: "right", x: 24, y: 24 },
109
+ { kind: "chevron", direction: "left", x: 64, y: 24 },
110
+ { kind: "chevron", direction: "down", x: 104, y: 24 },
111
+ { kind: "chevron", direction: "up", x: 144, y: 24 },
112
+ { kind: "chevron", direction: "upDown", x: 184, y: 24 },
113
+ ],
114
+ },
115
+ {
116
+ x: 24,
117
+ y: 393,
118
+ width: 272,
119
+ height: 72,
120
+ slots: [
121
+ L("clear", "large", 24, 24),
122
+ L("clear", "small", 72, 28),
123
+ L("clear", "xs", 112, 30),
124
+ L("clear", "large", 148, 24, true),
125
+ L("clear", "small", 196, 28, true),
126
+ L("clear", "xs", 236, 30, true),
127
+ ],
128
+ },
129
+ { x: 320, y: 393, width: 112, height: 72, slots: outlinePair("microphone") },
130
+ { x: 456, y: 393, width: 200, height: 72, slots: filledPair("add") },
131
+ { x: 24, y: 489, width: 112, height: 72, slots: outlinePair("plus") },
132
+ { x: 160, y: 489, width: 112, height: 72, slots: outlinePair("done") },
133
+ { x: 296, y: 489, width: 112, height: 72, slots: outlinePair("minus") },
134
+ { x: 432, y: 489, width: 200, height: 72, slots: filledPair("send") },
135
+ { x: 24, y: 585, width: 112, height: 72, slots: outlinePair("search") },
136
+ { x: 160, y: 585, width: 112, height: 72, slots: outlinePair("star") },
137
+ { x: 296, y: 585, width: 112, height: 72, slots: outlinePair("heart") },
138
+ { x: 432, y: 585, width: 112, height: 72, slots: outlinePair("analytics") },
139
+ { x: 568, y: 585, width: 112, height: 72, slots: outlinePair("trash") },
140
+ { x: 24, y: 681, width: 112, height: 72, slots: outlinePair("chat") },
141
+ { x: 160, y: 681, width: 112, height: 72, slots: outlinePair("chatPro") },
142
+ { x: 296, y: 681, width: 112, height: 72, slots: outlinePair("filters") },
143
+ { x: 432, y: 681, width: 112, height: 72, slots: outlinePair("pen") },
144
+ {
145
+ x: 24,
146
+ y: 777,
147
+ width: 148,
148
+ height: 72,
149
+ slots: [
150
+ L("tick", "large", 24, 24),
151
+ L("tick", "small", 72, 28),
152
+ L("tick", "xs", 112, 30),
153
+ ],
154
+ },
155
+ { x: 196, y: 777, width: 112, height: 72, slots: outlinePair("document") },
156
+ { x: 332, y: 777, width: 64, height: 64, slots: smallOnly("sparkles") },
157
+ { x: 420, y: 777, width: 64, height: 64, slots: smallOnly("expand") },
158
+ { x: 508, y: 777, width: 64, height: 64, slots: smallOnly("speaker") },
159
+ { x: 596, y: 777, width: 64, height: 64, slots: smallOnly("copy") },
160
+ { x: 24, y: 873, width: 64, height: 64, slots: smallOnly("date") },
161
+ { x: 112, y: 873, width: 64, height: 64, slots: smallOnly("refresh") },
162
+ { x: 200, y: 873, width: 112, height: 72, slots: outlinePair("activity") },
163
+ { x: 336, y: 873, width: 72, height: 72, slots: largeOnly("menu") },
164
+ { x: 432, y: 873, width: 112, height: 72, slots: outlinePair("invite") },
165
+ { x: 568, y: 873, width: 72, height: 72, slots: largeOnly("report") },
166
+ {
167
+ x: 24,
168
+ y: 969,
169
+ width: 104,
170
+ height: 64,
171
+ slots: [
172
+ L("sidebar", "small", 24, 24, undefined, "expanded"),
173
+ L("sidebar", "small", 64, 24, undefined, "collapsed"),
174
+ ],
175
+ },
176
+ { x: 152, y: 969, width: 112, height: 72, slots: outlinePair("download") },
177
+ { x: 288, y: 969, width: 112, height: 72, slots: outlinePair("upload") },
178
+ { x: 424, y: 969, width: 112, height: 72, slots: outlinePair("preview") },
179
+ { x: 560, y: 969, width: 112, height: 72, slots: outlinePair("fixes") },
180
+ { x: 24, y: 1065, width: 72, height: 72, slots: largeOnly("issues") },
181
+ { x: 120, y: 1065, width: 112, height: 72, slots: outlinePair("more") },
182
+ {
183
+ x: 256,
184
+ y: 1065,
185
+ width: 160,
186
+ height: 72,
187
+ slots: [
188
+ L("bulb", "large", 24, 24),
189
+ L("bulb", "large", 72, 24, true),
190
+ L("bulb", "small", 120, 28),
191
+ ],
192
+ },
193
+ {
194
+ x: 440,
195
+ y: 1065,
196
+ width: 200,
197
+ height: 72,
198
+ slots: [
199
+ L("ship", "large", 24, 24),
200
+ L("ship", "large", 72, 24, undefined, "smart"),
201
+ L("ship", "small", 120, 28),
202
+ L("ship", "small", 160, 28, undefined, "smart"),
203
+ ],
204
+ },
205
+ { x: 24, y: 1161, width: 112, height: 72, slots: outlinePair("person") },
206
+ { x: 160, y: 1161, width: 112, height: 72, slots: outlinePair("archive") },
207
+ { x: 296, y: 1161, width: 112, height: 72, slots: outlinePair("logOut") },
208
+ { x: 432, y: 1161, width: 112, height: 72, slots: outlinePair("settings") },
209
+ { x: 568, y: 1161, width: 112, height: 72, slots: outlinePair("tasks") },
210
+ {
211
+ x: 24,
212
+ y: 1257,
213
+ width: 216,
214
+ height: 72,
215
+ slots: [
216
+ L("workflow", "large", 24, 24, undefined, "preparation"),
217
+ L("workflow", "large", 72, 24, undefined, "response"),
218
+ L("workflow", "large", 120, 24, undefined, "technical"),
219
+ L("workflow", "large", 168, 24, undefined, "inspection"),
220
+ ],
221
+ },
222
+ {
223
+ x: 264,
224
+ y: 1257,
225
+ width: 168,
226
+ height: 72,
227
+ slots: [
228
+ L("form", "large", 24, 24, undefined, "risk"),
229
+ L("form", "large", 72, 24, undefined, "accident"),
230
+ L("form", "large", 120, 24, undefined, "rootCause"),
231
+ ],
232
+ },
233
+ { x: 456, y: 1257, width: 72, height: 72, slots: largeOnly("actions") },
234
+ {
235
+ x: 552,
236
+ y: 1257,
237
+ width: 120,
238
+ height: 72,
239
+ slots: [
240
+ L("approval", "large", 24, 24, undefined, "approved"),
241
+ L("approval", "large", 72, 24, undefined, "partly"),
242
+ ],
243
+ },
244
+ {
245
+ x: 24,
246
+ y: 1353,
247
+ width: 208,
248
+ height: 72,
249
+ slots: [
250
+ L("forms", "large", 24, 24, undefined, "pending"),
251
+ L("forms", "large", 72, 24, undefined, "reviewed"),
252
+ L("forms", "small", 120, 28, undefined, "reviewed"),
253
+ L("forms", "large", 160, 24, undefined, "completed"),
254
+ ],
255
+ },
256
+ { x: 256, y: 1353, width: 112, height: 72, slots: outlinePair("book") },
257
+ { x: 392, y: 1353, width: 112, height: 72, slots: outlinePair("workflow") },
258
+ { x: 528, y: 1353, width: 112, height: 72, slots: outlinePair("mention") },
259
+ { x: 24, y: 1449, width: 112, height: 72, slots: outlinePair("critical") },
260
+ { x: 160, y: 1449, width: 112, height: 72, slots: outlinePair("information") },
261
+ { x: 296, y: 1449, width: 72, height: 72, slots: largeOnly("caution") },
262
+ { x: 392, y: 1449, width: 112, height: 72, slots: outlinePair("folder") },
263
+ { x: 528, y: 1449, width: 112, height: 72, slots: outlinePair("folderStarred") },
264
+ { x: 24, y: 1545, width: 72, height: 72, slots: largeOnly("quality") },
265
+ { x: 120, y: 1545, width: 72, height: 72, slots: largeOnly("location") },
266
+ { x: 216, y: 1545, width: 112, height: 72, slots: outlinePair("users") },
267
+ { x: 352, y: 1545, width: 112, height: 72, slots: outlinePair("undo") },
268
+ { x: 488, y: 1545, width: 72, height: 72, slots: largeOnly("spinner") },
269
+ { x: 584, y: 1545, width: 72, height: 72, slots: largeOnly("clock") },
270
+ { x: 24, y: 1641, width: 72, height: 72, slots: largeOnly("gap") },
271
+ { x: 120, y: 1641, width: 112, height: 72, slots: outlinePair("defectReport") },
272
+ { x: 256, y: 1641, width: 112, height: 72, slots: outlinePair("task") },
273
+ {
274
+ x: 392,
275
+ y: 1641,
276
+ width: 216,
277
+ height: 72,
278
+ slots: [
279
+ L("file", "large", 24, 24, undefined, "csv"),
280
+ L("file", "large", 72, 24, undefined, "doc"),
281
+ L("file", "large", 120, 24, undefined, "pdf"),
282
+ L("file", "large", 168, 24, undefined, "xls"),
283
+ ],
284
+ },
285
+ {
286
+ x: 24,
287
+ y: 1737,
288
+ width: 120,
289
+ height: 72,
290
+ slots: [
291
+ L("reportActions", "large", 24, 24, undefined, "view"),
292
+ L("reportActions", "large", 72, 24, undefined, "edit"),
293
+ ],
294
+ },
295
+ {
296
+ x: 168,
297
+ y: 1737,
298
+ width: 264,
299
+ height: 72,
300
+ slots: [
301
+ L("checkbox", "large", 24, 24, undefined, "unselected"),
302
+ L("checkbox", "large", 72, 24, undefined, "unselectedHover"),
303
+ L("checkbox", "large", 120, 24, undefined, "selected"),
304
+ L("checkbox", "large", 168, 24, undefined, "multi"),
305
+ L("checkbox", "large", 216, 24, undefined, "selectedHover"),
306
+ ],
307
+ },
308
+ {
309
+ x: 456,
310
+ y: 1737,
311
+ width: 104,
312
+ height: 64,
313
+ slots: [
314
+ L("status", "small", 24, 24, undefined, "open"),
315
+ L("status", "small", 64, 24, undefined, "closed"),
316
+ ],
317
+ },
318
+ ];
@@ -0,0 +1,212 @@
1
+ import type { Chief } from "../../patterns/Sidebar/Switcher";
2
+
3
+ /** Figma Sidebar subcomponents > Content (`12:1255`) */
4
+ export const FIGMA_SIDEBAR_CONTENT = {
5
+ width: 400,
6
+ height: 2824,
7
+ padding: 24,
8
+ } as const;
9
+
10
+ export const FIGMA_SIDEBAR_PAGE_WIDTH = 464;
11
+ /** Page Title height offset — used only when cropping page screenshots to Content in baseline script. */
12
+ export const FIGMA_SIDEBAR_PAGE_TOP = 188;
13
+
14
+ export type NewChatSlot = {
15
+ kind: "newChat";
16
+ state?: "idle" | "hover";
17
+ collapsed?: boolean;
18
+ x: number;
19
+ y: number;
20
+ width: number;
21
+ height: number;
22
+ };
23
+
24
+ export type IndicatorSlot = {
25
+ kind: "indicator";
26
+ chief: Chief;
27
+ x: number;
28
+ y: number;
29
+ width: number;
30
+ height: number;
31
+ };
32
+
33
+ export type SidebarLinkSlot = {
34
+ kind: "sidebarLink";
35
+ state?: "idle" | "hover" | "active";
36
+ collapsed?: boolean;
37
+ x: number;
38
+ y: number;
39
+ width: number;
40
+ height: number;
41
+ };
42
+
43
+ export type SidebarHeadingSlot = {
44
+ kind: "sidebarHeading";
45
+ state?: "idle" | "hover";
46
+ collapsed?: boolean;
47
+ x: number;
48
+ y: number;
49
+ width: number;
50
+ height: number;
51
+ };
52
+
53
+ export type SidebarEntrySlot = {
54
+ kind: "sidebarEntry";
55
+ state?: "idle" | "hover" | "selected";
56
+ showMenu?: boolean;
57
+ x: number;
58
+ y: number;
59
+ width: number;
60
+ height: number;
61
+ };
62
+
63
+ export type ShipsSlot = {
64
+ kind: "ships";
65
+ expanded?: boolean;
66
+ x: number;
67
+ y: number;
68
+ width: number;
69
+ height: number;
70
+ };
71
+
72
+ export type ActivitySlot = {
73
+ kind: "activity";
74
+ chief: Chief;
75
+ empty?: boolean;
76
+ x: number;
77
+ y: number;
78
+ width: number;
79
+ height: number;
80
+ };
81
+
82
+ export type AccountSlot = {
83
+ kind: "account";
84
+ state?: "idle" | "hover";
85
+ collapsed?: boolean;
86
+ x: number;
87
+ y: number;
88
+ width: number;
89
+ height: number;
90
+ };
91
+
92
+ export type SidebarSubcomponentSlot =
93
+ | NewChatSlot
94
+ | IndicatorSlot
95
+ | SidebarLinkSlot
96
+ | SidebarHeadingSlot
97
+ | SidebarEntrySlot
98
+ | ShipsSlot
99
+ | ActivitySlot
100
+ | AccountSlot;
101
+
102
+ export type SidebarSubcomponentFrame = {
103
+ name: string;
104
+ x: number;
105
+ y: number;
106
+ width: number;
107
+ height: number;
108
+ slots: SidebarSubcomponentSlot[];
109
+ };
110
+
111
+ /** Slot positions are relative to each dashed frame — from Figma metadata `12:1255`. */
112
+ export const FIGMA_SIDEBAR_FRAMES: SidebarSubcomponentFrame[] = [
113
+ {
114
+ name: "New chat",
115
+ x: 24,
116
+ y: 24,
117
+ width: 352,
118
+ height: 280,
119
+ slots: [
120
+ { kind: "newChat", state: "idle", collapsed: false, x: 24, y: 24, width: 304, height: 40 },
121
+ { kind: "newChat", state: "hover", collapsed: false, x: 24, y: 88, width: 304, height: 40 },
122
+ { kind: "newChat", state: "idle", collapsed: true, x: 24, y: 152, width: 40, height: 40 },
123
+ { kind: "newChat", state: "hover", collapsed: true, x: 24, y: 216, width: 40, height: 40 },
124
+ ],
125
+ },
126
+ {
127
+ name: "Indicator",
128
+ x: 24,
129
+ y: 328,
130
+ width: 120,
131
+ height: 72,
132
+ slots: [
133
+ { kind: "indicator", chief: "technical", x: 24, y: 24, width: 24, height: 24 },
134
+ { kind: "indicator", chief: "compliance", x: 72, y: 24, width: 24, height: 24 },
135
+ ],
136
+ },
137
+ {
138
+ name: "Section",
139
+ x: 24,
140
+ y: 424,
141
+ width: 352,
142
+ height: 372,
143
+ slots: [
144
+ { kind: "sidebarLink", state: "idle", collapsed: false, x: 24, y: 24, width: 304, height: 36 },
145
+ { kind: "sidebarLink", state: "hover", collapsed: false, x: 24, y: 84, width: 304, height: 36 },
146
+ { kind: "sidebarLink", state: "active", collapsed: false, x: 24, y: 144, width: 304, height: 36 },
147
+ { kind: "sidebarLink", state: "idle", collapsed: true, x: 24, y: 204, width: 32, height: 32 },
148
+ { kind: "sidebarLink", state: "hover", collapsed: true, x: 24, y: 260, width: 32, height: 32 },
149
+ { kind: "sidebarLink", state: "active", collapsed: true, x: 24, y: 316, width: 32, height: 32 },
150
+ ],
151
+ },
152
+ {
153
+ name: "Heading",
154
+ x: 24,
155
+ y: 820,
156
+ width: 352,
157
+ height: 232,
158
+ slots: [
159
+ { kind: "sidebarHeading", state: "idle", collapsed: true, x: 24, y: 24, width: 304, height: 28 },
160
+ { kind: "sidebarHeading", state: "idle", collapsed: false, x: 24, y: 76, width: 304, height: 28 },
161
+ { kind: "sidebarHeading", state: "hover", collapsed: true, x: 24, y: 128, width: 304, height: 28 },
162
+ { kind: "sidebarHeading", state: "hover", collapsed: false, x: 24, y: 180, width: 304, height: 28 },
163
+ ],
164
+ },
165
+ {
166
+ name: "Entry",
167
+ x: 24,
168
+ y: 1076,
169
+ width: 352,
170
+ height: 204,
171
+ slots: [
172
+ { kind: "sidebarEntry", state: "idle", x: 24, y: 24, width: 304, height: 36 },
173
+ { kind: "sidebarEntry", state: "hover", showMenu: true, x: 24, y: 84, width: 304, height: 36 },
174
+ { kind: "sidebarEntry", state: "selected", x: 24, y: 144, width: 304, height: 36 },
175
+ ],
176
+ },
177
+ {
178
+ name: "Ships",
179
+ x: 24,
180
+ y: 1304,
181
+ width: 312,
182
+ height: 312,
183
+ slots: [
184
+ { kind: "ships", expanded: false, x: 24, y: 24, width: 264, height: 40 },
185
+ { kind: "ships", expanded: true, x: 24, y: 88, width: 264, height: 200 },
186
+ ],
187
+ },
188
+ {
189
+ name: "Activity",
190
+ x: 24,
191
+ y: 1640,
192
+ width: 296,
193
+ height: 924,
194
+ slots: [
195
+ { kind: "activity", chief: "technical", empty: true, x: 24, y: 24, width: 248, height: 36 },
196
+ { kind: "activity", chief: "technical", empty: false, x: 24, y: 84, width: 248, height: 396 },
197
+ { kind: "activity", chief: "compliance", empty: false, x: 24, y: 504, width: 248, height: 396 },
198
+ ],
199
+ },
200
+ {
201
+ name: "Account",
202
+ x: 24,
203
+ y: 2588,
204
+ width: 352,
205
+ height: 212,
206
+ slots: [
207
+ { kind: "account", state: "idle", collapsed: false, x: 24, y: 24, width: 304, height: 36 },
208
+ { kind: "account", state: "idle", collapsed: true, x: 24, y: 84, width: 40, height: 40 },
209
+ { kind: "account", state: "hover", collapsed: true, x: 24, y: 148, width: 40, height: 40 },
210
+ ],
211
+ },
212
+ ];
@@ -0,0 +1,84 @@
1
+ import type { Chief } from "../../patterns/Sidebar/Switcher";
2
+
3
+ /** Figma Sidebar Layouts > Content (`14:840`) */
4
+ export const FIGMA_SIDEBAR_LAYOUTS_CONTENT = {
5
+ width: 1368,
6
+ height: 2464,
7
+ } as const;
8
+
9
+ export const FIGMA_SIDEBAR_LAYOUTS_PAGE_WIDTH = 1432;
10
+ /** Page Title height offset — used only when cropping page screenshots to Content in baseline script. */
11
+ export const FIGMA_SIDEBAR_LAYOUTS_PAGE_TOP = 188;
12
+
13
+ export type SwitcherSlot = {
14
+ kind: "switcher";
15
+ chief: Chief;
16
+ expanded: boolean;
17
+ x: number;
18
+ y: number;
19
+ width: number;
20
+ height: number;
21
+ };
22
+
23
+ export type SidebarLayoutSlot = {
24
+ kind: "sidebarLayout";
25
+ chief: Chief;
26
+ activity: boolean;
27
+ ships: boolean;
28
+ collapsed: boolean;
29
+ x: number;
30
+ y: number;
31
+ width: number;
32
+ height: number;
33
+ };
34
+
35
+ export type SidebarLayoutsFrameSlot = SwitcherSlot | SidebarLayoutSlot;
36
+
37
+ export type SidebarLayoutsFrame = {
38
+ name: string;
39
+ x: number;
40
+ y: number;
41
+ width: number;
42
+ height: number;
43
+ slots: SidebarLayoutsFrameSlot[];
44
+ };
45
+
46
+ export const FIGMA_SIDEBAR_EXPANDED_WIDTH = 280;
47
+ export const FIGMA_SIDEBAR_COLLAPSED_WIDTH = 56;
48
+ export const FIGMA_SIDEBAR_LAYOUT_HEIGHT = 1024;
49
+
50
+ /** Slot positions relative to each dashed frame — from Figma metadata `14:840`. */
51
+ export const FIGMA_SIDEBAR_LAYOUTS_FRAMES: SidebarLayoutsFrame[] = [
52
+ {
53
+ name: "Switcher",
54
+ x: 24,
55
+ y: 24,
56
+ width: 296,
57
+ height: 272,
58
+ slots: [
59
+ { kind: "switcher", chief: "technical", expanded: true, x: 24, y: 24, width: 248, height: 44 },
60
+ { kind: "switcher", chief: "compliance", expanded: true, x: 24, y: 92, width: 248, height: 44 },
61
+ { kind: "switcher", chief: "technical", expanded: false, x: 24, y: 160, width: 40, height: 32 },
62
+ { kind: "switcher", chief: "compliance", expanded: false, x: 24, y: 216, width: 40, height: 32 },
63
+ ],
64
+ },
65
+ {
66
+ name: "Sidebar",
67
+ x: 24,
68
+ y: 320,
69
+ width: 1320,
70
+ height: 2120,
71
+ slots: [
72
+ { kind: "sidebarLayout", chief: "technical", activity: false, ships: false, collapsed: false, x: 24, y: 24, width: 280, height: 1024 },
73
+ { kind: "sidebarLayout", chief: "technical", activity: false, ships: false, collapsed: true, x: 328, y: 24, width: 56, height: 1024 },
74
+ { kind: "sidebarLayout", chief: "technical", activity: true, ships: false, collapsed: false, x: 408, y: 24, width: 280, height: 1024 },
75
+ { kind: "sidebarLayout", chief: "technical", activity: true, ships: true, collapsed: false, x: 712, y: 24, width: 280, height: 1024 },
76
+ { kind: "sidebarLayout", chief: "technical", activity: false, ships: true, collapsed: false, x: 1016, y: 24, width: 280, height: 1024 },
77
+ { kind: "sidebarLayout", chief: "compliance", activity: false, ships: false, collapsed: false, x: 24, y: 1072, width: 280, height: 1024 },
78
+ { kind: "sidebarLayout", chief: "compliance", activity: false, ships: false, collapsed: true, x: 328, y: 1072, width: 56, height: 1024 },
79
+ { kind: "sidebarLayout", chief: "compliance", activity: true, ships: false, collapsed: false, x: 408, y: 1072, width: 280, height: 1024 },
80
+ { kind: "sidebarLayout", chief: "compliance", activity: true, ships: true, collapsed: false, x: 712, y: 1072, width: 280, height: 1024 },
81
+ { kind: "sidebarLayout", chief: "compliance", activity: false, ships: true, collapsed: false, x: 1016, y: 1072, width: 280, height: 1024 },
82
+ ],
83
+ },
84
+ ];
@@ -0,0 +1,28 @@
1
+ /** Figma frame widths — source of truth for Storybook canvas pages */
2
+ export const FIGMA_WIDTHS = {
3
+ colors: 3060,
4
+ colorTokens: 1064,
5
+ typography: 1064,
6
+ buttonsMatrix: 808,
7
+ raiseLevels: 760,
8
+ buttons: 526,
9
+ icons: 774,
10
+ core: 732,
11
+ illustrations: 1152,
12
+ sidebar: 464,
13
+ sidebarLayouts: 1432,
14
+ chat: 1558,
15
+ ships: 1280,
16
+ content: 1280,
17
+ forms: 564,
18
+ report: 770,
19
+ modals: 1434,
20
+ skeletons: 512,
21
+ reportLayout: 960,
22
+ search: 848,
23
+ settings: 1076,
24
+ workflows: 1536,
25
+ domainForms: 1488,
26
+ filters: 1232,
27
+ library: 1288,
28
+ } as const;