@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.
- 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 +13 -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/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 +11 -12
- package/dist/components/index.d.ts +11 -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 +10964 -36537
- 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 +10 -0
- package/dist/patterns/Search/SearchModal.d.ts +6 -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 +11 -0
- package/dist/primitives/Button.d.ts +13 -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/index.d.ts +13 -0
- package/dist/style.css +1 -1
- package/dist/tailwind-theme.d.ts +234 -198
- 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 +27 -5
- 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 +64 -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/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 +43 -38
- package/src/components/index.ts +11 -4
- 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 +49 -3
- 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 +52 -0
- package/src/patterns/Search/SearchModal.tsx +88 -0
- package/src/patterns/Search/SectionHeader.tsx +20 -0
- package/src/patterns/Search/index.ts +5 -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 +57 -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 +34 -0
- package/src/primitives/Button.tsx +67 -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/index.ts +13 -0
- package/src/stories/_layout/FigmaPage.tsx +94 -0
- package/src/stories/_layout/index.ts +8 -0
- package/src/stories/canvases/ButtonsCanvas.tsx +57 -0
- package/src/stories/canvases/ButtonsMatrixCanvas.tsx +64 -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 +88 -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 +65 -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-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 +163 -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/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/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,64 @@
|
|
|
1
|
+
import { AddIcon } from "../../icons";
|
|
2
|
+
import { Button } from "../../primitives";
|
|
3
|
+
import {
|
|
4
|
+
FigmaContent,
|
|
5
|
+
FigmaPage,
|
|
6
|
+
FigmaRow,
|
|
7
|
+
FigmaSection,
|
|
8
|
+
} from "../_layout";
|
|
9
|
+
import { ButtonSnapshot } from "./helpers";
|
|
10
|
+
import { FIGMA_WIDTHS } from "./figma-widths";
|
|
11
|
+
|
|
12
|
+
const hierarchies = ["primary", "secondary", "tertiary", "quaternary"] as const;
|
|
13
|
+
const columnLabels = ["Primary", "Secondary", "Tertiary", "Quaternary", "Destructive"];
|
|
14
|
+
const rowLabels = ["Idle", "Hover", "Disabled"];
|
|
15
|
+
|
|
16
|
+
export const ButtonsMatrixCanvas = () => (
|
|
17
|
+
<FigmaPage title="Buttons" width={FIGMA_WIDTHS.buttonsMatrix}>
|
|
18
|
+
<FigmaContent>
|
|
19
|
+
<FigmaSection>
|
|
20
|
+
<div className="mb-4 grid grid-cols-[104px_repeat(5,1fr)] gap-4">
|
|
21
|
+
<div />
|
|
22
|
+
{columnLabels.map((label) => (
|
|
23
|
+
<p key={label} className="text-center text-caption-1 text-display-on-light-secondary">
|
|
24
|
+
{label}
|
|
25
|
+
</p>
|
|
26
|
+
))}
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
{rowLabels.map((rowLabel) => (
|
|
30
|
+
<FigmaRow key={rowLabel} label={rowLabel} gap={24}>
|
|
31
|
+
<div className="w-24" />
|
|
32
|
+
{hierarchies.map((hierarchy) => (
|
|
33
|
+
<ButtonSnapshot
|
|
34
|
+
key={hierarchy}
|
|
35
|
+
hierarchy={hierarchy}
|
|
36
|
+
visualState={rowLabel.toLowerCase() as "idle" | "hover" | "disabled"}
|
|
37
|
+
/>
|
|
38
|
+
))}
|
|
39
|
+
<ButtonSnapshot
|
|
40
|
+
hierarchy="primary"
|
|
41
|
+
outcome="destructive"
|
|
42
|
+
visualState={rowLabel.toLowerCase() as "idle" | "hover" | "disabled"}
|
|
43
|
+
/>
|
|
44
|
+
</FigmaRow>
|
|
45
|
+
))}
|
|
46
|
+
|
|
47
|
+
<FigmaRow label="Idle" gap={24}>
|
|
48
|
+
<div className="w-24" />
|
|
49
|
+
<Button startIcon={<AddIcon />} className="min-w-[304px]">
|
|
50
|
+
New chat
|
|
51
|
+
</Button>
|
|
52
|
+
</FigmaRow>
|
|
53
|
+
|
|
54
|
+
<FigmaRow label="Hover" gap={24}>
|
|
55
|
+
<div className="w-24" />
|
|
56
|
+
<span className="inline-flex min-h-10 min-w-[304px] items-center justify-center gap-2 rounded-control bg-action-primary-hover px-2 text-caption-1 text-action-primary-on-hover">
|
|
57
|
+
<AddIcon />
|
|
58
|
+
New chat
|
|
59
|
+
</span>
|
|
60
|
+
</FigmaRow>
|
|
61
|
+
</FigmaSection>
|
|
62
|
+
</FigmaContent>
|
|
63
|
+
</FigmaPage>
|
|
64
|
+
);
|
|
@@ -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,88 @@
|
|
|
1
|
+
import { Button } from "../../primitives";
|
|
2
|
+
import {
|
|
3
|
+
EmptyState,
|
|
4
|
+
Entry,
|
|
5
|
+
Header,
|
|
6
|
+
Tab,
|
|
7
|
+
Tabs,
|
|
8
|
+
} from "../../components";
|
|
9
|
+
import { WorkflowsIllustration } from "../../illustrations";
|
|
10
|
+
import {
|
|
11
|
+
FigmaContent,
|
|
12
|
+
FigmaGrid,
|
|
13
|
+
FigmaPage,
|
|
14
|
+
FigmaSection,
|
|
15
|
+
FigmaVariant,
|
|
16
|
+
} from "../_layout";
|
|
17
|
+
import { FIGMA_WIDTHS } from "./figma-widths";
|
|
18
|
+
|
|
19
|
+
export const ContentCanvas = () => (
|
|
20
|
+
<FigmaPage title="Content" width={FIGMA_WIDTHS.content}>
|
|
21
|
+
<FigmaContent>
|
|
22
|
+
<FigmaSection label="Tab">
|
|
23
|
+
<FigmaGrid gap={16}>
|
|
24
|
+
<Tab label="Overview" />
|
|
25
|
+
<Tab label="Tasks" state="active" />
|
|
26
|
+
<Tab label="Reports" className="bg-background-hover" />
|
|
27
|
+
</FigmaGrid>
|
|
28
|
+
</FigmaSection>
|
|
29
|
+
|
|
30
|
+
<FigmaSection label="Tabs">
|
|
31
|
+
<div className="max-w-xl space-y-6">
|
|
32
|
+
<Tabs
|
|
33
|
+
items={[{ label: "All" }, { label: "Reports" }, { label: "Issues" }]}
|
|
34
|
+
activeIndex={0}
|
|
35
|
+
onChange={() => {}}
|
|
36
|
+
/>
|
|
37
|
+
<Tabs
|
|
38
|
+
type="pills"
|
|
39
|
+
items={[{ label: "Active" }, { label: "Completed" }]}
|
|
40
|
+
activeIndex={1}
|
|
41
|
+
onChange={() => {}}
|
|
42
|
+
/>
|
|
43
|
+
</div>
|
|
44
|
+
</FigmaSection>
|
|
45
|
+
|
|
46
|
+
<FigmaSection label="Header">
|
|
47
|
+
<div className="max-w-xl space-y-4">
|
|
48
|
+
<Header title="Fleet overview" />
|
|
49
|
+
<Header
|
|
50
|
+
variant="nested"
|
|
51
|
+
title="Outstanding actions"
|
|
52
|
+
actions={<Button hierarchy="primary">Add</Button>}
|
|
53
|
+
/>
|
|
54
|
+
</div>
|
|
55
|
+
</FigmaSection>
|
|
56
|
+
|
|
57
|
+
<FigmaSection label="Entry">
|
|
58
|
+
<div className="max-w-xl space-y-2">
|
|
59
|
+
<Entry type="chat" title="Hull inspection report" subtitle="2 hours ago" meta="17" />
|
|
60
|
+
<Entry type="issue" title="Critical valve malfunction" state="selected" meta="High" />
|
|
61
|
+
<Entry type="chat" title="Port state control checklist" subtitle="Yesterday" className="bg-background-hover" />
|
|
62
|
+
</div>
|
|
63
|
+
</FigmaSection>
|
|
64
|
+
|
|
65
|
+
<FigmaSection label="Empty State">
|
|
66
|
+
<FigmaGrid gap={32}>
|
|
67
|
+
<FigmaVariant label="Default">
|
|
68
|
+
<div className="w-80">
|
|
69
|
+
<EmptyState
|
|
70
|
+
title="No workflows yet"
|
|
71
|
+
description="Create your first workflow to get started."
|
|
72
|
+
/>
|
|
73
|
+
</div>
|
|
74
|
+
</FigmaVariant>
|
|
75
|
+
<FigmaVariant label="With illustration">
|
|
76
|
+
<div className="w-80">
|
|
77
|
+
<EmptyState
|
|
78
|
+
title="No reports"
|
|
79
|
+
illustration={<WorkflowsIllustration className="mx-auto h-24 w-32" />}
|
|
80
|
+
action={{ children: "Create report", hierarchy: "primary" }}
|
|
81
|
+
/>
|
|
82
|
+
</div>
|
|
83
|
+
</FigmaVariant>
|
|
84
|
+
</FigmaGrid>
|
|
85
|
+
</FigmaSection>
|
|
86
|
+
</FigmaContent>
|
|
87
|
+
</FigmaPage>
|
|
88
|
+
);
|
|
@@ -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
|
+
);
|