@lateralus-ai/shipping-ui 1.4.16 → 2.0.0-dev.10
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/README.md +70 -53
- package/dist/components/Checkbox.d.ts +9 -0
- package/dist/components/Chip.d.ts +15 -0
- package/dist/components/EmptyState.d.ts +10 -0
- package/dist/components/Entry.d.ts +33 -0
- package/dist/components/Header.d.ts +9 -0
- package/dist/components/Input.d.ts +11 -0
- package/dist/components/InputType.d.ts +10 -0
- package/dist/components/Modal.d.ts +36 -0
- package/dist/components/ModalPanel.d.ts +7 -7
- package/dist/components/PdfViewer/ImageViewer.d.ts +2 -2
- package/dist/components/PdfViewer/PdfViewer.d.ts +2 -2
- package/dist/components/ReportInput.d.ts +10 -0
- package/dist/components/Tab.d.ts +7 -0
- package/dist/components/Tabs.d.ts +26 -12
- package/dist/components/index.d.ts +12 -4
- package/dist/domain/Filters/FilterPill.d.ts +6 -0
- package/dist/domain/Filters/FilteredPill.d.ts +8 -0
- package/dist/domain/Filters/FiltersBar.d.ts +12 -0
- package/dist/domain/Filters/index.d.ts +3 -0
- package/dist/domain/Forms/FormCard.d.ts +12 -0
- package/dist/domain/Forms/FormHeader.d.ts +8 -0
- package/dist/domain/Forms/ListRow.d.ts +8 -0
- package/dist/domain/Forms/RiskMeter.d.ts +8 -0
- package/dist/domain/Forms/index.d.ts +4 -0
- package/dist/domain/Library/File.d.ts +8 -0
- package/dist/domain/Library/Folder.d.ts +8 -0
- package/dist/domain/Library/Folders.d.ts +11 -0
- package/dist/domain/Library/ListRow.d.ts +8 -0
- package/dist/domain/Library/Navigation.d.ts +7 -0
- package/dist/domain/Library/index.d.ts +5 -0
- package/dist/domain/Report/InfoHeading.d.ts +7 -0
- package/dist/domain/Report/InfoRow.d.ts +8 -0
- package/dist/domain/Report/Report.d.ts +7 -0
- package/dist/domain/Report/SectionHeader.d.ts +10 -0
- package/dist/domain/Report/TaskRow.d.ts +11 -0
- package/dist/domain/Report/index.d.ts +5 -0
- package/dist/domain/Settings/EquipmentRow.d.ts +8 -0
- package/dist/domain/Settings/MemberRow.d.ts +11 -0
- package/dist/domain/Settings/SettingRow.d.ts +10 -0
- package/dist/domain/Settings/index.d.ts +3 -0
- package/dist/domain/Ships/ShipRow.d.ts +10 -0
- package/dist/domain/Ships/index.d.ts +1 -0
- package/dist/domain/Workflows/GroupHeader.d.ts +8 -0
- package/dist/domain/Workflows/Importance.d.ts +8 -0
- package/dist/domain/Workflows/Progress.d.ts +7 -0
- package/dist/domain/Workflows/Question.d.ts +9 -0
- package/dist/domain/Workflows/StatusPopover.d.ts +7 -0
- package/dist/domain/Workflows/Task.d.ts +9 -0
- package/dist/domain/Workflows/TaskHeader.d.ts +9 -0
- package/dist/domain/Workflows/WorkflowFilters.d.ts +6 -0
- package/dist/domain/Workflows/WorkflowForm.d.ts +8 -0
- package/dist/domain/Workflows/WorkflowHeader.d.ts +11 -0
- package/dist/domain/Workflows/WorkflowListItem.d.ts +11 -0
- package/dist/domain/Workflows/WorkflowProgress.d.ts +6 -0
- package/dist/domain/Workflows/WorkflowRow.d.ts +10 -0
- package/dist/domain/Workflows/index.d.ts +13 -0
- package/dist/domain/index.d.ts +7 -0
- package/dist/icons/ArrowIcon.d.ts +8 -0
- package/dist/icons/ChevronIcon.d.ts +8 -0
- package/dist/icons/Icon.d.ts +96 -0
- package/dist/icons/arrow-paths.d.ts +12 -0
- package/dist/icons/chevron-paths.d.ts +27 -0
- package/dist/icons/createIcon.d.ts +34 -0
- package/dist/icons/generated.d.ts +68 -0
- package/dist/icons/icon-sizes.d.ts +5 -0
- package/dist/icons/icons-data.d.ts +1023 -0
- package/dist/icons/index.d.ts +13 -0
- package/dist/icons/types.d.ts +10 -0
- package/dist/illustrations/AuditPreparation.d.ts +4 -0
- package/dist/illustrations/CompletedTasks.d.ts +4 -0
- package/dist/illustrations/Creation.d.ts +4 -0
- package/dist/illustrations/InternalAudit.d.ts +4 -0
- package/dist/illustrations/Invite.d.ts +4 -0
- package/dist/illustrations/PortStateControl.d.ts +4 -0
- package/dist/illustrations/Processing.d.ts +4 -0
- package/dist/illustrations/QuestionsDone.d.ts +4 -0
- package/dist/illustrations/RightShipInspection.d.ts +4 -0
- package/dist/illustrations/Upload.d.ts +4 -0
- package/dist/illustrations/WorkflowCreated.d.ts +4 -0
- package/dist/illustrations/Workflows.d.ts +4 -0
- package/dist/illustrations/createIllustration.d.ts +11 -0
- package/dist/illustrations/index.d.ts +13 -0
- package/dist/index.cjs +64 -80
- package/dist/index.d.ts +9 -3
- package/dist/index.esm.js +11535 -36619
- package/dist/patterns/Chat/Attachment.d.ts +6 -0
- package/dist/patterns/Chat/ChatEntry.d.ts +10 -0
- package/dist/patterns/Chat/ChatHeader.d.ts +7 -0
- package/dist/patterns/Chat/ChatInput.d.ts +5 -0
- package/dist/patterns/Chat/ChatStatus.d.ts +6 -0
- package/dist/patterns/Chat/ChatTile.d.ts +9 -0
- package/dist/patterns/Chat/Copilot.d.ts +8 -0
- package/dist/patterns/Chat/Draft.d.ts +5 -0
- package/dist/patterns/Chat/Greeting.d.ts +7 -0
- package/dist/patterns/Chat/Reference.d.ts +6 -0
- package/dist/patterns/Chat/Source.d.ts +6 -0
- package/dist/patterns/Chat/Sources.d.ts +5 -0
- package/dist/patterns/Chat/Suggestion.d.ts +5 -0
- package/dist/patterns/Chat/Suggestions.d.ts +4 -0
- package/dist/patterns/Chat/index.d.ts +14 -0
- package/dist/patterns/Modal/Invitee.d.ts +8 -0
- package/dist/patterns/Modal/ModalFooter.d.ts +6 -0
- package/dist/patterns/Modal/ModalHeader.d.ts +10 -0
- package/dist/patterns/Modal/index.d.ts +3 -0
- package/dist/patterns/Search/Pill.d.ts +10 -0
- package/dist/patterns/Search/PillInfo.d.ts +8 -0
- package/dist/patterns/Search/ResultRow.d.ts +19 -0
- package/dist/patterns/Search/SearchModal.d.ts +88 -0
- package/dist/patterns/Search/SectionHeader.d.ts +5 -0
- package/dist/patterns/Search/index.d.ts +5 -0
- package/dist/patterns/Sidebar/Account.d.ts +22 -0
- package/dist/patterns/Sidebar/ActivityNavGroup.d.ts +17 -0
- package/dist/patterns/Sidebar/CollapsibleNavGroup.d.ts +24 -0
- package/dist/patterns/Sidebar/Indicator.d.ts +6 -0
- package/dist/patterns/Sidebar/NewChat.d.ts +10 -0
- package/dist/patterns/Sidebar/Sidebar.d.ts +13 -0
- package/dist/patterns/Sidebar/SidebarAction.d.ts +11 -0
- package/dist/patterns/Sidebar/SidebarEntry.d.ts +25 -0
- package/dist/patterns/Sidebar/SidebarHeading.d.ts +11 -0
- package/dist/patterns/Sidebar/SidebarLink.d.ts +22 -0
- package/dist/patterns/Sidebar/SidebarShell.d.ts +11 -0
- package/dist/patterns/Sidebar/Switcher.d.ts +8 -0
- package/dist/patterns/Sidebar/constants.d.ts +2 -0
- package/dist/patterns/Sidebar/figma-assets.d.ts +3 -0
- package/dist/patterns/Sidebar/figma-demo-content.d.ts +75 -0
- package/dist/patterns/Sidebar/figma-sidebar-nav.d.ts +12 -0
- package/dist/patterns/Sidebar/index.d.ts +13 -0
- package/dist/patterns/Sidebar/sidebar-styles.d.ts +45 -0
- package/dist/patterns/Skeleton/Skeleton.d.ts +6 -0
- package/dist/patterns/Skeleton/index.d.ts +1 -0
- package/dist/patterns/index.d.ts +5 -0
- package/dist/primitives/Avatar.d.ts +10 -0
- package/dist/primitives/Badge.d.ts +14 -0
- package/dist/primitives/Button.d.ts +22 -0
- package/dist/primitives/Callout.d.ts +7 -0
- package/dist/primitives/Count.d.ts +5 -0
- package/dist/primitives/DropdownMenu.d.ts +15 -0
- package/dist/primitives/GroupedAvatars.d.ts +7 -0
- package/dist/primitives/IconButton.d.ts +16 -0
- package/dist/primitives/Logo.d.ts +8 -0
- package/dist/primitives/MenuItem.d.ts +7 -0
- package/dist/primitives/Switch.d.ts +7 -0
- package/dist/primitives/ThinkingDot.d.ts +4 -0
- package/dist/primitives/Tooltip.d.ts +12 -0
- package/dist/primitives/button-styles.d.ts +4 -0
- package/dist/primitives/index.d.ts +15 -0
- package/dist/style.css +1 -1
- package/dist/tailwind-theme.d.ts +234 -198
- package/dist/theme-entry-BUK3MJUJ.mjs +261 -0
- package/dist/theme-entry-ygTpGaNC.js +1 -0
- package/dist/theme-entry.d.ts +2 -0
- package/dist/theme.cjs +1 -0
- package/dist/theme.d.ts +2 -0
- package/dist/theme.esm.js +5 -0
- package/dist/tokens/colors.d.ts +148 -0
- package/dist/tokens/elevation.d.ts +11 -0
- package/dist/tokens/index.d.ts +4 -0
- package/dist/tokens/semantic.d.ts +89 -0
- package/dist/tokens/typography.d.ts +85 -0
- package/package.json +36 -7
- package/src/components/Checkbox.tsx +77 -0
- package/src/components/Chip.tsx +69 -0
- package/src/components/EmptyState.tsx +44 -0
- package/src/components/Entry.tsx +138 -0
- package/src/components/Header.tsx +39 -0
- package/src/components/Input.tsx +69 -0
- package/src/components/InputType.tsx +76 -0
- package/src/components/Modal.tsx +141 -0
- package/src/components/ModalPanel.tsx +22 -37
- package/src/components/PdfViewer/ImageViewer.tsx +121 -182
- package/src/components/PdfViewer/PdfViewer.tsx +103 -155
- package/src/components/ReportInput.tsx +65 -0
- package/src/components/Tab.tsx +33 -0
- package/src/components/Tabs.tsx +146 -43
- package/src/components/index.ts +43 -6
- package/src/domain/Filters/FilterPill.tsx +25 -0
- package/src/domain/Filters/FilteredPill.tsx +39 -0
- package/src/domain/Filters/FiltersBar.tsx +76 -0
- package/src/domain/Filters/index.ts +3 -0
- package/src/domain/Forms/FormCard.tsx +61 -0
- package/src/domain/Forms/FormHeader.tsx +34 -0
- package/src/domain/Forms/ListRow.tsx +40 -0
- package/src/domain/Forms/RiskMeter.tsx +50 -0
- package/src/domain/Forms/index.ts +4 -0
- package/src/domain/Library/File.tsx +59 -0
- package/src/domain/Library/Folder.tsx +55 -0
- package/src/domain/Library/Folders.tsx +43 -0
- package/src/domain/Library/ListRow.tsx +40 -0
- package/src/domain/Library/Navigation.tsx +31 -0
- package/src/domain/Library/index.ts +5 -0
- package/src/domain/Report/InfoHeading.tsx +25 -0
- package/src/domain/Report/InfoRow.tsx +35 -0
- package/src/domain/Report/Report.tsx +53 -0
- package/src/domain/Report/SectionHeader.tsx +43 -0
- package/src/domain/Report/TaskRow.tsx +57 -0
- package/src/domain/Report/index.ts +5 -0
- package/src/domain/Settings/EquipmentRow.tsx +39 -0
- package/src/domain/Settings/MemberRow.tsx +53 -0
- package/src/domain/Settings/SettingRow.tsx +66 -0
- package/src/domain/Settings/index.ts +3 -0
- package/src/domain/Ships/ShipRow.tsx +49 -0
- package/src/domain/Ships/index.ts +1 -0
- package/src/domain/Workflows/GroupHeader.tsx +48 -0
- package/src/domain/Workflows/Importance.tsx +48 -0
- package/src/domain/Workflows/Progress.tsx +55 -0
- package/src/domain/Workflows/Question.tsx +42 -0
- package/src/domain/Workflows/StatusPopover.tsx +53 -0
- package/src/domain/Workflows/Task.tsx +46 -0
- package/src/domain/Workflows/TaskHeader.tsx +51 -0
- package/src/domain/Workflows/WorkflowFilters.tsx +40 -0
- package/src/domain/Workflows/WorkflowForm.tsx +40 -0
- package/src/domain/Workflows/WorkflowHeader.tsx +62 -0
- package/src/domain/Workflows/WorkflowListItem.tsx +45 -0
- package/src/domain/Workflows/WorkflowProgress.tsx +36 -0
- package/src/domain/Workflows/WorkflowRow.tsx +43 -0
- package/src/domain/Workflows/index.ts +13 -0
- package/src/domain/index.ts +37 -0
- package/src/icons/ArrowIcon.tsx +42 -0
- package/src/icons/ChevronIcon.tsx +42 -0
- package/src/icons/Icon.tsx +184 -0
- package/src/icons/arrow-paths.ts +8 -0
- package/src/icons/chevron-paths.ts +17 -0
- package/src/icons/createIcon.tsx +128 -0
- package/src/icons/generated.tsx +71 -0
- package/src/icons/icon-sizes.ts +20 -0
- package/src/icons/icons-data.ts +656 -0
- package/src/icons/index.ts +25 -0
- package/src/icons/types.ts +18 -0
- package/src/illustrations/AuditPreparation.tsx +15 -0
- package/src/illustrations/CompletedTasks.tsx +16 -0
- package/src/illustrations/Creation.tsx +13 -0
- package/src/illustrations/InternalAudit.tsx +13 -0
- package/src/illustrations/Invite.tsx +13 -0
- package/src/illustrations/PortStateControl.tsx +13 -0
- package/src/illustrations/Processing.tsx +17 -0
- package/src/illustrations/QuestionsDone.tsx +16 -0
- package/src/illustrations/RightShipInspection.tsx +18 -0
- package/src/illustrations/Upload.tsx +12 -0
- package/src/illustrations/WorkflowCreated.tsx +13 -0
- package/src/illustrations/Workflows.tsx +13 -0
- package/src/illustrations/createIllustration.tsx +30 -0
- package/src/illustrations/index.ts +14 -0
- package/src/index.ts +76 -4
- package/src/patterns/Chat/Attachment.tsx +27 -0
- package/src/patterns/Chat/ChatEntry.tsx +41 -0
- package/src/patterns/Chat/ChatHeader.tsx +39 -0
- package/src/patterns/Chat/ChatInput.tsx +35 -0
- package/src/patterns/Chat/ChatStatus.tsx +26 -0
- package/src/patterns/Chat/ChatTile.tsx +40 -0
- package/src/patterns/Chat/Copilot.tsx +50 -0
- package/src/patterns/Chat/Draft.tsx +23 -0
- package/src/patterns/Chat/Greeting.tsx +32 -0
- package/src/patterns/Chat/Reference.tsx +26 -0
- package/src/patterns/Chat/Source.tsx +27 -0
- package/src/patterns/Chat/Sources.tsx +23 -0
- package/src/patterns/Chat/Suggestion.tsx +23 -0
- package/src/patterns/Chat/Suggestions.tsx +21 -0
- package/src/patterns/Chat/index.ts +14 -0
- package/src/patterns/Modal/Invitee.tsx +44 -0
- package/src/patterns/Modal/ModalFooter.tsx +39 -0
- package/src/patterns/Modal/ModalHeader.tsx +77 -0
- package/src/patterns/Modal/index.ts +3 -0
- package/src/patterns/Search/Pill.tsx +44 -0
- package/src/patterns/Search/PillInfo.tsx +41 -0
- package/src/patterns/Search/ResultRow.tsx +44 -0
- package/src/patterns/Search/SearchModal.tsx +310 -0
- package/src/patterns/Search/SectionHeader.tsx +20 -0
- package/src/patterns/Search/index.ts +31 -0
- package/src/patterns/Sidebar/Account.tsx +193 -0
- package/src/patterns/Sidebar/ActivityNavGroup.tsx +71 -0
- package/src/patterns/Sidebar/CollapsibleNavGroup.tsx +106 -0
- package/src/patterns/Sidebar/Indicator.tsx +14 -0
- package/src/patterns/Sidebar/NewChat.tsx +71 -0
- package/src/patterns/Sidebar/Sidebar.tsx +363 -0
- package/src/patterns/Sidebar/SidebarAction.tsx +55 -0
- package/src/patterns/Sidebar/SidebarEntry.tsx +129 -0
- package/src/patterns/Sidebar/SidebarHeading.tsx +38 -0
- package/src/patterns/Sidebar/SidebarLink.tsx +125 -0
- package/src/patterns/Sidebar/SidebarShell.tsx +32 -0
- package/src/patterns/Sidebar/Switcher.tsx +116 -0
- package/src/patterns/Sidebar/assets/account-avatar-24.jpg +0 -0
- package/src/patterns/Sidebar/assets/account-avatar.jpg +0 -0
- package/src/patterns/Sidebar/assets/indicator-compliance.png +0 -0
- package/src/patterns/Sidebar/assets/indicator-technical.png +0 -0
- package/src/patterns/Sidebar/assets/logo-compliance-mark.png +5 -0
- package/src/patterns/Sidebar/assets/logo-compliance-mask.png +13 -0
- package/src/patterns/Sidebar/assets/logo-compliance.svg +17 -0
- package/src/patterns/Sidebar/assets/logo-technical-avatar.svg +17 -0
- package/src/patterns/Sidebar/assets/logo-technical-mark.png +5 -0
- package/src/patterns/Sidebar/assets/logo-technical.svg +16 -0
- package/src/patterns/Sidebar/constants.ts +2 -0
- package/src/patterns/Sidebar/figma-assets.ts +4 -0
- package/src/patterns/Sidebar/figma-demo-content.ts +30 -0
- package/src/patterns/Sidebar/figma-sidebar-nav.ts +79 -0
- package/src/patterns/Sidebar/index.ts +13 -0
- package/src/patterns/Sidebar/sidebar-styles.ts +101 -0
- package/src/patterns/Skeleton/Skeleton.tsx +56 -0
- package/src/patterns/Skeleton/index.ts +1 -0
- package/src/patterns/index.ts +5 -0
- package/src/primitives/Avatar.tsx +71 -0
- package/src/primitives/Badge.tsx +44 -0
- package/src/primitives/Button.tsx +231 -0
- package/src/primitives/Callout.tsx +21 -0
- package/src/primitives/Count.tsx +18 -0
- package/src/primitives/DropdownMenu.tsx +60 -0
- package/src/primitives/GroupedAvatars.tsx +36 -0
- package/src/primitives/IconButton.tsx +56 -0
- package/src/primitives/Logo.tsx +43 -0
- package/src/primitives/MenuItem.tsx +35 -0
- package/src/primitives/Switch.tsx +38 -0
- package/src/primitives/ThinkingDot.tsx +34 -0
- package/src/primitives/Tooltip.tsx +42 -0
- package/src/primitives/button-styles.ts +92 -0
- package/src/primitives/index.ts +18 -0
- package/src/stories/_layout/FigmaPage.tsx +94 -0
- package/src/stories/_layout/index.ts +8 -0
- package/src/stories/canvases/ButtonsCanvas.tsx +107 -0
- package/src/stories/canvases/ButtonsMatrixCanvas.tsx +65 -0
- package/src/stories/canvases/ChatCanvas.tsx +130 -0
- package/src/stories/canvases/ColorTokensCanvas.tsx +16 -0
- package/src/stories/canvases/ColorsCanvas.tsx +101 -0
- package/src/stories/canvases/ContentCanvas.tsx +157 -0
- package/src/stories/canvases/CoreCanvas.tsx +125 -0
- package/src/stories/canvases/DomainFormsCanvas.tsx +67 -0
- package/src/stories/canvases/FiltersCanvas.tsx +41 -0
- package/src/stories/canvases/FormsCanvas.tsx +71 -0
- package/src/stories/canvases/IconsCanvas.tsx +99 -0
- package/src/stories/canvases/IllustrationsCanvas.tsx +50 -0
- package/src/stories/canvases/LibraryCanvas.tsx +67 -0
- package/src/stories/canvases/ModalsCanvas.tsx +54 -0
- package/src/stories/canvases/RaiseLevelsCanvas.tsx +27 -0
- package/src/stories/canvases/ReportCanvas.tsx +33 -0
- package/src/stories/canvases/ReportLayoutCanvas.tsx +19 -0
- package/src/stories/canvases/SearchCanvas.tsx +150 -0
- package/src/stories/canvases/SettingsCanvas.tsx +41 -0
- package/src/stories/canvases/ShipsCanvas.tsx +38 -0
- package/src/stories/canvases/SidebarCanvas.tsx +147 -0
- package/src/stories/canvases/SidebarLayoutsCanvas.tsx +71 -0
- package/src/stories/canvases/SidebarPlayground.tsx +35 -0
- package/src/stories/canvases/SkeletonsCanvas.tsx +30 -0
- package/src/stories/canvases/TypographyCanvas.tsx +53 -0
- package/src/stories/canvases/WorkflowsCanvas.tsx +129 -0
- package/src/stories/canvases/figma-buttons-layout.ts +83 -0
- package/src/stories/canvases/figma-icons-layout.ts +318 -0
- package/src/stories/canvases/figma-sidebar-layout.ts +212 -0
- package/src/stories/canvases/figma-sidebar-layouts-layout.ts +84 -0
- package/src/stories/canvases/figma-widths.ts +28 -0
- package/src/stories/canvases/helpers.tsx +146 -0
- package/src/stories/components/Buttons.stories.tsx +12 -0
- package/src/stories/components/Chat.stories.tsx +12 -0
- package/src/stories/components/Content.stories.tsx +12 -0
- package/src/stories/components/Core.stories.tsx +12 -0
- package/src/stories/components/DomainForms.stories.tsx +12 -0
- package/src/stories/components/Filters.stories.tsx +12 -0
- package/src/stories/components/Forms.stories.tsx +12 -0
- package/src/stories/components/Icons.stories.tsx +12 -0
- package/src/stories/components/Illustrations.stories.tsx +12 -0
- package/src/stories/components/Library.stories.tsx +12 -0
- package/src/stories/components/Modals.stories.tsx +12 -0
- package/src/stories/components/Report.stories.tsx +12 -0
- package/src/stories/components/ReportLayout.stories.tsx +12 -0
- package/src/stories/components/Search.stories.tsx +12 -0
- package/src/stories/components/Settings.stories.tsx +12 -0
- package/src/stories/components/Ships.stories.tsx +12 -0
- package/src/stories/components/Sidebar.stories.tsx +37 -0
- package/src/stories/components/SidebarLayouts.stories.tsx +12 -0
- package/src/stories/components/Skeletons.stories.tsx +12 -0
- package/src/stories/components/Workflows.stories.tsx +12 -0
- package/src/stories/style-guide/Buttons.stories.tsx +12 -0
- package/src/stories/style-guide/ColorTokens.stories.tsx +12 -0
- package/src/stories/style-guide/Colors.stories.tsx +12 -0
- package/src/stories/style-guide/RaiseLevels.stories.tsx +12 -0
- package/src/stories/style-guide/Typography.stories.tsx +12 -0
- package/src/style.css +169 -2
- package/src/tailwind-theme.ts +164 -240
- package/src/theme-entry.ts +2 -0
- package/src/tokens/colors.ts +82 -0
- package/src/tokens/elevation.ts +12 -0
- package/src/tokens/index.ts +4 -0
- package/src/tokens/semantic.ts +89 -0
- package/src/tokens/typography.ts +21 -0
- package/tailwind.config.ts +12 -0
- package/dist/components/HelloWorld.d.ts +0 -1
- package/dist/components/InputPrompt.d.ts +0 -20
- package/dist/components/SearchModal.d.ts +0 -24
- package/dist/components/Sidebar/Button.d.ts +0 -7
- package/dist/components/Sidebar/Container.d.ts +0 -5
- package/dist/components/Sidebar/Item.d.ts +0 -9
- package/dist/components/Sidebar/Layout.d.ts +0 -10
- package/dist/components/Sidebar/Provider.d.ts +0 -14
- package/dist/components/Sidebar/SecondaryItem.d.ts +0 -9
- package/dist/components/Sidebar/SideContainer.d.ts +0 -5
- package/dist/components/Sidebar/ToggleCollapseButton.d.ts +0 -1
- package/dist/components/Sidebar/index.d.ts +0 -8
- package/dist/components/icons/CloseSidebarIcon.d.ts +0 -2
- package/dist/components/icons/CloseSidebarMidIcon.d.ts +0 -1
- package/dist/components/icons/ExpandIcon.d.ts +0 -3
- package/dist/components/icons/SendArrowIcon.d.ts +0 -4
- package/dist/components/icons/SendArrowIconGreen.d.ts +0 -4
- package/dist/components/icons/SettingsIcon.d.ts +0 -3
- package/dist/components/icons/XIcon.d.ts +0 -3
- package/dist/material-theme.d.ts +0 -442
- package/dist/stories/Buttons.d.ts +0 -1
- package/dist/stories/Checkbox.d.ts +0 -1
- package/dist/stories/ColorPalette.d.ts +0 -1
- package/dist/stories/Dropdowns.d.ts +0 -1
- package/dist/stories/InputPrompt.d.ts +0 -1
- package/dist/stories/SearchModal.d.ts +0 -1
- package/dist/stories/Sidebar.d.ts +0 -1
- package/dist/stories/Typography.d.ts +0 -1
- package/src/components/HelloWorld.tsx +0 -3
- package/src/components/InputPrompt.tsx +0 -96
- package/src/components/SearchModal.tsx +0 -320
- package/src/components/Sidebar/Button.tsx +0 -20
- package/src/components/Sidebar/Container.tsx +0 -31
- package/src/components/Sidebar/Item.tsx +0 -39
- package/src/components/Sidebar/Layout.tsx +0 -32
- package/src/components/Sidebar/Provider.tsx +0 -47
- package/src/components/Sidebar/SecondaryItem.tsx +0 -39
- package/src/components/Sidebar/SideContainer.tsx +0 -31
- package/src/components/Sidebar/ToggleCollapseButton.tsx +0 -24
- package/src/components/Sidebar/index.ts +0 -8
- package/src/components/icons/CloseSidebarIcon.tsx +0 -19
- package/src/components/icons/CloseSidebarMidIcon.tsx +0 -19
- package/src/components/icons/ExpandIcon.tsx +0 -21
- package/src/components/icons/SendArrowIcon.tsx +0 -23
- package/src/components/icons/SendArrowIconGreen.tsx +0 -17
- package/src/components/icons/SettingsIcon.tsx +0 -33
- package/src/components/icons/XIcon.tsx +0 -21
- package/src/material-theme.ts +0 -477
- package/src/stories/Buttons.stories.tsx +0 -15
- package/src/stories/Buttons.tsx +0 -52
- package/src/stories/Checkbox.stories.tsx +0 -15
- package/src/stories/Checkbox.tsx +0 -56
- package/src/stories/ColorPalette.stories.tsx +0 -15
- package/src/stories/ColorPalette.tsx +0 -85
- package/src/stories/DocumentEditor.stories.tsx +0 -287
- package/src/stories/Dropdowns.stories.tsx +0 -15
- package/src/stories/Dropdowns.tsx +0 -52
- package/src/stories/InputPrompt.stories.tsx +0 -15
- package/src/stories/InputPrompt.tsx +0 -63
- package/src/stories/ModalHeader.stories.tsx +0 -36
- package/src/stories/PDFViewer.stories.tsx +0 -39
- package/src/stories/SearchModal.stories.tsx +0 -132
- package/src/stories/SearchModal.tsx +0 -82
- package/src/stories/Sidebar.stories.tsx +0 -15
- package/src/stories/Sidebar.tsx +0 -108
- package/src/stories/Tabs.stories.tsx +0 -51
- package/src/stories/Typography.stories.tsx +0 -15
- package/src/stories/Typography.tsx +0 -110
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Attachment,
|
|
3
|
+
ChatEntry,
|
|
4
|
+
ChatHeader,
|
|
5
|
+
ChatInput,
|
|
6
|
+
ChatStatus,
|
|
7
|
+
ChatTile,
|
|
8
|
+
Copilot,
|
|
9
|
+
Draft,
|
|
10
|
+
Greeting,
|
|
11
|
+
Reference,
|
|
12
|
+
Source,
|
|
13
|
+
Sources,
|
|
14
|
+
Suggestion,
|
|
15
|
+
Suggestions,
|
|
16
|
+
} from "../../patterns/Chat";
|
|
17
|
+
import {
|
|
18
|
+
FigmaContent,
|
|
19
|
+
FigmaGrid,
|
|
20
|
+
FigmaPage,
|
|
21
|
+
FigmaSection,
|
|
22
|
+
FigmaVariant,
|
|
23
|
+
} from "../_layout";
|
|
24
|
+
import { FIGMA_WIDTHS } from "./figma-widths";
|
|
25
|
+
|
|
26
|
+
export const ChatCanvas = () => (
|
|
27
|
+
<FigmaPage title="Chat" width={FIGMA_WIDTHS.chat}>
|
|
28
|
+
<FigmaContent>
|
|
29
|
+
<FigmaSection label="Greeting">
|
|
30
|
+
<FigmaGrid gap={24}>
|
|
31
|
+
<Greeting chief="technical" />
|
|
32
|
+
<Greeting chief="compliance" name="Alex" />
|
|
33
|
+
</FigmaGrid>
|
|
34
|
+
</FigmaSection>
|
|
35
|
+
|
|
36
|
+
<FigmaSection label="Header">
|
|
37
|
+
<div className="max-w-3xl space-y-4">
|
|
38
|
+
<ChatHeader chief="technical" title="Hull inspection discussion" />
|
|
39
|
+
<ChatHeader chief="compliance" title="Port state control" />
|
|
40
|
+
</div>
|
|
41
|
+
</FigmaSection>
|
|
42
|
+
|
|
43
|
+
<FigmaSection label="Draft">
|
|
44
|
+
<div className="max-w-xl">
|
|
45
|
+
<Draft />
|
|
46
|
+
</div>
|
|
47
|
+
</FigmaSection>
|
|
48
|
+
|
|
49
|
+
<FigmaSection label="Suggestion">
|
|
50
|
+
<FigmaGrid gap={16}>
|
|
51
|
+
<Suggestion label="Review fire safety checklist" />
|
|
52
|
+
<Suggestion label="Summarize inspection findings" />
|
|
53
|
+
</FigmaGrid>
|
|
54
|
+
</FigmaSection>
|
|
55
|
+
|
|
56
|
+
<FigmaSection label="Chat Input">
|
|
57
|
+
<div className="max-w-xl space-y-4">
|
|
58
|
+
<ChatInput />
|
|
59
|
+
<ChatInput placeholder="Ask about compliance..." />
|
|
60
|
+
</div>
|
|
61
|
+
</FigmaSection>
|
|
62
|
+
|
|
63
|
+
<FigmaSection label="Chat Status">
|
|
64
|
+
<FigmaGrid gap={16}>
|
|
65
|
+
<ChatStatus status="thinking" />
|
|
66
|
+
<ChatStatus status="typing" message="Chief is typing" />
|
|
67
|
+
<ChatStatus status="idle" message="Ready" />
|
|
68
|
+
</FigmaGrid>
|
|
69
|
+
</FigmaSection>
|
|
70
|
+
|
|
71
|
+
<FigmaSection label="Attachment">
|
|
72
|
+
<FigmaGrid gap={16}>
|
|
73
|
+
<Attachment name="inspection-report.pdf" />
|
|
74
|
+
<Attachment name="crew-list.xlsx" size="840 KB" />
|
|
75
|
+
</FigmaGrid>
|
|
76
|
+
</FigmaSection>
|
|
77
|
+
|
|
78
|
+
<FigmaSection label="Reference">
|
|
79
|
+
<Reference title="ISM Code §6.2" page="p. 18" />
|
|
80
|
+
</FigmaSection>
|
|
81
|
+
|
|
82
|
+
<FigmaSection label="Sources">
|
|
83
|
+
<div className="max-w-md space-y-4">
|
|
84
|
+
<Source title="Safety Management Manual" />
|
|
85
|
+
<Sources />
|
|
86
|
+
</div>
|
|
87
|
+
</FigmaSection>
|
|
88
|
+
|
|
89
|
+
<FigmaSection label="Chat Entry">
|
|
90
|
+
<div className="max-w-xl space-y-4">
|
|
91
|
+
<ChatEntry role="user">Can you review the hull inspection report?</ChatEntry>
|
|
92
|
+
<ChatEntry chief="technical">All systems are within acceptable parameters.</ChatEntry>
|
|
93
|
+
<ChatEntry chief="compliance">I found three compliance gaps that need attention.</ChatEntry>
|
|
94
|
+
</div>
|
|
95
|
+
</FigmaSection>
|
|
96
|
+
|
|
97
|
+
<FigmaSection label="Suggestions">
|
|
98
|
+
<div className="max-w-xl">
|
|
99
|
+
<Suggestions />
|
|
100
|
+
</div>
|
|
101
|
+
</FigmaSection>
|
|
102
|
+
|
|
103
|
+
<FigmaSection label="Copilot">
|
|
104
|
+
<FigmaGrid gap={24}>
|
|
105
|
+
<FigmaVariant label="Default">
|
|
106
|
+
<div className="h-[480px] w-80 overflow-hidden rounded-control border border-divider-primary">
|
|
107
|
+
<Copilot />
|
|
108
|
+
</div>
|
|
109
|
+
</FigmaVariant>
|
|
110
|
+
<FigmaVariant label="Empty">
|
|
111
|
+
<div className="h-[480px] w-80 overflow-hidden rounded-control border border-divider-primary">
|
|
112
|
+
<Copilot empty />
|
|
113
|
+
</div>
|
|
114
|
+
</FigmaVariant>
|
|
115
|
+
<FigmaVariant label="Thinking">
|
|
116
|
+
<div className="h-[480px] w-80 overflow-hidden rounded-control border border-divider-primary">
|
|
117
|
+
<Copilot thinking />
|
|
118
|
+
</div>
|
|
119
|
+
</FigmaVariant>
|
|
120
|
+
</FigmaGrid>
|
|
121
|
+
</FigmaSection>
|
|
122
|
+
|
|
123
|
+
<FigmaSection label="Chat Tile">
|
|
124
|
+
<div className="max-w-sm">
|
|
125
|
+
<ChatTile title="Hull inspection report review" timestamp="2 hours ago" />
|
|
126
|
+
</div>
|
|
127
|
+
</FigmaSection>
|
|
128
|
+
</FigmaContent>
|
|
129
|
+
</FigmaPage>
|
|
130
|
+
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FigmaContent, FigmaPage } from "../_layout";
|
|
2
|
+
import { ColorScaleRow } from "./helpers";
|
|
3
|
+
import { FIGMA_WIDTHS } from "./figma-widths";
|
|
4
|
+
|
|
5
|
+
export const ColorTokensCanvas = () => (
|
|
6
|
+
<FigmaPage title="Color Tokens" width={FIGMA_WIDTHS.colorTokens}>
|
|
7
|
+
<FigmaContent>
|
|
8
|
+
<ColorScaleRow name="grey" />
|
|
9
|
+
<ColorScaleRow name="green" />
|
|
10
|
+
<ColorScaleRow name="blue" />
|
|
11
|
+
<ColorScaleRow name="red" />
|
|
12
|
+
<ColorScaleRow name="orange" />
|
|
13
|
+
<ColorScaleRow name="purple" />
|
|
14
|
+
</FigmaContent>
|
|
15
|
+
</FigmaPage>
|
|
16
|
+
);
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FigmaContent,
|
|
3
|
+
FigmaGrid,
|
|
4
|
+
FigmaPage,
|
|
5
|
+
FigmaSection,
|
|
6
|
+
} from "../_layout";
|
|
7
|
+
import { SemanticSwatch } from "./helpers";
|
|
8
|
+
import { FIGMA_WIDTHS } from "./figma-widths";
|
|
9
|
+
|
|
10
|
+
const actionColumns = [
|
|
11
|
+
{ label: "Primary", prefix: "action-primary" },
|
|
12
|
+
{ label: "Secondary", prefix: "action-secondary" },
|
|
13
|
+
{ label: "Tertiary", prefix: "action-tertiary" },
|
|
14
|
+
{ label: "Quaternary", prefix: "action-quaternary" },
|
|
15
|
+
{ label: "Destructive", prefix: "action-destructive" },
|
|
16
|
+
] as const;
|
|
17
|
+
|
|
18
|
+
const actionStates = ["idle", "on-idle", "hover", "on-hover", "disabled", "on-disabled"] as const;
|
|
19
|
+
|
|
20
|
+
export const ColorsCanvas = () => (
|
|
21
|
+
<FigmaPage title="Colors" width={FIGMA_WIDTHS.colors}>
|
|
22
|
+
<FigmaContent>
|
|
23
|
+
<FigmaSection label="Accent">
|
|
24
|
+
<FigmaGrid gap={24}>
|
|
25
|
+
<SemanticSwatch label="On light" cssVar="--accent-on-light" />
|
|
26
|
+
<SemanticSwatch label="On dark" cssVar="--accent-on-dark" textClassName="text-display-on-dark-primary" />
|
|
27
|
+
<SemanticSwatch label="BG light" cssVar="--accent-bg-light" />
|
|
28
|
+
<SemanticSwatch label="BG lighter" cssVar="--accent-bg-lighter" />
|
|
29
|
+
</FigmaGrid>
|
|
30
|
+
</FigmaSection>
|
|
31
|
+
|
|
32
|
+
<FigmaSection label="Action">
|
|
33
|
+
<FigmaGrid gap={24}>
|
|
34
|
+
{actionColumns.map((column) => (
|
|
35
|
+
<div key={column.prefix} className="flex flex-col gap-6">
|
|
36
|
+
<p className="text-caption-2-em text-display-on-light-tertiary">{column.label}</p>
|
|
37
|
+
{actionStates.map((state) => (
|
|
38
|
+
<SemanticSwatch
|
|
39
|
+
key={state}
|
|
40
|
+
label={state}
|
|
41
|
+
cssVar={`--${column.prefix}-${state}`}
|
|
42
|
+
textClassName={
|
|
43
|
+
state.startsWith("on-") && !state.includes("disabled")
|
|
44
|
+
? "text-white"
|
|
45
|
+
: "text-display-on-light-primary"
|
|
46
|
+
}
|
|
47
|
+
/>
|
|
48
|
+
))}
|
|
49
|
+
</div>
|
|
50
|
+
))}
|
|
51
|
+
</FigmaGrid>
|
|
52
|
+
</FigmaSection>
|
|
53
|
+
|
|
54
|
+
<FigmaSection label="Background">
|
|
55
|
+
<FigmaGrid gap={24}>
|
|
56
|
+
<SemanticSwatch label="Primary" cssVar="--background-primary" />
|
|
57
|
+
<SemanticSwatch label="Secondary" cssVar="--background-secondary" />
|
|
58
|
+
<SemanticSwatch label="Tertiary" cssVar="--background-tertiary" />
|
|
59
|
+
<SemanticSwatch label="Hover" cssVar="--background-hover" textClassName="text-display-on-dark-primary" />
|
|
60
|
+
<SemanticSwatch label="Selected" cssVar="--background-selected" textClassName="text-display-on-dark-primary" />
|
|
61
|
+
<SemanticSwatch label="Overlay" cssVar="--background-overlay" textClassName="text-display-on-dark-primary" />
|
|
62
|
+
</FigmaGrid>
|
|
63
|
+
</FigmaSection>
|
|
64
|
+
|
|
65
|
+
<FigmaSection label="Display">
|
|
66
|
+
<FigmaGrid gap={24}>
|
|
67
|
+
<SemanticSwatch label="On light primary" cssVar="--display-on-light-primary" />
|
|
68
|
+
<SemanticSwatch label="On light secondary" cssVar="--display-on-light-secondary" />
|
|
69
|
+
<SemanticSwatch label="On light tertiary" cssVar="--display-on-light-tertiary" />
|
|
70
|
+
<SemanticSwatch label="On light quaternary" cssVar="--display-on-light-quaternary" />
|
|
71
|
+
<SemanticSwatch label="On dark primary" cssVar="--display-on-dark-primary" textClassName="text-display-on-dark-primary" />
|
|
72
|
+
<SemanticSwatch label="On dark secondary" cssVar="--display-on-dark-secondary" textClassName="text-display-on-dark-primary" />
|
|
73
|
+
<SemanticSwatch label="On dark tertiary" cssVar="--display-on-dark-tertiary" textClassName="text-display-on-dark-primary" />
|
|
74
|
+
<SemanticSwatch label="On dark quaternary" cssVar="--display-on-dark-quaternary" textClassName="text-display-on-dark-primary" />
|
|
75
|
+
</FigmaGrid>
|
|
76
|
+
</FigmaSection>
|
|
77
|
+
|
|
78
|
+
<FigmaSection label="Divider">
|
|
79
|
+
<FigmaGrid gap={24}>
|
|
80
|
+
<SemanticSwatch label="Primary" cssVar="--divider-primary" />
|
|
81
|
+
<SemanticSwatch label="Secondary" cssVar="--divider-secondary" />
|
|
82
|
+
</FigmaGrid>
|
|
83
|
+
</FigmaSection>
|
|
84
|
+
|
|
85
|
+
<FigmaSection label="Meta">
|
|
86
|
+
<FigmaGrid gap={24}>
|
|
87
|
+
<SemanticSwatch label="Green" cssVar="--meta-green" />
|
|
88
|
+
<SemanticSwatch label="On green" cssVar="--meta-on-green" />
|
|
89
|
+
<SemanticSwatch label="Orange" cssVar="--meta-orange" />
|
|
90
|
+
<SemanticSwatch label="On orange" cssVar="--meta-on-orange" />
|
|
91
|
+
<SemanticSwatch label="Red" cssVar="--meta-red" />
|
|
92
|
+
<SemanticSwatch label="On red" cssVar="--meta-on-red" />
|
|
93
|
+
<SemanticSwatch label="Blue" cssVar="--meta-blue" />
|
|
94
|
+
<SemanticSwatch label="On blue" cssVar="--meta-on-blue" />
|
|
95
|
+
<SemanticSwatch label="Purple" cssVar="--meta-purple" />
|
|
96
|
+
<SemanticSwatch label="On purple" cssVar="--meta-on-purple" />
|
|
97
|
+
</FigmaGrid>
|
|
98
|
+
</FigmaSection>
|
|
99
|
+
</FigmaContent>
|
|
100
|
+
</FigmaPage>
|
|
101
|
+
);
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { Badge, Button } from "../../primitives";
|
|
2
|
+
import {
|
|
3
|
+
EmptyState,
|
|
4
|
+
Entry,
|
|
5
|
+
Header,
|
|
6
|
+
Tab,
|
|
7
|
+
Tabs,
|
|
8
|
+
TabsContent,
|
|
9
|
+
TabsList,
|
|
10
|
+
TabsTrigger,
|
|
11
|
+
} from "../../components";
|
|
12
|
+
import { TickIcon } from "../../icons";
|
|
13
|
+
import { WorkflowsIllustration } from "../../illustrations";
|
|
14
|
+
import {
|
|
15
|
+
FigmaContent,
|
|
16
|
+
FigmaGrid,
|
|
17
|
+
FigmaPage,
|
|
18
|
+
FigmaSection,
|
|
19
|
+
FigmaVariant,
|
|
20
|
+
} from "../_layout";
|
|
21
|
+
import { FIGMA_WIDTHS } from "./figma-widths";
|
|
22
|
+
|
|
23
|
+
export const ContentCanvas = () => (
|
|
24
|
+
<FigmaPage title="Content" width={FIGMA_WIDTHS.content}>
|
|
25
|
+
<FigmaContent>
|
|
26
|
+
<FigmaSection label="Tab">
|
|
27
|
+
<FigmaGrid gap={16}>
|
|
28
|
+
<Tab label="Overview" />
|
|
29
|
+
<Tab label="Tasks" state="active" />
|
|
30
|
+
<Tab label="Reports" className="bg-background-hover" />
|
|
31
|
+
</FigmaGrid>
|
|
32
|
+
</FigmaSection>
|
|
33
|
+
|
|
34
|
+
<FigmaSection label="Tabs">
|
|
35
|
+
<div className="max-w-xl space-y-8">
|
|
36
|
+
<FigmaVariant label="Underline">
|
|
37
|
+
<Tabs defaultValue="all" type="tabs">
|
|
38
|
+
<TabsList>
|
|
39
|
+
<TabsTrigger value="all">All</TabsTrigger>
|
|
40
|
+
<TabsTrigger value="reports">Reports</TabsTrigger>
|
|
41
|
+
<TabsTrigger value="issues">Issues</TabsTrigger>
|
|
42
|
+
</TabsList>
|
|
43
|
+
<TabsContent value="all" className="pt-3 text-caption-2 text-display-on-light-secondary">
|
|
44
|
+
All content
|
|
45
|
+
</TabsContent>
|
|
46
|
+
<TabsContent value="reports" className="pt-3 text-caption-2 text-display-on-light-secondary">
|
|
47
|
+
Reports content
|
|
48
|
+
</TabsContent>
|
|
49
|
+
<TabsContent value="issues" className="pt-3 text-caption-2 text-display-on-light-secondary">
|
|
50
|
+
Issues content
|
|
51
|
+
</TabsContent>
|
|
52
|
+
</Tabs>
|
|
53
|
+
</FigmaVariant>
|
|
54
|
+
<FigmaVariant label="Pills · soft">
|
|
55
|
+
<Tabs defaultValue="active" type="pills" appearance="soft">
|
|
56
|
+
<TabsList>
|
|
57
|
+
<TabsTrigger value="active">Active</TabsTrigger>
|
|
58
|
+
<TabsTrigger value="completed">
|
|
59
|
+
Completed
|
|
60
|
+
<Badge color="blue">3</Badge>
|
|
61
|
+
</TabsTrigger>
|
|
62
|
+
</TabsList>
|
|
63
|
+
<TabsContent value="active" className="pt-3 text-caption-2 text-display-on-light-secondary">
|
|
64
|
+
Active content
|
|
65
|
+
</TabsContent>
|
|
66
|
+
<TabsContent value="completed" className="pt-3 text-caption-2 text-display-on-light-secondary">
|
|
67
|
+
Completed content
|
|
68
|
+
</TabsContent>
|
|
69
|
+
</Tabs>
|
|
70
|
+
</FigmaVariant>
|
|
71
|
+
<FigmaVariant label="Pills · solid">
|
|
72
|
+
<Tabs defaultValue="chat" type="pills" appearance="solid">
|
|
73
|
+
<TabsList>
|
|
74
|
+
<TabsTrigger value="chat">Chat</TabsTrigger>
|
|
75
|
+
<TabsTrigger value="questions">
|
|
76
|
+
Questions
|
|
77
|
+
<Badge color="grey">208</Badge>
|
|
78
|
+
</TabsTrigger>
|
|
79
|
+
<TabsTrigger value="review">
|
|
80
|
+
Review
|
|
81
|
+
<Badge color="green" type="icon">
|
|
82
|
+
<TickIcon size="xs" />
|
|
83
|
+
</Badge>
|
|
84
|
+
</TabsTrigger>
|
|
85
|
+
<TabsTrigger value="gaps">
|
|
86
|
+
Gaps
|
|
87
|
+
<Badge color="grey">47</Badge>
|
|
88
|
+
</TabsTrigger>
|
|
89
|
+
</TabsList>
|
|
90
|
+
</Tabs>
|
|
91
|
+
</FigmaVariant>
|
|
92
|
+
</div>
|
|
93
|
+
</FigmaSection>
|
|
94
|
+
|
|
95
|
+
<FigmaSection label="Header">
|
|
96
|
+
<div className="max-w-xl space-y-4">
|
|
97
|
+
<Header title="Fleet overview" />
|
|
98
|
+
<Header
|
|
99
|
+
variant="nested"
|
|
100
|
+
title="Outstanding actions"
|
|
101
|
+
actions={<Button hierarchy="primary">Add</Button>}
|
|
102
|
+
/>
|
|
103
|
+
</div>
|
|
104
|
+
</FigmaSection>
|
|
105
|
+
|
|
106
|
+
<FigmaSection label="Entry">
|
|
107
|
+
<div className="max-w-xl space-y-2">
|
|
108
|
+
<Entry
|
|
109
|
+
variant="chat"
|
|
110
|
+
title="Hull inspection report"
|
|
111
|
+
subtitle="We’ve got a persistent oil leak from the fuel pump."
|
|
112
|
+
/>
|
|
113
|
+
<Entry
|
|
114
|
+
variant="chat"
|
|
115
|
+
state="active"
|
|
116
|
+
title="Ballast Pump Not Starting"
|
|
117
|
+
subtitle="The fuel pump won’t start consistently."
|
|
118
|
+
trailing={<span className="text-display-on-light-secondary">···</span>}
|
|
119
|
+
/>
|
|
120
|
+
<Entry
|
|
121
|
+
variant="issue"
|
|
122
|
+
title="Excessive Rust on Fuel Pump"
|
|
123
|
+
subtitle="Created by Jake Silva on March 28"
|
|
124
|
+
count={3}
|
|
125
|
+
/>
|
|
126
|
+
<Entry
|
|
127
|
+
variant="report"
|
|
128
|
+
title="Engine Room Oil Leak"
|
|
129
|
+
subtitle="We’ve spotted a steady oil leak near the fuel pump."
|
|
130
|
+
/>
|
|
131
|
+
</div>
|
|
132
|
+
</FigmaSection>
|
|
133
|
+
|
|
134
|
+
<FigmaSection label="Empty State">
|
|
135
|
+
<FigmaGrid gap={32}>
|
|
136
|
+
<FigmaVariant label="Default">
|
|
137
|
+
<div className="w-80">
|
|
138
|
+
<EmptyState
|
|
139
|
+
title="No workflows yet"
|
|
140
|
+
description="Create your first workflow to get started."
|
|
141
|
+
/>
|
|
142
|
+
</div>
|
|
143
|
+
</FigmaVariant>
|
|
144
|
+
<FigmaVariant label="With illustration">
|
|
145
|
+
<div className="w-80">
|
|
146
|
+
<EmptyState
|
|
147
|
+
title="No reports"
|
|
148
|
+
illustration={<WorkflowsIllustration className="mx-auto h-24 w-32" />}
|
|
149
|
+
action={{ children: "Create report", hierarchy: "primary" }}
|
|
150
|
+
/>
|
|
151
|
+
</div>
|
|
152
|
+
</FigmaVariant>
|
|
153
|
+
</FigmaGrid>
|
|
154
|
+
</FigmaSection>
|
|
155
|
+
</FigmaContent>
|
|
156
|
+
</FigmaPage>
|
|
157
|
+
);
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { InformationIcon } from "../../icons";
|
|
2
|
+
import {
|
|
3
|
+
Avatar,
|
|
4
|
+
Badge,
|
|
5
|
+
Callout,
|
|
6
|
+
Count,
|
|
7
|
+
GroupedAvatars,
|
|
8
|
+
Logo,
|
|
9
|
+
MenuItem,
|
|
10
|
+
Switch,
|
|
11
|
+
ThinkingDot,
|
|
12
|
+
Tooltip,
|
|
13
|
+
} from "../../primitives";
|
|
14
|
+
import {
|
|
15
|
+
FigmaContent,
|
|
16
|
+
FigmaGrid,
|
|
17
|
+
FigmaPage,
|
|
18
|
+
FigmaRow,
|
|
19
|
+
FigmaSection,
|
|
20
|
+
FigmaVariant,
|
|
21
|
+
} from "../_layout";
|
|
22
|
+
import { FIGMA_WIDTHS } from "./figma-widths";
|
|
23
|
+
|
|
24
|
+
export const CoreCanvas = () => (
|
|
25
|
+
<FigmaPage title="Core" width={FIGMA_WIDTHS.core}>
|
|
26
|
+
<FigmaContent>
|
|
27
|
+
<FigmaSection label="Logo">
|
|
28
|
+
<FigmaGrid gap={24}>
|
|
29
|
+
<Logo chief="technical" />
|
|
30
|
+
<Logo chief="compliance" />
|
|
31
|
+
</FigmaGrid>
|
|
32
|
+
</FigmaSection>
|
|
33
|
+
|
|
34
|
+
<FigmaSection label="Avatar">
|
|
35
|
+
<FigmaRow label="32">
|
|
36
|
+
<Avatar chief="technical" size={32} />
|
|
37
|
+
<Avatar chief="compliance" size={32} />
|
|
38
|
+
<Avatar chief="initials" size={32} initials="AC" />
|
|
39
|
+
</FigmaRow>
|
|
40
|
+
<FigmaRow label="24">
|
|
41
|
+
<Avatar chief="technical" size={24} />
|
|
42
|
+
<Avatar chief="compliance" size={24} />
|
|
43
|
+
<Avatar chief="initials" size={24} initials="JL" />
|
|
44
|
+
</FigmaRow>
|
|
45
|
+
<FigmaRow label="18">
|
|
46
|
+
<Avatar chief="technical" size={18} />
|
|
47
|
+
<Avatar chief="compliance" size={18} />
|
|
48
|
+
</FigmaRow>
|
|
49
|
+
<FigmaRow label="16">
|
|
50
|
+
<Avatar chief="technical" size={16} />
|
|
51
|
+
<Avatar chief="compliance" size={16} />
|
|
52
|
+
</FigmaRow>
|
|
53
|
+
</FigmaSection>
|
|
54
|
+
|
|
55
|
+
<FigmaSection label="Grouped Avatars">
|
|
56
|
+
<FigmaGrid gap={24}>
|
|
57
|
+
<GroupedAvatars count={1} />
|
|
58
|
+
<GroupedAvatars count={2} />
|
|
59
|
+
<GroupedAvatars count={3} />
|
|
60
|
+
</FigmaGrid>
|
|
61
|
+
</FigmaSection>
|
|
62
|
+
|
|
63
|
+
<FigmaSection label="Menu Item">
|
|
64
|
+
<div className="w-64 rounded-control border border-divider-primary p-1">
|
|
65
|
+
<MenuItem header>Section header</MenuItem>
|
|
66
|
+
<MenuItem>Edit workflow</MenuItem>
|
|
67
|
+
<MenuItem className="bg-grey-100">Hover</MenuItem>
|
|
68
|
+
<MenuItem destructive>Delete</MenuItem>
|
|
69
|
+
</div>
|
|
70
|
+
</FigmaSection>
|
|
71
|
+
|
|
72
|
+
<FigmaSection label="Tooltip">
|
|
73
|
+
<FigmaGrid gap={24}>
|
|
74
|
+
<Tooltip content="Short hint">
|
|
75
|
+
<span className="rounded-control border border-divider-primary px-3 py-1 text-caption-2">Hover target</span>
|
|
76
|
+
</Tooltip>
|
|
77
|
+
<Tooltip content="Extended hint with additional context" hint>
|
|
78
|
+
<span className="rounded-control border border-divider-primary px-3 py-1 text-caption-2">Extended hint</span>
|
|
79
|
+
</Tooltip>
|
|
80
|
+
</FigmaGrid>
|
|
81
|
+
</FigmaSection>
|
|
82
|
+
|
|
83
|
+
<FigmaSection label="Thinking Dot">
|
|
84
|
+
<ThinkingDot />
|
|
85
|
+
</FigmaSection>
|
|
86
|
+
|
|
87
|
+
<FigmaSection label="Count">
|
|
88
|
+
<FigmaGrid gap={16}>
|
|
89
|
+
<Count value={3} />
|
|
90
|
+
<Count value={42} />
|
|
91
|
+
<Count value={120} />
|
|
92
|
+
</FigmaGrid>
|
|
93
|
+
</FigmaSection>
|
|
94
|
+
|
|
95
|
+
<FigmaSection label="Switch">
|
|
96
|
+
<FigmaGrid gap={24}>
|
|
97
|
+
<Switch checked={false} onChange={() => {}} />
|
|
98
|
+
<Switch checked onChange={() => {}} />
|
|
99
|
+
<Switch checked={false} disabled onChange={() => {}} />
|
|
100
|
+
</FigmaGrid>
|
|
101
|
+
</FigmaSection>
|
|
102
|
+
|
|
103
|
+
<FigmaSection label="Badge">
|
|
104
|
+
<FigmaGrid gap={16}>
|
|
105
|
+
{(["blue", "green", "red", "orange", "purple", "grey"] as const).map((color) => (
|
|
106
|
+
<FigmaVariant key={color} label={color}>
|
|
107
|
+
<Badge color={color}>Label</Badge>
|
|
108
|
+
</FigmaVariant>
|
|
109
|
+
))}
|
|
110
|
+
</FigmaGrid>
|
|
111
|
+
<FigmaGrid gap={16} className="mt-4">
|
|
112
|
+
<Badge color="blue" type="icon">
|
|
113
|
+
<InformationIcon size="small" />
|
|
114
|
+
</Badge>
|
|
115
|
+
</FigmaGrid>
|
|
116
|
+
</FigmaSection>
|
|
117
|
+
|
|
118
|
+
<FigmaSection label="Callout">
|
|
119
|
+
<Callout icon={<InformationIcon size="small" />}>
|
|
120
|
+
Review the latest inspection report before proceeding.
|
|
121
|
+
</Callout>
|
|
122
|
+
</FigmaSection>
|
|
123
|
+
</FigmaContent>
|
|
124
|
+
</FigmaPage>
|
|
125
|
+
);
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FormCard,
|
|
3
|
+
FormHeader,
|
|
4
|
+
ListRow as FormListRow,
|
|
5
|
+
RiskMeter,
|
|
6
|
+
} from "../../domain/Forms";
|
|
7
|
+
import {
|
|
8
|
+
FigmaContent,
|
|
9
|
+
FigmaGrid,
|
|
10
|
+
FigmaPage,
|
|
11
|
+
FigmaSection,
|
|
12
|
+
FigmaVariant,
|
|
13
|
+
} from "../_layout";
|
|
14
|
+
import { FIGMA_WIDTHS } from "./figma-widths";
|
|
15
|
+
|
|
16
|
+
export const DomainFormsCanvas = () => (
|
|
17
|
+
<FigmaPage title="Domain Forms" width={FIGMA_WIDTHS.domainForms}>
|
|
18
|
+
<FigmaContent>
|
|
19
|
+
<FigmaSection label="Form Card">
|
|
20
|
+
<FigmaGrid gap={24}>
|
|
21
|
+
<div className="w-80">
|
|
22
|
+
<FormCard />
|
|
23
|
+
</div>
|
|
24
|
+
<div className="w-80">
|
|
25
|
+
<FormCard
|
|
26
|
+
name="Safety Management"
|
|
27
|
+
description="ISM Code forms"
|
|
28
|
+
formCount={8}
|
|
29
|
+
pendingCount={2}
|
|
30
|
+
state="hover"
|
|
31
|
+
/>
|
|
32
|
+
</div>
|
|
33
|
+
</FigmaGrid>
|
|
34
|
+
</FigmaSection>
|
|
35
|
+
|
|
36
|
+
<FigmaSection label="Form Header">
|
|
37
|
+
<div className="max-w-xl">
|
|
38
|
+
<FormHeader />
|
|
39
|
+
<div className="mt-4">
|
|
40
|
+
<FormHeader title="ISM Code checklist" status="Pending review" dueDate="Due 30 Jul 2026" />
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</FigmaSection>
|
|
44
|
+
|
|
45
|
+
<FigmaSection label="List Row">
|
|
46
|
+
<div className="max-w-xl space-y-2">
|
|
47
|
+
<FormListRow />
|
|
48
|
+
<FormListRow name="Fire safety checklist" subtitle="Last updated today" state="hover" />
|
|
49
|
+
</div>
|
|
50
|
+
</FigmaSection>
|
|
51
|
+
|
|
52
|
+
<FigmaSection label="Risk Meter">
|
|
53
|
+
<FigmaGrid gap={24}>
|
|
54
|
+
<FigmaVariant label="High">
|
|
55
|
+
<RiskMeter level="high" />
|
|
56
|
+
</FigmaVariant>
|
|
57
|
+
<FigmaVariant label="Medium">
|
|
58
|
+
<RiskMeter level="medium" />
|
|
59
|
+
</FigmaVariant>
|
|
60
|
+
<FigmaVariant label="Low">
|
|
61
|
+
<RiskMeter level="low" score={22} />
|
|
62
|
+
</FigmaVariant>
|
|
63
|
+
</FigmaGrid>
|
|
64
|
+
</FigmaSection>
|
|
65
|
+
</FigmaContent>
|
|
66
|
+
</FigmaPage>
|
|
67
|
+
);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FiltersBar,
|
|
3
|
+
FilteredPill,
|
|
4
|
+
FilterPill,
|
|
5
|
+
} from "../../domain/Filters";
|
|
6
|
+
import {
|
|
7
|
+
FigmaContent,
|
|
8
|
+
FigmaGrid,
|
|
9
|
+
FigmaPage,
|
|
10
|
+
FigmaSection,
|
|
11
|
+
} from "../_layout";
|
|
12
|
+
import { FIGMA_WIDTHS } from "./figma-widths";
|
|
13
|
+
|
|
14
|
+
export const FiltersCanvas = () => (
|
|
15
|
+
<FigmaPage title="Filters" width={FIGMA_WIDTHS.filters}>
|
|
16
|
+
<FigmaContent>
|
|
17
|
+
<FigmaSection label="Filter Pill">
|
|
18
|
+
<FigmaGrid gap={16}>
|
|
19
|
+
<FilterPill />
|
|
20
|
+
<FilterPill indicator="on" />
|
|
21
|
+
</FigmaGrid>
|
|
22
|
+
</FigmaSection>
|
|
23
|
+
|
|
24
|
+
<FigmaSection label="Filtered Pill">
|
|
25
|
+
<FigmaGrid gap={16}>
|
|
26
|
+
<FilteredPill />
|
|
27
|
+
<FilteredPill label="Status: Open" count={5} />
|
|
28
|
+
<FilteredPill label="Priority: High" count={2} state="hover" />
|
|
29
|
+
</FigmaGrid>
|
|
30
|
+
</FigmaSection>
|
|
31
|
+
|
|
32
|
+
<FigmaSection label="Filters Bar">
|
|
33
|
+
<div className="space-y-6">
|
|
34
|
+
<FiltersBar />
|
|
35
|
+
<FiltersBar filters="on" activeTab="Reports" />
|
|
36
|
+
<FiltersBar tabs="off" searchPlaceholder="Search workflows..." />
|
|
37
|
+
</div>
|
|
38
|
+
</FigmaSection>
|
|
39
|
+
</FigmaContent>
|
|
40
|
+
</FigmaPage>
|
|
41
|
+
);
|