@altimateai/ui-components 0.0.79 → 0.0.80
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/0~315.js +46635 -0
- package/dist/0~315.js.LICENSE.txt +73 -0
- package/dist/0~315.js.map +1 -0
- package/dist/131.js +14352 -0
- package/dist/131.js.map +1 -0
- package/dist/3~315.js +46635 -0
- package/dist/3~315.js.LICENSE.txt +73 -0
- package/dist/3~315.js.map +1 -0
- package/dist/582.js +1299 -0
- package/dist/582.js.map +1 -0
- package/dist/assets/icons/index.d.ts +45 -110
- package/dist/assets/icons/index.d.ts.map +1 -0
- package/dist/chatbotV2.js +5233 -0
- package/dist/chatbotV2.js.map +1 -0
- package/dist/components/api/index.d.ts +7 -0
- package/dist/components/api/index.d.ts.map +1 -0
- package/dist/components/api/useMutation.d.ts +12 -0
- package/dist/components/api/useMutation.d.ts.map +1 -0
- package/dist/components/api/useQuery.d.ts +12 -0
- package/dist/components/api/useQuery.d.ts.map +1 -0
- package/dist/components/chatbotV2/ChatProvider.d.ts +17 -0
- package/dist/components/chatbotV2/ChatProvider.d.ts.map +1 -0
- package/dist/components/chatbotV2/Chatbot.d.ts +4 -0
- package/dist/components/chatbotV2/Chatbot.d.ts.map +1 -0
- package/dist/components/chatbotV2/HelloMessageSample.d.ts +3 -0
- package/dist/components/chatbotV2/HelloMessageSample.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/action-buttons/DownloadMessage.d.ts +9 -0
- package/dist/components/chatbotV2/components/action-buttons/DownloadMessage.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/action-buttons/ShareMessage.d.ts +9 -0
- package/dist/components/chatbotV2/components/action-buttons/ShareMessage.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/artifacts/Artifacts.d.ts +8 -0
- package/dist/components/chatbotV2/components/artifacts/Artifacts.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/artifacts/index.d.ts +2 -0
- package/dist/components/chatbotV2/components/artifacts/index.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/attachmentList/AttachmentList.d.ts +8 -0
- package/dist/components/chatbotV2/components/attachmentList/AttachmentList.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/attachmentList/index.d.ts +2 -0
- package/dist/components/chatbotV2/components/attachmentList/index.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/cancelGenerationButton/CancelGenerationButton.d.ts +3 -0
- package/dist/components/chatbotV2/components/cancelGenerationButton/CancelGenerationButton.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/cancelGenerationButton/index.d.ts +2 -0
- package/dist/components/chatbotV2/components/cancelGenerationButton/index.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/chatMessageActions/ChatFeedbackActions.d.ts +8 -0
- package/dist/components/chatbotV2/components/chatMessageActions/ChatFeedbackActions.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/chatMessageActions/ChatLastMessageActions.d.ts +8 -0
- package/dist/components/chatbotV2/components/chatMessageActions/ChatLastMessageActions.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageActions.d.ts +10 -0
- package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageActions.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageEndActions.d.ts +9 -0
- package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageEndActions.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/chatMessageActions/index.d.ts +4 -0
- package/dist/components/chatbotV2/components/chatMessageActions/index.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/chatTriggerLink/ChatTriggerLink.d.ts +7 -0
- package/dist/components/chatbotV2/components/chatTriggerLink/ChatTriggerLink.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/citations/Citations.d.ts +28 -0
- package/dist/components/chatbotV2/components/citations/Citations.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/coachAI/CoachAI.d.ts +2 -0
- package/dist/components/chatbotV2/components/coachAI/CoachAI.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/coachAI/index.d.ts +2 -0
- package/dist/components/chatbotV2/components/coachAI/index.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/contextPanel/ContextPanel.d.ts +13 -0
- package/dist/components/chatbotV2/components/contextPanel/ContextPanel.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/contextPanel/index.d.ts +2 -0
- package/dist/components/chatbotV2/components/contextPanel/index.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/emailDialog/EmailDialog.d.ts +10 -0
- package/dist/components/chatbotV2/components/emailDialog/EmailDialog.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/entityItem/EntityItem.d.ts +7 -0
- package/dist/components/chatbotV2/components/entityItem/EntityItem.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/entityItem/index.d.ts +2 -0
- package/dist/components/chatbotV2/components/entityItem/index.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/followup/Followup.d.ts +3 -0
- package/dist/components/chatbotV2/components/followup/Followup.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/index.d.ts +18 -0
- package/dist/components/chatbotV2/components/index.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/interactionPrompt/InteractionPrompt.d.ts +8 -0
- package/dist/components/chatbotV2/components/interactionPrompt/InteractionPrompt.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/interactionPrompt/index.d.ts +2 -0
- package/dist/components/chatbotV2/components/interactionPrompt/index.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/loadingIndicator/LoadingIndicator.d.ts +3 -0
- package/dist/components/chatbotV2/components/loadingIndicator/LoadingIndicator.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/loadingIndicator/index.d.ts +2 -0
- package/dist/components/chatbotV2/components/loadingIndicator/index.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/messageItem/MessageItem.d.ts +12 -0
- package/dist/components/chatbotV2/components/messageItem/MessageItem.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/messageItem/index.d.ts +2 -0
- package/dist/components/chatbotV2/components/messageItem/index.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/messageList/MessageList.d.ts +11 -0
- package/dist/components/chatbotV2/components/messageList/MessageList.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/messageList/index.d.ts +2 -0
- package/dist/components/chatbotV2/components/messageList/index.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/questionForm/QuestionForm.d.ts +15 -0
- package/dist/components/chatbotV2/components/questionForm/QuestionForm.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/questionForm/index.d.ts +2 -0
- package/dist/components/chatbotV2/components/questionForm/index.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/refetchSession/RefetchSession.d.ts +8 -0
- package/dist/components/chatbotV2/components/refetchSession/RefetchSession.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/regenerateButton/RegenerateButton.d.ts +7 -0
- package/dist/components/chatbotV2/components/regenerateButton/RegenerateButton.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/regenerateButton/index.d.ts +2 -0
- package/dist/components/chatbotV2/components/regenerateButton/index.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/selectedContexts/SelectedContexts.d.ts +8 -0
- package/dist/components/chatbotV2/components/selectedContexts/SelectedContexts.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/statusUpdates/StatusUpdates.d.ts +10 -0
- package/dist/components/chatbotV2/components/statusUpdates/StatusUpdates.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/statusUpdates/index.d.ts +2 -0
- package/dist/components/chatbotV2/components/statusUpdates/index.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/todoProgress/TodoProgress.d.ts +8 -0
- package/dist/components/chatbotV2/components/todoProgress/TodoProgress.d.ts.map +1 -0
- package/dist/components/chatbotV2/components/todoProgress/index.d.ts +2 -0
- package/dist/components/chatbotV2/components/todoProgress/index.d.ts.map +1 -0
- package/dist/components/chatbotV2/hooks/transports.d.ts +126 -0
- package/dist/components/chatbotV2/hooks/transports.d.ts.map +1 -0
- package/dist/components/chatbotV2/hooks/useAgentChat.d.ts +41 -0
- package/dist/components/chatbotV2/hooks/useAgentChat.d.ts.map +1 -0
- package/dist/components/chatbotV2/hooks/useEntityDetection.d.ts +4 -0
- package/dist/components/chatbotV2/hooks/useEntityDetection.d.ts.map +1 -0
- package/dist/components/chatbotV2/hooks/useFeedback.d.ts +5 -0
- package/dist/components/chatbotV2/hooks/useFeedback.d.ts.map +1 -0
- package/dist/components/chatbotV2/index.d.ts +22 -0
- package/dist/components/chatbotV2/index.d.ts.map +1 -0
- package/dist/components/chatbotV2/store/chatSlice.d.ts +65 -0
- package/dist/components/chatbotV2/store/chatSlice.d.ts.map +1 -0
- package/dist/components/chatbotV2/store/index.d.ts +10 -0
- package/dist/components/chatbotV2/store/index.d.ts.map +1 -0
- package/dist/{types-ByRPUpXR.d.ts → components/chatbotV2/types.d.ts} +77 -195
- package/dist/components/chatbotV2/types.d.ts.map +1 -0
- package/dist/components/chatbotV2/utils/entityDetection.d.ts +12 -0
- package/dist/components/chatbotV2/utils/entityDetection.d.ts.map +1 -0
- package/dist/components/chatbotV2/utils/streamProcessor.d.ts +98 -0
- package/dist/components/chatbotV2/utils/streamProcessor.d.ts.map +1 -0
- package/dist/components/chatbotV2/utils.d.ts +3 -0
- package/dist/components/chatbotV2/utils.d.ts.map +1 -0
- package/dist/components/dbtDocs/api/index.d.ts +16 -0
- package/dist/components/dbtDocs/api/index.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/ConversationHighlighter.d.ts +6 -0
- package/dist/components/dbtDocs/collaboration/ConversationHighlighter.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/ConversationInputForm.d.ts +13 -0
- package/dist/components/dbtDocs/collaboration/ConversationInputForm.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/ConversationsHighlighter.d.ts +3 -0
- package/dist/components/dbtDocs/collaboration/ConversationsHighlighter.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationComponents.d.ts +3 -0
- package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationComponents.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationProvider.d.ts +22 -0
- package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationProvider.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/DbtDocsConversationsRightPanel.d.ts +3 -0
- package/dist/components/dbtDocs/collaboration/DbtDocsConversationsRightPanel.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/DbtDocsReducer.d.ts +1931 -0
- package/dist/components/dbtDocs/collaboration/DbtDocsReducer.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/HighlightAnchor.d.ts +12 -0
- package/dist/components/dbtDocs/collaboration/HighlightAnchor.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/HighlightBlocker.d.ts +7 -0
- package/dist/components/dbtDocs/collaboration/HighlightBlocker.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/HotspotButton.d.ts +7 -0
- package/dist/components/dbtDocs/collaboration/HotspotButton.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/NewConversationForm.d.ts +3 -0
- package/dist/components/dbtDocs/collaboration/NewConversationForm.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/ShowConversationsButton.d.ts +3 -0
- package/dist/components/dbtDocs/collaboration/ShowConversationsButton.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/constants.d.ts +20 -0
- package/dist/components/dbtDocs/collaboration/constants.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/conversations/Conversation.d.ts +9 -0
- package/dist/components/dbtDocs/collaboration/conversations/Conversation.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/conversations/ConversationGroup.d.ts +10 -0
- package/dist/components/dbtDocs/collaboration/conversations/ConversationGroup.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/conversations/ConversationGroups.d.ts +3 -0
- package/dist/components/dbtDocs/collaboration/conversations/ConversationGroups.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/conversations/ConversationHeader.d.ts +13 -0
- package/dist/components/dbtDocs/collaboration/conversations/ConversationHeader.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/conversations/ConversationHighlightText.d.ts +6 -0
- package/dist/components/dbtDocs/collaboration/conversations/ConversationHighlightText.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/conversations/ConversationReplyForm.d.ts +9 -0
- package/dist/components/dbtDocs/collaboration/conversations/ConversationReplyForm.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/conversations/ResolveButton.d.ts +8 -0
- package/dist/components/dbtDocs/collaboration/conversations/ResolveButton.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/conversations/context/ConversationsProvider.d.ts +18 -0
- package/dist/components/dbtDocs/collaboration/conversations/context/ConversationsProvider.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/conversations/context/types.d.ts +44 -0
- package/dist/components/dbtDocs/collaboration/conversations/context/types.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/conversations/useConversations.d.ts +5 -0
- package/dist/components/dbtDocs/collaboration/conversations/useConversations.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/highlightUtils.d.ts +28 -0
- package/dist/components/dbtDocs/collaboration/highlightUtils.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/mentions/MentionsInput.d.ts +11 -0
- package/dist/components/dbtDocs/collaboration/mentions/MentionsInput.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/mentions/index.d.ts +32 -0
- package/dist/components/dbtDocs/collaboration/mentions/index.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/newConversationUtils.d.ts +15 -0
- package/dist/components/dbtDocs/collaboration/newConversationUtils.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/selectionEndEvent.d.ts +17 -0
- package/dist/components/dbtDocs/collaboration/selectionEndEvent.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/types.d.ts +15 -0
- package/dist/components/dbtDocs/collaboration/types.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/useConversationUsers.d.ts +5 -0
- package/dist/components/dbtDocs/collaboration/useConversationUsers.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/useDbtDocsCollaboration.d.ts +7 -0
- package/dist/components/dbtDocs/collaboration/useDbtDocsCollaboration.d.ts.map +1 -0
- package/dist/components/dbtDocs/collaboration/useHighlight.d.ts +12 -0
- package/dist/components/dbtDocs/collaboration/useHighlight.d.ts.map +1 -0
- package/dist/components/dbtDocs/details/AddCommentButton.d.ts +3 -0
- package/dist/components/dbtDocs/details/AddCommentButton.d.ts.map +1 -0
- package/dist/components/dbtDocs/details/AddCommentOnCodeButton.d.ts +3 -0
- package/dist/components/dbtDocs/details/AddCommentOnCodeButton.d.ts.map +1 -0
- package/dist/components/dbtDocs/details/AddCommentOnModelDescriptionButton.d.ts +3 -0
- package/dist/components/dbtDocs/details/AddCommentOnModelDescriptionButton.d.ts.map +1 -0
- package/dist/components/dbtDocs/details/DbtDocs.d.ts +10 -0
- package/dist/components/dbtDocs/details/DbtDocs.d.ts.map +1 -0
- package/dist/components/dbtDocs/details/DbtDocsDetails.d.ts +3 -0
- package/dist/components/dbtDocs/details/DbtDocsDetails.d.ts.map +1 -0
- package/dist/components/dbtDocs/details/DbtDocsRenderer.d.ts +8 -0
- package/dist/components/dbtDocs/details/DbtDocsRenderer.d.ts.map +1 -0
- package/dist/components/dbtDocs/details/dbtDocsUtils.d.ts +5 -0
- package/dist/components/dbtDocs/details/dbtDocsUtils.d.ts.map +1 -0
- package/dist/components/dbtDocs/index.d.ts +8 -0
- package/dist/components/dbtDocs/index.d.ts.map +1 -0
- package/dist/components/dbtDocs/resources/dbtDocsAngularApp.d.ts +3 -0
- package/dist/components/dbtDocs/resources/dbtDocsAngularApp.d.ts.map +1 -0
- package/dist/components/lineage/api/index.d.ts +65 -0
- package/dist/components/lineage/api/index.d.ts.map +1 -0
- package/dist/components/lineage/assets/icons/index.d.ts +61 -0
- package/dist/components/lineage/assets/icons/index.d.ts.map +1 -0
- package/dist/components/lineage/cllUtils.d.ts +17 -0
- package/dist/components/lineage/cllUtils.d.ts.map +1 -0
- package/dist/components/lineage/components/AutoExpansionPopover.d.ts +3 -0
- package/dist/components/lineage/components/AutoExpansionPopover.d.ts.map +1 -0
- package/dist/components/lineage/components/BetterPopover.d.ts +14 -0
- package/dist/components/lineage/components/BetterPopover.d.ts.map +1 -0
- package/dist/components/lineage/components/Chip.d.ts +6 -0
- package/dist/components/lineage/components/Chip.d.ts.map +1 -0
- package/dist/components/lineage/components/Column.d.ts +52 -0
- package/dist/components/lineage/components/Column.d.ts.map +1 -0
- package/dist/components/lineage/components/ColumnRow.d.ts +8 -0
- package/dist/components/lineage/components/ColumnRow.d.ts.map +1 -0
- package/dist/components/lineage/components/CustomNodes.d.ts +16 -0
- package/dist/components/lineage/components/CustomNodes.d.ts.map +1 -0
- package/dist/components/lineage/components/DashboardDetails.d.ts +12 -0
- package/dist/components/lineage/components/DashboardDetails.d.ts.map +1 -0
- package/dist/components/lineage/components/DynamicLineage.d.ts +9 -0
- package/dist/components/lineage/components/DynamicLineage.d.ts.map +1 -0
- package/dist/components/lineage/components/ExpandWithConfidenceCard.d.ts +3 -0
- package/dist/components/lineage/components/ExpandWithConfidenceCard.d.ts.map +1 -0
- package/dist/components/lineage/components/ExportButton.d.ts +6 -0
- package/dist/components/lineage/components/ExportButton.d.ts.map +1 -0
- package/dist/components/lineage/components/ExportFinalLineageModal.d.ts +5 -0
- package/dist/components/lineage/components/ExportFinalLineageModal.d.ts.map +1 -0
- package/dist/components/lineage/components/ExposureDetails.d.ts +6 -0
- package/dist/components/lineage/components/ExposureDetails.d.ts.map +1 -0
- package/dist/components/lineage/components/Feedback.d.ts +5 -0
- package/dist/components/lineage/components/Feedback.d.ts.map +1 -0
- package/dist/components/lineage/components/Form.d.ts +5 -0
- package/dist/components/lineage/components/Form.d.ts.map +1 -0
- package/dist/components/lineage/components/FunctionDetails.d.ts +3 -0
- package/dist/components/lineage/components/FunctionDetails.d.ts.map +1 -0
- package/dist/components/lineage/components/LineageLegend.d.ts +3 -0
- package/dist/components/lineage/components/LineageLegend.d.ts.map +1 -0
- package/dist/components/lineage/components/LineageModals.d.ts +3 -0
- package/dist/components/lineage/components/LineageModals.d.ts.map +1 -0
- package/dist/components/lineage/components/Loader/index.d.ts +7 -0
- package/dist/components/lineage/components/Loader/index.d.ts.map +1 -0
- package/dist/components/lineage/components/MoreTables.d.ts +11 -0
- package/dist/components/lineage/components/MoreTables.d.ts.map +1 -0
- package/dist/components/lineage/components/Purpose.d.ts +6 -0
- package/dist/components/lineage/components/Purpose.d.ts.map +1 -0
- package/dist/components/lineage/components/ResetButton.d.ts +6 -0
- package/dist/components/lineage/components/ResetButton.d.ts.map +1 -0
- package/dist/components/lineage/components/Settings.d.ts +6 -0
- package/dist/components/lineage/components/Settings.d.ts.map +1 -0
- package/dist/components/lineage/components/SettingsButton.d.ts +3 -0
- package/dist/components/lineage/components/SettingsButton.d.ts.map +1 -0
- package/dist/components/lineage/components/SidebarErrorBoundary.d.ts +13 -0
- package/dist/components/lineage/components/SidebarErrorBoundary.d.ts.map +1 -0
- package/dist/components/lineage/components/SnowflakeStageDetails.d.ts +3 -0
- package/dist/components/lineage/components/SnowflakeStageDetails.d.ts.map +1 -0
- package/dist/components/lineage/components/SqlLineage.d.ts +12 -0
- package/dist/components/lineage/components/SqlLineage.d.ts.map +1 -0
- package/dist/components/lineage/components/StaticLineage.d.ts +17 -0
- package/dist/components/lineage/components/StaticLineage.d.ts.map +1 -0
- package/dist/components/lineage/components/TableDetails.d.ts +53 -0
- package/dist/components/lineage/components/TableDetails.d.ts.map +1 -0
- package/dist/components/lineage/components/Tags/index.d.ts +5 -0
- package/dist/components/lineage/components/Tags/index.d.ts.map +1 -0
- package/dist/components/lineage/components/ViewsTypeBadge.d.ts +5 -0
- package/dist/components/lineage/components/ViewsTypeBadge.d.ts.map +1 -0
- package/dist/components/lineage/components/sidebarModal/SidebarModal.d.ts +9 -0
- package/dist/components/lineage/components/sidebarModal/SidebarModal.d.ts.map +1 -0
- package/dist/components/lineage/constants.d.ts +12 -0
- package/dist/components/lineage/constants.d.ts.map +1 -0
- package/dist/components/lineage/context/LineageProvider.d.ts +35 -0
- package/dist/components/lineage/context/LineageProvider.d.ts.map +1 -0
- package/dist/components/lineage/context/LineageSlice.d.ts +4673 -0
- package/dist/components/lineage/context/LineageSlice.d.ts.map +1 -0
- package/dist/components/lineage/context/types.d.ts +57 -0
- package/dist/components/lineage/context/types.d.ts.map +1 -0
- package/dist/components/lineage/graph.d.ts +43 -0
- package/dist/components/lineage/graph.d.ts.map +1 -0
- package/dist/components/lineage/index.d.ts +8 -0
- package/dist/components/lineage/index.d.ts.map +1 -0
- package/dist/{lineage/index.d.ts → components/lineage/types.d.ts} +59 -92
- package/dist/components/lineage/types.d.ts.map +1 -0
- package/dist/components/lineage/utils.d.ts +100 -0
- package/dist/components/lineage/utils.d.ts.map +1 -0
- package/dist/components/shared/index.d.ts +2 -0
- package/dist/components/shared/index.d.ts.map +1 -0
- package/dist/components/shared/types.d.ts +18 -0
- package/dist/components/shared/types.d.ts.map +1 -0
- package/dist/components/teammate/AddLearningForm.d.ts +13 -0
- package/dist/components/teammate/AddLearningForm.d.ts.map +1 -0
- package/dist/components/teammate/CoachForm.d.ts +10 -0
- package/dist/components/teammate/CoachForm.d.ts.map +1 -0
- package/dist/components/teammate/CoachFormButton.d.ts +3 -0
- package/dist/components/teammate/CoachFormButton.d.ts.map +1 -0
- package/dist/components/teammate/CoachFormInput.d.ts +8 -0
- package/dist/components/teammate/CoachFormInput.d.ts.map +1 -0
- package/dist/components/teammate/LearningRow.d.ts +10 -0
- package/dist/components/teammate/LearningRow.d.ts.map +1 -0
- package/dist/components/teammate/LearningsList.d.ts +11 -0
- package/dist/components/teammate/LearningsList.d.ts.map +1 -0
- package/dist/components/teammate/TeamMateProvider.d.ts +8 -0
- package/dist/components/teammate/TeamMateProvider.d.ts.map +1 -0
- package/dist/components/teammate/TeamMates.d.ts +10 -0
- package/dist/components/teammate/TeamMates.d.ts.map +1 -0
- package/dist/components/teammate/TeamMatesCard.d.ts +10 -0
- package/dist/components/teammate/TeamMatesCard.d.ts.map +1 -0
- package/dist/components/teammate/alertManager/AlertManagerDisplay.d.ts +4 -0
- package/dist/components/teammate/alertManager/AlertManagerDisplay.d.ts.map +1 -0
- package/dist/components/teammate/assets/index.d.ts +8 -0
- package/dist/components/teammate/assets/index.d.ts.map +1 -0
- package/dist/components/teammate/index.d.ts +11 -0
- package/dist/components/teammate/index.d.ts.map +1 -0
- package/dist/components/teammate/projectGovernor/ChecksInput.d.ts +7 -0
- package/dist/components/teammate/projectGovernor/ChecksInput.d.ts.map +1 -0
- package/dist/components/teammate/projectGovernor/ProjectGovernanceCheck.d.ts +8 -0
- package/dist/components/teammate/projectGovernor/ProjectGovernanceCheck.d.ts.map +1 -0
- package/dist/components/teammate/projectGovernor/ProjectGovernorDisplay.d.ts +3 -0
- package/dist/components/teammate/projectGovernor/ProjectGovernorDisplay.d.ts.map +1 -0
- package/dist/components/teammate/projectGovernor/ProjectGovernorForm.d.ts +7 -0
- package/dist/components/teammate/projectGovernor/ProjectGovernorForm.d.ts.map +1 -0
- package/dist/components/teammate/projectGovernor/types.d.ts +48 -0
- package/dist/components/teammate/projectGovernor/types.d.ts.map +1 -0
- package/dist/components/teammate/teamMateSlice.d.ts +15 -0
- package/dist/components/teammate/teamMateSlice.d.ts.map +1 -0
- package/dist/components/teammate/teamMatesConfig.d.ts +3 -0
- package/dist/components/teammate/teamMatesConfig.d.ts.map +1 -0
- package/dist/components/teammate/teradata/HelloMessage.d.ts +3 -0
- package/dist/components/teammate/teradata/HelloMessage.d.ts.map +1 -0
- package/dist/components/teammate/teradata/MigratorDisplay.d.ts +4 -0
- package/dist/components/teammate/teradata/MigratorDisplay.d.ts.map +1 -0
- package/dist/components/teammate/types.d.ts +113 -0
- package/dist/components/teammate/types.d.ts.map +1 -0
- package/dist/components/teammate/useTeamMateContext.d.ts +3 -0
- package/dist/components/teammate/useTeamMateContext.d.ts.map +1 -0
- package/dist/components/user/ProfileImageByUser.d.ts +7 -0
- package/dist/components/user/ProfileImageByUser.d.ts.map +1 -0
- package/dist/components/user/index.d.ts +3 -0
- package/dist/components/user/index.d.ts.map +1 -0
- package/dist/components/user/types.d.ts +7 -0
- package/dist/components/user/types.d.ts.map +1 -0
- package/dist/dbtDocs.css +297 -0
- package/dist/dbtDocs.css.map +1 -0
- package/dist/dbtDocs.js +1 -0
- package/dist/index.d.ts +14 -285
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -40
- package/dist/lineage.css +1221 -0
- package/dist/lineage.css.map +1 -0
- package/dist/lineage.js +7267 -0
- package/dist/lineage.js.map +1 -0
- package/dist/rslib-runtime.js +20 -0
- package/dist/rslib-runtime.js.map +1 -0
- package/dist/shared/AutosizeTextarea.d.ts +19 -0
- package/dist/shared/AutosizeTextarea.d.ts.map +1 -0
- package/dist/shared/Collapse.d.ts +7 -0
- package/dist/shared/Collapse.d.ts.map +1 -0
- package/dist/shared/Table.d.ts +4 -0
- package/dist/shared/Table.d.ts.map +1 -0
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/utils.d.ts +3 -0
- package/dist/shared/utils.d.ts.map +1 -0
- package/dist/static/image/postgres.png +0 -0
- package/dist/static/image/s3.png +0 -0
- package/dist/static/image/snowflake.png +0 -0
- package/dist/static/svg/botIcon.svg +15 -0
- package/dist/static/svg/brackets.svg +5 -0
- package/dist/static/svg/case-sensitive.svg +5 -0
- package/dist/static/svg/docgen.svg +23 -0
- package/dist/static/svg/half-circle.svg +5 -0
- package/dist/static/svg/opportunities.svg +25 -0
- package/dist/static/svg/split-horizontal.svg +5 -0
- package/dist/static/svg/sqlExpert.svg +24 -0
- package/dist/static/svg/summary.svg +25 -0
- package/dist/styles.css +1638 -0
- package/dist/styles.css.map +1 -0
- package/dist/teammate.css +124 -0
- package/dist/teammate.css.map +1 -0
- package/dist/teammate.js +5655 -0
- package/dist/teammate.js.map +1 -0
- package/dist/user.css +14 -0
- package/dist/user.css.map +1 -0
- package/dist/user.js +13 -0
- package/dist/user.js.map +1 -0
- package/package.json +116 -34
- package/dist/Button-42Dj_nRE.d.ts +0 -28
- package/dist/CoachForm.css +0 -1
- package/dist/CoachForm.js +0 -44445
- package/dist/DbtDocsRenderer.js +0 -45647
- package/dist/IconEye.js +0 -11
- package/dist/Stack.js +0 -7170
- package/dist/Switch.js +0 -128
- package/dist/ToggleGroup.js +0 -8543
- package/dist/_basePickBy.js +0 -151
- package/dist/_baseUniq.js +0 -615
- package/dist/arc.js +0 -83
- package/dist/architecture-U656AL7Q.js +0 -5
- package/dist/architectureDiagram-VXUJARFQ.js +0 -4666
- package/dist/assets/icons/index.js +0 -56
- package/dist/blockDiagram-VD42YOAC.js +0 -2266
- package/dist/c4Diagram-YG6GDRKO.js +0 -1582
- package/dist/channel.js +0 -5
- package/dist/chatbotV2/index.d.ts +0 -359
- package/dist/chatbotV2/index.js +0 -58
- package/dist/chunk-4BX2VUAB.js +0 -9
- package/dist/chunk-55IACEB6.js +0 -9
- package/dist/chunk-B4BG7PRW.js +0 -1377
- package/dist/chunk-DI55MBZ5.js +0 -1382
- package/dist/chunk-FMBD7UC4.js +0 -19
- package/dist/chunk-QN33PNHL.js +0 -20
- package/dist/chunk-QZHKN3VN.js +0 -15
- package/dist/chunk-TZMSLE5B.js +0 -64
- package/dist/classDiagram-2ON5EDUG.js +0 -17
- package/dist/classDiagram-v2-WZHVMYZB.js +0 -17
- package/dist/clone.js +0 -8
- package/dist/cose-bilkent-S5V4N54A.js +0 -2606
- package/dist/cytoscape.esm.js +0 -18731
- package/dist/dagre-6UL2VRFP.js +0 -447
- package/dist/dayjs.min.js +0 -302
- package/dist/defaultLocale.js +0 -171
- package/dist/diagram-PSM6KHXK.js +0 -535
- package/dist/diagram-QEK2KX5R.js +0 -221
- package/dist/diagram-S2PKOQOG.js +0 -143
- package/dist/erDiagram-Q2GNP2WA.js +0 -843
- package/dist/flowDiagram-NV44I4VS.js +0 -1628
- package/dist/ganttDiagram-LVOFAZNH.js +0 -2500
- package/dist/gitGraph-F6HP7TQM.js +0 -5
- package/dist/gitGraphDiagram-NY62KEGX.js +0 -713
- package/dist/graph.js +0 -247
- package/dist/index.css +0 -1
- package/dist/index2.js +0 -689
- package/dist/info-NVLQJR56.js +0 -5
- package/dist/infoDiagram-F6ZHWCRC.js +0 -24
- package/dist/init.js +0 -16
- package/dist/journeyDiagram-XKPGCS4Q.js +0 -837
- package/dist/kanban-definition-3W4ZIXB7.js +0 -720
- package/dist/katex.js +0 -11691
- package/dist/layout.js +0 -1324
- package/dist/lineage/index.js +0 -7328
- package/dist/linear.js +0 -259
- package/dist/main.css +0 -1
- package/dist/main.js +0 -4566
- package/dist/mermaid-parser.core.js +0 -12921
- package/dist/mindmap-definition-VGOIOE7T.js +0 -786
- package/dist/ordinal.js +0 -61
- package/dist/packet-BFZMPI3H.js +0 -5
- package/dist/pie-7BOR55EZ.js +0 -5
- package/dist/pieDiagram-ADFJNKIX.js +0 -163
- package/dist/quadrantDiagram-AYHSOK5B.js +0 -1025
- package/dist/radar-NHE76QYJ.js +0 -5
- package/dist/redux-toolkit.css +0 -1
- package/dist/redux-toolkit.modern.js +0 -12525
- package/dist/requirementDiagram-UZGBJVZJ.js +0 -852
- package/dist/sankeyDiagram-TZEHDZUN.js +0 -811
- package/dist/sequenceDiagram-WL72ISMW.js +0 -2523
- package/dist/shadcn/index.d.ts +0 -761
- package/dist/shadcn/index.js +0 -8680
- package/dist/stateDiagram-FKZM4ZOC.js +0 -264
- package/dist/stateDiagram-v2-4FDKWEC3.js +0 -17
- package/dist/storybook/Accordion.stories.tsx +0 -52
- package/dist/storybook/Alert.stories.tsx +0 -101
- package/dist/storybook/AlertDialog.stories.tsx +0 -161
- package/dist/storybook/AutosizeTextarea.stories.tsx +0 -52
- package/dist/storybook/Avatar.stories.tsx +0 -58
- package/dist/storybook/Badge.stories.tsx +0 -43
- package/dist/storybook/Button.stories.tsx +0 -67
- package/dist/storybook/Calendar.stories.tsx +0 -103
- package/dist/storybook/Card.stories.tsx +0 -69
- package/dist/storybook/Carousel.stories.tsx +0 -274
- package/dist/storybook/Checkbox.stories.tsx +0 -65
- package/dist/storybook/Combobox.stories.tsx +0 -1629
- package/dist/storybook/Command.stories.tsx +0 -35
- package/dist/storybook/DateRange.stories.tsx +0 -540
- package/dist/storybook/DebouncedInput.stories.tsx +0 -179
- package/dist/storybook/DropdownMenu.stories.tsx +0 -36
- package/dist/storybook/Form.stories.tsx +0 -114
- package/dist/storybook/HoverCard.stories.tsx +0 -99
- package/dist/storybook/Input.stories.tsx +0 -156
- package/dist/storybook/InputGroup.stories.tsx +0 -352
- package/dist/storybook/Label.stories.tsx +0 -42
- package/dist/storybook/Menubar.stories.tsx +0 -159
- package/dist/storybook/Pagination.stories.tsx +0 -152
- package/dist/storybook/Popover.stories.tsx +0 -23
- package/dist/storybook/Progress.stories.tsx +0 -89
- package/dist/storybook/RadioGroup.stories.tsx +0 -58
- package/dist/storybook/Resizable.stories.tsx +0 -119
- package/dist/storybook/ScrollArea.stories.tsx +0 -101
- package/dist/storybook/Select.stories.tsx +0 -145
- package/dist/storybook/Sheet.stories.tsx +0 -69
- package/dist/storybook/Sidebar.stories.tsx +0 -97
- package/dist/storybook/Slider.stories.tsx +0 -79
- package/dist/storybook/Switch.stories.tsx +0 -90
- package/dist/storybook/Tabs.stories.tsx +0 -147
- package/dist/storybook/TagsInput.stories.tsx +0 -261
- package/dist/storybook/Textarea.stories.tsx +0 -50
- package/dist/storybook/Toast.stories.tsx +0 -107
- package/dist/storybook/Toggle.stories.tsx +0 -106
- package/dist/storybook/ToggleGroup.stories.tsx +0 -178
- package/dist/storybook/Tooltip.stories.tsx +0 -25
- package/dist/storybook/Typography.stories.tsx +0 -231
- package/dist/storybook/drag-and-drop-file-upload.stories.tsx +0 -99
- package/dist/timeline-definition-IT6M3QCI.js +0 -802
- package/dist/treemap-KMMF4GRG.js +0 -5
- package/dist/xychartDiagram-PRI3JC2R.js +0 -1341
- package/readme.md +0 -11
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from "@storybook/react";
|
|
2
|
-
import { DebouncedInput, DebouncedInputProps } from "../shadcn";
|
|
3
|
-
import { useState } from "react";
|
|
4
|
-
import { IconSearch, IconUser, IconMail } from "@tabler/icons-react";
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: "Shadcn/Components/DebouncedInput",
|
|
8
|
-
component: DebouncedInput,
|
|
9
|
-
argTypes: {
|
|
10
|
-
disabled: {
|
|
11
|
-
control: "boolean",
|
|
12
|
-
},
|
|
13
|
-
type: {
|
|
14
|
-
control: "select",
|
|
15
|
-
options: ["text", "password", "email", "number"],
|
|
16
|
-
},
|
|
17
|
-
iconPosition: {
|
|
18
|
-
control: "select",
|
|
19
|
-
options: ["left", "right"],
|
|
20
|
-
},
|
|
21
|
-
debounceMs: {
|
|
22
|
-
control: "number",
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
} as Meta<typeof DebouncedInput>;
|
|
26
|
-
|
|
27
|
-
const Template: StoryFn<DebouncedInputProps> = (args: DebouncedInputProps) => {
|
|
28
|
-
const [debouncedValue, setDebouncedValue] = useState("");
|
|
29
|
-
|
|
30
|
-
return (
|
|
31
|
-
<div className="al-p-4 al-max-w-md al-space-y-4">
|
|
32
|
-
<DebouncedInput
|
|
33
|
-
{...args}
|
|
34
|
-
onChange={newValue => {
|
|
35
|
-
setDebouncedValue(newValue);
|
|
36
|
-
args.onChange?.(newValue);
|
|
37
|
-
}}
|
|
38
|
-
/>
|
|
39
|
-
<div className="al-space-y-2 al-text-sm">
|
|
40
|
-
<div>
|
|
41
|
-
<strong>Debounced Value:</strong>{" "}
|
|
42
|
-
<code className="al-bg-gray-100 al-px-1 al-rounded">{debouncedValue || "empty"}</code>
|
|
43
|
-
</div>
|
|
44
|
-
<div>
|
|
45
|
-
<strong>Debounce Delay:</strong>{" "}
|
|
46
|
-
<code className="al-bg-gray-100 al-px-1 al-rounded">{args.debounceMs || 0}ms</code>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
);
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export const Default = Template.bind({});
|
|
54
|
-
Default.args = {
|
|
55
|
-
placeholder: "Type something...",
|
|
56
|
-
debounceMs: 0,
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export const WithDebounce300ms = Template.bind({});
|
|
60
|
-
WithDebounce300ms.args = {
|
|
61
|
-
placeholder: "Search with 300ms debounce...",
|
|
62
|
-
debounceMs: 300,
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
export const WithDebounce500ms = Template.bind({});
|
|
66
|
-
WithDebounce500ms.args = {
|
|
67
|
-
placeholder: "Search with 500ms debounce...",
|
|
68
|
-
debounceMs: 500,
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export const WithDebounce1000ms = Template.bind({});
|
|
72
|
-
WithDebounce1000ms.args = {
|
|
73
|
-
placeholder: "Search with 1000ms debounce...",
|
|
74
|
-
debounceMs: 1000,
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
export const SearchWithIcon = Template.bind({});
|
|
78
|
-
SearchWithIcon.args = {
|
|
79
|
-
placeholder: "Search users...",
|
|
80
|
-
icon: IconSearch,
|
|
81
|
-
iconPosition: "left",
|
|
82
|
-
debounceMs: 300,
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
export const EmailWithDebounce = Template.bind({});
|
|
86
|
-
EmailWithDebounce.args = {
|
|
87
|
-
type: "email",
|
|
88
|
-
placeholder: "Enter email...",
|
|
89
|
-
icon: IconMail,
|
|
90
|
-
iconPosition: "left",
|
|
91
|
-
debounceMs: 500,
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export const UserSearchWithIcon = Template.bind({});
|
|
95
|
-
UserSearchWithIcon.args = {
|
|
96
|
-
placeholder: "Search for users...",
|
|
97
|
-
icon: IconUser,
|
|
98
|
-
iconPosition: "left",
|
|
99
|
-
debounceMs: 400,
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
// Interactive example showing real-time vs debounced updates
|
|
103
|
-
const InteractiveTemplate: StoryFn<DebouncedInputProps> = (args: DebouncedInputProps) => {
|
|
104
|
-
const [realTimeValue, setRealTimeValue] = useState("");
|
|
105
|
-
const [debouncedValue, setDebouncedValue] = useState("");
|
|
106
|
-
const [updateCount, setUpdateCount] = useState(0);
|
|
107
|
-
const [debouncedUpdateCount, setDebouncedUpdateCount] = useState(0);
|
|
108
|
-
|
|
109
|
-
return (
|
|
110
|
-
<div className="al-p-4 al-max-w-lg al-space-y-6">
|
|
111
|
-
<div className="al-space-y-4">
|
|
112
|
-
<div>
|
|
113
|
-
<label className="al-block al-text-sm al-font-medium al-mb-2">
|
|
114
|
-
Real-time Input (no debounce)
|
|
115
|
-
</label>
|
|
116
|
-
<DebouncedInput
|
|
117
|
-
placeholder="Type here for real-time updates..."
|
|
118
|
-
debounceMs={0}
|
|
119
|
-
onChange={value => {
|
|
120
|
-
setRealTimeValue(value);
|
|
121
|
-
setUpdateCount(prev => prev + 1);
|
|
122
|
-
}}
|
|
123
|
-
/>
|
|
124
|
-
</div>
|
|
125
|
-
|
|
126
|
-
<div>
|
|
127
|
-
<label className="al-block al-text-sm al-font-medium al-mb-2">
|
|
128
|
-
Debounced Input ({args.debounceMs}ms delay)
|
|
129
|
-
</label>
|
|
130
|
-
<DebouncedInput
|
|
131
|
-
{...args}
|
|
132
|
-
onChange={value => {
|
|
133
|
-
setDebouncedValue(value);
|
|
134
|
-
setDebouncedUpdateCount(prev => prev + 1);
|
|
135
|
-
}}
|
|
136
|
-
/>
|
|
137
|
-
</div>
|
|
138
|
-
</div>
|
|
139
|
-
|
|
140
|
-
<div className="al-grid al-grid-cols-2 al-gap-4 al-text-sm">
|
|
141
|
-
<div className="al-space-y-2">
|
|
142
|
-
<h4 className="al-font-semibold">Real-time Updates</h4>
|
|
143
|
-
<div>
|
|
144
|
-
Value:{" "}
|
|
145
|
-
<code className="al-bg-gray-100 al-px-1 al-rounded">{realTimeValue || "empty"}</code>
|
|
146
|
-
</div>
|
|
147
|
-
<div>
|
|
148
|
-
Updates: <code className="al-bg-blue-100 al-px-1 al-rounded">{updateCount}</code>
|
|
149
|
-
</div>
|
|
150
|
-
</div>
|
|
151
|
-
|
|
152
|
-
<div className="al-space-y-2">
|
|
153
|
-
<h4 className="al-font-semibold">Debounced Updates</h4>
|
|
154
|
-
<div>
|
|
155
|
-
Value:{" "}
|
|
156
|
-
<code className="al-bg-gray-100 al-px-1 al-rounded">{debouncedValue || "empty"}</code>
|
|
157
|
-
</div>
|
|
158
|
-
<div>
|
|
159
|
-
Updates:{" "}
|
|
160
|
-
<code className="al-bg-green-100 al-px-1 al-rounded">{debouncedUpdateCount}</code>
|
|
161
|
-
</div>
|
|
162
|
-
</div>
|
|
163
|
-
</div>
|
|
164
|
-
|
|
165
|
-
<div className="al-text-xs al-text-gray-600">
|
|
166
|
-
Type quickly to see the difference between real-time and debounced updates. The debounced
|
|
167
|
-
input will only trigger onChange after you stop typing for {args.debounceMs}ms.
|
|
168
|
-
</div>
|
|
169
|
-
</div>
|
|
170
|
-
);
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
export const InteractiveComparison = InteractiveTemplate.bind({});
|
|
174
|
-
InteractiveComparison.args = {
|
|
175
|
-
placeholder: "Type here for debounced updates...",
|
|
176
|
-
debounceMs: 500,
|
|
177
|
-
icon: IconSearch,
|
|
178
|
-
iconPosition: "left",
|
|
179
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from "@storybook/react";
|
|
2
|
-
import {
|
|
3
|
-
DropdownMenu,
|
|
4
|
-
DropdownMenuContent,
|
|
5
|
-
DropdownMenuItem,
|
|
6
|
-
DropdownMenuTrigger,
|
|
7
|
-
Button,
|
|
8
|
-
} from "../shadcn";
|
|
9
|
-
import { MoreIcon, CopyIcon, RefreshIcon } from "@ac-assets/icons";
|
|
10
|
-
|
|
11
|
-
export default {
|
|
12
|
-
title: "Shadcn/Components/DropdownMenu",
|
|
13
|
-
component: DropdownMenu,
|
|
14
|
-
} as Meta;
|
|
15
|
-
|
|
16
|
-
const Template: StoryFn = () => (
|
|
17
|
-
<DropdownMenu>
|
|
18
|
-
<DropdownMenuTrigger asChild>
|
|
19
|
-
<Button variant="ghost" size="sm" className="al-p-0 al-h-8 al-w-8">
|
|
20
|
-
<MoreIcon className="al-h-4 al-w-4" />
|
|
21
|
-
</Button>
|
|
22
|
-
</DropdownMenuTrigger>
|
|
23
|
-
<DropdownMenuContent>
|
|
24
|
-
<DropdownMenuItem onClick={() => console.log("Copy clicked")}>
|
|
25
|
-
<CopyIcon className="al-mr-2 al-h-4 al-w-4" />
|
|
26
|
-
Copy message
|
|
27
|
-
</DropdownMenuItem>
|
|
28
|
-
<DropdownMenuItem onClick={() => console.log("Regenerate clicked")}>
|
|
29
|
-
<RefreshIcon className="al-mr-2 al-h-4 al-w-4" />
|
|
30
|
-
Regenerate response
|
|
31
|
-
</DropdownMenuItem>
|
|
32
|
-
</DropdownMenuContent>
|
|
33
|
-
</DropdownMenu>
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
export const Default = Template.bind({});
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from "@storybook/react";
|
|
2
|
-
import { useForm } from "react-hook-form";
|
|
3
|
-
import {
|
|
4
|
-
Form,
|
|
5
|
-
FormField,
|
|
6
|
-
FormItem,
|
|
7
|
-
FormLabel,
|
|
8
|
-
FormControl,
|
|
9
|
-
FormDescription,
|
|
10
|
-
FormMessage,
|
|
11
|
-
} from "../shadcn";
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
title: "Shadcn/Components/Form",
|
|
15
|
-
component: Form,
|
|
16
|
-
} as Meta;
|
|
17
|
-
|
|
18
|
-
const Template: StoryFn = () => {
|
|
19
|
-
const form = useForm({
|
|
20
|
-
defaultValues: {
|
|
21
|
-
username: "",
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<Form {...form}>
|
|
27
|
-
<form className="al-space-y-8">
|
|
28
|
-
<FormField
|
|
29
|
-
control={form.control}
|
|
30
|
-
name="username"
|
|
31
|
-
render={({ field }) => (
|
|
32
|
-
<FormItem>
|
|
33
|
-
<FormLabel>Username</FormLabel>
|
|
34
|
-
<FormControl>
|
|
35
|
-
<input
|
|
36
|
-
{...field}
|
|
37
|
-
className="al-flex al-h-10 al-w-full al-rounded-md al-border al-border-input al-bg-background al-px-3 al-py-2 al-text-sm"
|
|
38
|
-
/>
|
|
39
|
-
</FormControl>
|
|
40
|
-
<FormDescription>This is your public display name.</FormDescription>
|
|
41
|
-
<FormMessage />
|
|
42
|
-
</FormItem>
|
|
43
|
-
)}
|
|
44
|
-
/>
|
|
45
|
-
</form>
|
|
46
|
-
</Form>
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export const Default = Template.bind({});
|
|
51
|
-
|
|
52
|
-
export const WithValidation: StoryFn = () => {
|
|
53
|
-
const form = useForm({
|
|
54
|
-
defaultValues: {
|
|
55
|
-
username: "",
|
|
56
|
-
},
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
return (
|
|
60
|
-
<Form {...form}>
|
|
61
|
-
<form className="al-space-y-8">
|
|
62
|
-
<FormField
|
|
63
|
-
control={form.control}
|
|
64
|
-
name="username"
|
|
65
|
-
render={({ field }) => (
|
|
66
|
-
<FormItem>
|
|
67
|
-
<FormLabel>Username</FormLabel>
|
|
68
|
-
<FormControl>
|
|
69
|
-
<input
|
|
70
|
-
{...field}
|
|
71
|
-
className="al-flex al-h-10 al-w-full al-rounded-md al-border al-border-input al-bg-background al-px-3 al-py-2 al-text-sm"
|
|
72
|
-
/>
|
|
73
|
-
</FormControl>
|
|
74
|
-
<FormDescription>Username must be at least 2 characters.</FormDescription>
|
|
75
|
-
<FormMessage />
|
|
76
|
-
</FormItem>
|
|
77
|
-
)}
|
|
78
|
-
/>
|
|
79
|
-
</form>
|
|
80
|
-
</Form>
|
|
81
|
-
);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export const WithError: StoryFn = () => {
|
|
85
|
-
const form = useForm({
|
|
86
|
-
defaultValues: {
|
|
87
|
-
username: "a",
|
|
88
|
-
},
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
return (
|
|
92
|
-
<Form {...form}>
|
|
93
|
-
<form className="al-space-y-8">
|
|
94
|
-
<FormField
|
|
95
|
-
control={form.control}
|
|
96
|
-
name="username"
|
|
97
|
-
render={({ field }) => (
|
|
98
|
-
<FormItem>
|
|
99
|
-
<FormLabel>Username</FormLabel>
|
|
100
|
-
<FormControl>
|
|
101
|
-
<input
|
|
102
|
-
{...field}
|
|
103
|
-
className="al-flex al-h-10 al-w-full al-rounded-md al-border al-border-destructive al-bg-background al-px-3 al-py-2 al-text-sm"
|
|
104
|
-
/>
|
|
105
|
-
</FormControl>
|
|
106
|
-
<FormDescription>Username must be at least 2 characters.</FormDescription>
|
|
107
|
-
<FormMessage>Username is too short</FormMessage>
|
|
108
|
-
</FormItem>
|
|
109
|
-
)}
|
|
110
|
-
/>
|
|
111
|
-
</form>
|
|
112
|
-
</Form>
|
|
113
|
-
);
|
|
114
|
-
};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from "@storybook/react";
|
|
2
|
-
import {
|
|
3
|
-
Avatar,
|
|
4
|
-
AvatarFallback,
|
|
5
|
-
AvatarImage,
|
|
6
|
-
Button,
|
|
7
|
-
HoverCard,
|
|
8
|
-
HoverCardContent,
|
|
9
|
-
HoverCardTrigger,
|
|
10
|
-
} from "../shadcn";
|
|
11
|
-
import { CloseIcon } from "@ac-assets/icons";
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
title: "Shadcn/Components/HoverCard",
|
|
15
|
-
component: HoverCard,
|
|
16
|
-
parameters: {
|
|
17
|
-
layout: "centered",
|
|
18
|
-
},
|
|
19
|
-
} as Meta;
|
|
20
|
-
|
|
21
|
-
const Template: StoryFn = () => (
|
|
22
|
-
<HoverCard>
|
|
23
|
-
<HoverCardTrigger asChild>
|
|
24
|
-
<Button variant="link">@nextjs</Button>
|
|
25
|
-
</HoverCardTrigger>
|
|
26
|
-
<HoverCardContent className="al-w-80">
|
|
27
|
-
<div className="al-flex al-justify-between al-space-x-4">
|
|
28
|
-
<Avatar>
|
|
29
|
-
<AvatarImage src="https://github.com/vercel.png" />
|
|
30
|
-
<AvatarFallback>VC</AvatarFallback>
|
|
31
|
-
</Avatar>
|
|
32
|
-
<div className="al-space-y-1">
|
|
33
|
-
<h4 className="al-text-sm al-font-semibold">@nextjs</h4>
|
|
34
|
-
<p className="al-text-sm">The React Framework – created and maintained by @vercel.</p>
|
|
35
|
-
<div className="al-flex al-items-center al-pt-2">
|
|
36
|
-
<CloseIcon className="al-mr-2 al-h-4 al-w-4 al-opacity-70" />{" "}
|
|
37
|
-
<span className="al-text-xs al-text-muted-foreground">Joined December 2021</span>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
</HoverCardContent>
|
|
42
|
-
</HoverCard>
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
export const Default = Template.bind({});
|
|
46
|
-
|
|
47
|
-
export const WithCustomAlignment: StoryFn = () => (
|
|
48
|
-
<HoverCard>
|
|
49
|
-
<HoverCardTrigger asChild>
|
|
50
|
-
<Button variant="outline">Hover (Right Aligned)</Button>
|
|
51
|
-
</HoverCardTrigger>
|
|
52
|
-
<HoverCardContent align="end" className="al-w-80">
|
|
53
|
-
<div className="al-space-y-2">
|
|
54
|
-
<h4 className="al-text-sm al-font-semibold">Right Aligned Content</h4>
|
|
55
|
-
<p className="al-text-sm">
|
|
56
|
-
This hover card's content is aligned to the end (right) of the trigger element. It
|
|
57
|
-
also has a custom width of 80 units.
|
|
58
|
-
</p>
|
|
59
|
-
</div>
|
|
60
|
-
</HoverCardContent>
|
|
61
|
-
</HoverCard>
|
|
62
|
-
);
|
|
63
|
-
|
|
64
|
-
export const WithCustomOffset: StoryFn = () => (
|
|
65
|
-
<HoverCard>
|
|
66
|
-
<HoverCardTrigger asChild>
|
|
67
|
-
<Button variant="outline">Hover (Custom Offset)</Button>
|
|
68
|
-
</HoverCardTrigger>
|
|
69
|
-
<HoverCardContent sideOffset={10}>
|
|
70
|
-
<div className="al-space-y-2">
|
|
71
|
-
<h4 className="al-text-sm al-font-semibold">Custom Offset Content</h4>
|
|
72
|
-
<p className="al-text-sm">
|
|
73
|
-
This hover card has a larger offset from the trigger element (10 units instead of the
|
|
74
|
-
default 4).
|
|
75
|
-
</p>
|
|
76
|
-
</div>
|
|
77
|
-
</HoverCardContent>
|
|
78
|
-
</HoverCard>
|
|
79
|
-
);
|
|
80
|
-
|
|
81
|
-
export const WithRichContent: StoryFn = () => (
|
|
82
|
-
<HoverCard>
|
|
83
|
-
<HoverCardTrigger asChild>
|
|
84
|
-
<Button variant="outline">User Profile</Button>
|
|
85
|
-
</HoverCardTrigger>
|
|
86
|
-
<HoverCardContent className="al-w-80">
|
|
87
|
-
<div className="al-flex al-justify-between al-space-x-4">
|
|
88
|
-
<div className="al-space-y-1">
|
|
89
|
-
<h4 className="al-text-sm al-font-semibold">@johndoe</h4>
|
|
90
|
-
<p className="al-text-sm">Staff Engineer at Acme Corp</p>
|
|
91
|
-
<div className="al-flex al-items-center al-pt-2">
|
|
92
|
-
<span className="al-text-xs al-text-muted-foreground">Joined December 2021</span>
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
95
|
-
<div className="al-w-12 al-h-12 al-rounded-full al-bg-secondary" />
|
|
96
|
-
</div>
|
|
97
|
-
</HoverCardContent>
|
|
98
|
-
</HoverCard>
|
|
99
|
-
);
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from "@storybook/react";
|
|
2
|
-
import { Input, InputPassword } from "../shadcn";
|
|
3
|
-
import { InputHTMLAttributes, ComponentProps } from "react";
|
|
4
|
-
import {
|
|
5
|
-
IconUser,
|
|
6
|
-
IconMail,
|
|
7
|
-
IconSearch,
|
|
8
|
-
IconPhone,
|
|
9
|
-
IconMapPin,
|
|
10
|
-
IconCreditCard,
|
|
11
|
-
} from "@tabler/icons-react";
|
|
12
|
-
|
|
13
|
-
type InputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
14
|
-
icon?: React.ComponentType<{ size?: string | number; className?: string }>;
|
|
15
|
-
iconPosition?: "left" | "right";
|
|
16
|
-
insetRing?: boolean;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export default {
|
|
20
|
-
title: "Shadcn/Components/Input",
|
|
21
|
-
component: Input,
|
|
22
|
-
argTypes: {
|
|
23
|
-
disabled: {
|
|
24
|
-
control: "boolean",
|
|
25
|
-
},
|
|
26
|
-
type: {
|
|
27
|
-
control: "select",
|
|
28
|
-
options: ["text", "password", "email", "number"],
|
|
29
|
-
},
|
|
30
|
-
iconPosition: {
|
|
31
|
-
control: "select",
|
|
32
|
-
options: ["left", "right"],
|
|
33
|
-
},
|
|
34
|
-
insetRing: {
|
|
35
|
-
control: "boolean",
|
|
36
|
-
description: "When true, the focus ring appears inside the input border instead of outside",
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
} as Meta<typeof Input>;
|
|
40
|
-
|
|
41
|
-
const Template: StoryFn<InputProps> = (args: InputProps) => (
|
|
42
|
-
<div className="al-p-4 al-max-w-md">
|
|
43
|
-
<Input {...args} />
|
|
44
|
-
</div>
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
export const Default = Template.bind({});
|
|
48
|
-
Default.args = {
|
|
49
|
-
placeholder: "Enter text...",
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export const Disabled = Template.bind({});
|
|
53
|
-
Disabled.args = {
|
|
54
|
-
placeholder: "Disabled input",
|
|
55
|
-
disabled: true,
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export const WithLabel = Template.bind({});
|
|
59
|
-
WithLabel.args = {
|
|
60
|
-
placeholder: "Enter email",
|
|
61
|
-
type: "email",
|
|
62
|
-
id: "email",
|
|
63
|
-
"aria-label": "Email",
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export const WithError = Template.bind({});
|
|
67
|
-
WithError.args = {
|
|
68
|
-
placeholder: "Error state",
|
|
69
|
-
className: "border-red-500",
|
|
70
|
-
"aria-invalid": true,
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
export const WithIconLeft = Template.bind({});
|
|
74
|
-
WithIconLeft.args = {
|
|
75
|
-
placeholder: "Search...",
|
|
76
|
-
icon: IconSearch,
|
|
77
|
-
iconPosition: "left",
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
export const WithIconRight = Template.bind({});
|
|
81
|
-
WithIconRight.args = {
|
|
82
|
-
placeholder: "Search...",
|
|
83
|
-
icon: IconSearch,
|
|
84
|
-
iconPosition: "right",
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export const EmailWithIcon = Template.bind({});
|
|
88
|
-
EmailWithIcon.args = {
|
|
89
|
-
type: "email",
|
|
90
|
-
placeholder: "Enter your email",
|
|
91
|
-
icon: IconMail,
|
|
92
|
-
iconPosition: "left",
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export const UserInput = Template.bind({});
|
|
96
|
-
UserInput.args = {
|
|
97
|
-
placeholder: "Enter username",
|
|
98
|
-
icon: IconUser,
|
|
99
|
-
iconPosition: "left",
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
export const PhoneInput = Template.bind({});
|
|
103
|
-
PhoneInput.args = {
|
|
104
|
-
type: "tel",
|
|
105
|
-
placeholder: "Enter phone number",
|
|
106
|
-
icon: IconPhone,
|
|
107
|
-
iconPosition: "left",
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
export const AddressInput = Template.bind({});
|
|
111
|
-
AddressInput.args = {
|
|
112
|
-
placeholder: "Enter address",
|
|
113
|
-
icon: IconMapPin,
|
|
114
|
-
iconPosition: "left",
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
export const CreditCardInput = Template.bind({});
|
|
118
|
-
CreditCardInput.args = {
|
|
119
|
-
placeholder: "1234 5678 9012 3456",
|
|
120
|
-
icon: IconCreditCard,
|
|
121
|
-
iconPosition: "left",
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
export const DisabledWithIcon = Template.bind({});
|
|
125
|
-
DisabledWithIcon.args = {
|
|
126
|
-
placeholder: "Disabled with icon",
|
|
127
|
-
icon: IconUser,
|
|
128
|
-
iconPosition: "left",
|
|
129
|
-
disabled: true,
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
export const InsetRing = Template.bind({});
|
|
133
|
-
InsetRing.args = {
|
|
134
|
-
placeholder: "Focus ring appears inside",
|
|
135
|
-
insetRing: true,
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
export const InsetRingWithIcon = Template.bind({});
|
|
139
|
-
InsetRingWithIcon.args = {
|
|
140
|
-
placeholder: "Inset ring with icon",
|
|
141
|
-
icon: IconMail,
|
|
142
|
-
iconPosition: "left",
|
|
143
|
-
insetRing: true,
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
// InputPassword Stories
|
|
147
|
-
const PasswordTemplate: StoryFn<ComponentProps<typeof InputPassword>> = args => (
|
|
148
|
-
<div className="al-p-4 al-max-w-md">
|
|
149
|
-
<InputPassword {...args} />
|
|
150
|
-
</div>
|
|
151
|
-
);
|
|
152
|
-
|
|
153
|
-
export const Password = PasswordTemplate.bind({});
|
|
154
|
-
Password.args = {
|
|
155
|
-
placeholder: "Enter password",
|
|
156
|
-
};
|