@lateralus-ai/shipping-ui 1.4.16 → 2.0.0-dev.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -53
- package/dist/components/Checkbox.d.ts +9 -0
- package/dist/components/Chip.d.ts +15 -0
- package/dist/components/EmptyState.d.ts +10 -0
- package/dist/components/Entry.d.ts +33 -0
- package/dist/components/Header.d.ts +9 -0
- package/dist/components/Input.d.ts +11 -0
- package/dist/components/InputType.d.ts +10 -0
- package/dist/components/Modal.d.ts +36 -0
- package/dist/components/ModalPanel.d.ts +7 -7
- package/dist/components/PdfViewer/ImageViewer.d.ts +2 -2
- package/dist/components/PdfViewer/PdfViewer.d.ts +2 -2
- package/dist/components/ReportInput.d.ts +10 -0
- package/dist/components/Tab.d.ts +7 -0
- package/dist/components/Tabs.d.ts +26 -12
- package/dist/components/index.d.ts +12 -4
- package/dist/domain/Filters/FilterPill.d.ts +6 -0
- package/dist/domain/Filters/FilteredPill.d.ts +8 -0
- package/dist/domain/Filters/FiltersBar.d.ts +12 -0
- package/dist/domain/Filters/index.d.ts +3 -0
- package/dist/domain/Forms/FormCard.d.ts +12 -0
- package/dist/domain/Forms/FormHeader.d.ts +8 -0
- package/dist/domain/Forms/ListRow.d.ts +8 -0
- package/dist/domain/Forms/RiskMeter.d.ts +8 -0
- package/dist/domain/Forms/index.d.ts +4 -0
- package/dist/domain/Library/File.d.ts +8 -0
- package/dist/domain/Library/Folder.d.ts +8 -0
- package/dist/domain/Library/Folders.d.ts +11 -0
- package/dist/domain/Library/ListRow.d.ts +8 -0
- package/dist/domain/Library/Navigation.d.ts +7 -0
- package/dist/domain/Library/index.d.ts +5 -0
- package/dist/domain/Report/InfoHeading.d.ts +7 -0
- package/dist/domain/Report/InfoRow.d.ts +8 -0
- package/dist/domain/Report/Report.d.ts +7 -0
- package/dist/domain/Report/SectionHeader.d.ts +10 -0
- package/dist/domain/Report/TaskRow.d.ts +11 -0
- package/dist/domain/Report/index.d.ts +5 -0
- package/dist/domain/Settings/EquipmentRow.d.ts +8 -0
- package/dist/domain/Settings/MemberRow.d.ts +11 -0
- package/dist/domain/Settings/SettingRow.d.ts +10 -0
- package/dist/domain/Settings/index.d.ts +3 -0
- package/dist/domain/Ships/ShipRow.d.ts +10 -0
- package/dist/domain/Ships/index.d.ts +1 -0
- package/dist/domain/Workflows/GroupHeader.d.ts +8 -0
- package/dist/domain/Workflows/Importance.d.ts +8 -0
- package/dist/domain/Workflows/Progress.d.ts +7 -0
- package/dist/domain/Workflows/Question.d.ts +9 -0
- package/dist/domain/Workflows/StatusPopover.d.ts +7 -0
- package/dist/domain/Workflows/Task.d.ts +9 -0
- package/dist/domain/Workflows/TaskHeader.d.ts +9 -0
- package/dist/domain/Workflows/WorkflowFilters.d.ts +6 -0
- package/dist/domain/Workflows/WorkflowForm.d.ts +8 -0
- package/dist/domain/Workflows/WorkflowHeader.d.ts +11 -0
- package/dist/domain/Workflows/WorkflowListItem.d.ts +11 -0
- package/dist/domain/Workflows/WorkflowProgress.d.ts +6 -0
- package/dist/domain/Workflows/WorkflowRow.d.ts +10 -0
- package/dist/domain/Workflows/index.d.ts +13 -0
- package/dist/domain/index.d.ts +7 -0
- package/dist/icons/ArrowIcon.d.ts +8 -0
- package/dist/icons/ChevronIcon.d.ts +8 -0
- package/dist/icons/Icon.d.ts +96 -0
- package/dist/icons/arrow-paths.d.ts +12 -0
- package/dist/icons/chevron-paths.d.ts +27 -0
- package/dist/icons/createIcon.d.ts +34 -0
- package/dist/icons/generated.d.ts +68 -0
- package/dist/icons/icon-sizes.d.ts +5 -0
- package/dist/icons/icons-data.d.ts +1023 -0
- package/dist/icons/index.d.ts +13 -0
- package/dist/icons/types.d.ts +10 -0
- package/dist/illustrations/AuditPreparation.d.ts +4 -0
- package/dist/illustrations/CompletedTasks.d.ts +4 -0
- package/dist/illustrations/Creation.d.ts +4 -0
- package/dist/illustrations/InternalAudit.d.ts +4 -0
- package/dist/illustrations/Invite.d.ts +4 -0
- package/dist/illustrations/PortStateControl.d.ts +4 -0
- package/dist/illustrations/Processing.d.ts +4 -0
- package/dist/illustrations/QuestionsDone.d.ts +4 -0
- package/dist/illustrations/RightShipInspection.d.ts +4 -0
- package/dist/illustrations/Upload.d.ts +4 -0
- package/dist/illustrations/WorkflowCreated.d.ts +4 -0
- package/dist/illustrations/Workflows.d.ts +4 -0
- package/dist/illustrations/createIllustration.d.ts +11 -0
- package/dist/illustrations/index.d.ts +13 -0
- package/dist/index.cjs +64 -80
- package/dist/index.d.ts +9 -3
- package/dist/index.esm.js +11535 -36619
- package/dist/patterns/Chat/Attachment.d.ts +6 -0
- package/dist/patterns/Chat/ChatEntry.d.ts +10 -0
- package/dist/patterns/Chat/ChatHeader.d.ts +7 -0
- package/dist/patterns/Chat/ChatInput.d.ts +5 -0
- package/dist/patterns/Chat/ChatStatus.d.ts +6 -0
- package/dist/patterns/Chat/ChatTile.d.ts +9 -0
- package/dist/patterns/Chat/Copilot.d.ts +8 -0
- package/dist/patterns/Chat/Draft.d.ts +5 -0
- package/dist/patterns/Chat/Greeting.d.ts +7 -0
- package/dist/patterns/Chat/Reference.d.ts +6 -0
- package/dist/patterns/Chat/Source.d.ts +6 -0
- package/dist/patterns/Chat/Sources.d.ts +5 -0
- package/dist/patterns/Chat/Suggestion.d.ts +5 -0
- package/dist/patterns/Chat/Suggestions.d.ts +4 -0
- package/dist/patterns/Chat/index.d.ts +14 -0
- package/dist/patterns/Modal/Invitee.d.ts +8 -0
- package/dist/patterns/Modal/ModalFooter.d.ts +6 -0
- package/dist/patterns/Modal/ModalHeader.d.ts +10 -0
- package/dist/patterns/Modal/index.d.ts +3 -0
- package/dist/patterns/Search/Pill.d.ts +10 -0
- package/dist/patterns/Search/PillInfo.d.ts +8 -0
- package/dist/patterns/Search/ResultRow.d.ts +19 -0
- package/dist/patterns/Search/SearchModal.d.ts +88 -0
- package/dist/patterns/Search/SectionHeader.d.ts +5 -0
- package/dist/patterns/Search/index.d.ts +5 -0
- package/dist/patterns/Sidebar/Account.d.ts +22 -0
- package/dist/patterns/Sidebar/ActivityNavGroup.d.ts +17 -0
- package/dist/patterns/Sidebar/CollapsibleNavGroup.d.ts +24 -0
- package/dist/patterns/Sidebar/Indicator.d.ts +6 -0
- package/dist/patterns/Sidebar/NewChat.d.ts +10 -0
- package/dist/patterns/Sidebar/Sidebar.d.ts +13 -0
- package/dist/patterns/Sidebar/SidebarAction.d.ts +11 -0
- package/dist/patterns/Sidebar/SidebarEntry.d.ts +25 -0
- package/dist/patterns/Sidebar/SidebarHeading.d.ts +11 -0
- package/dist/patterns/Sidebar/SidebarLink.d.ts +22 -0
- package/dist/patterns/Sidebar/SidebarShell.d.ts +11 -0
- package/dist/patterns/Sidebar/Switcher.d.ts +8 -0
- package/dist/patterns/Sidebar/constants.d.ts +2 -0
- package/dist/patterns/Sidebar/figma-assets.d.ts +3 -0
- package/dist/patterns/Sidebar/figma-demo-content.d.ts +75 -0
- package/dist/patterns/Sidebar/figma-sidebar-nav.d.ts +12 -0
- package/dist/patterns/Sidebar/index.d.ts +13 -0
- package/dist/patterns/Sidebar/sidebar-styles.d.ts +45 -0
- package/dist/patterns/Skeleton/Skeleton.d.ts +6 -0
- package/dist/patterns/Skeleton/index.d.ts +1 -0
- package/dist/patterns/index.d.ts +5 -0
- package/dist/primitives/Avatar.d.ts +10 -0
- package/dist/primitives/Badge.d.ts +14 -0
- package/dist/primitives/Button.d.ts +22 -0
- package/dist/primitives/Callout.d.ts +7 -0
- package/dist/primitives/Count.d.ts +5 -0
- package/dist/primitives/DropdownMenu.d.ts +15 -0
- package/dist/primitives/GroupedAvatars.d.ts +7 -0
- package/dist/primitives/IconButton.d.ts +16 -0
- package/dist/primitives/Logo.d.ts +8 -0
- package/dist/primitives/MenuItem.d.ts +7 -0
- package/dist/primitives/Switch.d.ts +7 -0
- package/dist/primitives/ThinkingDot.d.ts +4 -0
- package/dist/primitives/Tooltip.d.ts +12 -0
- package/dist/primitives/button-styles.d.ts +4 -0
- package/dist/primitives/index.d.ts +15 -0
- package/dist/style.css +1 -1
- package/dist/tailwind-theme.d.ts +234 -198
- package/dist/theme-entry-BUK3MJUJ.mjs +261 -0
- package/dist/theme-entry-ygTpGaNC.js +1 -0
- package/dist/theme-entry.d.ts +2 -0
- package/dist/theme.cjs +1 -0
- package/dist/theme.d.ts +2 -0
- package/dist/theme.esm.js +5 -0
- package/dist/tokens/colors.d.ts +148 -0
- package/dist/tokens/elevation.d.ts +11 -0
- package/dist/tokens/index.d.ts +4 -0
- package/dist/tokens/semantic.d.ts +89 -0
- package/dist/tokens/typography.d.ts +85 -0
- package/package.json +36 -7
- package/src/components/Checkbox.tsx +77 -0
- package/src/components/Chip.tsx +69 -0
- package/src/components/EmptyState.tsx +44 -0
- package/src/components/Entry.tsx +138 -0
- package/src/components/Header.tsx +39 -0
- package/src/components/Input.tsx +69 -0
- package/src/components/InputType.tsx +76 -0
- package/src/components/Modal.tsx +141 -0
- package/src/components/ModalPanel.tsx +22 -37
- package/src/components/PdfViewer/ImageViewer.tsx +121 -182
- package/src/components/PdfViewer/PdfViewer.tsx +103 -155
- package/src/components/ReportInput.tsx +65 -0
- package/src/components/Tab.tsx +33 -0
- package/src/components/Tabs.tsx +146 -43
- package/src/components/index.ts +43 -6
- package/src/domain/Filters/FilterPill.tsx +25 -0
- package/src/domain/Filters/FilteredPill.tsx +39 -0
- package/src/domain/Filters/FiltersBar.tsx +76 -0
- package/src/domain/Filters/index.ts +3 -0
- package/src/domain/Forms/FormCard.tsx +61 -0
- package/src/domain/Forms/FormHeader.tsx +34 -0
- package/src/domain/Forms/ListRow.tsx +40 -0
- package/src/domain/Forms/RiskMeter.tsx +50 -0
- package/src/domain/Forms/index.ts +4 -0
- package/src/domain/Library/File.tsx +59 -0
- package/src/domain/Library/Folder.tsx +55 -0
- package/src/domain/Library/Folders.tsx +43 -0
- package/src/domain/Library/ListRow.tsx +40 -0
- package/src/domain/Library/Navigation.tsx +31 -0
- package/src/domain/Library/index.ts +5 -0
- package/src/domain/Report/InfoHeading.tsx +25 -0
- package/src/domain/Report/InfoRow.tsx +35 -0
- package/src/domain/Report/Report.tsx +53 -0
- package/src/domain/Report/SectionHeader.tsx +43 -0
- package/src/domain/Report/TaskRow.tsx +57 -0
- package/src/domain/Report/index.ts +5 -0
- package/src/domain/Settings/EquipmentRow.tsx +39 -0
- package/src/domain/Settings/MemberRow.tsx +53 -0
- package/src/domain/Settings/SettingRow.tsx +66 -0
- package/src/domain/Settings/index.ts +3 -0
- package/src/domain/Ships/ShipRow.tsx +49 -0
- package/src/domain/Ships/index.ts +1 -0
- package/src/domain/Workflows/GroupHeader.tsx +48 -0
- package/src/domain/Workflows/Importance.tsx +48 -0
- package/src/domain/Workflows/Progress.tsx +55 -0
- package/src/domain/Workflows/Question.tsx +42 -0
- package/src/domain/Workflows/StatusPopover.tsx +53 -0
- package/src/domain/Workflows/Task.tsx +46 -0
- package/src/domain/Workflows/TaskHeader.tsx +51 -0
- package/src/domain/Workflows/WorkflowFilters.tsx +40 -0
- package/src/domain/Workflows/WorkflowForm.tsx +40 -0
- package/src/domain/Workflows/WorkflowHeader.tsx +62 -0
- package/src/domain/Workflows/WorkflowListItem.tsx +45 -0
- package/src/domain/Workflows/WorkflowProgress.tsx +36 -0
- package/src/domain/Workflows/WorkflowRow.tsx +43 -0
- package/src/domain/Workflows/index.ts +13 -0
- package/src/domain/index.ts +37 -0
- package/src/icons/ArrowIcon.tsx +42 -0
- package/src/icons/ChevronIcon.tsx +42 -0
- package/src/icons/Icon.tsx +184 -0
- package/src/icons/arrow-paths.ts +8 -0
- package/src/icons/chevron-paths.ts +17 -0
- package/src/icons/createIcon.tsx +128 -0
- package/src/icons/generated.tsx +71 -0
- package/src/icons/icon-sizes.ts +20 -0
- package/src/icons/icons-data.ts +656 -0
- package/src/icons/index.ts +25 -0
- package/src/icons/types.ts +18 -0
- package/src/illustrations/AuditPreparation.tsx +15 -0
- package/src/illustrations/CompletedTasks.tsx +16 -0
- package/src/illustrations/Creation.tsx +13 -0
- package/src/illustrations/InternalAudit.tsx +13 -0
- package/src/illustrations/Invite.tsx +13 -0
- package/src/illustrations/PortStateControl.tsx +13 -0
- package/src/illustrations/Processing.tsx +17 -0
- package/src/illustrations/QuestionsDone.tsx +16 -0
- package/src/illustrations/RightShipInspection.tsx +18 -0
- package/src/illustrations/Upload.tsx +12 -0
- package/src/illustrations/WorkflowCreated.tsx +13 -0
- package/src/illustrations/Workflows.tsx +13 -0
- package/src/illustrations/createIllustration.tsx +30 -0
- package/src/illustrations/index.ts +14 -0
- package/src/index.ts +76 -4
- package/src/patterns/Chat/Attachment.tsx +27 -0
- package/src/patterns/Chat/ChatEntry.tsx +41 -0
- package/src/patterns/Chat/ChatHeader.tsx +39 -0
- package/src/patterns/Chat/ChatInput.tsx +35 -0
- package/src/patterns/Chat/ChatStatus.tsx +26 -0
- package/src/patterns/Chat/ChatTile.tsx +40 -0
- package/src/patterns/Chat/Copilot.tsx +50 -0
- package/src/patterns/Chat/Draft.tsx +23 -0
- package/src/patterns/Chat/Greeting.tsx +32 -0
- package/src/patterns/Chat/Reference.tsx +26 -0
- package/src/patterns/Chat/Source.tsx +27 -0
- package/src/patterns/Chat/Sources.tsx +23 -0
- package/src/patterns/Chat/Suggestion.tsx +23 -0
- package/src/patterns/Chat/Suggestions.tsx +21 -0
- package/src/patterns/Chat/index.ts +14 -0
- package/src/patterns/Modal/Invitee.tsx +44 -0
- package/src/patterns/Modal/ModalFooter.tsx +39 -0
- package/src/patterns/Modal/ModalHeader.tsx +77 -0
- package/src/patterns/Modal/index.ts +3 -0
- package/src/patterns/Search/Pill.tsx +44 -0
- package/src/patterns/Search/PillInfo.tsx +41 -0
- package/src/patterns/Search/ResultRow.tsx +44 -0
- package/src/patterns/Search/SearchModal.tsx +310 -0
- package/src/patterns/Search/SectionHeader.tsx +20 -0
- package/src/patterns/Search/index.ts +31 -0
- package/src/patterns/Sidebar/Account.tsx +193 -0
- package/src/patterns/Sidebar/ActivityNavGroup.tsx +71 -0
- package/src/patterns/Sidebar/CollapsibleNavGroup.tsx +106 -0
- package/src/patterns/Sidebar/Indicator.tsx +14 -0
- package/src/patterns/Sidebar/NewChat.tsx +71 -0
- package/src/patterns/Sidebar/Sidebar.tsx +363 -0
- package/src/patterns/Sidebar/SidebarAction.tsx +55 -0
- package/src/patterns/Sidebar/SidebarEntry.tsx +129 -0
- package/src/patterns/Sidebar/SidebarHeading.tsx +38 -0
- package/src/patterns/Sidebar/SidebarLink.tsx +125 -0
- package/src/patterns/Sidebar/SidebarShell.tsx +32 -0
- package/src/patterns/Sidebar/Switcher.tsx +116 -0
- package/src/patterns/Sidebar/assets/account-avatar-24.jpg +0 -0
- package/src/patterns/Sidebar/assets/account-avatar.jpg +0 -0
- package/src/patterns/Sidebar/assets/indicator-compliance.png +0 -0
- package/src/patterns/Sidebar/assets/indicator-technical.png +0 -0
- package/src/patterns/Sidebar/assets/logo-compliance-mark.png +5 -0
- package/src/patterns/Sidebar/assets/logo-compliance-mask.png +13 -0
- package/src/patterns/Sidebar/assets/logo-compliance.svg +17 -0
- package/src/patterns/Sidebar/assets/logo-technical-avatar.svg +17 -0
- package/src/patterns/Sidebar/assets/logo-technical-mark.png +5 -0
- package/src/patterns/Sidebar/assets/logo-technical.svg +16 -0
- package/src/patterns/Sidebar/constants.ts +2 -0
- package/src/patterns/Sidebar/figma-assets.ts +4 -0
- package/src/patterns/Sidebar/figma-demo-content.ts +30 -0
- package/src/patterns/Sidebar/figma-sidebar-nav.ts +79 -0
- package/src/patterns/Sidebar/index.ts +13 -0
- package/src/patterns/Sidebar/sidebar-styles.ts +101 -0
- package/src/patterns/Skeleton/Skeleton.tsx +56 -0
- package/src/patterns/Skeleton/index.ts +1 -0
- package/src/patterns/index.ts +5 -0
- package/src/primitives/Avatar.tsx +71 -0
- package/src/primitives/Badge.tsx +44 -0
- package/src/primitives/Button.tsx +231 -0
- package/src/primitives/Callout.tsx +21 -0
- package/src/primitives/Count.tsx +18 -0
- package/src/primitives/DropdownMenu.tsx +60 -0
- package/src/primitives/GroupedAvatars.tsx +36 -0
- package/src/primitives/IconButton.tsx +56 -0
- package/src/primitives/Logo.tsx +43 -0
- package/src/primitives/MenuItem.tsx +35 -0
- package/src/primitives/Switch.tsx +38 -0
- package/src/primitives/ThinkingDot.tsx +34 -0
- package/src/primitives/Tooltip.tsx +42 -0
- package/src/primitives/button-styles.ts +92 -0
- package/src/primitives/index.ts +18 -0
- package/src/stories/_layout/FigmaPage.tsx +94 -0
- package/src/stories/_layout/index.ts +8 -0
- package/src/stories/canvases/ButtonsCanvas.tsx +107 -0
- package/src/stories/canvases/ButtonsMatrixCanvas.tsx +65 -0
- package/src/stories/canvases/ChatCanvas.tsx +130 -0
- package/src/stories/canvases/ColorTokensCanvas.tsx +16 -0
- package/src/stories/canvases/ColorsCanvas.tsx +101 -0
- package/src/stories/canvases/ContentCanvas.tsx +157 -0
- package/src/stories/canvases/CoreCanvas.tsx +125 -0
- package/src/stories/canvases/DomainFormsCanvas.tsx +67 -0
- package/src/stories/canvases/FiltersCanvas.tsx +41 -0
- package/src/stories/canvases/FormsCanvas.tsx +71 -0
- package/src/stories/canvases/IconsCanvas.tsx +99 -0
- package/src/stories/canvases/IllustrationsCanvas.tsx +50 -0
- package/src/stories/canvases/LibraryCanvas.tsx +67 -0
- package/src/stories/canvases/ModalsCanvas.tsx +54 -0
- package/src/stories/canvases/RaiseLevelsCanvas.tsx +27 -0
- package/src/stories/canvases/ReportCanvas.tsx +33 -0
- package/src/stories/canvases/ReportLayoutCanvas.tsx +19 -0
- package/src/stories/canvases/SearchCanvas.tsx +150 -0
- package/src/stories/canvases/SettingsCanvas.tsx +41 -0
- package/src/stories/canvases/ShipsCanvas.tsx +38 -0
- package/src/stories/canvases/SidebarCanvas.tsx +147 -0
- package/src/stories/canvases/SidebarLayoutsCanvas.tsx +71 -0
- package/src/stories/canvases/SidebarPlayground.tsx +35 -0
- package/src/stories/canvases/SkeletonsCanvas.tsx +30 -0
- package/src/stories/canvases/TypographyCanvas.tsx +53 -0
- package/src/stories/canvases/WorkflowsCanvas.tsx +129 -0
- package/src/stories/canvases/figma-buttons-layout.ts +83 -0
- package/src/stories/canvases/figma-icons-layout.ts +318 -0
- package/src/stories/canvases/figma-sidebar-layout.ts +212 -0
- package/src/stories/canvases/figma-sidebar-layouts-layout.ts +84 -0
- package/src/stories/canvases/figma-widths.ts +28 -0
- package/src/stories/canvases/helpers.tsx +146 -0
- package/src/stories/components/Buttons.stories.tsx +12 -0
- package/src/stories/components/Chat.stories.tsx +12 -0
- package/src/stories/components/Content.stories.tsx +12 -0
- package/src/stories/components/Core.stories.tsx +12 -0
- package/src/stories/components/DomainForms.stories.tsx +12 -0
- package/src/stories/components/Filters.stories.tsx +12 -0
- package/src/stories/components/Forms.stories.tsx +12 -0
- package/src/stories/components/Icons.stories.tsx +12 -0
- package/src/stories/components/Illustrations.stories.tsx +12 -0
- package/src/stories/components/Library.stories.tsx +12 -0
- package/src/stories/components/Modals.stories.tsx +12 -0
- package/src/stories/components/Report.stories.tsx +12 -0
- package/src/stories/components/ReportLayout.stories.tsx +12 -0
- package/src/stories/components/Search.stories.tsx +12 -0
- package/src/stories/components/Settings.stories.tsx +12 -0
- package/src/stories/components/Ships.stories.tsx +12 -0
- package/src/stories/components/Sidebar.stories.tsx +37 -0
- package/src/stories/components/SidebarLayouts.stories.tsx +12 -0
- package/src/stories/components/Skeletons.stories.tsx +12 -0
- package/src/stories/components/Workflows.stories.tsx +12 -0
- package/src/stories/style-guide/Buttons.stories.tsx +12 -0
- package/src/stories/style-guide/ColorTokens.stories.tsx +12 -0
- package/src/stories/style-guide/Colors.stories.tsx +12 -0
- package/src/stories/style-guide/RaiseLevels.stories.tsx +12 -0
- package/src/stories/style-guide/Typography.stories.tsx +12 -0
- package/src/style.css +169 -2
- package/src/tailwind-theme.ts +164 -240
- package/src/theme-entry.ts +2 -0
- package/src/tokens/colors.ts +82 -0
- package/src/tokens/elevation.ts +12 -0
- package/src/tokens/index.ts +4 -0
- package/src/tokens/semantic.ts +89 -0
- package/src/tokens/typography.ts +21 -0
- package/tailwind.config.ts +12 -0
- package/dist/components/HelloWorld.d.ts +0 -1
- package/dist/components/InputPrompt.d.ts +0 -20
- package/dist/components/SearchModal.d.ts +0 -24
- package/dist/components/Sidebar/Button.d.ts +0 -7
- package/dist/components/Sidebar/Container.d.ts +0 -5
- package/dist/components/Sidebar/Item.d.ts +0 -9
- package/dist/components/Sidebar/Layout.d.ts +0 -10
- package/dist/components/Sidebar/Provider.d.ts +0 -14
- package/dist/components/Sidebar/SecondaryItem.d.ts +0 -9
- package/dist/components/Sidebar/SideContainer.d.ts +0 -5
- package/dist/components/Sidebar/ToggleCollapseButton.d.ts +0 -1
- package/dist/components/Sidebar/index.d.ts +0 -8
- package/dist/components/icons/CloseSidebarIcon.d.ts +0 -2
- package/dist/components/icons/CloseSidebarMidIcon.d.ts +0 -1
- package/dist/components/icons/ExpandIcon.d.ts +0 -3
- package/dist/components/icons/SendArrowIcon.d.ts +0 -4
- package/dist/components/icons/SendArrowIconGreen.d.ts +0 -4
- package/dist/components/icons/SettingsIcon.d.ts +0 -3
- package/dist/components/icons/XIcon.d.ts +0 -3
- package/dist/material-theme.d.ts +0 -442
- package/dist/stories/Buttons.d.ts +0 -1
- package/dist/stories/Checkbox.d.ts +0 -1
- package/dist/stories/ColorPalette.d.ts +0 -1
- package/dist/stories/Dropdowns.d.ts +0 -1
- package/dist/stories/InputPrompt.d.ts +0 -1
- package/dist/stories/SearchModal.d.ts +0 -1
- package/dist/stories/Sidebar.d.ts +0 -1
- package/dist/stories/Typography.d.ts +0 -1
- package/src/components/HelloWorld.tsx +0 -3
- package/src/components/InputPrompt.tsx +0 -96
- package/src/components/SearchModal.tsx +0 -320
- package/src/components/Sidebar/Button.tsx +0 -20
- package/src/components/Sidebar/Container.tsx +0 -31
- package/src/components/Sidebar/Item.tsx +0 -39
- package/src/components/Sidebar/Layout.tsx +0 -32
- package/src/components/Sidebar/Provider.tsx +0 -47
- package/src/components/Sidebar/SecondaryItem.tsx +0 -39
- package/src/components/Sidebar/SideContainer.tsx +0 -31
- package/src/components/Sidebar/ToggleCollapseButton.tsx +0 -24
- package/src/components/Sidebar/index.ts +0 -8
- package/src/components/icons/CloseSidebarIcon.tsx +0 -19
- package/src/components/icons/CloseSidebarMidIcon.tsx +0 -19
- package/src/components/icons/ExpandIcon.tsx +0 -21
- package/src/components/icons/SendArrowIcon.tsx +0 -23
- package/src/components/icons/SendArrowIconGreen.tsx +0 -17
- package/src/components/icons/SettingsIcon.tsx +0 -33
- package/src/components/icons/XIcon.tsx +0 -21
- package/src/material-theme.ts +0 -477
- package/src/stories/Buttons.stories.tsx +0 -15
- package/src/stories/Buttons.tsx +0 -52
- package/src/stories/Checkbox.stories.tsx +0 -15
- package/src/stories/Checkbox.tsx +0 -56
- package/src/stories/ColorPalette.stories.tsx +0 -15
- package/src/stories/ColorPalette.tsx +0 -85
- package/src/stories/DocumentEditor.stories.tsx +0 -287
- package/src/stories/Dropdowns.stories.tsx +0 -15
- package/src/stories/Dropdowns.tsx +0 -52
- package/src/stories/InputPrompt.stories.tsx +0 -15
- package/src/stories/InputPrompt.tsx +0 -63
- package/src/stories/ModalHeader.stories.tsx +0 -36
- package/src/stories/PDFViewer.stories.tsx +0 -39
- package/src/stories/SearchModal.stories.tsx +0 -132
- package/src/stories/SearchModal.tsx +0 -82
- package/src/stories/Sidebar.stories.tsx +0 -15
- package/src/stories/Sidebar.tsx +0 -108
- package/src/stories/Tabs.stories.tsx +0 -51
- package/src/stories/Typography.stories.tsx +0 -15
- package/src/stories/Typography.tsx +0 -110
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { ArchiveIcon, PenIcon, SearchIcon, TrashIcon } from "../../icons";
|
|
2
|
+
import {
|
|
3
|
+
Account,
|
|
4
|
+
ActivityNavGroup,
|
|
5
|
+
CollapsibleNavGroup,
|
|
6
|
+
Indicator,
|
|
7
|
+
NewChat,
|
|
8
|
+
SidebarEntry,
|
|
9
|
+
SidebarHeading,
|
|
10
|
+
SidebarLink,
|
|
11
|
+
} from "../../patterns/Sidebar";
|
|
12
|
+
import { FigmaContent, FigmaPage } from "../_layout";
|
|
13
|
+
import { FIGMA_WIDTHS } from "./figma-widths";
|
|
14
|
+
import {
|
|
15
|
+
FIGMA_ENTRY_LABEL,
|
|
16
|
+
FIGMA_HEADING_LABEL,
|
|
17
|
+
FIGMA_SECTION_LABEL,
|
|
18
|
+
} from "../../patterns/Sidebar/figma-demo-content";
|
|
19
|
+
import {
|
|
20
|
+
FIGMA_SIDEBAR_CONTENT,
|
|
21
|
+
FIGMA_SIDEBAR_FRAMES,
|
|
22
|
+
type SidebarSubcomponentSlot,
|
|
23
|
+
} from "./figma-sidebar-layout";
|
|
24
|
+
|
|
25
|
+
const demoMenuItems = [
|
|
26
|
+
{ id: "rename", label: "Rename", icon: <PenIcon size="small" />, onSelect: () => undefined },
|
|
27
|
+
{ id: "archive", label: "Archive", icon: <ArchiveIcon size="small" />, onSelect: () => undefined },
|
|
28
|
+
{
|
|
29
|
+
id: "delete",
|
|
30
|
+
label: "Delete",
|
|
31
|
+
icon: <TrashIcon size="small" />,
|
|
32
|
+
destructive: true,
|
|
33
|
+
onSelect: () => undefined,
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
const renderSlot = (slot: SidebarSubcomponentSlot) => {
|
|
38
|
+
if (slot.kind === "newChat") {
|
|
39
|
+
return <NewChat collapsed={slot.collapsed} state={slot.state} presentation className="h-full w-full" />;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (slot.kind === "indicator") {
|
|
43
|
+
return <Indicator chief={slot.chief} />;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (slot.kind === "sidebarLink") {
|
|
47
|
+
return (
|
|
48
|
+
<SidebarLink
|
|
49
|
+
href="#section"
|
|
50
|
+
label={FIGMA_SECTION_LABEL}
|
|
51
|
+
icon={<SearchIcon size="small" className="text-display-on-light-primary" />}
|
|
52
|
+
state={slot.state}
|
|
53
|
+
collapsed={slot.collapsed}
|
|
54
|
+
presentation
|
|
55
|
+
tooltip={FIGMA_SECTION_LABEL}
|
|
56
|
+
/>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (slot.kind === "sidebarHeading") {
|
|
61
|
+
return (
|
|
62
|
+
<SidebarHeading
|
|
63
|
+
title={FIGMA_HEADING_LABEL}
|
|
64
|
+
state={slot.state}
|
|
65
|
+
collapsed={slot.collapsed}
|
|
66
|
+
/>
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (slot.kind === "sidebarEntry") {
|
|
71
|
+
return (
|
|
72
|
+
<SidebarEntry
|
|
73
|
+
href="#chat-1"
|
|
74
|
+
label={FIGMA_ENTRY_LABEL}
|
|
75
|
+
state={slot.state}
|
|
76
|
+
forceMenuVisible={slot.showMenu}
|
|
77
|
+
menuItems={slot.showMenu ? demoMenuItems : undefined}
|
|
78
|
+
/>
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (slot.kind === "ships") {
|
|
83
|
+
return (
|
|
84
|
+
<CollapsibleNavGroup
|
|
85
|
+
href="#ships"
|
|
86
|
+
expanded={slot.expanded ?? false}
|
|
87
|
+
onExpandedChange={() => undefined}
|
|
88
|
+
/>
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (slot.kind === "activity") {
|
|
93
|
+
return <ActivityNavGroup href="#activity" chief={slot.chief} empty={slot.empty} />;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (slot.kind === "account") {
|
|
97
|
+
return <Account collapsed={slot.collapsed} state={slot.state} presentation />;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return null;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export const SidebarCanvas = () => (
|
|
104
|
+
<FigmaPage title="Sidebar" width={FIGMA_WIDTHS.sidebar}>
|
|
105
|
+
<FigmaContent padding={0}>
|
|
106
|
+
<div
|
|
107
|
+
data-figma-sidebar-grid
|
|
108
|
+
className="relative overflow-hidden"
|
|
109
|
+
style={{
|
|
110
|
+
width: FIGMA_SIDEBAR_CONTENT.width,
|
|
111
|
+
height: FIGMA_SIDEBAR_CONTENT.height,
|
|
112
|
+
}}
|
|
113
|
+
>
|
|
114
|
+
<div
|
|
115
|
+
className="relative"
|
|
116
|
+
style={{
|
|
117
|
+
width: FIGMA_SIDEBAR_CONTENT.width,
|
|
118
|
+
height: FIGMA_SIDEBAR_CONTENT.height,
|
|
119
|
+
}}
|
|
120
|
+
>
|
|
121
|
+
{FIGMA_SIDEBAR_FRAMES.map((frame) => (
|
|
122
|
+
<div
|
|
123
|
+
key={frame.name}
|
|
124
|
+
className="absolute rounded border border-dashed border-[#9747FF]"
|
|
125
|
+
style={{
|
|
126
|
+
left: frame.x,
|
|
127
|
+
top: frame.y,
|
|
128
|
+
width: frame.width,
|
|
129
|
+
height: frame.height,
|
|
130
|
+
}}
|
|
131
|
+
>
|
|
132
|
+
{frame.slots.map((slot, index) => (
|
|
133
|
+
<div
|
|
134
|
+
key={`${frame.name}-${index}`}
|
|
135
|
+
className="absolute"
|
|
136
|
+
style={{ left: slot.x, top: slot.y, width: slot.width, height: slot.height }}
|
|
137
|
+
>
|
|
138
|
+
{renderSlot(slot)}
|
|
139
|
+
</div>
|
|
140
|
+
))}
|
|
141
|
+
</div>
|
|
142
|
+
))}
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
</FigmaContent>
|
|
146
|
+
</FigmaPage>
|
|
147
|
+
);
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Sidebar, Switcher } from "../../patterns/Sidebar";
|
|
2
|
+
import { FigmaContent, FigmaPage } from "../_layout";
|
|
3
|
+
import { FIGMA_WIDTHS } from "./figma-widths";
|
|
4
|
+
import {
|
|
5
|
+
FIGMA_SIDEBAR_LAYOUTS_CONTENT,
|
|
6
|
+
FIGMA_SIDEBAR_LAYOUTS_FRAMES,
|
|
7
|
+
type SidebarLayoutsFrameSlot,
|
|
8
|
+
} from "./figma-sidebar-layouts-layout";
|
|
9
|
+
|
|
10
|
+
const renderSlot = (slot: SidebarLayoutsFrameSlot) => {
|
|
11
|
+
if (slot.kind === "switcher") {
|
|
12
|
+
return <Switcher chief={slot.chief} expanded={slot.expanded} />;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<Sidebar
|
|
17
|
+
chief={slot.chief}
|
|
18
|
+
activity={slot.activity}
|
|
19
|
+
ships={slot.ships}
|
|
20
|
+
collapsed={slot.collapsed}
|
|
21
|
+
presentation
|
|
22
|
+
className="h-full"
|
|
23
|
+
/>
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const SidebarLayoutsCanvas = () => (
|
|
28
|
+
<FigmaPage title="Sidebar Layouts" width={FIGMA_WIDTHS.sidebarLayouts}>
|
|
29
|
+
<FigmaContent padding={0}>
|
|
30
|
+
<div
|
|
31
|
+
data-figma-sidebar-layouts-grid
|
|
32
|
+
className="relative overflow-hidden"
|
|
33
|
+
style={{
|
|
34
|
+
width: FIGMA_SIDEBAR_LAYOUTS_CONTENT.width,
|
|
35
|
+
height: FIGMA_SIDEBAR_LAYOUTS_CONTENT.height,
|
|
36
|
+
}}
|
|
37
|
+
>
|
|
38
|
+
<div
|
|
39
|
+
className="relative"
|
|
40
|
+
style={{
|
|
41
|
+
width: FIGMA_SIDEBAR_LAYOUTS_CONTENT.width,
|
|
42
|
+
height: FIGMA_SIDEBAR_LAYOUTS_CONTENT.height,
|
|
43
|
+
}}
|
|
44
|
+
>
|
|
45
|
+
{FIGMA_SIDEBAR_LAYOUTS_FRAMES.map((frame) => (
|
|
46
|
+
<div
|
|
47
|
+
key={frame.name}
|
|
48
|
+
className="absolute rounded border border-dashed border-[#9747FF]"
|
|
49
|
+
style={{
|
|
50
|
+
left: frame.x,
|
|
51
|
+
top: frame.y,
|
|
52
|
+
width: frame.width,
|
|
53
|
+
height: frame.height,
|
|
54
|
+
}}
|
|
55
|
+
>
|
|
56
|
+
{frame.slots.map((slot, index) => (
|
|
57
|
+
<div
|
|
58
|
+
key={`${frame.name}-${index}`}
|
|
59
|
+
className="absolute overflow-hidden"
|
|
60
|
+
style={{ left: slot.x, top: slot.y, width: slot.width, height: slot.height }}
|
|
61
|
+
>
|
|
62
|
+
{renderSlot(slot)}
|
|
63
|
+
</div>
|
|
64
|
+
))}
|
|
65
|
+
</div>
|
|
66
|
+
))}
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
</FigmaContent>
|
|
70
|
+
</FigmaPage>
|
|
71
|
+
);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Sidebar, SidebarShell, type Chief } from "../../patterns/Sidebar";
|
|
2
|
+
|
|
3
|
+
export type SidebarPlaygroundProps = {
|
|
4
|
+
chief?: Chief;
|
|
5
|
+
activity?: boolean;
|
|
6
|
+
ships?: boolean;
|
|
7
|
+
collapsed?: boolean;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const SidebarPlayground = ({
|
|
11
|
+
chief = "technical",
|
|
12
|
+
activity = true,
|
|
13
|
+
ships = true,
|
|
14
|
+
collapsed = false,
|
|
15
|
+
}: SidebarPlaygroundProps) => (
|
|
16
|
+
<SidebarShell
|
|
17
|
+
sidebar={
|
|
18
|
+
<Sidebar
|
|
19
|
+
key={`${chief}-${activity}-${ships}-${collapsed}`}
|
|
20
|
+
chief={chief}
|
|
21
|
+
activity={activity}
|
|
22
|
+
ships={ships}
|
|
23
|
+
collapsed={collapsed}
|
|
24
|
+
/>
|
|
25
|
+
}
|
|
26
|
+
>
|
|
27
|
+
<div className="flex min-h-full flex-col items-center justify-center gap-2 p-8 text-display-on-light-tertiary">
|
|
28
|
+
<p className="text-caption-1 text-display-on-light-secondary">Sidebar playground</p>
|
|
29
|
+
<p className="max-w-sm text-center text-caption-2">
|
|
30
|
+
Click the Ships chevron to expand or collapse the fleet list. Use the footer
|
|
31
|
+
button to collapse the sidebar — hover the collapsed sidebar to expand it again.
|
|
32
|
+
</p>
|
|
33
|
+
</div>
|
|
34
|
+
</SidebarShell>
|
|
35
|
+
);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Skeleton } from "../../patterns/Skeleton";
|
|
2
|
+
import {
|
|
3
|
+
FigmaContent,
|
|
4
|
+
FigmaGrid,
|
|
5
|
+
FigmaPage,
|
|
6
|
+
FigmaSection,
|
|
7
|
+
FigmaVariant,
|
|
8
|
+
} from "../_layout";
|
|
9
|
+
import { FIGMA_WIDTHS } from "./figma-widths";
|
|
10
|
+
|
|
11
|
+
export const SkeletonsCanvas = () => (
|
|
12
|
+
<FigmaPage title="Skeletons" width={FIGMA_WIDTHS.skeletons}>
|
|
13
|
+
<FigmaContent>
|
|
14
|
+
<FigmaSection label="Skeleton">
|
|
15
|
+
<FigmaGrid gap={32}>
|
|
16
|
+
<FigmaVariant label="Content">
|
|
17
|
+
<div className="w-80">
|
|
18
|
+
<Skeleton variant="content" />
|
|
19
|
+
</div>
|
|
20
|
+
</FigmaVariant>
|
|
21
|
+
<FigmaVariant label="Search">
|
|
22
|
+
<div className="w-80">
|
|
23
|
+
<Skeleton variant="search" />
|
|
24
|
+
</div>
|
|
25
|
+
</FigmaVariant>
|
|
26
|
+
</FigmaGrid>
|
|
27
|
+
</FigmaSection>
|
|
28
|
+
</FigmaContent>
|
|
29
|
+
</FigmaPage>
|
|
30
|
+
);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { FigmaContent, FigmaPage } from "../_layout";
|
|
2
|
+
import { FIGMA_WIDTHS } from "./figma-widths";
|
|
3
|
+
|
|
4
|
+
const typographyStyles = [
|
|
5
|
+
{ label: "Title", className: "font-heading text-title" },
|
|
6
|
+
{ label: "Title Em", className: "font-heading text-title-em" },
|
|
7
|
+
{ label: "Heading", className: "font-heading text-heading" },
|
|
8
|
+
{ label: "Subheader", className: "text-subheader" },
|
|
9
|
+
{ label: "Subheader Em", className: "text-subheader-em" },
|
|
10
|
+
{ label: "Body", className: "text-body" },
|
|
11
|
+
{ label: "Body Em", className: "text-body-em" },
|
|
12
|
+
{ label: "Caption 1", className: "text-caption-1" },
|
|
13
|
+
{ label: "Caption 1 Em", className: "text-caption-1-em" },
|
|
14
|
+
{ label: "Caption 2", className: "text-caption-2" },
|
|
15
|
+
{ label: "Caption 2 Em", className: "text-caption-2-em" },
|
|
16
|
+
{ label: "Footnote", className: "text-footnote" },
|
|
17
|
+
{ label: "Footnote Em", className: "text-footnote-em" },
|
|
18
|
+
] as const;
|
|
19
|
+
|
|
20
|
+
export const TypographyCanvas = () => (
|
|
21
|
+
<FigmaPage title="Typography" width={FIGMA_WIDTHS.typography}>
|
|
22
|
+
<FigmaContent>
|
|
23
|
+
<div className="mb-8 rounded-control border border-divider-primary p-8">
|
|
24
|
+
<p className="font-heading text-title text-display-on-light-primary">Vesterbro</p>
|
|
25
|
+
<p className="mt-1 text-caption-2 text-display-on-light-tertiary">Regular · Medium</p>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
{typographyStyles.slice(0, 3).map((style) => (
|
|
29
|
+
<div key={style.label} className="mb-6 border-b border-divider-primary pb-6">
|
|
30
|
+
<p className="mb-2 text-caption-2 text-display-on-light-tertiary">{style.label}</p>
|
|
31
|
+
<p className={style.className}>The quick brown fox jumps over the lazy dog</p>
|
|
32
|
+
</div>
|
|
33
|
+
))}
|
|
34
|
+
|
|
35
|
+
<div className="mb-8 mt-10 rounded-control border border-divider-primary p-8">
|
|
36
|
+
<p className="font-sans text-title text-display-on-light-primary">Matter</p>
|
|
37
|
+
<p className="mt-1 text-caption-2 text-display-on-light-tertiary">Regular · Medium</p>
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
{typographyStyles.slice(3).map((style) => (
|
|
41
|
+
<div key={style.label} className="mb-6 border-b border-divider-primary pb-6">
|
|
42
|
+
<p className="mb-2 text-caption-2 text-display-on-light-tertiary">{style.label}</p>
|
|
43
|
+
<p className={style.className}>The quick brown fox jumps over the lazy dog</p>
|
|
44
|
+
</div>
|
|
45
|
+
))}
|
|
46
|
+
|
|
47
|
+
<div className="mb-6 border-b border-divider-primary pb-6">
|
|
48
|
+
<p className="mb-2 text-caption-2 text-display-on-light-tertiary">Mono</p>
|
|
49
|
+
<p className="font-mono text-body">const vessel = "MV Atlantic Star";</p>
|
|
50
|
+
</div>
|
|
51
|
+
</FigmaContent>
|
|
52
|
+
</FigmaPage>
|
|
53
|
+
);
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GroupHeader,
|
|
3
|
+
Importance,
|
|
4
|
+
Progress,
|
|
5
|
+
Question,
|
|
6
|
+
StatusPopover,
|
|
7
|
+
Task,
|
|
8
|
+
TaskHeader,
|
|
9
|
+
WorkflowFilters,
|
|
10
|
+
WorkflowForm,
|
|
11
|
+
WorkflowHeader,
|
|
12
|
+
WorkflowListItem,
|
|
13
|
+
WorkflowProgress,
|
|
14
|
+
WorkflowRow,
|
|
15
|
+
} from "../../domain/Workflows";
|
|
16
|
+
import {
|
|
17
|
+
FigmaContent,
|
|
18
|
+
FigmaGrid,
|
|
19
|
+
FigmaPage,
|
|
20
|
+
FigmaSection,
|
|
21
|
+
FigmaVariant,
|
|
22
|
+
} from "../_layout";
|
|
23
|
+
import { FIGMA_WIDTHS } from "./figma-widths";
|
|
24
|
+
|
|
25
|
+
export const WorkflowsCanvas = () => (
|
|
26
|
+
<FigmaPage title="Workflows" width={FIGMA_WIDTHS.workflows}>
|
|
27
|
+
<FigmaContent>
|
|
28
|
+
<FigmaSection label="Workflow Header">
|
|
29
|
+
<FigmaGrid gap={24}>
|
|
30
|
+
<div className="w-96">
|
|
31
|
+
<WorkflowHeader />
|
|
32
|
+
</div>
|
|
33
|
+
<div className="w-96">
|
|
34
|
+
<WorkflowHeader workflow="audit-preparation" variant="pending" />
|
|
35
|
+
</div>
|
|
36
|
+
</FigmaGrid>
|
|
37
|
+
</FigmaSection>
|
|
38
|
+
|
|
39
|
+
<FigmaSection label="Workflow Row">
|
|
40
|
+
<div className="max-w-xl space-y-2">
|
|
41
|
+
<WorkflowRow />
|
|
42
|
+
<WorkflowRow name="Monthly Forms" description="Recurring compliance tasks" state="hover" />
|
|
43
|
+
</div>
|
|
44
|
+
</FigmaSection>
|
|
45
|
+
|
|
46
|
+
<FigmaSection label="Workflow List Item">
|
|
47
|
+
<div className="max-w-xl space-y-2">
|
|
48
|
+
<WorkflowListItem />
|
|
49
|
+
<WorkflowListItem chief="compliance" progress="91%" hover="on" />
|
|
50
|
+
</div>
|
|
51
|
+
</FigmaSection>
|
|
52
|
+
|
|
53
|
+
<FigmaSection label="Workflow Progress">
|
|
54
|
+
<FigmaGrid gap={16}>
|
|
55
|
+
<WorkflowProgress />
|
|
56
|
+
<WorkflowProgress progress="54%" />
|
|
57
|
+
<WorkflowProgress progress="100%" />
|
|
58
|
+
</FigmaGrid>
|
|
59
|
+
</FigmaSection>
|
|
60
|
+
|
|
61
|
+
<FigmaSection label="Workflow Filters">
|
|
62
|
+
<WorkflowFilters />
|
|
63
|
+
</FigmaSection>
|
|
64
|
+
|
|
65
|
+
<FigmaSection label="Workflow Form">
|
|
66
|
+
<div className="max-w-xl space-y-2">
|
|
67
|
+
<WorkflowForm />
|
|
68
|
+
<WorkflowForm name="ISM checklist" state="hover" />
|
|
69
|
+
</div>
|
|
70
|
+
</FigmaSection>
|
|
71
|
+
|
|
72
|
+
<FigmaSection label="Task">
|
|
73
|
+
<div className="max-w-xl space-y-2">
|
|
74
|
+
<Task />
|
|
75
|
+
<Task status="completed" label="Review fire pump records" />
|
|
76
|
+
<Task state="hover" />
|
|
77
|
+
</div>
|
|
78
|
+
</FigmaSection>
|
|
79
|
+
|
|
80
|
+
<FigmaSection label="Task Header">
|
|
81
|
+
<div className="max-w-xl space-y-2">
|
|
82
|
+
<TaskHeader />
|
|
83
|
+
<TaskHeader property="in-review" progressState="89%" />
|
|
84
|
+
</div>
|
|
85
|
+
</FigmaSection>
|
|
86
|
+
|
|
87
|
+
<FigmaSection label="Question">
|
|
88
|
+
<div className="max-w-xl space-y-2">
|
|
89
|
+
<Question />
|
|
90
|
+
<Question expanded="off" state="hover" />
|
|
91
|
+
</div>
|
|
92
|
+
</FigmaSection>
|
|
93
|
+
|
|
94
|
+
<FigmaSection label="Group Header">
|
|
95
|
+
<FigmaGrid gap={16}>
|
|
96
|
+
<GroupHeader />
|
|
97
|
+
<GroupHeader group="ai-insights" count={7} />
|
|
98
|
+
</FigmaGrid>
|
|
99
|
+
</FigmaSection>
|
|
100
|
+
|
|
101
|
+
<FigmaSection label="Progress">
|
|
102
|
+
<FigmaGrid gap={16}>
|
|
103
|
+
<Progress />
|
|
104
|
+
<Progress state="54%" />
|
|
105
|
+
<Progress state="all-done" />
|
|
106
|
+
</FigmaGrid>
|
|
107
|
+
</FigmaSection>
|
|
108
|
+
|
|
109
|
+
<FigmaSection label="Importance">
|
|
110
|
+
<FigmaGrid gap={16}>
|
|
111
|
+
<Importance />
|
|
112
|
+
<Importance importance="normal" status="approved" />
|
|
113
|
+
<Importance importance="critical" status="uncompleted" />
|
|
114
|
+
</FigmaGrid>
|
|
115
|
+
</FigmaSection>
|
|
116
|
+
|
|
117
|
+
<FigmaSection label="Status Popover">
|
|
118
|
+
<FigmaGrid gap={24}>
|
|
119
|
+
<FigmaVariant label="Pending">
|
|
120
|
+
<StatusPopover />
|
|
121
|
+
</FigmaVariant>
|
|
122
|
+
<FigmaVariant label="Done">
|
|
123
|
+
<StatusPopover state="critical-done" />
|
|
124
|
+
</FigmaVariant>
|
|
125
|
+
</FigmaGrid>
|
|
126
|
+
</FigmaSection>
|
|
127
|
+
</FigmaContent>
|
|
128
|
+
</FigmaPage>
|
|
129
|
+
);
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/** Figma Buttons > Content > Button frame — 414×312, slots 106×40 */
|
|
2
|
+
|
|
3
|
+
export const FIGMA_BUTTONS_GRID = {
|
|
4
|
+
width: 414,
|
|
5
|
+
height: 312,
|
|
6
|
+
} as const;
|
|
7
|
+
|
|
8
|
+
export type ButtonVisualState = "idle" | "hover" | "disabled";
|
|
9
|
+
|
|
10
|
+
export type ButtonGridSlot = {
|
|
11
|
+
hierarchy:
|
|
12
|
+
| "primary"
|
|
13
|
+
| "secondary"
|
|
14
|
+
| "tertiary"
|
|
15
|
+
| "quaternary"
|
|
16
|
+
| "destructive";
|
|
17
|
+
visualState: ButtonVisualState;
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const BUTTON_WIDTH = 106;
|
|
25
|
+
const BUTTON_HEIGHT = 40;
|
|
26
|
+
const COLUMN_X = [24, 154, 284] as const;
|
|
27
|
+
const ROW_Y = [24, 80, 136, 192, 248] as const;
|
|
28
|
+
|
|
29
|
+
const hierarchies = [
|
|
30
|
+
"primary",
|
|
31
|
+
"secondary",
|
|
32
|
+
"tertiary",
|
|
33
|
+
"quaternary",
|
|
34
|
+
"destructive",
|
|
35
|
+
] as const;
|
|
36
|
+
|
|
37
|
+
const visualStates: ButtonVisualState[] = ["idle", "hover", "disabled"];
|
|
38
|
+
|
|
39
|
+
export const FIGMA_BUTTON_SLOTS: ButtonGridSlot[] = hierarchies.flatMap(
|
|
40
|
+
(hierarchy, rowIndex) =>
|
|
41
|
+
visualStates.map((visualState, columnIndex) => ({
|
|
42
|
+
hierarchy,
|
|
43
|
+
visualState,
|
|
44
|
+
x: COLUMN_X[columnIndex],
|
|
45
|
+
y: ROW_Y[rowIndex],
|
|
46
|
+
width: BUTTON_WIDTH,
|
|
47
|
+
height: BUTTON_HEIGHT,
|
|
48
|
+
})),
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
export type ButtonVariantSlot = {
|
|
52
|
+
hierarchy: (typeof hierarchies)[number];
|
|
53
|
+
variant: "noIcon" | "noDropdown";
|
|
54
|
+
x: number;
|
|
55
|
+
y: number;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const VARIANT_COLUMN_X = [414, 544] as const;
|
|
59
|
+
|
|
60
|
+
/** Extra canvas slots — excluded from `data-figma-buttons-grid` visual clip */
|
|
61
|
+
export const BUTTON_VARIANT_SLOTS: ButtonVariantSlot[] = hierarchies.flatMap(
|
|
62
|
+
(hierarchy, rowIndex) => [
|
|
63
|
+
{
|
|
64
|
+
hierarchy,
|
|
65
|
+
variant: "noIcon" as const,
|
|
66
|
+
x: VARIANT_COLUMN_X[0],
|
|
67
|
+
y: ROW_Y[rowIndex],
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
hierarchy,
|
|
71
|
+
variant: "noDropdown" as const,
|
|
72
|
+
x: VARIANT_COLUMN_X[1],
|
|
73
|
+
y: ROW_Y[rowIndex],
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
export const FIGMA_BUTTONS_CANVAS = {
|
|
79
|
+
figmaGridWidth: FIGMA_BUTTONS_GRID.width,
|
|
80
|
+
figmaGridHeight: FIGMA_BUTTONS_GRID.height,
|
|
81
|
+
width: VARIANT_COLUMN_X[1] + BUTTON_WIDTH + 24,
|
|
82
|
+
height: FIGMA_BUTTONS_GRID.height,
|
|
83
|
+
} as const;
|