@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
package/dist/material-theme.d.ts
DELETED
|
@@ -1,442 +0,0 @@
|
|
|
1
|
-
export declare const materialTheme: {
|
|
2
|
-
button: {
|
|
3
|
-
defaultProps: {
|
|
4
|
-
className: string;
|
|
5
|
-
ripple: boolean;
|
|
6
|
-
color: string;
|
|
7
|
-
};
|
|
8
|
-
styles: {
|
|
9
|
-
sizes: {
|
|
10
|
-
md: {
|
|
11
|
-
fontSize: string;
|
|
12
|
-
className: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
variants: {
|
|
16
|
-
filled: {
|
|
17
|
-
blue: {
|
|
18
|
-
color: string;
|
|
19
|
-
background: string;
|
|
20
|
-
hover: string;
|
|
21
|
-
disabled: string;
|
|
22
|
-
};
|
|
23
|
-
green: {
|
|
24
|
-
color: string;
|
|
25
|
-
background: string;
|
|
26
|
-
hover: string;
|
|
27
|
-
disabled: string;
|
|
28
|
-
};
|
|
29
|
-
red: {
|
|
30
|
-
color: string;
|
|
31
|
-
background: string;
|
|
32
|
-
hover: string;
|
|
33
|
-
disabled: string;
|
|
34
|
-
};
|
|
35
|
-
gray: {
|
|
36
|
-
color: string;
|
|
37
|
-
background: string;
|
|
38
|
-
hover: string;
|
|
39
|
-
disabled: string;
|
|
40
|
-
};
|
|
41
|
-
orange: {
|
|
42
|
-
color: string;
|
|
43
|
-
background: string;
|
|
44
|
-
hover: string;
|
|
45
|
-
disabled: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
outlined: {
|
|
49
|
-
gray: {
|
|
50
|
-
background: string;
|
|
51
|
-
color: string;
|
|
52
|
-
hover: string;
|
|
53
|
-
disabled: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
text: {
|
|
57
|
-
green: {
|
|
58
|
-
color: string;
|
|
59
|
-
hover: string;
|
|
60
|
-
disabled: string;
|
|
61
|
-
};
|
|
62
|
-
gray: {
|
|
63
|
-
color: string;
|
|
64
|
-
hover: string;
|
|
65
|
-
disabled: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
iconButton: {
|
|
72
|
-
defaultProps: {
|
|
73
|
-
className: string;
|
|
74
|
-
ripple: boolean;
|
|
75
|
-
color: string;
|
|
76
|
-
};
|
|
77
|
-
styles: {
|
|
78
|
-
sizes: {
|
|
79
|
-
md: {
|
|
80
|
-
fontSize: string;
|
|
81
|
-
className: string;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
variants: {
|
|
85
|
-
filled: {
|
|
86
|
-
blue: {
|
|
87
|
-
color: string;
|
|
88
|
-
background: string;
|
|
89
|
-
hover: string;
|
|
90
|
-
disabled: string;
|
|
91
|
-
};
|
|
92
|
-
green: {
|
|
93
|
-
color: string;
|
|
94
|
-
background: string;
|
|
95
|
-
hover: string;
|
|
96
|
-
disabled: string;
|
|
97
|
-
};
|
|
98
|
-
red: {
|
|
99
|
-
color: string;
|
|
100
|
-
background: string;
|
|
101
|
-
hover: string;
|
|
102
|
-
disabled: string;
|
|
103
|
-
};
|
|
104
|
-
gray: {
|
|
105
|
-
color: string;
|
|
106
|
-
background: string;
|
|
107
|
-
hover: string;
|
|
108
|
-
disabled: string;
|
|
109
|
-
};
|
|
110
|
-
orange: {
|
|
111
|
-
color: string;
|
|
112
|
-
background: string;
|
|
113
|
-
hover: string;
|
|
114
|
-
disabled: string;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
outlined: {
|
|
118
|
-
gray: {
|
|
119
|
-
background: string;
|
|
120
|
-
color: string;
|
|
121
|
-
hover: string;
|
|
122
|
-
disabled: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
text: {
|
|
126
|
-
green: {
|
|
127
|
-
color: string;
|
|
128
|
-
hover: string;
|
|
129
|
-
disabled: string;
|
|
130
|
-
};
|
|
131
|
-
gray: {
|
|
132
|
-
color: string;
|
|
133
|
-
hover: string;
|
|
134
|
-
disabled: string;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
progress: {
|
|
141
|
-
defaultProps: {
|
|
142
|
-
className: string;
|
|
143
|
-
barProps: {
|
|
144
|
-
className: string;
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
styles: {
|
|
148
|
-
sizes: {
|
|
149
|
-
sm: {
|
|
150
|
-
container: {
|
|
151
|
-
initial: {
|
|
152
|
-
height: string;
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
menu: {
|
|
160
|
-
styles: {
|
|
161
|
-
base: {
|
|
162
|
-
menu: {
|
|
163
|
-
border: string;
|
|
164
|
-
borderRadius: string;
|
|
165
|
-
boxShadow: string;
|
|
166
|
-
p: string;
|
|
167
|
-
};
|
|
168
|
-
item: {
|
|
169
|
-
initial: {
|
|
170
|
-
display: string;
|
|
171
|
-
bg: string;
|
|
172
|
-
p: string;
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
dialog: {
|
|
179
|
-
defaultProps: {
|
|
180
|
-
size: string;
|
|
181
|
-
dismiss: {};
|
|
182
|
-
animate: {
|
|
183
|
-
mount: {};
|
|
184
|
-
unmount: {};
|
|
185
|
-
};
|
|
186
|
-
className: string;
|
|
187
|
-
};
|
|
188
|
-
valid: {
|
|
189
|
-
sizes: string[];
|
|
190
|
-
};
|
|
191
|
-
styles: {
|
|
192
|
-
base: {
|
|
193
|
-
backdrop: {
|
|
194
|
-
width: string;
|
|
195
|
-
display: string;
|
|
196
|
-
placeItems: string;
|
|
197
|
-
position: string;
|
|
198
|
-
top: number;
|
|
199
|
-
left: number;
|
|
200
|
-
height: string;
|
|
201
|
-
backgroundColor: string;
|
|
202
|
-
backgroundOpacity: string;
|
|
203
|
-
backdropFilter: string;
|
|
204
|
-
};
|
|
205
|
-
container: {
|
|
206
|
-
height: string;
|
|
207
|
-
position: string;
|
|
208
|
-
bg: string;
|
|
209
|
-
m: string;
|
|
210
|
-
borderRadius: string;
|
|
211
|
-
boxShadow: string;
|
|
212
|
-
fontSmoothing: string;
|
|
213
|
-
};
|
|
214
|
-
};
|
|
215
|
-
sizes: {
|
|
216
|
-
sm: {
|
|
217
|
-
maxWidth: string;
|
|
218
|
-
};
|
|
219
|
-
lg: {
|
|
220
|
-
maxWidth: string;
|
|
221
|
-
};
|
|
222
|
-
};
|
|
223
|
-
};
|
|
224
|
-
};
|
|
225
|
-
dialogHeader: {
|
|
226
|
-
styles: {
|
|
227
|
-
base: {
|
|
228
|
-
display: string;
|
|
229
|
-
};
|
|
230
|
-
};
|
|
231
|
-
};
|
|
232
|
-
checkbox: {
|
|
233
|
-
defaultProps: {
|
|
234
|
-
color: string;
|
|
235
|
-
ripple: boolean;
|
|
236
|
-
};
|
|
237
|
-
valid: {
|
|
238
|
-
colors: string[];
|
|
239
|
-
};
|
|
240
|
-
styles: {
|
|
241
|
-
base: {
|
|
242
|
-
root: {
|
|
243
|
-
display: string;
|
|
244
|
-
alignItems: string;
|
|
245
|
-
};
|
|
246
|
-
container: {
|
|
247
|
-
position: string;
|
|
248
|
-
display: string;
|
|
249
|
-
alignItems: string;
|
|
250
|
-
cursor: string;
|
|
251
|
-
p: string;
|
|
252
|
-
borderRadius: string;
|
|
253
|
-
};
|
|
254
|
-
input: {
|
|
255
|
-
peer: string;
|
|
256
|
-
position: string;
|
|
257
|
-
appearance: string;
|
|
258
|
-
width: string;
|
|
259
|
-
height: string;
|
|
260
|
-
borderWidth: string;
|
|
261
|
-
borderRadius: string;
|
|
262
|
-
borderColor: string;
|
|
263
|
-
cursor: string;
|
|
264
|
-
transition: string;
|
|
265
|
-
before: {
|
|
266
|
-
content: string;
|
|
267
|
-
display: string;
|
|
268
|
-
bg: string;
|
|
269
|
-
width: string;
|
|
270
|
-
height: string;
|
|
271
|
-
borderRadius: string;
|
|
272
|
-
position: string;
|
|
273
|
-
opacity: string;
|
|
274
|
-
};
|
|
275
|
-
};
|
|
276
|
-
label: {
|
|
277
|
-
color: string;
|
|
278
|
-
fontWeight: string;
|
|
279
|
-
userSelect: string;
|
|
280
|
-
cursor: string;
|
|
281
|
-
mt: string;
|
|
282
|
-
px: string;
|
|
283
|
-
};
|
|
284
|
-
icon: {
|
|
285
|
-
display: string;
|
|
286
|
-
alignItems: string;
|
|
287
|
-
justifyContent: string;
|
|
288
|
-
width: string;
|
|
289
|
-
height: string;
|
|
290
|
-
color: string;
|
|
291
|
-
position: string;
|
|
292
|
-
pointerEvents: string;
|
|
293
|
-
opacity: string;
|
|
294
|
-
transition: string;
|
|
295
|
-
};
|
|
296
|
-
disabled: {
|
|
297
|
-
opacity: string;
|
|
298
|
-
pointerEvents: string;
|
|
299
|
-
};
|
|
300
|
-
};
|
|
301
|
-
colors: {
|
|
302
|
-
custom: {
|
|
303
|
-
border: string;
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
|
-
};
|
|
307
|
-
};
|
|
308
|
-
popover: {
|
|
309
|
-
defaultProps: {
|
|
310
|
-
placement: string;
|
|
311
|
-
offset: number;
|
|
312
|
-
dismiss: {};
|
|
313
|
-
animate: {
|
|
314
|
-
unmount: {};
|
|
315
|
-
mount: {};
|
|
316
|
-
};
|
|
317
|
-
className: string;
|
|
318
|
-
};
|
|
319
|
-
styles: {
|
|
320
|
-
base: {
|
|
321
|
-
bg: string;
|
|
322
|
-
p: string;
|
|
323
|
-
borderWidth: string;
|
|
324
|
-
borderColor: string;
|
|
325
|
-
borderRadius: string;
|
|
326
|
-
boxShadow: string;
|
|
327
|
-
fontSize: string;
|
|
328
|
-
fontWeight: string;
|
|
329
|
-
color: string;
|
|
330
|
-
outline: string;
|
|
331
|
-
overflowWrap: string;
|
|
332
|
-
whiteSpace: string;
|
|
333
|
-
};
|
|
334
|
-
};
|
|
335
|
-
};
|
|
336
|
-
switch: {
|
|
337
|
-
defaultProps: {
|
|
338
|
-
color: string;
|
|
339
|
-
label: string;
|
|
340
|
-
ripple: boolean;
|
|
341
|
-
className: string;
|
|
342
|
-
disabled: boolean;
|
|
343
|
-
containerProps: undefined;
|
|
344
|
-
labelProps: undefined;
|
|
345
|
-
circleProps: undefined;
|
|
346
|
-
};
|
|
347
|
-
valid: {
|
|
348
|
-
colors: string[];
|
|
349
|
-
};
|
|
350
|
-
styles: {
|
|
351
|
-
base: {
|
|
352
|
-
input: {
|
|
353
|
-
background: string;
|
|
354
|
-
};
|
|
355
|
-
circle: {
|
|
356
|
-
borderColor: string;
|
|
357
|
-
borderRadius: string;
|
|
358
|
-
boxShadow: string;
|
|
359
|
-
position: string;
|
|
360
|
-
top: string;
|
|
361
|
-
left: string;
|
|
362
|
-
transform: string;
|
|
363
|
-
transition: string;
|
|
364
|
-
cursor: string;
|
|
365
|
-
before: {
|
|
366
|
-
content: string;
|
|
367
|
-
display: string;
|
|
368
|
-
bg: string;
|
|
369
|
-
width: string;
|
|
370
|
-
height: string;
|
|
371
|
-
borderRadius: string;
|
|
372
|
-
position: string;
|
|
373
|
-
top: string;
|
|
374
|
-
left: string;
|
|
375
|
-
transform: string;
|
|
376
|
-
transition: string;
|
|
377
|
-
opacity: string;
|
|
378
|
-
};
|
|
379
|
-
};
|
|
380
|
-
ripple: {
|
|
381
|
-
display: string;
|
|
382
|
-
top: string;
|
|
383
|
-
left: string;
|
|
384
|
-
transform: string;
|
|
385
|
-
p: string;
|
|
386
|
-
borderRadius: string;
|
|
387
|
-
};
|
|
388
|
-
label: {
|
|
389
|
-
color: string;
|
|
390
|
-
fontWeight: string;
|
|
391
|
-
userSelect: string;
|
|
392
|
-
cursor: string;
|
|
393
|
-
mt: string;
|
|
394
|
-
ml: string;
|
|
395
|
-
mb: string;
|
|
396
|
-
};
|
|
397
|
-
disabled: {
|
|
398
|
-
opacity: string;
|
|
399
|
-
pointerEvents: string;
|
|
400
|
-
};
|
|
401
|
-
};
|
|
402
|
-
colors: {
|
|
403
|
-
gray: {
|
|
404
|
-
input: string;
|
|
405
|
-
circle: string;
|
|
406
|
-
before: string;
|
|
407
|
-
};
|
|
408
|
-
green: {
|
|
409
|
-
input: string;
|
|
410
|
-
circle: string;
|
|
411
|
-
before: string;
|
|
412
|
-
};
|
|
413
|
-
};
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
|
-
tabsHeader: {
|
|
417
|
-
defaultProps: {
|
|
418
|
-
className: string;
|
|
419
|
-
};
|
|
420
|
-
};
|
|
421
|
-
tab: {
|
|
422
|
-
defaultProps: {
|
|
423
|
-
className: string;
|
|
424
|
-
};
|
|
425
|
-
styles: {
|
|
426
|
-
base: {
|
|
427
|
-
indicator: {
|
|
428
|
-
bg: string;
|
|
429
|
-
borderRadius: string;
|
|
430
|
-
boxShadow: string;
|
|
431
|
-
};
|
|
432
|
-
};
|
|
433
|
-
};
|
|
434
|
-
};
|
|
435
|
-
tabPanel: {
|
|
436
|
-
styles: {
|
|
437
|
-
base: {
|
|
438
|
-
p: string;
|
|
439
|
-
};
|
|
440
|
-
};
|
|
441
|
-
};
|
|
442
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Buttons: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CheckboxItem: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ColorPalette: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Dropdowns: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const InputPrompts: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SearchModals: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SidebarScreen: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Typography: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { IconButton, Tooltip } from "@material-tailwind/react";
|
|
2
|
-
import { useState, type KeyboardEvent, type ReactNode } from "react";
|
|
3
|
-
import TextareaAutosize from "react-textarea-autosize";
|
|
4
|
-
import { cn } from "../utils/cn";
|
|
5
|
-
import SendArrowIcon from "./icons/SendArrowIcon";
|
|
6
|
-
import SendArrowIconGreen from "./icons/SendArrowIconGreen";
|
|
7
|
-
|
|
8
|
-
interface SubmitButtonProps extends React.ComponentProps<typeof IconButton> {
|
|
9
|
-
tooltipContent?: string;
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const SubmitButton: React.FC<SubmitButtonProps> = ({
|
|
14
|
-
tooltipContent = "Send message",
|
|
15
|
-
className,
|
|
16
|
-
...props
|
|
17
|
-
}) => {
|
|
18
|
-
const [hover, setHover] = useState(false);
|
|
19
|
-
|
|
20
|
-
return (
|
|
21
|
-
<Tooltip content={tooltipContent}>
|
|
22
|
-
<IconButton
|
|
23
|
-
variant="text"
|
|
24
|
-
color="gray"
|
|
25
|
-
className={cn(className, "hover:rounded-lg hover:bg-gray-100")}
|
|
26
|
-
type="submit"
|
|
27
|
-
onMouseEnter={() => setHover(true)}
|
|
28
|
-
onMouseLeave={() => setHover(false)}
|
|
29
|
-
{...props}
|
|
30
|
-
>
|
|
31
|
-
{hover ? (
|
|
32
|
-
<SendArrowIconGreen className="size-6 " />
|
|
33
|
-
) : (
|
|
34
|
-
<SendArrowIcon className="size-6 " />
|
|
35
|
-
)}
|
|
36
|
-
</IconButton>
|
|
37
|
-
</Tooltip>
|
|
38
|
-
);
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
interface TextareaProps extends React.ComponentProps<typeof TextareaAutosize> {
|
|
42
|
-
onSubmit?: () => void;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export const Textarea: React.FC<TextareaProps> = ({
|
|
46
|
-
onSubmit = () => {},
|
|
47
|
-
...props
|
|
48
|
-
}) => {
|
|
49
|
-
return (
|
|
50
|
-
<TextareaAutosize
|
|
51
|
-
autoFocus
|
|
52
|
-
placeholder="Write your message here"
|
|
53
|
-
className="pl-1 block w-full focus:outline-none max-h-32 resize-none placeholder:text-gray-400"
|
|
54
|
-
onKeyDown={(e: KeyboardEvent<HTMLTextAreaElement>) => {
|
|
55
|
-
if (e.key === "Enter" && !e.shiftKey) {
|
|
56
|
-
e.preventDefault();
|
|
57
|
-
onSubmit();
|
|
58
|
-
}
|
|
59
|
-
}}
|
|
60
|
-
{...props}
|
|
61
|
-
/>
|
|
62
|
-
);
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
66
|
-
bottom?: ReactNode;
|
|
67
|
-
right?: ReactNode;
|
|
68
|
-
top?: ReactNode;
|
|
69
|
-
textArea?: ReactNode;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export const Container: React.FC<ContainerProps> = ({
|
|
73
|
-
bottom,
|
|
74
|
-
right,
|
|
75
|
-
top,
|
|
76
|
-
textArea = <Textarea />,
|
|
77
|
-
...props
|
|
78
|
-
}) => {
|
|
79
|
-
return (
|
|
80
|
-
<div
|
|
81
|
-
className="border gap-2 rounded-lg bg-white shadow-[0px_2px_2px_0px_#0000000A,0px_8px_8px_-8px_#0000000A] border-gray-100"
|
|
82
|
-
{...props}
|
|
83
|
-
>
|
|
84
|
-
{top}
|
|
85
|
-
|
|
86
|
-
<div className="flex gap-2 p-4 rounded-lg bg-white">
|
|
87
|
-
<div className="grow flex flex-col items-start justify-center">
|
|
88
|
-
{textArea}
|
|
89
|
-
{bottom}
|
|
90
|
-
</div>
|
|
91
|
-
|
|
92
|
-
<div className="shrink flex items-end justify-end">{right}</div>
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
95
|
-
);
|
|
96
|
-
};
|