@gravity-ui/aikit 0.1.1 → 0.2.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/dist/components/atoms/Alert/Alert.scss +29 -0
- package/dist/components/atoms/ChatDate/ChatDate.scss +15 -0
- package/dist/components/atoms/ChatDate/i18n/en.json +8 -0
- package/dist/components/atoms/ChatDate/i18n/ru.json +10 -0
- package/dist/components/atoms/ContextIndicator/ContextIndicator.scss +93 -0
- package/dist/components/atoms/DiffStat/DiffStat.scss +36 -0
- package/dist/components/atoms/Disclaimer/Disclaimer.scss +13 -0
- package/dist/components/atoms/Loader/Loader.scss +72 -0
- package/dist/components/atoms/MarkdownRenderer/MarkdownRenderer.scss +5 -0
- package/dist/components/atoms/MessageBalloon/MessageBalloon.scss +11 -0
- package/dist/components/atoms/Shimmer/Shimmer.scss +32 -0
- package/dist/components/atoms/SubmitButton/SubmitButton.scss +29 -0
- package/dist/components/atoms/SubmitButton/i18n/en.json +3 -0
- package/dist/components/atoms/SubmitButton/i18n/ru.json +3 -0
- package/dist/components/atoms/ToolIndicator/ToolIndicator.scss +15 -0
- package/dist/components/molecules/BaseMessage/BaseMessage.scss +41 -0
- package/dist/components/molecules/BaseMessage/i18n/en.json +8 -0
- package/dist/components/molecules/BaseMessage/i18n/ru.json +8 -0
- package/dist/components/molecules/ButtonGroup/ButtonGroup.scss +19 -0
- package/dist/components/molecules/PromptInputBody/PromptInputBody.scss +22 -0
- package/dist/components/molecules/PromptInputFooter/PromptInputFooter.scss +25 -0
- package/dist/components/molecules/PromptInputFooter/i18n/en.json +5 -0
- package/dist/components/molecules/PromptInputFooter/i18n/ru.json +5 -0
- package/dist/components/molecules/PromptInputHeader/PromptInputHeader.scss +27 -0
- package/dist/components/molecules/PromptInputPanel/PromptInputPanel.scss +11 -0
- package/dist/{src/components → components}/molecules/Suggestions/Suggestions.d.ts +4 -0
- package/dist/{src/components → components}/molecules/Suggestions/Suggestions.js +3 -3
- package/dist/components/molecules/Suggestions/Suggestions.scss +90 -0
- package/dist/components/molecules/Tabs/Tabs.scss +46 -0
- package/dist/components/molecules/Tabs/i18n/en.json +3 -0
- package/dist/components/molecules/Tabs/i18n/ru.json +3 -0
- package/dist/components/molecules/ToolFooter/ToolFooter.scss +15 -0
- package/dist/components/molecules/ToolHeader/ToolHeader.scss +24 -0
- package/dist/components/organisms/AssistantMessage/AssistantMessage.scss +10 -0
- package/dist/components/organisms/Header/Header.scss +51 -0
- package/dist/components/organisms/Header/i18n/en.json +7 -0
- package/dist/components/organisms/Header/i18n/ru.json +7 -0
- package/dist/components/organisms/MessageList/MessageList.scss +30 -0
- package/dist/components/organisms/MessageList/i18n/en.json +4 -0
- package/dist/components/organisms/MessageList/i18n/ru.json +4 -0
- package/dist/components/organisms/PromptInput/PromptInput.scss +73 -0
- package/dist/{src/components → components}/organisms/PromptInput/PromptInputWithSuggestions.js +2 -2
- package/dist/{src/components → components}/organisms/PromptInput/types.d.ts +2 -0
- package/dist/components/organisms/ThinkingMessage/ThinkingMessage.scss +27 -0
- package/dist/components/organisms/ThinkingMessage/i18n/en.json +4 -0
- package/dist/components/organisms/ThinkingMessage/i18n/ru.json +4 -0
- package/dist/{src/components → components}/organisms/ThinkingMessage/index.js +1 -1
- package/dist/components/organisms/ToolMessage/ToolMessage.scss +19 -0
- package/dist/components/organisms/ToolMessage/i18n/en.json +9 -0
- package/dist/components/organisms/ToolMessage/i18n/ru.json +9 -0
- package/dist/components/organisms/UserMessage/UserMessage.scss +10 -0
- package/dist/components/pages/ChatContainer/ChatContainer.scss +44 -0
- package/dist/components/pages/ChatContainer/i18n/en.json +10 -0
- package/dist/components/pages/ChatContainer/i18n/ru.json +10 -0
- package/dist/components/templates/ChatContent/ChatContent.scss +27 -0
- package/dist/components/templates/EmptyContainer/EmptyContainer.scss +86 -0
- package/dist/components/templates/EmptyContainer/i18n/en.json +3 -0
- package/dist/components/templates/EmptyContainer/i18n/ru.json +3 -0
- package/dist/components/templates/History/History.scss +90 -0
- package/dist/components/templates/History/i18n/en.json +7 -0
- package/dist/components/templates/History/i18n/ru.json +7 -0
- package/dist/styles/_functions.scss +5 -0
- package/dist/styles/styles.scss +1 -0
- package/dist/styles/variables.scss +1 -0
- package/dist/themes/dark.css +19 -0
- package/dist/themes/light.css +19 -0
- package/dist/themes/variables.css +69 -0
- package/package.json +22 -4
- package/dist/.storybook/theme.d.ts +0 -6
- package/dist/.storybook/theme.js +0 -28
- package/dist/package.json +0 -123
- package/dist/src/components/atoms/ActionButton/__stories__/ActionButton.stories.d.ts +0 -8
- package/dist/src/components/atoms/ActionButton/__stories__/ActionButton.stories.js +0 -48
- package/dist/src/components/atoms/Alert/__stories__/Alert.stories.d.ts +0 -9
- package/dist/src/components/atoms/Alert/__stories__/Alert.stories.js +0 -56
- package/dist/src/components/atoms/ChatDate/__stories__/ChatDate.stories.d.ts +0 -16
- package/dist/src/components/atoms/ChatDate/__stories__/ChatDate.stories.js +0 -83
- package/dist/src/components/atoms/ChatDate/i18n/en.json +0 -8
- package/dist/src/components/atoms/ChatDate/i18n/ru.json +0 -10
- package/dist/src/components/atoms/ContextIndicator/__stories__/ContextIndicator.stories.d.ts +0 -17
- package/dist/src/components/atoms/ContextIndicator/__stories__/ContextIndicator.stories.js +0 -72
- package/dist/src/components/atoms/ContextItem/__stories__/ContextItem.stories.d.ts +0 -6
- package/dist/src/components/atoms/ContextItem/__stories__/ContextItem.stories.js +0 -32
- package/dist/src/components/atoms/DiffStat/__stories__/DiffStat.stories.d.ts +0 -7
- package/dist/src/components/atoms/DiffStat/__stories__/DiffStat.stories.js +0 -45
- package/dist/src/components/atoms/Disclaimer/__stories__/Disclaimer.stories.d.ts +0 -8
- package/dist/src/components/atoms/Disclaimer/__stories__/Disclaimer.stories.js +0 -32
- package/dist/src/components/atoms/Loader/__stories__/Loader.stories.d.ts +0 -8
- package/dist/src/components/atoms/Loader/__stories__/Loader.stories.js +0 -47
- package/dist/src/components/atoms/MarkdownRenderer/__stories__/MarkdownRenderer.stories.d.ts +0 -6
- package/dist/src/components/atoms/MarkdownRenderer/__stories__/MarkdownRenderer.stories.js +0 -49
- package/dist/src/components/atoms/MessageBalloon/__stories__/MessageBalloon.stories.d.ts +0 -6
- package/dist/src/components/atoms/MessageBalloon/__stories__/MessageBalloon.stories.js +0 -32
- package/dist/src/components/atoms/Shimmer/__stories__/Shimmer.stories.d.ts +0 -5
- package/dist/src/components/atoms/Shimmer/__stories__/Shimmer.stories.js +0 -28
- package/dist/src/components/atoms/SubmitButton/__stories__/SubmitButton.stories.d.ts +0 -12
- package/dist/src/components/atoms/SubmitButton/__stories__/SubmitButton.stories.js +0 -95
- package/dist/src/components/atoms/SubmitButton/i18n/en.json +0 -3
- package/dist/src/components/atoms/SubmitButton/i18n/ru.json +0 -3
- package/dist/src/components/atoms/ToolIndicator/__stories__/ToolIndicator.stories.d.ts +0 -9
- package/dist/src/components/atoms/ToolIndicator/__stories__/ToolIndicator.stories.js +0 -34
- package/dist/src/components/molecules/BaseMessage/__stories__/BaseMessage.stories.d.ts +0 -8
- package/dist/src/components/molecules/BaseMessage/__stories__/BaseMessage.stories.js +0 -66
- package/dist/src/components/molecules/BaseMessage/i18n/en.json +0 -8
- package/dist/src/components/molecules/BaseMessage/i18n/ru.json +0 -8
- package/dist/src/components/molecules/ButtonGroup/__stories__/ButtonGroup.stories.d.ts +0 -6
- package/dist/src/components/molecules/ButtonGroup/__stories__/ButtonGroup.stories.js +0 -44
- package/dist/src/components/molecules/PromptInputBody/__stories__/PromptInputBody.stories.d.ts +0 -11
- package/dist/src/components/molecules/PromptInputBody/__stories__/PromptInputBody.stories.js +0 -62
- package/dist/src/components/molecules/PromptInputFooter/__stories__/PromptInputFooter.stories.d.ts +0 -11
- package/dist/src/components/molecules/PromptInputFooter/__stories__/PromptInputFooter.stories.js +0 -96
- package/dist/src/components/molecules/PromptInputFooter/i18n/en.json +0 -5
- package/dist/src/components/molecules/PromptInputFooter/i18n/ru.json +0 -5
- package/dist/src/components/molecules/PromptInputHeader/__stories__/PromptInputHeader.stories.d.ts +0 -13
- package/dist/src/components/molecules/PromptInputHeader/__stories__/PromptInputHeader.stories.js +0 -103
- package/dist/src/components/molecules/PromptInputPanel/__stories__/PromptInputPanel.stories.d.ts +0 -8
- package/dist/src/components/molecules/PromptInputPanel/__stories__/PromptInputPanel.stories.js +0 -38
- package/dist/src/components/molecules/Suggestions/__stories__/Suggestions.stories.d.ts +0 -19
- package/dist/src/components/molecules/Suggestions/__stories__/Suggestions.stories.js +0 -143
- package/dist/src/components/molecules/Tabs/__stories__/Tabs.stories.d.ts +0 -9
- package/dist/src/components/molecules/Tabs/__stories__/Tabs.stories.js +0 -103
- package/dist/src/components/molecules/Tabs/i18n/en.json +0 -3
- package/dist/src/components/molecules/Tabs/i18n/ru.json +0 -3
- package/dist/src/components/molecules/ToolFooter/__stories__/ToolFooter.stories.d.ts +0 -7
- package/dist/src/components/molecules/ToolFooter/__stories__/ToolFooter.stories.js +0 -58
- package/dist/src/components/molecules/ToolHeader/__stories__/ToolHeader.stories.d.ts +0 -7
- package/dist/src/components/molecules/ToolHeader/__stories__/ToolHeader.stories.js +0 -55
- package/dist/src/components/organisms/AssistantMessage/__stories__/AssistantMessage.stories.d.ts +0 -13
- package/dist/src/components/organisms/AssistantMessage/__stories__/AssistantMessage.stories.js +0 -151
- package/dist/src/components/organisms/Header/__stories__/Header.stories.d.ts +0 -13
- package/dist/src/components/organisms/Header/__stories__/Header.stories.js +0 -130
- package/dist/src/components/organisms/Header/i18n/en.json +0 -7
- package/dist/src/components/organisms/Header/i18n/ru.json +0 -7
- package/dist/src/components/organisms/MessageList/__stories__/MessageList.stories.d.ts +0 -24
- package/dist/src/components/organisms/MessageList/__stories__/MessageList.stories.js +0 -288
- package/dist/src/components/organisms/MessageList/i18n/en.json +0 -4
- package/dist/src/components/organisms/MessageList/i18n/ru.json +0 -4
- package/dist/src/components/organisms/PromptInput/__stories__/PromptInput.stories.d.ts +0 -18
- package/dist/src/components/organisms/PromptInput/__stories__/PromptInput.stories.js +0 -278
- package/dist/src/components/organisms/ThinkingMessage/__stories__/ThinkingMessage.stories.d.ts +0 -12
- package/dist/src/components/organisms/ThinkingMessage/__stories__/ThinkingMessage.stories.js +0 -107
- package/dist/src/components/organisms/ThinkingMessage/i18n/en.json +0 -4
- package/dist/src/components/organisms/ThinkingMessage/i18n/ru.json +0 -4
- package/dist/src/components/organisms/ToolMessage/__stories__/ToolMessage.stories.d.ts +0 -11
- package/dist/src/components/organisms/ToolMessage/__stories__/ToolMessage.stories.js +0 -70
- package/dist/src/components/organisms/ToolMessage/i18n/en.json +0 -9
- package/dist/src/components/organisms/ToolMessage/i18n/ru.json +0 -9
- package/dist/src/components/organisms/UserMessage/__stories__/UserMessage.stories.d.ts +0 -7
- package/dist/src/components/organisms/UserMessage/__stories__/UserMessage.stories.js +0 -70
- package/dist/src/components/pages/ChatContainer/__stories__/ChatContainer.stories.d.ts +0 -53
- package/dist/src/components/pages/ChatContainer/__stories__/ChatContainer.stories.js +0 -743
- package/dist/src/components/pages/ChatContainer/i18n/en.json +0 -10
- package/dist/src/components/pages/ChatContainer/i18n/ru.json +0 -10
- package/dist/src/components/templates/ChatContent/__stories__/ChatContent.stories.d.ts +0 -14
- package/dist/src/components/templates/ChatContent/__stories__/ChatContent.stories.js +0 -327
- package/dist/src/components/templates/EmptyContainer/__stories__/EmptyContainer.stories.d.ts +0 -20
- package/dist/src/components/templates/EmptyContainer/__stories__/EmptyContainer.stories.js +0 -250
- package/dist/src/components/templates/EmptyContainer/i18n/en.json +0 -3
- package/dist/src/components/templates/EmptyContainer/i18n/ru.json +0 -3
- package/dist/src/components/templates/History/__stories__/History.stories.d.ts +0 -17
- package/dist/src/components/templates/History/__stories__/History.stories.js +0 -271
- package/dist/src/components/templates/History/i18n/en.json +0 -7
- package/dist/src/components/templates/History/i18n/ru.json +0 -7
- package/dist/src/demo/ContentWrapper/ContentWrapper.d.ts +0 -4
- package/dist/src/demo/ContentWrapper/ContentWrapper.js +0 -9
- package/dist/src/demo/ContentWrapper/index.d.ts +0 -1
- package/dist/src/demo/ContentWrapper/index.js +0 -1
- package/dist/src/demo/DocsDecorator/DocsDecorator.d.ts +0 -6
- package/dist/src/demo/DocsDecorator/DocsDecorator.js +0 -12
- package/dist/src/demo/DocsDecorator/ThemeContext.d.ts +0 -2
- package/dist/src/demo/DocsDecorator/ThemeContext.js +0 -2
- package/dist/src/demo/Showcase/Showcase.d.ts +0 -9
- package/dist/src/demo/Showcase/Showcase.js +0 -7
- package/dist/src/demo/Showcase/index.d.ts +0 -1
- package/dist/src/demo/Showcase/index.js +0 -1
- package/dist/src/demo/ShowcaseItem/ShowcaseItem.d.ts +0 -7
- package/dist/src/demo/ShowcaseItem/ShowcaseItem.js +0 -7
- package/dist/src/demo/ShowcaseItem/index.d.ts +0 -1
- package/dist/src/demo/ShowcaseItem/index.js +0 -1
- package/dist/src/demo/SwapArea/SwapArea.d.ts +0 -2
- package/dist/src/demo/SwapArea/SwapArea.js +0 -7
- package/dist/src/demo/SwapArea/index.d.ts +0 -1
- package/dist/src/demo/SwapArea/index.js +0 -1
- /package/dist/{src/components → components}/atoms/ActionButton/ActionButton.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/ActionButton/ActionButton.js +0 -0
- /package/dist/{src/components → components}/atoms/ActionButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/ActionButton/index.js +0 -0
- /package/dist/{src/components → components}/atoms/Alert/index.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Alert/index.js +0 -0
- /package/dist/{src/components → components}/atoms/ChatDate/ChatDate.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/ChatDate/ChatDate.js +0 -0
- /package/dist/{src/components → components}/atoms/ChatDate/i18n/index.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/ChatDate/i18n/index.js +0 -0
- /package/dist/{src/components → components}/atoms/ChatDate/index.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/ChatDate/index.js +0 -0
- /package/dist/{src/components → components}/atoms/ContextIndicator/index.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/ContextIndicator/index.js +0 -0
- /package/dist/{src/components → components}/atoms/ContextIndicator/utils.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/ContextIndicator/utils.js +0 -0
- /package/dist/{src/components → components}/atoms/ContextItem/index.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/ContextItem/index.js +0 -0
- /package/dist/{src/components → components}/atoms/DiffStat/index.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/DiffStat/index.js +0 -0
- /package/dist/{src/components → components}/atoms/Disclaimer/Disclaimer.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Disclaimer/Disclaimer.js +0 -0
- /package/dist/{src/components → components}/atoms/Disclaimer/index.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Disclaimer/index.js +0 -0
- /package/dist/{src/components → components}/atoms/InlineCitation/index.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/InlineCitation/index.js +0 -0
- /package/dist/{src/components → components}/atoms/Loader/Loader.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Loader/Loader.js +0 -0
- /package/dist/{src/components → components}/atoms/Loader/index.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Loader/index.js +0 -0
- /package/dist/{src/components → components}/atoms/MarkdownRenderer/MarkdownRenderer.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/MarkdownRenderer/MarkdownRenderer.js +0 -0
- /package/dist/{src/components → components}/atoms/MarkdownRenderer/index.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/MarkdownRenderer/index.js +0 -0
- /package/dist/{src/components → components}/atoms/MessageBalloon/index.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/MessageBalloon/index.js +0 -0
- /package/dist/{src/components → components}/atoms/Shimmer/index.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Shimmer/index.js +0 -0
- /package/dist/{src/components → components}/atoms/SubmitButton/SubmitButton.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/SubmitButton/SubmitButton.js +0 -0
- /package/dist/{src/components → components}/atoms/SubmitButton/i18n/index.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/SubmitButton/i18n/index.js +0 -0
- /package/dist/{src/components → components}/atoms/SubmitButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/SubmitButton/index.js +0 -0
- /package/dist/{src/components → components}/atoms/ToolIndicator/index.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/ToolIndicator/index.js +0 -0
- /package/dist/{src/components → components}/atoms/index.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/index.js +0 -0
- /package/dist/{src/components → components}/index.d.ts +0 -0
- /package/dist/{src/components → components}/index.js +0 -0
- /package/dist/{src/components → components}/molecules/BaseMessage/i18n/index.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/BaseMessage/i18n/index.js +0 -0
- /package/dist/{src/components → components}/molecules/BaseMessage/index.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/BaseMessage/index.js +0 -0
- /package/dist/{src/components → components}/molecules/ButtonGroup/index.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/ButtonGroup/index.js +0 -0
- /package/dist/{src/components → components}/molecules/InputContext/index.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/InputContext/index.js +0 -0
- /package/dist/{src/components → components}/molecules/PromptInputBody/PromptInputBody.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/PromptInputBody/PromptInputBody.js +0 -0
- /package/dist/{src/components → components}/molecules/PromptInputBody/index.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/PromptInputBody/index.js +0 -0
- /package/dist/{src/components → components}/molecules/PromptInputFooter/PromptInputFooter.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/PromptInputFooter/PromptInputFooter.js +0 -0
- /package/dist/{src/components → components}/molecules/PromptInputFooter/i18n/index.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/PromptInputFooter/i18n/index.js +0 -0
- /package/dist/{src/components → components}/molecules/PromptInputFooter/index.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/PromptInputFooter/index.js +0 -0
- /package/dist/{src/components → components}/molecules/PromptInputHeader/PromptInputHeader.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/PromptInputHeader/PromptInputHeader.js +0 -0
- /package/dist/{src/components → components}/molecules/PromptInputHeader/index.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/PromptInputHeader/index.js +0 -0
- /package/dist/{src/components → components}/molecules/PromptInputPanel/PromptInputPanel.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/PromptInputPanel/PromptInputPanel.js +0 -0
- /package/dist/{src/components → components}/molecules/PromptInputPanel/index.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/PromptInputPanel/index.js +0 -0
- /package/dist/{src/components → components}/molecules/Suggestions/index.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/Suggestions/index.js +0 -0
- /package/dist/{src/components → components}/molecules/Tabs/Tabs.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/Tabs/Tabs.js +0 -0
- /package/dist/{src/components → components}/molecules/Tabs/i18n/index.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/Tabs/i18n/index.js +0 -0
- /package/dist/{src/components → components}/molecules/Tabs/index.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/Tabs/index.js +0 -0
- /package/dist/{src/components → components}/molecules/ToolFooter/index.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/ToolFooter/index.js +0 -0
- /package/dist/{src/components → components}/molecules/ToolHeader/index.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/ToolHeader/index.js +0 -0
- /package/dist/{src/components → components}/molecules/index.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/index.js +0 -0
- /package/dist/{src/components → components}/organisms/AssistantMessage/AssistantMessage.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/AssistantMessage/AssistantMessage.js +0 -0
- /package/dist/{src/components → components}/organisms/AssistantMessage/defaultMessageTypeRegistry.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/AssistantMessage/defaultMessageTypeRegistry.js +0 -0
- /package/dist/{src/components → components}/organisms/AssistantMessage/index.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/AssistantMessage/index.js +0 -0
- /package/dist/{src/components → components}/organisms/Header/Header.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/Header/Header.js +0 -0
- /package/dist/{src/components → components}/organisms/Header/i18n/index.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/Header/i18n/index.js +0 -0
- /package/dist/{src/components → components}/organisms/Header/index.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/Header/index.js +0 -0
- /package/dist/{src/components → components}/organisms/Header/types.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/Header/types.js +0 -0
- /package/dist/{src/components → components}/organisms/Header/useHeader.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/Header/useHeader.js +0 -0
- /package/dist/{src/components → components}/organisms/MessageList/ErrorAlert.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/MessageList/ErrorAlert.js +0 -0
- /package/dist/{src/components → components}/organisms/MessageList/MessageList.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/MessageList/MessageList.js +0 -0
- /package/dist/{src/components → components}/organisms/MessageList/i18n/index.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/MessageList/i18n/index.js +0 -0
- /package/dist/{src/components → components}/organisms/MessageList/index.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/MessageList/index.js +0 -0
- /package/dist/{src/components → components}/organisms/PromptInput/PromptInput.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/PromptInput/PromptInput.js +0 -0
- /package/dist/{src/components → components}/organisms/PromptInput/PromptInputFull.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/PromptInput/PromptInputFull.js +0 -0
- /package/dist/{src/components → components}/organisms/PromptInput/PromptInputSimple.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/PromptInput/PromptInputSimple.js +0 -0
- /package/dist/{src/components → components}/organisms/PromptInput/PromptInputWithPanels.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/PromptInput/PromptInputWithPanels.js +0 -0
- /package/dist/{src/components → components}/organisms/PromptInput/PromptInputWithSuggestions.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/PromptInput/index.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/PromptInput/index.js +0 -0
- /package/dist/{src/components → components}/organisms/PromptInput/types.js +0 -0
- /package/dist/{src/components → components}/organisms/PromptInput/useDelayedUnmount.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/PromptInput/useDelayedUnmount.js +0 -0
- /package/dist/{src/components → components}/organisms/PromptInput/usePromptInput.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/PromptInput/usePromptInput.js +0 -0
- /package/dist/{src/components → components}/organisms/ThinkingMessage/i18n/index.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/ThinkingMessage/i18n/index.js +0 -0
- /package/dist/{src/components → components}/organisms/ThinkingMessage/index.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/ThinkingMessage/useThinkingMessage.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/ThinkingMessage/useThinkingMessage.js +0 -0
- /package/dist/{src/components → components}/organisms/ToolMessage/i18n/index.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/ToolMessage/i18n/index.js +0 -0
- /package/dist/{src/components → components}/organisms/ToolMessage/index.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/ToolMessage/index.js +0 -0
- /package/dist/{src/components → components}/organisms/UserMessage/index.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/UserMessage/index.js +0 -0
- /package/dist/{src/components → components}/organisms/index.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/index.js +0 -0
- /package/dist/{src/components → components}/pages/ChatContainer/ChatContainer.d.ts +0 -0
- /package/dist/{src/components → components}/pages/ChatContainer/ChatContainer.js +0 -0
- /package/dist/{src/components → components}/pages/ChatContainer/i18n/index.d.ts +0 -0
- /package/dist/{src/components → components}/pages/ChatContainer/i18n/index.js +0 -0
- /package/dist/{src/components → components}/pages/ChatContainer/index.d.ts +0 -0
- /package/dist/{src/components → components}/pages/ChatContainer/index.js +0 -0
- /package/dist/{src/components → components}/pages/ChatContainer/types.d.ts +0 -0
- /package/dist/{src/components → components}/pages/ChatContainer/types.js +0 -0
- /package/dist/{src/components → components}/pages/ChatContainer/useChatContainer.d.ts +0 -0
- /package/dist/{src/components → components}/pages/ChatContainer/useChatContainer.js +0 -0
- /package/dist/{src/components → components}/pages/index.d.ts +0 -0
- /package/dist/{src/components → components}/pages/index.js +0 -0
- /package/dist/{src/components → components}/templates/ChatContent/ChatContent.d.ts +0 -0
- /package/dist/{src/components → components}/templates/ChatContent/ChatContent.js +0 -0
- /package/dist/{src/components → components}/templates/ChatContent/index.d.ts +0 -0
- /package/dist/{src/components → components}/templates/ChatContent/index.js +0 -0
- /package/dist/{src/components → components}/templates/EmptyContainer/EmptyContainer.d.ts +0 -0
- /package/dist/{src/components → components}/templates/EmptyContainer/EmptyContainer.js +0 -0
- /package/dist/{src/components → components}/templates/EmptyContainer/i18n/index.d.ts +0 -0
- /package/dist/{src/components → components}/templates/EmptyContainer/i18n/index.js +0 -0
- /package/dist/{src/components → components}/templates/EmptyContainer/index.d.ts +0 -0
- /package/dist/{src/components → components}/templates/EmptyContainer/index.js +0 -0
- /package/dist/{src/components → components}/templates/History/ChatItem.d.ts +0 -0
- /package/dist/{src/components → components}/templates/History/ChatItem.js +0 -0
- /package/dist/{src/components → components}/templates/History/DateHeaderItem.d.ts +0 -0
- /package/dist/{src/components → components}/templates/History/DateHeaderItem.js +0 -0
- /package/dist/{src/components → components}/templates/History/History.d.ts +0 -0
- /package/dist/{src/components → components}/templates/History/History.js +0 -0
- /package/dist/{src/components → components}/templates/History/HistoryList.d.ts +0 -0
- /package/dist/{src/components → components}/templates/History/HistoryList.js +0 -0
- /package/dist/{src/components → components}/templates/History/i18n/index.d.ts +0 -0
- /package/dist/{src/components → components}/templates/History/i18n/index.js +0 -0
- /package/dist/{src/components → components}/templates/History/index.d.ts +0 -0
- /package/dist/{src/components → components}/templates/History/index.js +0 -0
- /package/dist/{src/components → components}/templates/index.d.ts +0 -0
- /package/dist/{src/components → components}/templates/index.js +0 -0
- /package/dist/{src/constants → constants}/index.d.ts +0 -0
- /package/dist/{src/constants → constants}/index.js +0 -0
- /package/dist/{src/hooks → hooks}/index.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/index.js +0 -0
- /package/dist/{src/hooks → hooks}/useDateFormatter/index.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useDateFormatter/index.js +0 -0
- /package/dist/{src/hooks → hooks}/useSmartScroll.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useSmartScroll.js +0 -0
- /package/dist/{src/hooks → hooks}/useToolMessage.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useToolMessage.js +0 -0
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{src/index.js → index.js} +0 -0
- /package/dist/{src/types → types}/chat.d.ts +0 -0
- /package/dist/{src/types → types}/chat.js +0 -0
- /package/dist/{src/types → types}/common.d.ts +0 -0
- /package/dist/{src/types → types}/common.js +0 -0
- /package/dist/{src/types → types}/index.d.ts +0 -0
- /package/dist/{src/types → types}/index.js +0 -0
- /package/dist/{src/types → types}/messages.d.ts +0 -0
- /package/dist/{src/types → types}/messages.js +0 -0
- /package/dist/{src/types → types}/tool.d.ts +0 -0
- /package/dist/{src/types → types}/tool.js +0 -0
- /package/dist/{src/utils → utils}/chatUtils.d.ts +0 -0
- /package/dist/{src/utils → utils}/chatUtils.js +0 -0
- /package/dist/{src/utils → utils}/cn.d.ts +0 -0
- /package/dist/{src/utils → utils}/cn.js +0 -0
- /package/dist/{src/utils → utils}/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/index.js +0 -0
- /package/dist/{src/utils → utils}/messageTypeRegistry.d.ts +0 -0
- /package/dist/{src/utils → utils}/messageTypeRegistry.js +0 -0
- /package/dist/{src/utils → utils}/messageUtils.d.ts +0 -0
- /package/dist/{src/utils → utils}/messageUtils.js +0 -0
- /package/dist/{src/utils → utils}/validation.d.ts +0 -0
- /package/dist/{src/utils → utils}/validation.js +0 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
@use '../../../styles/variables';
|
|
2
|
+
|
|
3
|
+
.#{variables.$ns}empty-container {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
height: 100%;
|
|
7
|
+
width: 100%;
|
|
8
|
+
background: var(--g-aikit-empty-container-background);
|
|
9
|
+
|
|
10
|
+
&__content {
|
|
11
|
+
flex: 1;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
align-self: stretch;
|
|
15
|
+
gap: var(--g-aikit-empty-container-content-gap);
|
|
16
|
+
padding: var(--g-aikit-empty-container-padding);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__welcome-section {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
gap: var(--g-spacing-6);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__text-container {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
gap: var(--g-spacing-3);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__image-container {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex: 1;
|
|
34
|
+
|
|
35
|
+
&_align {
|
|
36
|
+
&_left {
|
|
37
|
+
justify-content: flex-start;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&_center {
|
|
41
|
+
justify-content: center;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&_right {
|
|
45
|
+
justify-content: flex-end;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&__title,
|
|
51
|
+
&__description {
|
|
52
|
+
&_align {
|
|
53
|
+
&_left {
|
|
54
|
+
text-align: left;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&_center {
|
|
58
|
+
text-align: center;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&_right {
|
|
62
|
+
text-align: right;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__suggestions-section {
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
gap: var(--g-spacing-3);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&__suggestions-title {
|
|
74
|
+
display: flex;
|
|
75
|
+
padding: 0 var(--g-spacing-2);
|
|
76
|
+
align-items: flex-start;
|
|
77
|
+
gap: var(--g-spacing-2);
|
|
78
|
+
align-self: stretch;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&__show-more {
|
|
82
|
+
display: flex;
|
|
83
|
+
justify-content: flex-start;
|
|
84
|
+
padding-top: var(--g-spacing-2);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@use '../../../styles/variables';
|
|
2
|
+
@use '../../../styles/functions' as *;
|
|
3
|
+
|
|
4
|
+
$block: '.#{variables.$ns}history';
|
|
5
|
+
|
|
6
|
+
#{$block} {
|
|
7
|
+
&__container {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
width: var(--g-aikit-history-width);
|
|
11
|
+
max-height: var(--g-aikit-history-max-height);
|
|
12
|
+
background: var(--g-color-base-background);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&__list-wrapper {
|
|
16
|
+
flex: 1;
|
|
17
|
+
overflow-y: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&__list {
|
|
21
|
+
padding: 0 spacing(2) spacing(2) spacing(2);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__list-item {
|
|
25
|
+
border-radius: 6px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__filter {
|
|
29
|
+
display: flex;
|
|
30
|
+
padding: spacing(2);
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: spacing(2);
|
|
33
|
+
align-self: stretch;
|
|
34
|
+
border-bottom: 1px solid var(--line-generic-color-line-generic);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__date-header {
|
|
38
|
+
display: flex;
|
|
39
|
+
padding: var(--g-spacing-3) var(--g-spacing-2) var(--g-spacing-1) var(--g-spacing-2);
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
align-items: flex-start;
|
|
42
|
+
gap: spacing(3);
|
|
43
|
+
align-self: stretch;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__chat-item {
|
|
47
|
+
display: flex;
|
|
48
|
+
padding: spacing(2) spacing(4);
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: spacing(4);
|
|
51
|
+
align-self: stretch;
|
|
52
|
+
flex: 1;
|
|
53
|
+
min-width: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&__chat-content {
|
|
57
|
+
height: var(--g-aikit-history-item-height);
|
|
58
|
+
flex: 1;
|
|
59
|
+
min-width: 0;
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
|
|
64
|
+
> * {
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
text-overflow: ellipsis;
|
|
67
|
+
white-space: nowrap;
|
|
68
|
+
min-width: 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&__icon-button {
|
|
73
|
+
color: var(--g-color-text-secondary);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&__delete-button {
|
|
77
|
+
margin-left: spacing(2);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&__empty {
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
padding: spacing(8) spacing(4);
|
|
85
|
+
color: var(--g-color-text-secondary);
|
|
86
|
+
font-size: var(--g-text-body-2-font-size);
|
|
87
|
+
text-align: center;
|
|
88
|
+
flex: 1;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '@gravity-ui/uikit/styles/styles.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ns: 'g-aikit-';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dark theme
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
[data-theme='dark'] {
|
|
6
|
+
--g-aikit-bg-secondary: #2a2a2a;
|
|
7
|
+
--g-aikit-bg-message-user: #0066cc;
|
|
8
|
+
--g-aikit-bg-message-assistant: #2a2a2a;
|
|
9
|
+
|
|
10
|
+
--g-aikit-text-primary: #ffffff;
|
|
11
|
+
--g-aikit-text-secondary: #999999;
|
|
12
|
+
--g-aikit-text-message-user: #ffffff;
|
|
13
|
+
--g-aikit-text-message-assistant: #ffffff;
|
|
14
|
+
|
|
15
|
+
--g-aikit-border-color: #404040;
|
|
16
|
+
--g-aikit-accent-color: #0077ff;
|
|
17
|
+
|
|
18
|
+
--g-aikit-line-brand: var(--g-aikit-accent-color);
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Light theme
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
[data-theme='light'] {
|
|
6
|
+
--g-aikit-bg-secondary: #f5f5f5;
|
|
7
|
+
--g-aikit-bg-message-user: #0077ff;
|
|
8
|
+
--g-aikit-bg-message-assistant: #f0f0f0;
|
|
9
|
+
|
|
10
|
+
--g-aikit-text-primary: #000000;
|
|
11
|
+
--g-aikit-text-secondary: #666666;
|
|
12
|
+
--g-aikit-text-message-user: #ffffff;
|
|
13
|
+
--g-aikit-text-message-assistant: #000000;
|
|
14
|
+
|
|
15
|
+
--g-aikit-border-color: #e0e0e0;
|
|
16
|
+
--g-aikit-accent-color: #0077ff;
|
|
17
|
+
|
|
18
|
+
--g-aikit-line-brand: var(--g-aikit-accent-color);
|
|
19
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CSS variables for library theming
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.g-root {
|
|
6
|
+
/* === Colors === */
|
|
7
|
+
--g-aikit-color-bg-primary: var(--g-aikit-bg-primary, var(--g-color-base-float));
|
|
8
|
+
--g-aikit-color-bg-secondary: #f5f5f5;
|
|
9
|
+
|
|
10
|
+
/* === Layout === */
|
|
11
|
+
--g-aikit-layout-base-padding-m: 12px;
|
|
12
|
+
|
|
13
|
+
/* === Messages === */
|
|
14
|
+
--g-aikit-color-bg-message-user: #0077ff;
|
|
15
|
+
--g-aikit-color-bg-message-assistant: #f0f0f0;
|
|
16
|
+
|
|
17
|
+
/* === Disclaimer === */
|
|
18
|
+
--g-aikit-disclaimer-gap: 10px;
|
|
19
|
+
|
|
20
|
+
/* === Suggestions === */
|
|
21
|
+
--g-aikit-suggestions-box-shadow: 0 3px 10px rgba(198, 172, 255, 0.52);
|
|
22
|
+
|
|
23
|
+
/* === Header === */
|
|
24
|
+
--g-aikit-header-background: none;
|
|
25
|
+
|
|
26
|
+
/* === Context Indicator === */
|
|
27
|
+
--g-aikit-ci-color-progress-1: var(
|
|
28
|
+
--g-aikit-ci-progress-1,
|
|
29
|
+
var(--g-color-private-green-550-solid)
|
|
30
|
+
);
|
|
31
|
+
--g-aikit-ci-color-progress-2: var(
|
|
32
|
+
--g-aikit-ci-progress-2,
|
|
33
|
+
var(--g-color-private-orange-500-solid)
|
|
34
|
+
);
|
|
35
|
+
--g-aikit-ci-color-progress-3: var(
|
|
36
|
+
--g-aikit-ci-progress-3,
|
|
37
|
+
var(--g-color-private-red-500-solid)
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
/* === Shimmer === */
|
|
41
|
+
--g-aikit-shimmer-color-from: var(--g-aikit-shimmer-from, rgba(0, 0, 0, 0.35));
|
|
42
|
+
--g-aikit-shimmer-color-to: var(--g-aikit-shimmer-to, rgba(0, 0, 0, 0.85));
|
|
43
|
+
--g-aikit-shimmer-duration: var(--g-aikit-shimmer-time, 2.5s);
|
|
44
|
+
--g-aikit-shimmer-gradient-size: 200%;
|
|
45
|
+
|
|
46
|
+
/* === Chat History === */
|
|
47
|
+
--g-aikit-history-width: 360px;
|
|
48
|
+
--g-aikit-history-max-height: 560px;
|
|
49
|
+
--g-aikit-history-item-height: 24px;
|
|
50
|
+
|
|
51
|
+
/* === Prompt Input === */
|
|
52
|
+
--g-aikit-prompt-input-panel-max-height: 500px;
|
|
53
|
+
|
|
54
|
+
/* === Empty Container === */
|
|
55
|
+
--g-aikit-empty-container-background: var(--g-color-base-background);
|
|
56
|
+
--g-aikit-empty-container-content-gap: 48px;
|
|
57
|
+
--g-aikit-empty-container-padding: 48px 32px;
|
|
58
|
+
|
|
59
|
+
/* === Chat Content === */
|
|
60
|
+
--g-aikit-chat-content-background: var(--g-color-base-background);
|
|
61
|
+
--g-aikit-chat-content-padding: 0 var(--g-aikit-layout-base-padding-m) var(--g-spacing-4)
|
|
62
|
+
var(--g-aikit-layout-base-padding-m);
|
|
63
|
+
|
|
64
|
+
/* === Chat Container === */
|
|
65
|
+
--g-aikit-chat-container-header-background: var(--g-color-base-background);
|
|
66
|
+
--g-aikit-chat-container-content-background: var(--g-color-base-background);
|
|
67
|
+
--g-aikit-chat-container-footer-background: var(--g-color-base-background);
|
|
68
|
+
--g-aikit-chat-container-background: var(--g-color-base-background);
|
|
69
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/aikit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Gravity UI base kit for building ai assistant chats",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./styles": "./dist/styles/styles.scss",
|
|
14
|
+
"./themes/dark": "./dist/themes/dark.css",
|
|
15
|
+
"./themes/light": "./dist/themes/light.css",
|
|
16
|
+
"./themes/variables": "./dist/themes/variables.css",
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
8
19
|
"files": [
|
|
9
20
|
"dist"
|
|
10
21
|
],
|
|
@@ -38,7 +49,13 @@
|
|
|
38
49
|
"lint:prettier": "prettier --check '**/*.{js,jsx,ts,tsx,css,scss,json,yaml,yml,md,mdx}'",
|
|
39
50
|
"lint:prettier:fix": "prettier --write '**/*.{js,jsx,ts,tsx,css,scss,json,yaml,yml,md,mdx}'",
|
|
40
51
|
"test": "npm run test:unit",
|
|
41
|
-
"build": "
|
|
52
|
+
"build": "npm run build:clean && npm run build:ts && npm run build:copy",
|
|
53
|
+
"build:clean": "rm -rf dist",
|
|
54
|
+
"build:ts": "tsc",
|
|
55
|
+
"build:copy": "npm run build:copy:styles && npm run build:copy:themes && npm run build:copy:i18n",
|
|
56
|
+
"build:copy:styles": "copyfiles -u 1 'src/**/*.scss' dist --exclude 'src/demo/**'",
|
|
57
|
+
"build:copy:themes": "copyfiles -u 1 'src/themes/**/*.css' dist",
|
|
58
|
+
"build:copy:i18n": "copyfiles -u 1 'src/**/i18n/*.json' dist",
|
|
42
59
|
"start": "TS_NODE_PROJECT=.storybook/tsconfig.json storybook dev",
|
|
43
60
|
"prepublishOnly": "npm run build",
|
|
44
61
|
"test:unit": "jest --passWithNoTests",
|
|
@@ -74,6 +91,7 @@
|
|
|
74
91
|
"@types/react": "^18.2.64",
|
|
75
92
|
"@types/react-dom": "^18.2.21",
|
|
76
93
|
"@types/uuid": "^11.0.0",
|
|
94
|
+
"copyfiles": "^2.4.1",
|
|
77
95
|
"eslint": "^8.57.0",
|
|
78
96
|
"eslint-plugin-storybook": "^9.0.5",
|
|
79
97
|
"husky": "^9.0.11",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const ThemeLight: import("storybook/theming").ThemeVars;
|
|
2
|
-
export declare const ThemeDark: import("storybook/theming").ThemeVars;
|
|
3
|
-
export declare const themes: {
|
|
4
|
-
light: import("storybook/theming").ThemeVars;
|
|
5
|
-
dark: import("storybook/theming").ThemeVars;
|
|
6
|
-
};
|
package/dist/.storybook/theme.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { create } from 'storybook/theming';
|
|
2
|
-
import pkg from '../package.json';
|
|
3
|
-
function renderBrandTitle(theme) {
|
|
4
|
-
const titleColor = theme === 'light' ? 'rgba(0, 0, 0, 0.85)' : 'rgba(255, 255, 255, 0.85)';
|
|
5
|
-
const descriptionColor = theme === 'light' ? 'rgba(0, 0, 0, 0.5)' : 'rgba(255, 255, 255, 0.5)';
|
|
6
|
-
const logo = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 125 125" width="32" height="32" fill="none"><path fill="url(#a)" fill-rule="evenodd" d="M103.064 103.055c23.649-23.649 23.649-61.991 0-85.64L86.058 34.421c13.898 14.429 13.84 37.285-.254 51.379s-36.95 14.152-51.38.254l-17 17.001c23.649 23.649 61.991 23.649 85.64 0" clip-rule="evenodd"/><mask id="b" width="125" height="126" x="0" y="-1" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#F37" fill-rule="evenodd" d="M17.74 17.736C-2.88 38.356-5.521 70.147 9.817 93.63c1.09 1.733 1.635 2.599 1.95 3.41.727 1.874.832 3.422.363 5.377-.203.846-.721 1.984-1.757 4.26-3.458 7.596-4.205 13.244-1.578 15.87 7.412 7.413 31.148-4.306 70.301-43.459s50.872-62.89 43.46-70.302c-2.627-2.626-8.274-1.879-15.869 1.578-2.286 1.04-3.429 1.56-4.278 1.763-1.946.465-3.484.362-5.35-.357-.805-.31-1.665-.848-3.366-1.916C70.206-5.529 38.378-2.902 17.74 17.736m50.165 50.161c14.261-14.26 23.878-27.765 17.263-34.38-14.396-14.396-37.626-14.505-51.887-.244-14.261 14.26-14.152 37.491.244 51.887 6.615 6.615 20.12-3.002 34.38-17.263" clip-rule="evenodd"/></mask><g mask="url(#b)"><path fill="#F37" fill-rule="evenodd" d="M17.74 17.736C-2.88 38.356-5.521 70.147 9.817 93.63c1.09 1.733 1.635 2.599 1.95 3.41.727 1.874.832 3.422.363 5.377-.203.846-.721 1.984-1.757 4.26-3.458 7.596-4.205 13.244-1.578 15.87 7.412 7.413 31.148-4.306 70.301-43.459s50.872-62.89 43.46-70.302c-2.627-2.626-8.274-1.879-15.869 1.578-2.286 1.04-3.429 1.56-4.278 1.763-1.946.465-3.484.362-5.35-.357-.805-.31-1.665-.848-3.366-1.916C70.206-5.529 38.378-2.902 17.74 17.736m50.165 50.161c14.261-14.26 23.878-27.765 17.263-34.38-14.396-14.396-37.626-14.505-51.887-.244-14.261 14.26-14.152 37.491.244 51.887 6.615 6.615 20.12-3.002 34.38-17.263" clip-rule="evenodd"/><g filter="url(#c)"><path fill="#FF0" d="M19.03 88C6.426 68.68 8.597 42.522 25.543 25.556 42.507 8.572 68.673 6.412 87.978 19.08c1.388.873 2.093 1.313 2.753 1.567 1.533.592 2.797.677 4.396.295.698-.167 1.638-.595 3.516-1.451 6.242-2.845 14.999-8.953 18.072-5.877 4.72 4.726-9.484 29.292-41.662 61.507s-56.716 47.351-61.436 42.626c-3.074-3.077 3.028-12.76 5.87-19.01.852-1.873 1.277-2.81 1.444-3.505.386-1.609.3-2.882-.298-4.425-.259-.667-.707-1.38-1.604-2.805z"/></g></g><defs><radialGradient id="a" cx="0" cy="0" r="1" gradientTransform="rotate(45 -43.592 103.062)scale(59.7564)" gradientUnits="userSpaceOnUse"><stop offset=".646" stop-color="#FF0"/><stop offset="1" stop-color="#F37"/></radialGradient><filter id="c" width="144.672" height="145.669" x="-8.053" y="-8.056" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_1776_29897" stdDeviation="9.509"/></filter></defs></svg>';
|
|
7
|
-
return `
|
|
8
|
-
<div style="display: flex; align-items: flex-start">
|
|
9
|
-
<div style="flex-shrink: 0; line-height: 0">${logo}</div>
|
|
10
|
-
<div style="margin-inline-start: 8px">
|
|
11
|
-
<div style="font-size: 26px; line-height: 32px; color: ${titleColor}; font-weight: 600;">Gravity UI</div>
|
|
12
|
-
<div style="font-size: 14px; color: ${descriptionColor}; font-weight: 400;">AIKit v${pkg.version}</div>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
`.trim();
|
|
16
|
-
}
|
|
17
|
-
const common = {
|
|
18
|
-
// Typography
|
|
19
|
-
fontBase: '"Helvetica Neue", Arial, Helvetica, sans-serif',
|
|
20
|
-
fontCode: '"SF Mono", "Menlo", "Monaco", "Consolas", "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", "Courier", monospace',
|
|
21
|
-
brandUrl: 'https://gravity-ui.com/',
|
|
22
|
-
};
|
|
23
|
-
export const ThemeLight = create(Object.assign(Object.assign({ base: 'light' }, common), { brandTitle: renderBrandTitle('light') }));
|
|
24
|
-
export const ThemeDark = create(Object.assign(Object.assign({ base: 'dark' }, common), { brandTitle: renderBrandTitle('dark') }));
|
|
25
|
-
export const themes = {
|
|
26
|
-
light: ThemeLight,
|
|
27
|
-
dark: ThemeDark,
|
|
28
|
-
};
|
package/dist/package.json
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@gravity-ui/aikit",
|
|
3
|
-
"version": "0.1.1",
|
|
4
|
-
"description": "Gravity UI base kit for building ai assistant chats",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
|
-
"engines": {
|
|
12
|
-
"node": ">= 20",
|
|
13
|
-
"npm": ">= 9",
|
|
14
|
-
"yarn": "Please use npm instead of yarn to install dependencies",
|
|
15
|
-
"pnpm": "Please use npm instead of pnpm to install dependencies"
|
|
16
|
-
},
|
|
17
|
-
"sideEffects": [
|
|
18
|
-
"*.css",
|
|
19
|
-
"*.scss"
|
|
20
|
-
],
|
|
21
|
-
"repository": {
|
|
22
|
-
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/gravity-ui/aikit.git"
|
|
24
|
-
},
|
|
25
|
-
"bugs": {
|
|
26
|
-
"url": "https://github.com/gravity-ui/aikit/issues"
|
|
27
|
-
},
|
|
28
|
-
"homepage": "https://github.com/gravity-ui/aikit#readme",
|
|
29
|
-
"scripts": {
|
|
30
|
-
"prepare": "husky",
|
|
31
|
-
"lint:js": "eslint --ext .js,.jsx,.ts,.tsx .",
|
|
32
|
-
"lint:styles": "stylelint 'src/**/*.scss'",
|
|
33
|
-
"lint": "run-p lint:js lint:styles lint:prettier typecheck",
|
|
34
|
-
"typecheck": "tsc --noEmit",
|
|
35
|
-
"lint:fix": "run-s lint:js:fix lint:styles:fix lint:prettier:fix typecheck",
|
|
36
|
-
"lint:js:fix": "eslint '**/*.{js,jsx,ts,tsx}' --max-warnings=0 --quiet --fix",
|
|
37
|
-
"lint:styles:fix": "stylelint **/*.scss --fix",
|
|
38
|
-
"lint:prettier": "prettier --check '**/*.{js,jsx,ts,tsx,css,scss,json,yaml,yml,md,mdx}'",
|
|
39
|
-
"lint:prettier:fix": "prettier --write '**/*.{js,jsx,ts,tsx,css,scss,json,yaml,yml,md,mdx}'",
|
|
40
|
-
"test": "npm run test:unit",
|
|
41
|
-
"build": "tsc",
|
|
42
|
-
"start": "TS_NODE_PROJECT=.storybook/tsconfig.json storybook dev",
|
|
43
|
-
"prepublishOnly": "npm run build",
|
|
44
|
-
"test:unit": "jest --passWithNoTests",
|
|
45
|
-
"playwright:install": "playwright install chromium webkit --with-deps",
|
|
46
|
-
"playwright": "playwright test --config=playwright-ct.config.ts",
|
|
47
|
-
"playwright:update": "npm run playwright -- -u all",
|
|
48
|
-
"playwright:clear-cache": "rm -rf ./playwright/.cache",
|
|
49
|
-
"playwright:docker": "./playwright/run-docker-command.sh npm run playwright --",
|
|
50
|
-
"playwright:docker:update": "./playwright/run-docker-command.sh npm run playwright:update --",
|
|
51
|
-
"playwright:docker:clear-cache": "./playwright/run-docker-command.sh clear-cache"
|
|
52
|
-
},
|
|
53
|
-
"devDependencies": {
|
|
54
|
-
"@babel/preset-env": "^7.28.5",
|
|
55
|
-
"@babel/preset-react": "^7.28.5",
|
|
56
|
-
"@babel/preset-typescript": "^7.28.5",
|
|
57
|
-
"@commitlint/cli": "^19.0.3",
|
|
58
|
-
"@commitlint/config-conventional": "^19.0.3",
|
|
59
|
-
"@gravity-ui/eslint-config": "^3.1.1",
|
|
60
|
-
"@gravity-ui/prettier-config": "^1.1.0",
|
|
61
|
-
"@gravity-ui/stylelint-config": "^4.0.1",
|
|
62
|
-
"@gravity-ui/tsconfig": "^1.0.0",
|
|
63
|
-
"@playwright/experimental-ct-react": "^1.56.1",
|
|
64
|
-
"@playwright/test": "^1.56.1",
|
|
65
|
-
"@storybook/addon-docs": "^9.0.5",
|
|
66
|
-
"@storybook/addon-styling-webpack": "^2.0.0",
|
|
67
|
-
"@storybook/addon-webpack5-compiler-babel": "^3.0.6",
|
|
68
|
-
"@storybook/preset-scss": "^1.0.3",
|
|
69
|
-
"@storybook/react-webpack5": "^9.0.5",
|
|
70
|
-
"@testing-library/dom": "^10.4.1",
|
|
71
|
-
"@testing-library/jest-dom": "^6.9.1",
|
|
72
|
-
"@testing-library/react": "^16.3.0",
|
|
73
|
-
"@types/jest": "^29.5.12",
|
|
74
|
-
"@types/react": "^18.2.64",
|
|
75
|
-
"@types/react-dom": "^18.2.21",
|
|
76
|
-
"@types/uuid": "^11.0.0",
|
|
77
|
-
"eslint": "^8.57.0",
|
|
78
|
-
"eslint-plugin-storybook": "^9.0.5",
|
|
79
|
-
"husky": "^9.0.11",
|
|
80
|
-
"jest": "^29.7.0",
|
|
81
|
-
"jest-environment-jsdom": "^30.2.0",
|
|
82
|
-
"nano-staged": "^0.8.0",
|
|
83
|
-
"npm-run-all": "^4.1.5",
|
|
84
|
-
"prettier": "^3.2.5",
|
|
85
|
-
"process": "^0.11.10",
|
|
86
|
-
"react": "^18.2.0",
|
|
87
|
-
"react-dom": "^18.2.0",
|
|
88
|
-
"sass": "^1.71.1",
|
|
89
|
-
"sass-loader": "^14.1.1",
|
|
90
|
-
"storybook": "^9.0.5",
|
|
91
|
-
"storybook-addon-mock-date": "^1.0.2",
|
|
92
|
-
"style-loader": "^3.3.4",
|
|
93
|
-
"stylelint": "^15.11.0",
|
|
94
|
-
"ts-jest": "^29.1.2",
|
|
95
|
-
"typescript": "^5.4.2"
|
|
96
|
-
},
|
|
97
|
-
"peerDependencies": {
|
|
98
|
-
"react": "^18.2.0",
|
|
99
|
-
"react-dom": "^18.2.0"
|
|
100
|
-
},
|
|
101
|
-
"nano-staged": {
|
|
102
|
-
"*.{scss}": [
|
|
103
|
-
"stylelint --fix --quiet"
|
|
104
|
-
],
|
|
105
|
-
"*.{js,jsx,ts,tsx}": [
|
|
106
|
-
"eslint --fix --quiet"
|
|
107
|
-
],
|
|
108
|
-
"*.{md,mdx}": [
|
|
109
|
-
"prettier --write"
|
|
110
|
-
]
|
|
111
|
-
},
|
|
112
|
-
"dependencies": {
|
|
113
|
-
"@bem-react/classname": "^1.7.0",
|
|
114
|
-
"@diplodoc/transform": "^4.63.3",
|
|
115
|
-
"@gravity-ui/i18n": "^1.8.0",
|
|
116
|
-
"@gravity-ui/icons": "^2.16.0",
|
|
117
|
-
"@gravity-ui/uikit": "^7.25.0",
|
|
118
|
-
"dayjs": "^1.11.19",
|
|
119
|
-
"highlight.js": "^11.11.1",
|
|
120
|
-
"react-window": "^2.2.1",
|
|
121
|
-
"uuid": "^13.0.0"
|
|
122
|
-
}
|
|
123
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { ActionButton } from '..';
|
|
3
|
-
declare const _default: Meta;
|
|
4
|
-
export default _default;
|
|
5
|
-
type Story = StoryObj<typeof ActionButton>;
|
|
6
|
-
export declare const Playground: Story;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
export declare const WithoutTooltip: Story;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Copy, Pencil } from '@gravity-ui/icons';
|
|
3
|
-
import { Icon } from '@gravity-ui/uikit';
|
|
4
|
-
import { ActionButton } from '..';
|
|
5
|
-
import { ContentWrapper } from '../../../../demo/ContentWrapper';
|
|
6
|
-
import MDXDocs from './Docs.mdx';
|
|
7
|
-
export default {
|
|
8
|
-
title: 'atoms/ActionButton',
|
|
9
|
-
component: ActionButton,
|
|
10
|
-
parameters: {
|
|
11
|
-
docs: {
|
|
12
|
-
page: MDXDocs,
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
const defaultDecorators = [
|
|
17
|
-
(Story) => (_jsx(ContentWrapper, { children: _jsx(Story, {}) })),
|
|
18
|
-
];
|
|
19
|
-
const mockOnClick = () => {
|
|
20
|
-
// eslint-disable-next-line no-console
|
|
21
|
-
console.log('Button clicked');
|
|
22
|
-
};
|
|
23
|
-
export const Playground = {
|
|
24
|
-
args: {
|
|
25
|
-
tooltipTitle: 'Copy',
|
|
26
|
-
view: 'flat',
|
|
27
|
-
size: 'm',
|
|
28
|
-
children: _jsx(Icon, { data: Copy, size: 16 }),
|
|
29
|
-
onClick: mockOnClick,
|
|
30
|
-
},
|
|
31
|
-
decorators: defaultDecorators,
|
|
32
|
-
};
|
|
33
|
-
export const Default = {
|
|
34
|
-
args: {
|
|
35
|
-
tooltipTitle: 'Edit',
|
|
36
|
-
children: _jsx(Icon, { data: Pencil, size: 16 }),
|
|
37
|
-
onClick: mockOnClick,
|
|
38
|
-
},
|
|
39
|
-
decorators: defaultDecorators,
|
|
40
|
-
};
|
|
41
|
-
export const WithoutTooltip = {
|
|
42
|
-
args: {
|
|
43
|
-
children: _jsx(Icon, { data: Copy, size: 16 }),
|
|
44
|
-
view: 'outlined',
|
|
45
|
-
onClick: mockOnClick,
|
|
46
|
-
},
|
|
47
|
-
decorators: defaultDecorators,
|
|
48
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { AlertProps } from '..';
|
|
3
|
-
declare const _default: Meta;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Playground: StoryFn<AlertProps>;
|
|
6
|
-
export declare const Variant: StoryObj<AlertProps>;
|
|
7
|
-
export declare const Action: StoryFn<AlertProps>;
|
|
8
|
-
export declare const LongText: StoryFn<AlertProps>;
|
|
9
|
-
export declare const CustomIcon: StoryFn<AlertProps>;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Arrows3RotateLeft } from '@gravity-ui/icons';
|
|
3
|
-
import { Icon } from '@gravity-ui/uikit';
|
|
4
|
-
import { Alert } from '..';
|
|
5
|
-
import { ContentWrapper } from '../../../../demo/ContentWrapper';
|
|
6
|
-
import { Showcase } from '../../../../demo/Showcase';
|
|
7
|
-
import { ShowcaseItem } from '../../../../demo/ShowcaseItem';
|
|
8
|
-
import MDXDocs from './Docs.mdx';
|
|
9
|
-
export default {
|
|
10
|
-
title: 'atoms/Alert',
|
|
11
|
-
component: Alert,
|
|
12
|
-
parameters: {
|
|
13
|
-
docs: {
|
|
14
|
-
page: MDXDocs,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
argTypes: {
|
|
18
|
-
className: {
|
|
19
|
-
control: 'text',
|
|
20
|
-
description: 'Additional CSS class',
|
|
21
|
-
},
|
|
22
|
-
qa: {
|
|
23
|
-
control: 'text',
|
|
24
|
-
description: 'QA/test identifier',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
const defaultDecorators = [
|
|
29
|
-
(Story) => (_jsx(ContentWrapper, { children: _jsx(Showcase, { children: _jsx(Story, {}) }) })),
|
|
30
|
-
];
|
|
31
|
-
export const Playground = (args) => (_jsx(ContentWrapper, { children: _jsx(Alert, Object.assign({}, args)) }));
|
|
32
|
-
Playground.args = {
|
|
33
|
-
text: 'Alert message',
|
|
34
|
-
variant: 'default',
|
|
35
|
-
};
|
|
36
|
-
export const Variant = {
|
|
37
|
-
render: (args) => (_jsxs(_Fragment, { children: [_jsx(ShowcaseItem, { title: "Default", children: _jsx(Alert, Object.assign({}, args, { variant: "default" })) }), _jsx(ShowcaseItem, { title: "Info", children: _jsx(Alert, Object.assign({}, args, { variant: "info" })) }), _jsx(ShowcaseItem, { title: "Warning", children: _jsx(Alert, Object.assign({}, args, { variant: "warning" })) }), _jsx(ShowcaseItem, { title: "Error", children: _jsx(Alert, Object.assign({}, args, { variant: "error" })) })] })),
|
|
38
|
-
decorators: defaultDecorators,
|
|
39
|
-
args: { text: 'Alert message' },
|
|
40
|
-
};
|
|
41
|
-
export const Action = (args) => (_jsx(ContentWrapper, { children: _jsx(Alert, Object.assign({}, args, { button: { content: 'Retry', onClick: () => ({}) } })) }));
|
|
42
|
-
Action.args = {
|
|
43
|
-
text: 'Alert message',
|
|
44
|
-
variant: 'default',
|
|
45
|
-
};
|
|
46
|
-
export const LongText = (args) => (_jsx(ContentWrapper, { children: _jsx(Alert, Object.assign({}, args, { button: { content: 'Retry', onClick: () => ({}) } })) }));
|
|
47
|
-
LongText.args = {
|
|
48
|
-
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
|
|
49
|
-
variant: 'warning',
|
|
50
|
-
};
|
|
51
|
-
export const CustomIcon = (args) => (_jsx(ContentWrapper, { children: _jsx(Alert, Object.assign({}, args, { icon: _jsx(Icon, { data: Arrows3RotateLeft, size: 20 }) })) }));
|
|
52
|
-
CustomIcon.args = {
|
|
53
|
-
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
|
|
54
|
-
variant: 'default',
|
|
55
|
-
button: { content: 'Retry', onClick: () => ({}) },
|
|
56
|
-
};
|