@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,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Chief } from '../Sidebar/Switcher';
|
|
3
|
+
export type ChatEntryRole = "user" | "chief";
|
|
4
|
+
export type ChatEntryProps = {
|
|
5
|
+
role?: ChatEntryRole;
|
|
6
|
+
chief?: Chief;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const ChatEntry: ({ role, chief, children, className, }: ChatEntryProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Chief } from '../Sidebar/Switcher';
|
|
2
|
+
export type ChatTileProps = {
|
|
3
|
+
chief?: Chief;
|
|
4
|
+
title?: string;
|
|
5
|
+
preview?: string;
|
|
6
|
+
timestamp?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const ChatTile: ({ chief, title, preview, timestamp, className, }: ChatTileProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Chief } from '../Sidebar/Switcher';
|
|
2
|
+
export type CopilotProps = {
|
|
3
|
+
chief?: Chief;
|
|
4
|
+
empty?: boolean;
|
|
5
|
+
thinking?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const Copilot: ({ chief, empty, thinking, className, }: CopilotProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { Attachment, type AttachmentProps } from './Attachment';
|
|
2
|
+
export { ChatEntry, type ChatEntryProps, type ChatEntryRole } from './ChatEntry';
|
|
3
|
+
export { ChatHeader, type ChatHeaderProps } from './ChatHeader';
|
|
4
|
+
export { ChatInput, type ChatInputProps } from './ChatInput';
|
|
5
|
+
export { ChatStatus, type ChatStatusProps } from './ChatStatus';
|
|
6
|
+
export { ChatTile, type ChatTileProps } from './ChatTile';
|
|
7
|
+
export { Copilot, type CopilotProps } from './Copilot';
|
|
8
|
+
export { Draft, type DraftProps } from './Draft';
|
|
9
|
+
export { Greeting, type GreetingProps } from './Greeting';
|
|
10
|
+
export { Reference, type ReferenceProps } from './Reference';
|
|
11
|
+
export { Source, type SourceProps } from './Source';
|
|
12
|
+
export { Sources, type SourcesProps } from './Sources';
|
|
13
|
+
export { Suggestion, type SuggestionProps } from './Suggestion';
|
|
14
|
+
export { Suggestions, type SuggestionsProps } from './Suggestions';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type InviteeVariant = "single" | "multiple";
|
|
2
|
+
export type InviteeProps = {
|
|
3
|
+
variant?: InviteeVariant;
|
|
4
|
+
name?: string;
|
|
5
|
+
names?: string[];
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const Invitee: ({ variant, name, names, className, }: InviteeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Chief } from '../Sidebar/Switcher';
|
|
2
|
+
export type ModalHeaderVariant = "issue" | "thinking" | "generic" | "settings" | "audit" | "forms";
|
|
3
|
+
export type ModalHeaderProps = {
|
|
4
|
+
variant?: ModalHeaderVariant;
|
|
5
|
+
title?: string;
|
|
6
|
+
chief?: Chief;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const ModalHeader: ({ variant, title, chief, onClose, className, }: ModalHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type PillState = "idle" | "active";
|
|
3
|
+
export type PillSize = "large" | "small";
|
|
4
|
+
export type PillProps = {
|
|
5
|
+
state?: PillState;
|
|
6
|
+
size?: PillSize;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const Pill: ({ state, size, children, className, }: PillProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type PillInfoType = "count" | "completed" | "dropdown";
|
|
2
|
+
export type PillInfoProps = {
|
|
3
|
+
type?: PillInfoType;
|
|
4
|
+
value?: number;
|
|
5
|
+
label?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const PillInfo: ({ type, value, label, className, }: PillInfoProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type ResultRowVariant = "report" | "chat" | "issue";
|
|
2
|
+
export type ResultRowState = "idle";
|
|
3
|
+
export type ResultRowProps = {
|
|
4
|
+
variant?: ResultRowVariant;
|
|
5
|
+
state?: ResultRowState;
|
|
6
|
+
title?: string;
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const ResultRow: ({ variant, state, title, subtitle, className, }: ResultRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type SearchModalState = "idle" | "loading" | "results";
|
|
2
|
+
export type SearchModalProps = {
|
|
3
|
+
state?: SearchModalState;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const SearchModal: ({ state, className }: SearchModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Pill, type PillProps, type PillSize, type PillState } from './Pill';
|
|
2
|
+
export { PillInfo, type PillInfoProps, type PillInfoType } from './PillInfo';
|
|
3
|
+
export { ResultRow, type ResultRowProps, type ResultRowState, type ResultRowVariant } from './ResultRow';
|
|
4
|
+
export { SearchModal, type SearchModalProps, type SearchModalState } from './SearchModal';
|
|
5
|
+
export { SectionHeader, type SectionHeaderProps } from './SectionHeader';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type AccountMenuItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
destructive?: boolean;
|
|
7
|
+
onSelect: () => void;
|
|
8
|
+
};
|
|
9
|
+
export type AccountProps = {
|
|
10
|
+
name?: string;
|
|
11
|
+
avatarSrc?: string;
|
|
12
|
+
collapsed?: boolean;
|
|
13
|
+
/** Storybook / subcomponent grid forced state. */
|
|
14
|
+
state?: "idle" | "hover";
|
|
15
|
+
/** Composed sidebar: true when pointer is over collapsed sidebar (shipping-ai pattern). */
|
|
16
|
+
sidebarHovered?: boolean;
|
|
17
|
+
presentation?: boolean;
|
|
18
|
+
menuItems?: AccountMenuItem[];
|
|
19
|
+
onToggleCollapsed?: () => void;
|
|
20
|
+
className?: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const Account: ({ name, avatarSrc, collapsed, state, sidebarHovered, presentation, menuItems, onToggleCollapsed, className, }: AccountProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import { SidebarEntryMenuItem } from './SidebarEntry';
|
|
3
|
+
import { Chief } from './Switcher';
|
|
4
|
+
export type ActivityNavGroupProps = {
|
|
5
|
+
href: string;
|
|
6
|
+
chief: Chief;
|
|
7
|
+
empty?: boolean;
|
|
8
|
+
label?: string;
|
|
9
|
+
icon?: ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
onNavigate?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
12
|
+
entryMenuItems?: SidebarEntryMenuItem[];
|
|
13
|
+
};
|
|
14
|
+
export declare const ActivityNavGroup: ({ href, chief, empty, label, icon, className, onNavigate, entryMenuItems, }: ActivityNavGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
/** @deprecated Use ActivityNavGroup */
|
|
16
|
+
export declare const Activity: ({ href, chief, empty, label, icon, className, onNavigate, entryMenuItems, }: ActivityNavGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export type ActivityProps = ActivityNavGroupProps;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import { SidebarEntryMenuItem } from './SidebarEntry';
|
|
3
|
+
export type Ship = {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
href?: string;
|
|
7
|
+
count?: number;
|
|
8
|
+
};
|
|
9
|
+
export type CollapsibleNavGroupProps = {
|
|
10
|
+
href: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
icon?: ReactNode;
|
|
13
|
+
expanded: boolean;
|
|
14
|
+
onExpandedChange: (expanded: boolean) => void;
|
|
15
|
+
ships?: Ship[];
|
|
16
|
+
className?: string;
|
|
17
|
+
onNavigate?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
18
|
+
entryMenuItems?: SidebarEntryMenuItem[];
|
|
19
|
+
};
|
|
20
|
+
export declare const CollapsibleNavGroup: ({ href, label, icon, expanded, onExpandedChange, ships, className, onNavigate, entryMenuItems, }: CollapsibleNavGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
/** @deprecated Use CollapsibleNavGroup */
|
|
22
|
+
export declare const Ships: ({ href, label, icon, expanded, onExpandedChange, ships, className, onNavigate, entryMenuItems, }: CollapsibleNavGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export type ShipsProps = CollapsibleNavGroupProps;
|
|
24
|
+
export type ShipsState = "collapsed" | "expanded";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
export type NewChatProps = {
|
|
3
|
+
href?: string;
|
|
4
|
+
collapsed?: boolean;
|
|
5
|
+
state?: "idle" | "hover";
|
|
6
|
+
className?: string;
|
|
7
|
+
presentation?: boolean;
|
|
8
|
+
onNavigate?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const NewChat: ({ href, collapsed, state, presentation, className, onNavigate, }: NewChatProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Chief } from './Switcher';
|
|
2
|
+
export type SidebarProps = {
|
|
3
|
+
chief?: Chief;
|
|
4
|
+
activity?: boolean;
|
|
5
|
+
/** Figma layouts: initial ships expanded. Interactive: toggles via chevron. */
|
|
6
|
+
ships?: boolean;
|
|
7
|
+
collapsed?: boolean;
|
|
8
|
+
showSearch?: boolean;
|
|
9
|
+
/** Frozen Figma grid — no toggles or menus. */
|
|
10
|
+
presentation?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const Sidebar: ({ chief, activity, ships, collapsed, showSearch, presentation, className, }: SidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type SidebarActionProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
icon?: ReactNode;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
active?: boolean;
|
|
7
|
+
collapsed?: boolean;
|
|
8
|
+
tooltip?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const SidebarAction: ({ label, icon, onClick, active, collapsed, tooltip, className, }: SidebarActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MouseEvent, ReactNode } from 'react';
|
|
2
|
+
export type SidebarEntryMenuItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
destructive?: boolean;
|
|
7
|
+
onSelect: () => void;
|
|
8
|
+
};
|
|
9
|
+
export type SidebarEntryState = "idle" | "hover" | "selected";
|
|
10
|
+
export type SidebarEntryProps = {
|
|
11
|
+
href: string;
|
|
12
|
+
label: string;
|
|
13
|
+
state?: SidebarEntryState;
|
|
14
|
+
icon?: ReactNode;
|
|
15
|
+
badge?: ReactNode;
|
|
16
|
+
menuItems?: SidebarEntryMenuItem[];
|
|
17
|
+
forceMenuVisible?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
onNavigate?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
20
|
+
};
|
|
21
|
+
export declare const SidebarEntry: ({ href, label, state, icon, badge, menuItems, forceMenuVisible, className, onNavigate, }: SidebarEntryProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
/** @deprecated Use SidebarEntry */
|
|
23
|
+
export declare const Entry: ({ href, label, state, icon, badge, menuItems, forceMenuVisible, className, onNavigate, }: SidebarEntryProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export type EntryProps = SidebarEntryProps;
|
|
25
|
+
export type EntryState = SidebarEntryState;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type SidebarHeadingProps = {
|
|
2
|
+
title: string;
|
|
3
|
+
/** Figma Collapsed=On — section label with trailing chevron */
|
|
4
|
+
collapsed?: boolean;
|
|
5
|
+
state?: "idle" | "hover";
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const SidebarHeading: ({ title, collapsed, state, className, }: SidebarHeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
/** @deprecated Use SidebarHeading */
|
|
10
|
+
export declare const Heading: ({ title, collapsed, state, className, }: SidebarHeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export type HeadingProps = SidebarHeadingProps;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MouseEvent, ReactNode } from 'react';
|
|
2
|
+
export type SidebarLinkState = "idle" | "hover" | "active";
|
|
3
|
+
export type SidebarLinkProps = {
|
|
4
|
+
href: string;
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
state?: SidebarLinkState;
|
|
8
|
+
collapsed?: boolean;
|
|
9
|
+
tall?: boolean;
|
|
10
|
+
badge?: ReactNode;
|
|
11
|
+
trailing?: ReactNode;
|
|
12
|
+
tooltip?: string;
|
|
13
|
+
presentation?: boolean;
|
|
14
|
+
unread?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
onNavigate?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const SidebarLink: ({ href, label, icon, state, collapsed, tall, badge, trailing, tooltip, presentation, unread, className, onNavigate, }: SidebarLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
/** @deprecated Use SidebarLink */
|
|
20
|
+
export declare const Section: ({ href, label, icon, state, collapsed, tall, badge, trailing, tooltip, presentation, unread, className, onNavigate, }: SidebarLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export type SectionProps = SidebarLinkProps;
|
|
22
|
+
export type SectionState = SidebarLinkState;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type SidebarShellProps = {
|
|
3
|
+
sidebar: ReactNode;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** Pixels subtracted from viewport height (e.g. app banner). */
|
|
6
|
+
bannerOffset?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
mainClassName?: string;
|
|
9
|
+
};
|
|
10
|
+
/** Viewport-height app shell: sidebar stays put, main scrolls independently. */
|
|
11
|
+
export declare const SidebarShell: ({ sidebar, children, bannerOffset, className, mainClassName, }: SidebarShellProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type Chief = "technical" | "compliance";
|
|
2
|
+
export type SwitcherProps = {
|
|
3
|
+
chief: Chief;
|
|
4
|
+
expanded?: boolean;
|
|
5
|
+
onChiefChange?: (chief: Chief) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const Switcher: ({ chief, expanded, onChiefChange, className, }: SwitcherProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export type FigmaActivityIcon = "status" | "statusClosed" | "chat" | "chatPro";
|
|
2
|
+
export declare const FIGMA_ACTIVITY_ENTRIES: readonly [{
|
|
3
|
+
readonly id: "1";
|
|
4
|
+
readonly label: "Winch Slipping Under Load";
|
|
5
|
+
readonly href: "#chat-1";
|
|
6
|
+
readonly count: 1;
|
|
7
|
+
readonly icon: "status";
|
|
8
|
+
}, {
|
|
9
|
+
readonly id: "2";
|
|
10
|
+
readonly label: "Excessive Vibration Propeller Shaft";
|
|
11
|
+
readonly href: "#chat-2";
|
|
12
|
+
readonly icon: "chatPro";
|
|
13
|
+
}, {
|
|
14
|
+
readonly id: "3";
|
|
15
|
+
readonly label: "Winch Slipping Under Load";
|
|
16
|
+
readonly href: "#chat-3";
|
|
17
|
+
readonly icon: "chat";
|
|
18
|
+
}, {
|
|
19
|
+
readonly id: "4";
|
|
20
|
+
readonly label: "Freshwater Pressure Drop Causes";
|
|
21
|
+
readonly href: "#chat-4";
|
|
22
|
+
readonly icon: "chat";
|
|
23
|
+
}, {
|
|
24
|
+
readonly id: "5";
|
|
25
|
+
readonly label: "Excessive Vibration Propeller Shaft";
|
|
26
|
+
readonly href: "#chat-5";
|
|
27
|
+
readonly icon: "status";
|
|
28
|
+
}, {
|
|
29
|
+
readonly id: "6";
|
|
30
|
+
readonly label: "Freshwater Pressure Drop Causes";
|
|
31
|
+
readonly href: "#chat-6";
|
|
32
|
+
readonly icon: "statusClosed";
|
|
33
|
+
}, {
|
|
34
|
+
readonly id: "7";
|
|
35
|
+
readonly label: "Rust Prevention On Deck Fittings";
|
|
36
|
+
readonly href: "#chat-7";
|
|
37
|
+
readonly icon: "chatPro";
|
|
38
|
+
}, {
|
|
39
|
+
readonly id: "8";
|
|
40
|
+
readonly label: "Persistent Engine Room Oil Leak";
|
|
41
|
+
readonly href: "#chat-8";
|
|
42
|
+
readonly icon: "chat";
|
|
43
|
+
}];
|
|
44
|
+
export declare const FIGMA_SHIP_ENTRIES: readonly [{
|
|
45
|
+
readonly id: "1";
|
|
46
|
+
readonly name: "The Coral Explorer";
|
|
47
|
+
readonly href: "#ship-1";
|
|
48
|
+
readonly count: 3;
|
|
49
|
+
}, {
|
|
50
|
+
readonly id: "2";
|
|
51
|
+
readonly name: "Silver Wave";
|
|
52
|
+
readonly href: "#ship-2";
|
|
53
|
+
readonly count: 1;
|
|
54
|
+
}, {
|
|
55
|
+
readonly id: "3";
|
|
56
|
+
readonly name: "Ocean Voyager";
|
|
57
|
+
readonly href: "#ship-3";
|
|
58
|
+
}, {
|
|
59
|
+
readonly id: "4";
|
|
60
|
+
readonly name: "Albatross Wind";
|
|
61
|
+
readonly href: "#ship-4";
|
|
62
|
+
}];
|
|
63
|
+
export declare const FIGMA_ACCOUNT_NAME = "Panos Tsamoudakis";
|
|
64
|
+
export declare const FIGMA_SECTION_LABEL = "Name";
|
|
65
|
+
export declare const FIGMA_HEADING_LABEL = "Label";
|
|
66
|
+
export declare const FIGMA_ENTRY_LABEL = "New chat";
|
|
67
|
+
export declare const DEMO_SIDEBAR_ENTRY_MENU_ITEMS: readonly [{
|
|
68
|
+
readonly id: "example-1";
|
|
69
|
+
readonly label: "Example one";
|
|
70
|
+
readonly onSelect: () => undefined;
|
|
71
|
+
}, {
|
|
72
|
+
readonly id: "example-2";
|
|
73
|
+
readonly label: "Example two";
|
|
74
|
+
readonly onSelect: () => undefined;
|
|
75
|
+
}];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Chief } from './Switcher';
|
|
2
|
+
export type FigmaNavItemId = "search" | "workflows" | "analytics" | "forms" | "ships" | "defectReports" | "tasks" | "knowledge" | "activity";
|
|
3
|
+
export type FigmaCollapsedNavItem = {
|
|
4
|
+
id: FigmaNavItemId;
|
|
5
|
+
unread?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type FigmaSidebarNavConfig = {
|
|
8
|
+
expandedItems: FigmaNavItemId[];
|
|
9
|
+
collapsedItems: FigmaCollapsedNavItem[];
|
|
10
|
+
};
|
|
11
|
+
export declare const FIGMA_NAV_LABELS: Record<FigmaNavItemId, string>;
|
|
12
|
+
export declare const getFigmaSidebarNav: (chief: Chief) => FigmaSidebarNavConfig;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { Account, type AccountMenuItem, type AccountProps } from './Account';
|
|
2
|
+
export { ActivityNavGroup, Activity, type ActivityNavGroupProps, type ActivityProps } from './ActivityNavGroup';
|
|
3
|
+
export { CollapsibleNavGroup, Ships, type CollapsibleNavGroupProps, type Ship, type ShipsProps } from './CollapsibleNavGroup';
|
|
4
|
+
export { SIDEBAR_COLLAPSED_WIDTH, SIDEBAR_EXPANDED_WIDTH } from './constants';
|
|
5
|
+
export { Entry, SidebarEntry, type EntryProps, type EntryState, type SidebarEntryMenuItem, type SidebarEntryProps, type SidebarEntryState } from './SidebarEntry';
|
|
6
|
+
export { Heading, SidebarHeading, type HeadingProps, type SidebarHeadingProps } from './SidebarHeading';
|
|
7
|
+
export { Indicator, type IndicatorProps } from './Indicator';
|
|
8
|
+
export { NewChat, type NewChatProps } from './NewChat';
|
|
9
|
+
export { Section, SidebarLink, type SectionProps, type SectionState, type SidebarLinkProps, type SidebarLinkState } from './SidebarLink';
|
|
10
|
+
export { SidebarAction, type SidebarActionProps } from './SidebarAction';
|
|
11
|
+
export { Sidebar, type SidebarProps } from './Sidebar';
|
|
12
|
+
export { SidebarShell, type SidebarShellProps } from './SidebarShell';
|
|
13
|
+
export { Switcher, type Chief, type SwitcherProps } from './Switcher';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** Figma sidebar surfaces use translucent grey overlays, not solid background-hover tokens. */
|
|
2
|
+
export declare const sidebarSurfaceHover = "bg-[rgba(38,36,32,0.04)]";
|
|
3
|
+
export declare const sidebarSurfaceSelected = "bg-[rgba(38,36,32,0.08)]";
|
|
4
|
+
/** 8px between top-level sidebar blocks (Figma Top gap). */
|
|
5
|
+
export declare const sidebarBlockGap = "gap-2";
|
|
6
|
+
/** 4px between entries inside a group (Activity, Ships). */
|
|
7
|
+
export declare const sidebarGroupGap = "gap-1";
|
|
8
|
+
/** Section row shell — 36px total (Figma Section symbols). */
|
|
9
|
+
export declare const sidebarSectionShell = "box-border flex h-9 w-full items-center rounded-control p-2";
|
|
10
|
+
/** Taller section row — 40px (New chat, Ships header). */
|
|
11
|
+
export declare const sidebarSectionShellTall = "box-border flex h-10 w-full items-center rounded-control p-2";
|
|
12
|
+
/** Collapsed icon-only section — Figma Section/Collapsed On: w-full, p-2, 16px icon. */
|
|
13
|
+
export declare const sidebarSectionShellCollapsed = "relative box-border flex w-full flex-col items-center justify-center rounded-control p-2";
|
|
14
|
+
/** Figma Indicator overlay — 24×24 anchored top-left of icon content. */
|
|
15
|
+
export declare const sidebarUnreadOverlay = "pointer-events-none absolute left-0 top-0 size-6";
|
|
16
|
+
/** Figma unread dot — ~6px, top-right of the 24px indicator overlay. */
|
|
17
|
+
export declare const sidebarUnreadDot = "absolute right-0 top-0 size-1.5 rounded-full bg-[#802c20]";
|
|
18
|
+
export declare const sidebarSectionContent = "flex w-full min-w-0 items-center gap-2 pl-1";
|
|
19
|
+
export declare const sidebarSectionIconClass = "shrink-0 [&>svg]:size-4";
|
|
20
|
+
export declare const sidebarSectionLabelClass = "min-w-0 flex-1 truncate text-caption-2 tracking-[0.01em]";
|
|
21
|
+
/** Figma sidebar icon buttons — transparent idle, grey hover (no white fill). */
|
|
22
|
+
export declare const sidebarQuaternaryIconButton = "bg-transparent text-action-quaternary-on-idle hover:bg-[rgba(38,36,32,0.04)] hover:text-action-quaternary-on-hover disabled:bg-transparent disabled:opacity-50";
|
|
23
|
+
/** Scrollable nav region — thin thumb flush to the right edge (matches shipping-ai). */
|
|
24
|
+
export declare const sidebarScrollRegion = "sidebar-scroll flex min-h-0 flex-1 flex-col overflow-x-hidden overflow-y-auto";
|
|
25
|
+
/** Nav row — grey hover surface (Section, Entry, collapsed + expanded). */
|
|
26
|
+
export declare const sidebarRowInteractiveHover = "transition-colors hover:bg-[rgba(38,36,32,0.04)] hover:text-display-on-light-primary";
|
|
27
|
+
/** @deprecated Use sidebarRowInteractiveHover */
|
|
28
|
+
export declare const sidebarCollapsedRowHover = "transition-colors hover:bg-[rgba(38,36,32,0.04)] hover:text-display-on-light-primary";
|
|
29
|
+
/** New chat — primary blue hover (Figma New chat Hover variant). */
|
|
30
|
+
export declare const sidebarNewChatInteractiveHover = "group/newchat transition-colors hover:bg-action-primary-hover hover:text-action-primary-on-hover";
|
|
31
|
+
export declare const sidebarNewChatIconHover = "group-hover/newchat:text-action-primary-on-hover";
|
|
32
|
+
export declare const sidebarLinkIdle = "text-display-on-light-secondary";
|
|
33
|
+
export declare const sidebarLinkHover: string;
|
|
34
|
+
export declare const sidebarLinkActive: string;
|
|
35
|
+
export declare const sidebarEntryIdle = "text-display-on-light-secondary";
|
|
36
|
+
export declare const sidebarEntryHover: string;
|
|
37
|
+
export declare const sidebarEntrySelected: string;
|
|
38
|
+
/** Entry row — Figma min-h-[36px] px-[8px] py-[6px]. */
|
|
39
|
+
export declare const sidebarEntryShell = "box-border flex h-9 w-full items-center gap-1 rounded-control px-2 py-1.5";
|
|
40
|
+
export declare const sidebarRowPadding = "px-2 py-1.5";
|
|
41
|
+
export declare const sidebarRowMinHeight = "min-h-9";
|
|
42
|
+
export declare const sidebarRowRadius = "rounded-control";
|
|
43
|
+
export declare const sidebarRowClass: (className?: string) => string;
|
|
44
|
+
export declare const sidebarAnchorClass: (className?: string) => string;
|
|
45
|
+
export declare const sidebarSectionAnchorClass: (className?: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Skeleton, type SkeletonProps, type SkeletonVariant } from './Skeleton';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type ChiefType = "technical" | "compliance" | "initials";
|
|
2
|
+
type AvatarSize = 32 | 24 | 18 | 16;
|
|
3
|
+
export type AvatarProps = {
|
|
4
|
+
chief: ChiefType;
|
|
5
|
+
size?: AvatarSize;
|
|
6
|
+
initials?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const Avatar: ({ chief, size, initials, className }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type BadgeColor = "blue" | "green" | "red" | "orange" | "purple" | "grey";
|
|
3
|
+
type BadgeType = "label" | "icon";
|
|
4
|
+
export type BadgeProps = {
|
|
5
|
+
color: BadgeColor;
|
|
6
|
+
type?: BadgeType;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const Badge: ({ color, type, children, className }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|