@baishuyun/ai-design 1.0.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/.storybook/main.ts +29 -0
- package/.storybook/preview.ts +16 -0
- package/.turbo/turbo-build.log +14 -0
- package/CHANGELOG.md +12 -0
- package/components.json +22 -0
- package/debug-storybook.log +88 -0
- package/dist/ai-design.js +20482 -0
- package/dist/ai-design.js.map +1 -0
- package/dist/ai-design.umd.cjs +260 -0
- package/dist/ai-design.umd.cjs.map +1 -0
- package/dist/src/components/abs-fullscreen-gradient-bg.d.ts +10 -0
- package/dist/src/components/abs-fullscreen-gradient-bg.d.ts.map +1 -0
- package/dist/src/components/agent-scroll-selector.d.ts +11 -0
- package/dist/src/components/agent-scroll-selector.d.ts.map +1 -0
- package/dist/src/components/agent-select.d.ts +16 -0
- package/dist/src/components/agent-select.d.ts.map +1 -0
- package/dist/src/components/attachment-part-group.d.ts +16 -0
- package/dist/src/components/attachment-part-group.d.ts.map +1 -0
- package/dist/src/components/attachment-part.d.ts +19 -0
- package/dist/src/components/attachment-part.d.ts.map +1 -0
- package/dist/src/components/attachments-previewer.d.ts +18 -0
- package/dist/src/components/attachments-previewer.d.ts.map +1 -0
- package/dist/src/components/base-button.d.ts +8 -0
- package/dist/src/components/base-button.d.ts.map +1 -0
- package/dist/src/components/border-animation.d.ts +23 -0
- package/dist/src/components/border-animation.d.ts.map +1 -0
- package/dist/src/components/border-color-animation.d.ts +11 -0
- package/dist/src/components/border-color-animation.d.ts.map +1 -0
- package/dist/src/components/bot-avatar-name.d.ts +6 -0
- package/dist/src/components/bot-avatar-name.d.ts.map +1 -0
- package/dist/src/components/bot-icon.d.ts +5 -0
- package/dist/src/components/bot-icon.d.ts.map +1 -0
- package/dist/src/components/bs-entry-select.d.ts +18 -0
- package/dist/src/components/bs-entry-select.d.ts.map +1 -0
- package/dist/src/components/bs-icons.d.ts +75 -0
- package/dist/src/components/bs-icons.d.ts.map +1 -0
- package/dist/src/components/card-field.d.ts +11 -0
- package/dist/src/components/card-field.d.ts.map +1 -0
- package/dist/src/components/card.d.ts +11 -0
- package/dist/src/components/card.d.ts.map +1 -0
- package/dist/src/components/chat-area-header.d.ts +13 -0
- package/dist/src/components/chat-area-header.d.ts.map +1 -0
- package/dist/src/components/circle-checker.d.ts +10 -0
- package/dist/src/components/circle-checker.d.ts.map +1 -0
- package/dist/src/components/collapsible-txt-msg.d.ts +11 -0
- package/dist/src/components/collapsible-txt-msg.d.ts.map +1 -0
- package/dist/src/components/confirm-dialog.d.ts +26 -0
- package/dist/src/components/confirm-dialog.d.ts.map +1 -0
- package/dist/src/components/fake-bot-msg.d.ts +8 -0
- package/dist/src/components/fake-bot-msg.d.ts.map +1 -0
- package/dist/src/components/fields-design-info-table.d.ts +7 -0
- package/dist/src/components/fields-design-info-table.d.ts.map +1 -0
- package/dist/src/components/fields-generating-indicator.d.ts +6 -0
- package/dist/src/components/fields-generating-indicator.d.ts.map +1 -0
- package/dist/src/components/fields-portal.d.ts +8 -0
- package/dist/src/components/fields-portal.d.ts.map +1 -0
- package/dist/src/components/fields-previewer.d.ts +19 -0
- package/dist/src/components/fields-previewer.d.ts.map +1 -0
- package/dist/src/components/font-icon.d.ts +6 -0
- package/dist/src/components/font-icon.d.ts.map +1 -0
- package/dist/src/components/form-info-editor.d.ts +31 -0
- package/dist/src/components/form-info-editor.d.ts.map +1 -0
- package/dist/src/components/formula-tag.d.ts +8 -0
- package/dist/src/components/formula-tag.d.ts.map +1 -0
- package/dist/src/components/generate-animation.d.ts +5 -0
- package/dist/src/components/generate-animation.d.ts.map +1 -0
- package/dist/src/components/icon-btn.d.ts +9 -0
- package/dist/src/components/icon-btn.d.ts.map +1 -0
- package/dist/src/components/img-part.d.ts +10 -0
- package/dist/src/components/img-part.d.ts.map +1 -0
- package/dist/src/components/legacy-slot.d.ts +11 -0
- package/dist/src/components/legacy-slot.d.ts.map +1 -0
- package/dist/src/components/line-checker.d.ts +19 -0
- package/dist/src/components/line-checker.d.ts.map +1 -0
- package/dist/src/components/linear-gradient-border-btn.d.ts +10 -0
- package/dist/src/components/linear-gradient-border-btn.d.ts.map +1 -0
- package/dist/src/components/linear-gradient-color-bg-animation.d.ts +8 -0
- package/dist/src/components/linear-gradient-color-bg-animation.d.ts.map +1 -0
- package/dist/src/components/memoized-markdown.d.ts +5 -0
- package/dist/src/components/memoized-markdown.d.ts.map +1 -0
- package/dist/src/components/message-content.d.ts +6 -0
- package/dist/src/components/message-content.d.ts.map +1 -0
- package/dist/src/components/number-part.d.ts +9 -0
- package/dist/src/components/number-part.d.ts.map +1 -0
- package/dist/src/components/office-container.d.ts +12 -0
- package/dist/src/components/office-container.d.ts.map +1 -0
- package/dist/src/components/option-item.d.ts +9 -0
- package/dist/src/components/option-item.d.ts.map +1 -0
- package/dist/src/components/previewer-header.d.ts +21 -0
- package/dist/src/components/previewer-header.d.ts.map +1 -0
- package/dist/src/components/primary-confirm-btn.d.ts +10 -0
- package/dist/src/components/primary-confirm-btn.d.ts.map +1 -0
- package/dist/src/components/primary-entry-btn.d.ts +9 -0
- package/dist/src/components/primary-entry-btn.d.ts.map +1 -0
- package/dist/src/components/scroll-to-bottom-btn.d.ts +6 -0
- package/dist/src/components/scroll-to-bottom-btn.d.ts.map +1 -0
- package/dist/src/components/split-line.d.ts +5 -0
- package/dist/src/components/split-line.d.ts.map +1 -0
- package/dist/src/components/square-checker.d.ts +15 -0
- package/dist/src/components/square-checker.d.ts.map +1 -0
- package/dist/src/components/tab-radio-group.d.ts +20 -0
- package/dist/src/components/tab-radio-group.d.ts.map +1 -0
- package/dist/src/components/tooltip.d.ts +6 -0
- package/dist/src/components/tooltip.d.ts.map +1 -0
- package/dist/src/components/ui/button.d.ts +12 -0
- package/dist/src/components/ui/button.d.ts.map +1 -0
- package/dist/src/components/ui/dialog.d.ts +24 -0
- package/dist/src/components/ui/dialog.d.ts.map +1 -0
- package/dist/src/components/ui/icons.d.ts +176 -0
- package/dist/src/components/ui/icons.d.ts.map +1 -0
- package/dist/src/components/ui/popover.d.ts +10 -0
- package/dist/src/components/ui/popover.d.ts.map +1 -0
- package/dist/src/components/ui/spinner.d.ts +3 -0
- package/dist/src/components/ui/spinner.d.ts.map +1 -0
- package/dist/src/components/ui/tooltip.d.ts +13 -0
- package/dist/src/components/ui/tooltip.d.ts.map +1 -0
- package/dist/src/components/user-txt-msg-bubble.d.ts +6 -0
- package/dist/src/components/user-txt-msg-bubble.d.ts.map +1 -0
- package/dist/src/components/warning-msg.d.ts +6 -0
- package/dist/src/components/warning-msg.d.ts.map +1 -0
- package/dist/src/const/ui.d.ts +7 -0
- package/dist/src/const/ui.d.ts.map +1 -0
- package/dist/src/hooks/use-resizable-width.d.ts +24 -0
- package/dist/src/hooks/use-resizable-width.d.ts.map +1 -0
- package/dist/src/hooks/use-shadow.d.ts +25 -0
- package/dist/src/hooks/use-shadow.d.ts.map +1 -0
- package/dist/src/index.d.ts +66 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/lib/utils.d.ts +4 -0
- package/dist/src/lib/utils.d.ts.map +1 -0
- package/dist/src/stories/AbsFullscreenGradientBg.stories.d.ts +17 -0
- package/dist/src/stories/AbsFullscreenGradientBg.stories.d.ts.map +1 -0
- package/dist/src/stories/AgentScrollSelector.stories.d.ts +11 -0
- package/dist/src/stories/AgentScrollSelector.stories.d.ts.map +1 -0
- package/dist/src/stories/AgentSelect.stories.d.ts +14 -0
- package/dist/src/stories/AgentSelect.stories.d.ts.map +1 -0
- package/dist/src/stories/AttachmentPart.stories.d.ts +23 -0
- package/dist/src/stories/AttachmentPart.stories.d.ts.map +1 -0
- package/dist/src/stories/AttachmentPartGroup.stories.d.ts +21 -0
- package/dist/src/stories/AttachmentPartGroup.stories.d.ts.map +1 -0
- package/dist/src/stories/AttachmentsPreviewer.stories.d.ts +20 -0
- package/dist/src/stories/AttachmentsPreviewer.stories.d.ts.map +1 -0
- package/dist/src/stories/BaseButton.stories.d.ts +18 -0
- package/dist/src/stories/BaseButton.stories.d.ts.map +1 -0
- package/dist/src/stories/BorderAnimation.stories.d.ts +21 -0
- package/dist/src/stories/BorderAnimation.stories.d.ts.map +1 -0
- package/dist/src/stories/BorderColorAnimation.stories.d.ts +26 -0
- package/dist/src/stories/BorderColorAnimation.stories.d.ts.map +1 -0
- package/dist/src/stories/BotAvatarAndName.stories.d.ts +18 -0
- package/dist/src/stories/BotAvatarAndName.stories.d.ts.map +1 -0
- package/dist/src/stories/BotIcon.stories.d.ts +17 -0
- package/dist/src/stories/BotIcon.stories.d.ts.map +1 -0
- package/dist/src/stories/BsEntrySelect.stories.d.ts +13 -0
- package/dist/src/stories/BsEntrySelect.stories.d.ts.map +1 -0
- package/dist/src/stories/BsTooltip.stories.d.ts +7 -0
- package/dist/src/stories/BsTooltip.stories.d.ts.map +1 -0
- package/dist/src/stories/Card.stories.d.ts +14 -0
- package/dist/src/stories/Card.stories.d.ts.map +1 -0
- package/dist/src/stories/CardField.stories.d.ts +13 -0
- package/dist/src/stories/CardField.stories.d.ts.map +1 -0
- package/dist/src/stories/ChatAreaHeader.stories.d.ts +14 -0
- package/dist/src/stories/ChatAreaHeader.stories.d.ts.map +1 -0
- package/dist/src/stories/CircleChecker.stories.d.ts +21 -0
- package/dist/src/stories/CircleChecker.stories.d.ts.map +1 -0
- package/dist/src/stories/CollapsibleTextMsg.stories.d.ts +16 -0
- package/dist/src/stories/CollapsibleTextMsg.stories.d.ts.map +1 -0
- package/dist/src/stories/ConfirmDialog.stories.d.ts +61 -0
- package/dist/src/stories/ConfirmDialog.stories.d.ts.map +1 -0
- package/dist/src/stories/FakeBotMsg.stories.d.ts +21 -0
- package/dist/src/stories/FakeBotMsg.stories.d.ts.map +1 -0
- package/dist/src/stories/FormInfoEditor.stories.d.ts +15 -0
- package/dist/src/stories/FormInfoEditor.stories.d.ts.map +1 -0
- package/dist/src/stories/FormulaTag.stories.d.ts +37 -0
- package/dist/src/stories/FormulaTag.stories.d.ts.map +1 -0
- package/dist/src/stories/GenerateAnimation.stories.d.ts +17 -0
- package/dist/src/stories/GenerateAnimation.stories.d.ts.map +1 -0
- package/dist/src/stories/IconBtn.stories.d.ts +15 -0
- package/dist/src/stories/IconBtn.stories.d.ts.map +1 -0
- package/dist/src/stories/IconLib.d.ts +12 -0
- package/dist/src/stories/IconLib.d.ts.map +1 -0
- package/dist/src/stories/Icons.stories.d.ts +24 -0
- package/dist/src/stories/Icons.stories.d.ts.map +1 -0
- package/dist/src/stories/ImgMsgPart.stories.d.ts +20 -0
- package/dist/src/stories/ImgMsgPart.stories.d.ts.map +1 -0
- package/dist/src/stories/LegacySlot.stories.d.ts +16 -0
- package/dist/src/stories/LegacySlot.stories.d.ts.map +1 -0
- package/dist/src/stories/LineChecker.stories.d.ts +23 -0
- package/dist/src/stories/LineChecker.stories.d.ts.map +1 -0
- package/dist/src/stories/LinearGradientBorderBtn.stories.d.ts +22 -0
- package/dist/src/stories/LinearGradientBorderBtn.stories.d.ts.map +1 -0
- package/dist/src/stories/LinearGradientColorBgAnimation.stories.d.ts +23 -0
- package/dist/src/stories/LinearGradientColorBgAnimation.stories.d.ts.map +1 -0
- package/dist/src/stories/MemoizedMarkdown.stories.d.ts +23 -0
- package/dist/src/stories/MemoizedMarkdown.stories.d.ts.map +1 -0
- package/dist/src/stories/MessageContent.stories.d.ts +16 -0
- package/dist/src/stories/MessageContent.stories.d.ts.map +1 -0
- package/dist/src/stories/NumbersMsgPart.stories.d.ts +19 -0
- package/dist/src/stories/NumbersMsgPart.stories.d.ts.map +1 -0
- package/dist/src/stories/OfficeContainer.stories.d.ts +8 -0
- package/dist/src/stories/OfficeContainer.stories.d.ts.map +1 -0
- package/dist/src/stories/OptionItem.stories.d.ts +20 -0
- package/dist/src/stories/OptionItem.stories.d.ts.map +1 -0
- package/dist/src/stories/PreviewerHeader.stories.d.ts +12 -0
- package/dist/src/stories/PreviewerHeader.stories.d.ts.map +1 -0
- package/dist/src/stories/PrimaryConfirmBtn.stories.d.ts +19 -0
- package/dist/src/stories/PrimaryConfirmBtn.stories.d.ts.map +1 -0
- package/dist/src/stories/PrimaryEntryBtn.stories.d.ts +26 -0
- package/dist/src/stories/PrimaryEntryBtn.stories.d.ts.map +1 -0
- package/dist/src/stories/ScrollToBottom.stories.d.ts +15 -0
- package/dist/src/stories/ScrollToBottom.stories.d.ts.map +1 -0
- package/dist/src/stories/SplitLine.stories.d.ts +9 -0
- package/dist/src/stories/SplitLine.stories.d.ts.map +1 -0
- package/dist/src/stories/SquareChecker.stories.d.ts +26 -0
- package/dist/src/stories/SquareChecker.stories.d.ts.map +1 -0
- package/dist/src/stories/TabRadioGroup.stories.d.ts +18 -0
- package/dist/src/stories/TabRadioGroup.stories.d.ts.map +1 -0
- package/dist/src/stories/UserTextMsgBubble.stories.d.ts +14 -0
- package/dist/src/stories/UserTextMsgBubble.stories.d.ts.map +1 -0
- package/dist/src/stories/WarningMessage.stories.d.ts +16 -0
- package/dist/src/stories/WarningMessage.stories.d.ts.map +1 -0
- package/dist/src/stories/fields-design-info-table.stories.d.ts +14 -0
- package/dist/src/stories/fields-design-info-table.stories.d.ts.map +1 -0
- package/dist/src/stories/fields-generating.stories.d.ts +20 -0
- package/dist/src/stories/fields-generating.stories.d.ts.map +1 -0
- package/dist/src/stories/fields-previewer.stories.d.ts +19 -0
- package/dist/src/stories/fields-previewer.stories.d.ts.map +1 -0
- package/dist/src/types.d.ts +8 -0
- package/dist/src/types.d.ts.map +1 -0
- package/package.json +80 -0
- package/src/components/abs-fullscreen-gradient-bg.tsx +35 -0
- package/src/components/agent-scroll-selector.tsx +181 -0
- package/src/components/agent-select.tsx +149 -0
- package/src/components/attachment-part-group.tsx +35 -0
- package/src/components/attachment-part.tsx +179 -0
- package/src/components/attachments-previewer.tsx +324 -0
- package/src/components/base-button.tsx +49 -0
- package/src/components/border-animation.tsx +107 -0
- package/src/components/border-color-animation.tsx +66 -0
- package/src/components/bot-avatar-name.tsx +36 -0
- package/src/components/bot-icon.tsx +23 -0
- package/src/components/bs-entry-select.tsx +724 -0
- package/src/components/bs-icons.tsx +1201 -0
- package/src/components/card-field.tsx +23 -0
- package/src/components/card.tsx +36 -0
- package/src/components/chat-area-header.tsx +65 -0
- package/src/components/circle-checker.tsx +66 -0
- package/src/components/collapsible-txt-msg.tsx +63 -0
- package/src/components/confirm-dialog.tsx +139 -0
- package/src/components/fake-bot-msg.tsx +49 -0
- package/src/components/fields-design-info-table.tsx +160 -0
- package/src/components/fields-generating-indicator.tsx +95 -0
- package/src/components/fields-portal.tsx +18 -0
- package/src/components/fields-previewer.tsx +216 -0
- package/src/components/font-icon.tsx +17 -0
- package/src/components/form-info-editor.tsx +253 -0
- package/src/components/formula-tag.tsx +32 -0
- package/src/components/generate-animation.tsx +56 -0
- package/src/components/icon-btn.tsx +43 -0
- package/src/components/img-part.tsx +27 -0
- package/src/components/legacy-slot.tsx +103 -0
- package/src/components/line-checker.tsx +160 -0
- package/src/components/linear-gradient-border-btn.tsx +48 -0
- package/src/components/linear-gradient-color-bg-animation.tsx +103 -0
- package/src/components/memoized-markdown.tsx +32 -0
- package/src/components/message-content.tsx +21 -0
- package/src/components/number-part.tsx +46 -0
- package/src/components/office-container.tsx +83 -0
- package/src/components/option-item.tsx +28 -0
- package/src/components/previewer-header.tsx +270 -0
- package/src/components/primary-confirm-btn.tsx +58 -0
- package/src/components/primary-entry-btn.tsx +48 -0
- package/src/components/scroll-to-bottom-btn.tsx +28 -0
- package/src/components/split-line.tsx +9 -0
- package/src/components/square-checker.tsx +87 -0
- package/src/components/tab-radio-group.tsx +83 -0
- package/src/components/tooltip.tsx +53 -0
- package/src/components/ui/button.tsx +51 -0
- package/src/components/ui/dialog.tsx +104 -0
- package/src/components/ui/icons.tsx +1267 -0
- package/src/components/ui/popover.tsx +50 -0
- package/src/components/ui/spinner.tsx +17 -0
- package/src/components/ui/tooltip.tsx +53 -0
- package/src/components/user-txt-msg-bubble.tsx +19 -0
- package/src/components/warning-msg.tsx +27 -0
- package/src/const/ui.ts +52 -0
- package/src/hooks/use-resizable-width.ts +92 -0
- package/src/hooks/use-shadow.ts +127 -0
- package/src/index.ts +76 -0
- package/src/lib/utils.ts +52 -0
- package/src/stories/AbsFullscreenGradientBg.stories.tsx +36 -0
- package/src/stories/AgentScrollSelector.stories.tsx +95 -0
- package/src/stories/AgentSelect.stories.tsx +134 -0
- package/src/stories/AttachmentPart.stories.tsx +122 -0
- package/src/stories/AttachmentPartGroup.stories.tsx +152 -0
- package/src/stories/AttachmentsPreviewer.stories.tsx +306 -0
- package/src/stories/BaseButton.stories.tsx +33 -0
- package/src/stories/BorderAnimation.stories.tsx +116 -0
- package/src/stories/BorderColorAnimation.stories.tsx +63 -0
- package/src/stories/BotAvatarAndName.stories.ts +24 -0
- package/src/stories/BotIcon.stories.ts +22 -0
- package/src/stories/BsEntrySelect.stories.tsx +261 -0
- package/src/stories/BsTooltip.stories.tsx +32 -0
- package/src/stories/Card.stories.tsx +28 -0
- package/src/stories/CardField.stories.tsx +87 -0
- package/src/stories/ChatAreaHeader.stories.ts +26 -0
- package/src/stories/CircleChecker.stories.tsx +89 -0
- package/src/stories/CollapsibleTextMsg.stories.ts +44 -0
- package/src/stories/ConfirmDialog.stories.tsx +123 -0
- package/src/stories/FakeBotMsg.stories.tsx +36 -0
- package/src/stories/FormInfoEditor.stories.tsx +173 -0
- package/src/stories/FormulaTag.stories.tsx +68 -0
- package/src/stories/GenerateAnimation.stories.ts +20 -0
- package/src/stories/IconBtn.stories.tsx +32 -0
- package/src/stories/IconLib.tsx +45 -0
- package/src/stories/Icons.stories.ts +22 -0
- package/src/stories/ImgMsgPart.stories.tsx +42 -0
- package/src/stories/LegacySlot.stories.tsx +56 -0
- package/src/stories/LineChecker.stories.tsx +134 -0
- package/src/stories/LinearGradientBorderBtn.stories.tsx +86 -0
- package/src/stories/LinearGradientColorBgAnimation.stories.tsx +60 -0
- package/src/stories/MemoizedMarkdown.stories.tsx +102 -0
- package/src/stories/MessageContent.stories.tsx +36 -0
- package/src/stories/NumbersMsgPart.stories.tsx +42 -0
- package/src/stories/OfficeContainer.stories.tsx +82 -0
- package/src/stories/OptionItem.stories.tsx +77 -0
- package/src/stories/PreviewerHeader.stories.tsx +91 -0
- package/src/stories/PrimaryConfirmBtn.stories.tsx +60 -0
- package/src/stories/PrimaryEntryBtn.stories.tsx +74 -0
- package/src/stories/ScrollToBottom.stories.tsx +24 -0
- package/src/stories/SplitLine.stories.tsx +40 -0
- package/src/stories/SquareChecker.stories.tsx +96 -0
- package/src/stories/TabRadioGroup.stories.tsx +84 -0
- package/src/stories/UserTextMsgBubble.stories.ts +24 -0
- package/src/stories/WarningMessage.stories.tsx +23 -0
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/accessibility.svg +1 -0
- package/src/stories/assets/addon-library.png +0 -0
- package/src/stories/assets/assets.png +0 -0
- package/src/stories/assets/avif-test-image.avif +0 -0
- package/src/stories/assets/context.png +0 -0
- package/src/stories/assets/demo.css +539 -0
- package/src/stories/assets/demo_index.html +7988 -0
- package/src/stories/assets/discord.svg +1 -0
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/github.svg +1 -0
- package/src/stories/assets/iconfont.css +1377 -0
- package/src/stories/assets/iconfont.eot +0 -0
- package/src/stories/assets/iconfont.json +2382 -0
- package/src/stories/assets/iconfont.svg +697 -0
- package/src/stories/assets/iconfont.ttf +0 -0
- package/src/stories/assets/iconfont.woff +0 -0
- package/src/stories/assets/iconfont.woff2 +0 -0
- package/src/stories/assets/share.png +0 -0
- package/src/stories/assets/styling.png +0 -0
- package/src/stories/assets/testing.png +0 -0
- package/src/stories/assets/theming.png +0 -0
- package/src/stories/assets/tutorials.svg +1 -0
- package/src/stories/assets/youtube.svg +1 -0
- package/src/stories/fields-design-info-table.stories.tsx +203 -0
- package/src/stories/fields-generating.stories.tsx +41 -0
- package/src/stories/fields-previewer.stories.tsx +77 -0
- package/src/style.css +223 -0
- package/src/types.ts +8 -0
- package/tsconfig.json +12 -0
- package/vite.config.ts +42 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="33" height="32" fill="none" viewBox="0 0 33 32"><g clip-path="url(#clip0_10031_177597)"><path fill="#B7F0EF" fill-rule="evenodd" d="M17 7.87059C17 6.48214 17.9812 5.28722 19.3431 5.01709L29.5249 2.99755C31.3238 2.64076 33 4.01717 33 5.85105V22.1344C33 23.5229 32.0188 24.7178 30.6569 24.9879L20.4751 27.0074C18.6762 27.3642 17 25.9878 17 24.1539L17 7.87059Z" clip-rule="evenodd" opacity=".7"/><path fill="#87E6E5" fill-rule="evenodd" d="M1 5.85245C1 4.01857 2.67623 2.64215 4.47507 2.99895L14.6569 5.01848C16.0188 5.28861 17 6.48354 17 7.87198V24.1553C17 25.9892 15.3238 27.3656 13.5249 27.0088L3.34311 24.9893C1.98119 24.7192 1 23.5242 1 22.1358V5.85245Z" clip-rule="evenodd"/><path fill="#61C1FD" fill-rule="evenodd" d="M15.543 5.71289C15.543 5.71289 16.8157 5.96289 17.4002 6.57653C17.9847 7.19016 18.4521 9.03107 18.4521 9.03107C18.4521 9.03107 18.4521 25.1106 18.4521 26.9629C18.4521 28.8152 19.3775 31.4174 19.3775 31.4174L17.4002 28.8947L16.2575 31.4174C16.2575 31.4174 15.543 29.0765 15.543 27.122C15.543 25.1674 15.543 5.71289 15.543 5.71289Z" clip-rule="evenodd"/></g><defs><clipPath id="clip0_10031_177597"><rect width="32" height="32" fill="#fff" transform="translate(0.5)"/></clipPath></defs></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none" viewBox="0 0 32 32"><path fill="#ED1D24" d="M31.3313 8.44657C30.9633 7.08998 29.8791 6.02172 28.5022 5.65916C26.0067 5.00026 16 5.00026 16 5.00026C16 5.00026 5.99333 5.00026 3.4978 5.65916C2.12102 6.02172 1.03665 7.08998 0.668678 8.44657C0 10.9053 0 16.0353 0 16.0353C0 16.0353 0 21.1652 0.668678 23.6242C1.03665 24.9806 2.12102 26.0489 3.4978 26.4116C5.99333 27.0703 16 27.0703 16 27.0703C16 27.0703 26.0067 27.0703 28.5022 26.4116C29.8791 26.0489 30.9633 24.9806 31.3313 23.6242C32 21.1652 32 16.0353 32 16.0353C32 16.0353 32 10.9053 31.3313 8.44657Z"/><path fill="#fff" d="M12.7266 20.6934L21.0902 16.036L12.7266 11.3781V20.6934Z"/></svg>
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { IFieldDesignInfo } from '@baishuyun/types';
|
|
3
|
+
import { FieldsDesignInfoTable } from '../components/fields-design-info-table';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof FieldsDesignInfoTable> = {
|
|
6
|
+
title: 'Example/Chat/FieldsDesignInfoTable',
|
|
7
|
+
component: FieldsDesignInfoTable,
|
|
8
|
+
tags: ['autodocs'],
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'centered',
|
|
11
|
+
},
|
|
12
|
+
decorators: [
|
|
13
|
+
(Story) => (
|
|
14
|
+
<div style={{ width: 420 }}>
|
|
15
|
+
<Story />
|
|
16
|
+
</div>
|
|
17
|
+
),
|
|
18
|
+
],
|
|
19
|
+
} satisfies Meta<typeof FieldsDesignInfoTable>;
|
|
20
|
+
|
|
21
|
+
export default meta;
|
|
22
|
+
type Story = StoryObj<typeof meta>;
|
|
23
|
+
|
|
24
|
+
const basicFields: IFieldDesignInfo[] = [
|
|
25
|
+
{
|
|
26
|
+
fieldName: '订单编号',
|
|
27
|
+
type: '流水号',
|
|
28
|
+
required: true,
|
|
29
|
+
description: '唯一标识订单的编号',
|
|
30
|
+
relationDesc: '',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
fieldName: '下单日期',
|
|
34
|
+
type: '日期时间',
|
|
35
|
+
required: true,
|
|
36
|
+
description: '选择订单的下单日期时间',
|
|
37
|
+
relationDesc: '',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
fieldName: '客户名称',
|
|
41
|
+
type: '文本',
|
|
42
|
+
required: true,
|
|
43
|
+
description: '输入客户的名称',
|
|
44
|
+
relationDesc: '',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
fieldName: '联系电话',
|
|
48
|
+
type: '文本',
|
|
49
|
+
required: true,
|
|
50
|
+
description: '输入客户的联系电话',
|
|
51
|
+
relationDesc: '',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
fieldName: '收货地址',
|
|
55
|
+
type: '地址',
|
|
56
|
+
required: true,
|
|
57
|
+
description: '选择或输入收货地址',
|
|
58
|
+
relationDesc: '',
|
|
59
|
+
},
|
|
60
|
+
];
|
|
61
|
+
|
|
62
|
+
const fieldsWithSubform: IFieldDesignInfo[] = [
|
|
63
|
+
...basicFields,
|
|
64
|
+
{
|
|
65
|
+
fieldName: '商品明细',
|
|
66
|
+
type: '子表单',
|
|
67
|
+
required: true,
|
|
68
|
+
description: '填写订单商品明细',
|
|
69
|
+
relationDesc: '',
|
|
70
|
+
isSubForm: true,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
fieldName: '商品名称',
|
|
74
|
+
type: '文本',
|
|
75
|
+
required: true,
|
|
76
|
+
description: '输入商品的名称',
|
|
77
|
+
relationDesc: '',
|
|
78
|
+
isFieldInSubForm: true,
|
|
79
|
+
parentFormName: '商品明细',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
fieldName: '商品单价',
|
|
83
|
+
type: '数字',
|
|
84
|
+
required: true,
|
|
85
|
+
description: '输入商品的单价',
|
|
86
|
+
relationDesc: '',
|
|
87
|
+
isFieldInSubForm: true,
|
|
88
|
+
parentFormName: '商品明细',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
fieldName: '购买数量',
|
|
92
|
+
type: '数字',
|
|
93
|
+
required: true,
|
|
94
|
+
description: '输入商品的购买数量',
|
|
95
|
+
relationDesc: '',
|
|
96
|
+
isFieldInSubForm: true,
|
|
97
|
+
parentFormName: '商品明细',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
fieldName: '商品金额',
|
|
101
|
+
type: '数字',
|
|
102
|
+
required: true,
|
|
103
|
+
description: '自动计算商品金额(单价*数量)红红火火恍恍惚惚哈哈哈哈哈哈哈',
|
|
104
|
+
relationDesc: '',
|
|
105
|
+
isFieldInSubForm: true,
|
|
106
|
+
parentFormName: '商品明细',
|
|
107
|
+
},
|
|
108
|
+
];
|
|
109
|
+
|
|
110
|
+
/** 基础表格 - 无子表单 */
|
|
111
|
+
export const Basic: Story = {
|
|
112
|
+
args: {
|
|
113
|
+
fields: basicFields,
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/** 包含子表单 - 可展开/收起 */
|
|
118
|
+
export const WithSubForm: Story = {
|
|
119
|
+
args: {
|
|
120
|
+
fields: fieldsWithSubform,
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
/** 空数据 */
|
|
125
|
+
export const Empty: Story = {
|
|
126
|
+
args: {
|
|
127
|
+
fields: [],
|
|
128
|
+
},
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/** 多个子表单 */
|
|
132
|
+
export const MultipleSubForms: Story = {
|
|
133
|
+
args: {
|
|
134
|
+
fields: [
|
|
135
|
+
{
|
|
136
|
+
fieldName: '项目名称',
|
|
137
|
+
type: '文本',
|
|
138
|
+
required: true,
|
|
139
|
+
description: '输入项目名称',
|
|
140
|
+
relationDesc: '',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
fieldName: '团队成员',
|
|
144
|
+
type: '子表单',
|
|
145
|
+
required: true,
|
|
146
|
+
description: '添加团队成员信息',
|
|
147
|
+
relationDesc: '',
|
|
148
|
+
isSubForm: true,
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
fieldName: '姓名',
|
|
152
|
+
type: '文本',
|
|
153
|
+
required: true,
|
|
154
|
+
description: '输入成员姓名',
|
|
155
|
+
relationDesc: '',
|
|
156
|
+
isFieldInSubForm: true,
|
|
157
|
+
parentFormName: '团队成员',
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
fieldName: '职位',
|
|
161
|
+
type: '文本',
|
|
162
|
+
required: false,
|
|
163
|
+
description: '输入成员职位',
|
|
164
|
+
relationDesc: '',
|
|
165
|
+
isFieldInSubForm: true,
|
|
166
|
+
parentFormName: '团队成员',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
fieldName: '备注',
|
|
170
|
+
type: '文本',
|
|
171
|
+
required: false,
|
|
172
|
+
description: '输入备注信息',
|
|
173
|
+
relationDesc: '',
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
fieldName: '里程碑',
|
|
177
|
+
type: '子表单',
|
|
178
|
+
required: false,
|
|
179
|
+
description: '添加项目里程碑',
|
|
180
|
+
relationDesc: '',
|
|
181
|
+
isSubForm: true,
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
fieldName: '阶段名称',
|
|
185
|
+
type: '文本',
|
|
186
|
+
required: true,
|
|
187
|
+
description: '输入里程碑阶段名称',
|
|
188
|
+
relationDesc: '',
|
|
189
|
+
isFieldInSubForm: true,
|
|
190
|
+
parentFormName: '里程碑',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
fieldName: '截止日期',
|
|
194
|
+
type: '日期时间',
|
|
195
|
+
required: true,
|
|
196
|
+
description: '选择里程碑截止日期',
|
|
197
|
+
relationDesc: '',
|
|
198
|
+
isFieldInSubForm: true,
|
|
199
|
+
parentFormName: '里程碑',
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
},
|
|
203
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
|
|
3
|
+
import { FieldsGeneratingIndicator } from '../components/fields-generating-indicator';
|
|
4
|
+
|
|
5
|
+
const meta = {
|
|
6
|
+
title: 'Example/Chat/FieldsGeneratingIndicator',
|
|
7
|
+
component: FieldsGeneratingIndicator,
|
|
8
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
|
9
|
+
tags: ['autodocs'],
|
|
10
|
+
parameters: {
|
|
11
|
+
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
|
12
|
+
layout: 'centered',
|
|
13
|
+
},
|
|
14
|
+
args: {},
|
|
15
|
+
} satisfies Meta<typeof FieldsGeneratingIndicator>;
|
|
16
|
+
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
|
|
20
|
+
export const Base: Story = {
|
|
21
|
+
args: {},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const CustomText: Story = {
|
|
25
|
+
args: {
|
|
26
|
+
children: '数据查询中',
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const LongText: Story = {
|
|
31
|
+
args: {
|
|
32
|
+
children: '已生成,请在对话中确定',
|
|
33
|
+
loading: false,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const ShortText: Story = {
|
|
38
|
+
args: {
|
|
39
|
+
children: '加载中',
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
|
|
3
|
+
import { FieldsPreviewer } from '../components/fields-previewer';
|
|
4
|
+
|
|
5
|
+
const meta = {
|
|
6
|
+
title: 'Example/Chat/FieldsPreviewer',
|
|
7
|
+
component: FieldsPreviewer,
|
|
8
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
|
9
|
+
tags: ['autodocs'],
|
|
10
|
+
parameters: {
|
|
11
|
+
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
|
12
|
+
layout: 'centered',
|
|
13
|
+
},
|
|
14
|
+
args: {},
|
|
15
|
+
} satisfies Meta<typeof FieldsPreviewer>;
|
|
16
|
+
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
|
|
20
|
+
export const Base: Story = {
|
|
21
|
+
args: {
|
|
22
|
+
title: '编辑表单',
|
|
23
|
+
onSave: () => alert('保存点击'),
|
|
24
|
+
onCancel: () => alert('取消点击'),
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const WithSideSpace: Story = {
|
|
29
|
+
args: {
|
|
30
|
+
title: '编辑表单',
|
|
31
|
+
rightSpaceWidth: 375,
|
|
32
|
+
onSave: () => alert('保存点击'),
|
|
33
|
+
onCancel: () => alert('取消点击'),
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const streaming: Story = {
|
|
38
|
+
args: {
|
|
39
|
+
title: '编辑表单',
|
|
40
|
+
rightSpaceWidth: 375,
|
|
41
|
+
streaming: true,
|
|
42
|
+
active: true,
|
|
43
|
+
onSave: () => alert('保存点击'),
|
|
44
|
+
onCancel: () => alert('取消点击'),
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const Empty: Story = {
|
|
49
|
+
args: {
|
|
50
|
+
title: '编辑表单',
|
|
51
|
+
empty: true,
|
|
52
|
+
streaming: true,
|
|
53
|
+
onSave: () => alert('保存点击'),
|
|
54
|
+
onCancel: () => alert('取消点击'),
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const Fullscreen: Story = {
|
|
59
|
+
args: {
|
|
60
|
+
title: '编辑表单',
|
|
61
|
+
fullscreen: true,
|
|
62
|
+
streaming: true,
|
|
63
|
+
onSave: () => alert('保存点击'),
|
|
64
|
+
onCancel: () => alert('取消点击'),
|
|
65
|
+
empty: true,
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export const DataVariant: Story = {
|
|
70
|
+
args: {
|
|
71
|
+
title: '数据预览',
|
|
72
|
+
onSave: () => alert('保存点击'),
|
|
73
|
+
active: false,
|
|
74
|
+
variant: 'data-previewer',
|
|
75
|
+
rightSpaceWidth: 375,
|
|
76
|
+
},
|
|
77
|
+
};
|
package/src/style.css
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
|
|
3
|
+
@plugin "tailwindcss-animate";
|
|
4
|
+
|
|
5
|
+
@import 'tw-animate-css';
|
|
6
|
+
|
|
7
|
+
@custom-variant dark (&:is(.dark *));
|
|
8
|
+
|
|
9
|
+
@theme inline {
|
|
10
|
+
--tw-space-y-reverse: 0;
|
|
11
|
+
--tw-border-style: solid;
|
|
12
|
+
--tw-leading: initial;
|
|
13
|
+
--tw-font-weight: initial;
|
|
14
|
+
--tw-shadow: 0 0 #0000;
|
|
15
|
+
--tw-shadow-color: initial;
|
|
16
|
+
--tw-shadow-alpha: 100%;
|
|
17
|
+
--tw-inset-shadow: 0 0 #0000;
|
|
18
|
+
--tw-inset-shadow-color: initial;
|
|
19
|
+
--tw-inset-shadow-alpha: 100%;
|
|
20
|
+
--tw-ring-color: initial;
|
|
21
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
22
|
+
--tw-inset-ring-color: initial;
|
|
23
|
+
--tw-inset-ring-shadow: 0 0 #0000;
|
|
24
|
+
--tw-ring-inset: initial;
|
|
25
|
+
--tw-ring-offset-width: 0px;
|
|
26
|
+
--tw-ring-offset-color: #fff;
|
|
27
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
28
|
+
--tw-outline-style: solid;
|
|
29
|
+
--tw-translate-x: 0;
|
|
30
|
+
--tw-translate-y: 0;
|
|
31
|
+
--tw-translate-z: 0;
|
|
32
|
+
--tw-animation-delay: 0s;
|
|
33
|
+
--tw-animation-direction: normal;
|
|
34
|
+
--tw-animation-duration: initial;
|
|
35
|
+
--tw-animation-fill-mode: none;
|
|
36
|
+
--tw-animation-iteration-count: 1;
|
|
37
|
+
--tw-enter-blur: 0;
|
|
38
|
+
--tw-enter-opacity: 1;
|
|
39
|
+
--tw-enter-rotate: 0;
|
|
40
|
+
--tw-enter-scale: 1;
|
|
41
|
+
--tw-enter-translate-x: 0;
|
|
42
|
+
--tw-enter-translate-y: 0;
|
|
43
|
+
--tw-exit-blur: 0;
|
|
44
|
+
--tw-exit-opacity: 1;
|
|
45
|
+
--tw-exit-rotate: 0;
|
|
46
|
+
--tw-exit-scale: 1;
|
|
47
|
+
--tw-exit-translate-x: 0;
|
|
48
|
+
--tw-exit-translate-y: 0;
|
|
49
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
50
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
51
|
+
--radius-lg: var(--radius);
|
|
52
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
53
|
+
--color-background: var(--background);
|
|
54
|
+
--color-foreground: var(--foreground);
|
|
55
|
+
--color-card: var(--card);
|
|
56
|
+
--color-card-foreground: var(--card-foreground);
|
|
57
|
+
--color-popover: var(--popover);
|
|
58
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
59
|
+
--color-primary: var(--primary);
|
|
60
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
61
|
+
--color-secondary: var(--secondary);
|
|
62
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
63
|
+
--color-muted: var(--muted);
|
|
64
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
65
|
+
--color-accent: var(--accent);
|
|
66
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
67
|
+
--color-destructive: var(--destructive);
|
|
68
|
+
--color-border: var(--border);
|
|
69
|
+
--color-input: var(--input);
|
|
70
|
+
--color-ring: var(--ring);
|
|
71
|
+
--color-chart-1: var(--chart-1);
|
|
72
|
+
--color-chart-2: var(--chart-2);
|
|
73
|
+
--color-chart-3: var(--chart-3);
|
|
74
|
+
--color-chart-4: var(--chart-4);
|
|
75
|
+
--color-chart-5: var(--chart-5);
|
|
76
|
+
--color-sidebar: var(--sidebar);
|
|
77
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
78
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
79
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
80
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
81
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
82
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
83
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
84
|
+
|
|
85
|
+
--radius: 0.625rem;
|
|
86
|
+
--background: oklch(1 0 0);
|
|
87
|
+
--foreground: oklch(0.129 0.042 264.695);
|
|
88
|
+
--card: oklch(1 0 0);
|
|
89
|
+
--card-foreground: oklch(0.129 0.042 264.695);
|
|
90
|
+
--popover: oklch(1 0 0);
|
|
91
|
+
--popover-foreground: oklch(0.129 0.042 264.695);
|
|
92
|
+
--primary: oklch(0.208 0.042 265.755);
|
|
93
|
+
--primary-foreground: oklch(0.984 0.003 247.858);
|
|
94
|
+
--secondary: oklch(0.968 0.007 247.896);
|
|
95
|
+
--secondary-foreground: oklch(0.208 0.042 265.755);
|
|
96
|
+
--muted: oklch(0.968 0.007 247.896);
|
|
97
|
+
--muted-foreground: oklch(0.554 0.046 257.417);
|
|
98
|
+
--accent: oklch(0.968 0.007 247.896);
|
|
99
|
+
--accent-foreground: oklch(0.208 0.042 265.755);
|
|
100
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
101
|
+
--border: oklch(0.929 0.013 255.508);
|
|
102
|
+
--input: oklch(0.929 0.013 255.508);
|
|
103
|
+
--ring: oklch(0.704 0.04 256.788);
|
|
104
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
105
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
106
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
107
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
108
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
109
|
+
--sidebar: oklch(0.984 0.003 247.858);
|
|
110
|
+
--sidebar-foreground: oklch(0.129 0.042 264.695);
|
|
111
|
+
--sidebar-primary: oklch(0.208 0.042 265.755);
|
|
112
|
+
--sidebar-primary-foreground: oklch(0.984 0.003 247.858);
|
|
113
|
+
--sidebar-accent: oklch(0.968 0.007 247.896);
|
|
114
|
+
--sidebar-accent-foreground: oklch(0.208 0.042 265.755);
|
|
115
|
+
--sidebar-border: oklch(0.929 0.013 255.508);
|
|
116
|
+
--sidebar-ring: oklch(0.704 0.04 256.788);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.dark {
|
|
120
|
+
--background: oklch(0.129 0.042 264.695);
|
|
121
|
+
--foreground: oklch(0.984 0.003 247.858);
|
|
122
|
+
--card: oklch(0.208 0.042 265.755);
|
|
123
|
+
--card-foreground: oklch(0.984 0.003 247.858);
|
|
124
|
+
--popover: oklch(0.208 0.042 265.755);
|
|
125
|
+
--popover-foreground: oklch(0.984 0.003 247.858);
|
|
126
|
+
--primary: oklch(0.929 0.013 255.508);
|
|
127
|
+
--primary-foreground: oklch(0.208 0.042 265.755);
|
|
128
|
+
--secondary: oklch(0.279 0.041 260.031);
|
|
129
|
+
--secondary-foreground: oklch(0.984 0.003 247.858);
|
|
130
|
+
--muted: oklch(0.279 0.041 260.031);
|
|
131
|
+
--muted-foreground: oklch(0.704 0.04 256.788);
|
|
132
|
+
--accent: oklch(0.279 0.041 260.031);
|
|
133
|
+
--accent-foreground: #eff0f6;
|
|
134
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
135
|
+
--border: oklch(1 0 0 / 10%);
|
|
136
|
+
--input: oklch(1 0 0 / 15%);
|
|
137
|
+
--ring: oklch(0.551 0.027 264.364);
|
|
138
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
139
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
140
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
141
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
142
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
143
|
+
--sidebar: oklch(0.208 0.042 265.755);
|
|
144
|
+
--sidebar-foreground: oklch(0.984 0.003 247.858);
|
|
145
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
146
|
+
--sidebar-primary-foreground: oklch(0.984 0.003 247.858);
|
|
147
|
+
--sidebar-accent: oklch(0.279 0.041 260.031);
|
|
148
|
+
--sidebar-accent-foreground: oklch(0.984 0.003 247.858);
|
|
149
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
150
|
+
--sidebar-ring: oklch(0.551 0.027 264.364);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@layer base {
|
|
154
|
+
* {
|
|
155
|
+
@apply border-border outline-ring/50;
|
|
156
|
+
}
|
|
157
|
+
body {
|
|
158
|
+
@apply bg-background text-foreground;
|
|
159
|
+
}
|
|
160
|
+
html {
|
|
161
|
+
font-size: 14px;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@utility rounded-inherit {
|
|
166
|
+
border-radius: inherit;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@layer components {
|
|
170
|
+
.gradient-border {
|
|
171
|
+
@apply relative;
|
|
172
|
+
}
|
|
173
|
+
.gradient-border::before {
|
|
174
|
+
content: '';
|
|
175
|
+
@apply absolute inset-0 rounded-inherit p-[1px] pointer-events-none;
|
|
176
|
+
background: linear-gradient(
|
|
177
|
+
90deg,
|
|
178
|
+
rgb(132, 180, 255) 0%,
|
|
179
|
+
rgb(2, 101, 255) 50%,
|
|
180
|
+
rgb(177, 250, 255) 100%
|
|
181
|
+
);
|
|
182
|
+
-webkit-mask:
|
|
183
|
+
linear-gradient(#fff 0 0) content-box,
|
|
184
|
+
linear-gradient(#fff 0 0);
|
|
185
|
+
-webkit-mask-composite: xor;
|
|
186
|
+
mask-composite: exclude;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.prose {
|
|
191
|
+
--tw-prose-body: #121111;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/* Hide scrollbar for Chrome, Safari and Opera */
|
|
195
|
+
.scrollbar-hide::-webkit-scrollbar {
|
|
196
|
+
display: none;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* Hide scrollbar for IE, Edge and Firefox */
|
|
200
|
+
.scrollbar-hide {
|
|
201
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
202
|
+
scrollbar-width: none; /* Firefox */
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
::-webkit-scrollbar {
|
|
206
|
+
width: 8px;
|
|
207
|
+
height: 8px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
::-webkit-scrollbar-thumb {
|
|
211
|
+
background-color: #b5b5b5;
|
|
212
|
+
border-radius: 4px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
::-webkit-scrollbar-track {
|
|
216
|
+
background: transparent;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
::-webkit-scrollbar-button {
|
|
220
|
+
display: none;
|
|
221
|
+
height: 0;
|
|
222
|
+
width: 0;
|
|
223
|
+
}
|
package/src/types.ts
ADDED
package/tsconfig.json
ADDED
package/vite.config.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { dirname, resolve } from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
import path from "path";
|
|
4
|
+
import react from "@vitejs/plugin-react";
|
|
5
|
+
import tailwindcss from "@tailwindcss/vite";
|
|
6
|
+
import { defineConfig } from "vite";
|
|
7
|
+
import dts from "vite-plugin-dts";
|
|
8
|
+
|
|
9
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
10
|
+
|
|
11
|
+
export default defineConfig({
|
|
12
|
+
plugins: [
|
|
13
|
+
tailwindcss() as any,
|
|
14
|
+
react(),
|
|
15
|
+
dts(),
|
|
16
|
+
],
|
|
17
|
+
resolve: {
|
|
18
|
+
preserveSymlinks: false,
|
|
19
|
+
alias: {
|
|
20
|
+
"@": path.resolve(__dirname, "./src"),
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
build: {
|
|
24
|
+
sourcemap: true,
|
|
25
|
+
target: "es2018",
|
|
26
|
+
lib: {
|
|
27
|
+
entry: resolve(__dirname, "src/index.ts"),
|
|
28
|
+
name: "bs-ai-design",
|
|
29
|
+
formats: ["es", "umd"],
|
|
30
|
+
},
|
|
31
|
+
cssCodeSplit: true,
|
|
32
|
+
rollupOptions: {
|
|
33
|
+
external: ["react", "react-dom"],
|
|
34
|
+
output: {
|
|
35
|
+
globals: {
|
|
36
|
+
react: "React",
|
|
37
|
+
"react-dom": "ReactDOM",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
});
|