@inkeep/cxkit-primitives 0.0.0-dev-20250221234142
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/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/atoms/api/analytics/conversation.cjs +1 -0
- package/dist/atoms/api/analytics/conversation.d.cts +3 -0
- package/dist/atoms/api/analytics/conversation.d.ts +3 -0
- package/dist/atoms/api/analytics/conversation.js +37 -0
- package/dist/atoms/api/analytics/events.cjs +1 -0
- package/dist/atoms/api/analytics/events.d.cts +2 -0
- package/dist/atoms/api/analytics/events.d.ts +2 -0
- package/dist/atoms/api/analytics/events.js +30 -0
- package/dist/atoms/api/analytics/feedback.cjs +1 -0
- package/dist/atoms/api/analytics/feedback.d.cts +11 -0
- package/dist/atoms/api/analytics/feedback.d.ts +11 -0
- package/dist/atoms/api/analytics/feedback.js +26 -0
- package/dist/atoms/avatars/ai.cjs +1 -0
- package/dist/atoms/avatars/ai.d.cts +3 -0
- package/dist/atoms/avatars/ai.d.ts +3 -0
- package/dist/atoms/avatars/ai.js +88 -0
- package/dist/atoms/avatars/user.cjs +1 -0
- package/dist/atoms/avatars/user.d.cts +3 -0
- package/dist/atoms/avatars/user.d.ts +3 -0
- package/dist/atoms/avatars/user.js +27 -0
- package/dist/atoms/codeblock/index.cjs +1 -0
- package/dist/atoms/codeblock/index.d.cts +10 -0
- package/dist/atoms/codeblock/index.d.ts +10 -0
- package/dist/atoms/codeblock/index.js +40 -0
- package/dist/atoms/custom-styles.cjs +1 -0
- package/dist/atoms/custom-styles.d.cts +5 -0
- package/dist/atoms/custom-styles.d.ts +5 -0
- package/dist/atoms/custom-styles.js +57 -0
- package/dist/atoms/dialog.cjs +1 -0
- package/dist/atoms/dialog.d.cts +68 -0
- package/dist/atoms/dialog.d.ts +68 -0
- package/dist/atoms/dialog.js +185 -0
- package/dist/atoms/icons/built-in-icon-renderer.cjs +1 -0
- package/dist/atoms/icons/built-in-icon-renderer.d.cts +6 -0
- package/dist/atoms/icons/built-in-icon-renderer.d.ts +6 -0
- package/dist/atoms/icons/built-in-icon-renderer.js +49 -0
- package/dist/atoms/icons/built-in-icons.cjs +1 -0
- package/dist/atoms/icons/built-in-icons.d.cts +72 -0
- package/dist/atoms/icons/built-in-icons.d.ts +72 -0
- package/dist/atoms/icons/built-in-icons.js +79 -0
- package/dist/atoms/icons/checkbox-icon.cjs +1 -0
- package/dist/atoms/icons/checkbox-icon.d.cts +1 -0
- package/dist/atoms/icons/checkbox-icon.d.ts +1 -0
- package/dist/atoms/icons/checkbox-icon.js +24 -0
- package/dist/atoms/icons/custom-icon.cjs +1 -0
- package/dist/atoms/icons/custom-icon.d.cts +6 -0
- package/dist/atoms/icons/custom-icon.d.ts +6 -0
- package/dist/atoms/icons/custom-icon.js +19 -0
- package/dist/atoms/icons/index.cjs +1 -0
- package/dist/atoms/icons/index.d.cts +2 -0
- package/dist/atoms/icons/index.d.ts +2 -0
- package/dist/atoms/icons/index.js +6 -0
- package/dist/atoms/icons/inkeep-default-icons.cjs +1 -0
- package/dist/atoms/icons/inkeep-default-icons.d.cts +2 -0
- package/dist/atoms/icons/inkeep-default-icons.d.ts +2 -0
- package/dist/atoms/icons/inkeep-default-icons.js +23 -0
- package/dist/atoms/link.cjs +1 -0
- package/dist/atoms/link.d.cts +14 -0
- package/dist/atoms/link.d.ts +14 -0
- package/dist/atoms/link.js +35 -0
- package/dist/atoms/markdown/components.cjs +1 -0
- package/dist/atoms/markdown/components.d.cts +27 -0
- package/dist/atoms/markdown/components.d.ts +27 -0
- package/dist/atoms/markdown/components.js +64 -0
- package/dist/atoms/markdown/index.cjs +1 -0
- package/dist/atoms/markdown/index.d.cts +15 -0
- package/dist/atoms/markdown/index.d.ts +15 -0
- package/dist/atoms/markdown/index.js +79 -0
- package/dist/atoms/markdown/rehype-inline-code-property.cjs +1 -0
- package/dist/atoms/markdown/rehype-inline-code-property.d.cts +1 -0
- package/dist/atoms/markdown/rehype-inline-code-property.d.ts +1 -0
- package/dist/atoms/markdown/rehype-inline-code-property.js +12 -0
- package/dist/atoms/portal-with-theme.cjs +1 -0
- package/dist/atoms/portal-with-theme.d.cts +2 -0
- package/dist/atoms/portal-with-theme.d.ts +2 -0
- package/dist/atoms/portal-with-theme.js +12 -0
- package/dist/atoms/portal.cjs +1 -0
- package/dist/atoms/portal.d.cts +8 -0
- package/dist/atoms/portal.d.ts +8 -0
- package/dist/atoms/portal.js +19 -0
- package/dist/atoms/shadow/context.cjs +2 -0
- package/dist/atoms/shadow/context.d.cts +14 -0
- package/dist/atoms/shadow/context.d.ts +14 -0
- package/dist/atoms/shadow/context.js +55 -0
- package/dist/atoms/shadow/create.cjs +1 -0
- package/dist/atoms/shadow/create.d.cts +8 -0
- package/dist/atoms/shadow/create.d.ts +8 -0
- package/dist/atoms/shadow/create.js +56 -0
- package/dist/atoms/shadow/index.d.cts +1 -0
- package/dist/atoms/shadow/index.d.ts +1 -0
- package/dist/atoms/shadow/root.cjs +1 -0
- package/dist/atoms/shadow/root.d.cts +5 -0
- package/dist/atoms/shadow/root.d.ts +5 -0
- package/dist/atoms/shadow/root.js +22 -0
- package/dist/atoms/shadow/use-ensured-forwarded-ref.cjs +1 -0
- package/dist/atoms/shadow/use-ensured-forwarded-ref.d.cts +2 -0
- package/dist/atoms/shadow/use-ensured-forwarded-ref.d.ts +2 -0
- package/dist/atoms/shadow/use-ensured-forwarded-ref.js +11 -0
- package/dist/atoms/shadow/utils.cjs +1 -0
- package/dist/atoms/shadow/utils.d.cts +9 -0
- package/dist/atoms/shadow/utils.d.ts +9 -0
- package/dist/atoms/shadow/utils.js +16 -0
- package/dist/components/chat-button.cjs +1 -0
- package/dist/components/chat-button.d.cts +11 -0
- package/dist/components/chat-button.d.ts +11 -0
- package/dist/components/chat-button.js +42 -0
- package/dist/components/embedded-chat/chat-provider.cjs +1 -0
- package/dist/components/embedded-chat/chat-provider.d.cts +19 -0
- package/dist/components/embedded-chat/chat-provider.d.ts +19 -0
- package/dist/components/embedded-chat/chat-provider.js +22 -0
- package/dist/components/embedded-chat/use-captcha.cjs +1 -0
- package/dist/components/embedded-chat/use-captcha.d.cts +13 -0
- package/dist/components/embedded-chat/use-captcha.d.ts +13 -0
- package/dist/components/embedded-chat/use-captcha.js +56 -0
- package/dist/components/embedded-chat/use-chat-action.cjs +1 -0
- package/dist/components/embedded-chat/use-chat-action.d.cts +9 -0
- package/dist/components/embedded-chat/use-chat-action.d.ts +9 -0
- package/dist/components/embedded-chat/use-chat-action.js +26 -0
- package/dist/components/embedded-chat/use-inkeep-chat.cjs +4 -0
- package/dist/components/embedded-chat/use-inkeep-chat.d.cts +25 -0
- package/dist/components/embedded-chat/use-inkeep-chat.d.ts +25 -0
- package/dist/components/embedded-chat/use-inkeep-chat.js +227 -0
- package/dist/components/embedded-chat.cjs +17 -0
- package/dist/components/embedded-chat.d.cts +415 -0
- package/dist/components/embedded-chat.d.ts +415 -0
- package/dist/components/embedded-chat.js +1840 -0
- package/dist/components/embedded-search/search-provider.cjs +1 -0
- package/dist/components/embedded-search/search-provider.d.cts +21 -0
- package/dist/components/embedded-search/search-provider.d.ts +21 -0
- package/dist/components/embedded-search/search-provider.js +19 -0
- package/dist/components/embedded-search/search-query.graphql.cjs +82 -0
- package/dist/components/embedded-search/search-query.graphql.js +86 -0
- package/dist/components/embedded-search/transform-results.cjs +1 -0
- package/dist/components/embedded-search/transform-results.d.cts +3 -0
- package/dist/components/embedded-search/transform-results.d.ts +3 -0
- package/dist/components/embedded-search/transform-results.js +113 -0
- package/dist/components/embedded-search/use-inkeep-search.cjs +1 -0
- package/dist/components/embedded-search/use-inkeep-search.d.cts +21 -0
- package/dist/components/embedded-search/use-inkeep-search.d.ts +21 -0
- package/dist/components/embedded-search/use-inkeep-search.js +137 -0
- package/dist/components/embedded-search.cjs +1 -0
- package/dist/components/embedded-search.d.cts +229 -0
- package/dist/components/embedded-search.d.ts +229 -0
- package/dist/components/embedded-search.js +390 -0
- package/dist/components/factory.cjs +1 -0
- package/dist/components/factory.d.cts +19 -0
- package/dist/components/factory.d.ts +19 -0
- package/dist/components/factory.js +39 -0
- package/dist/components/index.cjs +1 -0
- package/dist/components/index.d.cts +11 -0
- package/dist/components/index.d.ts +11 -0
- package/dist/components/index.js +31 -0
- package/dist/components/intelligent-form/actions/context-model-response.cjs +9 -0
- package/dist/components/intelligent-form/actions/context-model-response.d.cts +10 -0
- package/dist/components/intelligent-form/actions/context-model-response.d.ts +10 -0
- package/dist/components/intelligent-form/actions/context-model-response.js +36 -0
- package/dist/components/intelligent-form/actions/escalation-schema.cjs +1 -0
- package/dist/components/intelligent-form/actions/escalation-schema.d.cts +2 -0
- package/dist/components/intelligent-form/actions/escalation-schema.d.ts +2 -0
- package/dist/components/intelligent-form/actions/escalation-schema.js +48 -0
- package/dist/components/intelligent-form/actions/qa-model-messages.cjs +27 -0
- package/dist/components/intelligent-form/actions/qa-model-messages.d.cts +2 -0
- package/dist/components/intelligent-form/actions/qa-model-messages.d.ts +2 -0
- package/dist/components/intelligent-form/actions/qa-model-messages.js +45 -0
- package/dist/components/intelligent-form/actions/qa-model-response.cjs +1 -0
- package/dist/components/intelligent-form/actions/qa-model-response.d.cts +14 -0
- package/dist/components/intelligent-form/actions/qa-model-response.d.ts +14 -0
- package/dist/components/intelligent-form/actions/qa-model-response.js +46 -0
- package/dist/components/intelligent-form/intelligent-form-provider.cjs +1 -0
- package/dist/components/intelligent-form/intelligent-form-provider.d.cts +29 -0
- package/dist/components/intelligent-form/intelligent-form-provider.d.ts +29 -0
- package/dist/components/intelligent-form/intelligent-form-provider.js +23 -0
- package/dist/components/intelligent-form/use-inkeep-intelligent-form.cjs +1 -0
- package/dist/components/intelligent-form/use-inkeep-intelligent-form.d.cts +30 -0
- package/dist/components/intelligent-form/use-inkeep-intelligent-form.d.ts +30 -0
- package/dist/components/intelligent-form/use-inkeep-intelligent-form.js +157 -0
- package/dist/components/intelligent-form.cjs +1 -0
- package/dist/components/intelligent-form.d.cts +135 -0
- package/dist/components/intelligent-form.d.ts +135 -0
- package/dist/components/intelligent-form.js +568 -0
- package/dist/components/modal/modal-provider.cjs +1 -0
- package/dist/components/modal/modal-provider.d.cts +13 -0
- package/dist/components/modal/modal-provider.d.ts +13 -0
- package/dist/components/modal/modal-provider.js +8 -0
- package/dist/components/modal/use-inkeep-modal.cjs +1 -0
- package/dist/components/modal/use-inkeep-modal.d.cts +8 -0
- package/dist/components/modal/use-inkeep-modal.d.ts +8 -0
- package/dist/components/modal/use-inkeep-modal.js +30 -0
- package/dist/components/modal.cjs +1 -0
- package/dist/components/modal.d.cts +18 -0
- package/dist/components/modal.d.ts +18 -0
- package/dist/components/modal.js +40 -0
- package/dist/components/searchbar.cjs +1 -0
- package/dist/components/searchbar.d.cts +23 -0
- package/dist/components/searchbar.d.ts +23 -0
- package/dist/components/searchbar.js +54 -0
- package/dist/components/tagline-logo-icon.cjs +1 -0
- package/dist/components/tagline-logo-icon.d.cts +1 -0
- package/dist/components/tagline-logo-icon.d.ts +1 -0
- package/dist/components/tagline-logo-icon.js +34 -0
- package/dist/hooks/index.cjs +1 -0
- package/dist/hooks/index.d.cts +12 -0
- package/dist/hooks/index.d.ts +12 -0
- package/dist/hooks/index.js +27 -0
- package/dist/hooks/use-boolean.cjs +1 -0
- package/dist/hooks/use-boolean.d.cts +10 -0
- package/dist/hooks/use-boolean.d.ts +10 -0
- package/dist/hooks/use-boolean.js +17 -0
- package/dist/hooks/use-browser-storage.cjs +1 -0
- package/dist/hooks/use-browser-storage.d.cts +17 -0
- package/dist/hooks/use-browser-storage.d.ts +17 -0
- package/dist/hooks/use-browser-storage.js +88 -0
- package/dist/hooks/use-component-classnames.cjs +1 -0
- package/dist/hooks/use-component-classnames.d.cts +6 -0
- package/dist/hooks/use-component-classnames.d.ts +6 -0
- package/dist/hooks/use-component-classnames.js +14 -0
- package/dist/hooks/use-container-size.cjs +1 -0
- package/dist/hooks/use-container-size.d.cts +5 -0
- package/dist/hooks/use-container-size.d.ts +5 -0
- package/dist/hooks/use-container-size.js +18 -0
- package/dist/hooks/use-copy-to-clipboard.cjs +1 -0
- package/dist/hooks/use-copy-to-clipboard.d.cts +3 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts +3 -0
- package/dist/hooks/use-copy-to-clipboard.js +19 -0
- package/dist/hooks/use-instant-update.cjs +1 -0
- package/dist/hooks/use-instant-update.d.cts +17 -0
- package/dist/hooks/use-instant-update.d.ts +17 -0
- package/dist/hooks/use-instant-update.js +16 -0
- package/dist/hooks/use-is-mounted.cjs +1 -0
- package/dist/hooks/use-is-mounted.d.cts +1 -0
- package/dist/hooks/use-is-mounted.d.ts +1 -0
- package/dist/hooks/use-is-mounted.js +11 -0
- package/dist/hooks/use-media-query.cjs +1 -0
- package/dist/hooks/use-media-query.d.cts +1 -0
- package/dist/hooks/use-media-query.d.ts +1 -0
- package/dist/hooks/use-media-query.js +14 -0
- package/dist/hooks/use-resize-observer.cjs +1 -0
- package/dist/hooks/use-resize-observer.d.cts +12 -0
- package/dist/hooks/use-resize-observer.d.ts +12 -0
- package/dist/hooks/use-resize-observer.js +32 -0
- package/dist/hooks/use-scroll-to-bottom.cjs +1 -0
- package/dist/hooks/use-scroll-to-bottom.d.cts +13 -0
- package/dist/hooks/use-scroll-to-bottom.d.ts +13 -0
- package/dist/hooks/use-scroll-to-bottom.js +52 -0
- package/dist/hooks/use-scrolling-fades.cjs +1 -0
- package/dist/hooks/use-scrolling-fades.d.cts +2 -0
- package/dist/hooks/use-scrolling-fades.d.ts +2 -0
- package/dist/hooks/use-scrolling-fades.js +18 -0
- package/dist/hooks/use-settle-action.cjs +1 -0
- package/dist/hooks/use-settle-action.d.cts +3 -0
- package/dist/hooks/use-settle-action.d.ts +3 -0
- package/dist/hooks/use-settle-action.js +11 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +152 -0
- package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/fa6/index.cjs +1 -0
- package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/fa6/index.js +92 -0
- package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/fi/index.cjs +1 -0
- package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/fi/index.js +8 -0
- package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/hi2/index.cjs +1 -0
- package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/hi2/index.js +8 -0
- package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/io5/index.cjs +1 -0
- package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/io5/index.js +128 -0
- package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/lib/iconBase.cjs +1 -0
- package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/lib/iconBase.js +109 -0
- package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/lib/iconContext.cjs +1 -0
- package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/lib/iconContext.js +13 -0
- package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/lu/index.cjs +1 -0
- package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/lu/index.js +68 -0
- package/dist/providers/attachment-item-provider.cjs +1 -0
- package/dist/providers/attachment-item-provider.d.cts +9 -0
- package/dist/providers/attachment-item-provider.d.ts +9 -0
- package/dist/providers/attachment-item-provider.js +13 -0
- package/dist/providers/attachments-bar-provider.cjs +1 -0
- package/dist/providers/attachments-bar-provider.d.cts +30 -0
- package/dist/providers/attachments-bar-provider.d.ts +30 -0
- package/dist/providers/attachments-bar-provider.js +64 -0
- package/dist/providers/base-events-provider.cjs +1 -0
- package/dist/providers/base-events-provider.d.cts +8 -0
- package/dist/providers/base-events-provider.d.ts +8 -0
- package/dist/providers/base-events-provider.js +39 -0
- package/dist/providers/chat-events-provider.cjs +1 -0
- package/dist/providers/chat-events-provider.d.cts +12 -0
- package/dist/providers/chat-events-provider.d.ts +12 -0
- package/dist/providers/chat-events-provider.js +66 -0
- package/dist/providers/chat-form-provider.cjs +1 -0
- package/dist/providers/chat-form-provider.d.cts +23 -0
- package/dist/providers/chat-form-provider.d.ts +23 -0
- package/dist/providers/chat-form-provider.js +66 -0
- package/dist/providers/config-provider.cjs +1 -0
- package/dist/providers/config-provider.d.cts +24 -0
- package/dist/providers/config-provider.d.ts +24 -0
- package/dist/providers/config-provider.js +37 -0
- package/dist/providers/conversation-provider.cjs +1 -0
- package/dist/providers/conversation-provider.d.cts +12 -0
- package/dist/providers/conversation-provider.d.ts +12 -0
- package/dist/providers/conversation-provider.js +49 -0
- package/dist/providers/feedback-item-provider.cjs +1 -0
- package/dist/providers/feedback-item-provider.d.cts +10 -0
- package/dist/providers/feedback-item-provider.d.ts +10 -0
- package/dist/providers/feedback-item-provider.js +16 -0
- package/dist/providers/feedback-provider.cjs +1 -0
- package/dist/providers/feedback-provider.d.cts +19 -0
- package/dist/providers/feedback-provider.d.ts +19 -0
- package/dist/providers/feedback-provider.js +82 -0
- package/dist/providers/form-field-provider.cjs +1 -0
- package/dist/providers/form-field-provider.d.cts +15 -0
- package/dist/providers/form-field-provider.d.ts +15 -0
- package/dist/providers/form-field-provider.js +17 -0
- package/dist/providers/help-menu-provider.cjs +1 -0
- package/dist/providers/help-menu-provider.d.cts +11 -0
- package/dist/providers/help-menu-provider.d.ts +11 -0
- package/dist/providers/help-menu-provider.js +19 -0
- package/dist/providers/index.cjs +1 -0
- package/dist/providers/index.d.cts +19 -0
- package/dist/providers/index.d.ts +19 -0
- package/dist/providers/index.js +63 -0
- package/dist/providers/intelligent-form-field-provider.cjs +1 -0
- package/dist/providers/intelligent-form-field-provider.d.cts +15 -0
- package/dist/providers/intelligent-form-field-provider.d.ts +15 -0
- package/dist/providers/intelligent-form-field-provider.js +19 -0
- package/dist/providers/markdown-provider.cjs +1 -0
- package/dist/providers/markdown-provider.d.cts +9 -0
- package/dist/providers/markdown-provider.d.ts +9 -0
- package/dist/providers/markdown-provider.js +8 -0
- package/dist/providers/message-attachments-provider.cjs +1 -0
- package/dist/providers/message-attachments-provider.d.cts +13 -0
- package/dist/providers/message-attachments-provider.d.ts +13 -0
- package/dist/providers/message-attachments-provider.js +27 -0
- package/dist/providers/message-provider.cjs +1 -0
- package/dist/providers/message-provider.d.cts +10 -0
- package/dist/providers/message-provider.d.ts +10 -0
- package/dist/providers/message-provider.js +14 -0
- package/dist/providers/root-provider.cjs +1 -0
- package/dist/providers/root-provider.d.cts +8 -0
- package/dist/providers/root-provider.d.ts +8 -0
- package/dist/providers/root-provider.js +21 -0
- package/dist/providers/search-events-provider.cjs +1 -0
- package/dist/providers/search-events-provider.d.cts +11 -0
- package/dist/providers/search-events-provider.d.ts +11 -0
- package/dist/providers/search-events-provider.js +18 -0
- package/dist/providers/source-item-provider.cjs +1 -0
- package/dist/providers/source-item-provider.d.cts +12 -0
- package/dist/providers/source-item-provider.d.ts +12 -0
- package/dist/providers/source-item-provider.js +13 -0
- package/dist/providers/theme-provider.cjs +1 -0
- package/dist/providers/theme-provider.d.cts +3 -0
- package/dist/providers/theme-provider.d.ts +3 -0
- package/dist/providers/theme-provider.js +65 -0
- package/dist/providers/user-provider.cjs +1 -0
- package/dist/providers/user-provider.d.cts +13 -0
- package/dist/providers/user-provider.d.ts +13 -0
- package/dist/providers/user-provider.js +34 -0
- package/dist/providers/widget-provider.cjs +1 -0
- package/dist/providers/widget-provider.d.cts +9 -0
- package/dist/providers/widget-provider.d.ts +9 -0
- package/dist/providers/widget-provider.js +8 -0
- package/dist/utils/component-ids.cjs +1 -0
- package/dist/utils/component-ids.d.cts +632 -0
- package/dist/utils/component-ids.d.ts +632 -0
- package/dist/utils/component-ids.js +340 -0
- package/dist/utils/compose-event-handlers.cjs +1 -0
- package/dist/utils/compose-event-handlers.d.cts +3 -0
- package/dist/utils/compose-event-handlers.d.ts +3 -0
- package/dist/utils/compose-event-handlers.js +10 -0
- package/dist/utils/compose-refs.cjs +1 -0
- package/dist/utils/compose-refs.d.cts +5 -0
- package/dist/utils/compose-refs.d.ts +5 -0
- package/dist/utils/compose-refs.js +30 -0
- package/dist/utils/default-settings.cjs +1 -0
- package/dist/utils/default-settings.d.cts +244 -0
- package/dist/utils/default-settings.d.ts +244 -0
- package/dist/utils/default-settings.js +75 -0
- package/dist/utils/form.cjs +1 -0
- package/dist/utils/form.d.cts +3 -0
- package/dist/utils/form.d.ts +3 -0
- package/dist/utils/form.js +17 -0
- package/dist/utils/generate-uid.cjs +1 -0
- package/dist/utils/generate-uid.d.cts +2 -0
- package/dist/utils/generate-uid.d.ts +2 -0
- package/dist/utils/generate-uid.js +14 -0
- package/dist/utils/get-message-metadata.cjs +10 -0
- package/dist/utils/get-message-metadata.d.cts +8 -0
- package/dist/utils/get-message-metadata.d.ts +8 -0
- package/dist/utils/get-message-metadata.js +142 -0
- package/dist/utils/graphql-client.cjs +1 -0
- package/dist/utils/graphql-client.d.cts +8 -0
- package/dist/utils/graphql-client.d.ts +8 -0
- package/dist/utils/graphql-client.js +23 -0
- package/dist/utils/highlight-emphasis.cjs +1 -0
- package/dist/utils/highlight-emphasis.d.cts +4 -0
- package/dist/utils/highlight-emphasis.d.ts +4 -0
- package/dist/utils/highlight-emphasis.js +15 -0
- package/dist/utils/merge-props.cjs +1 -0
- package/dist/utils/merge-props.d.cts +7 -0
- package/dist/utils/merge-props.d.ts +7 -0
- package/dist/utils/merge-props.js +41 -0
- package/dist/utils/misc.cjs +1 -0
- package/dist/utils/misc.d.cts +13 -0
- package/dist/utils/misc.d.ts +13 -0
- package/dist/utils/misc.js +36 -0
- package/dist/utils/reset-query-params.cjs +1 -0
- package/dist/utils/reset-query-params.d.cts +1 -0
- package/dist/utils/reset-query-params.d.ts +1 -0
- package/dist/utils/reset-query-params.js +13 -0
- package/dist/utils/tools/links-schema.cjs +1 -0
- package/dist/utils/tools/links-schema.d.cts +64 -0
- package/dist/utils/tools/links-schema.d.ts +64 -0
- package/dist/utils/tools/links-schema.js +85 -0
- package/dist/utils/transform-source/breadcrumbs.cjs +1 -0
- package/dist/utils/transform-source/breadcrumbs.d.cts +2 -0
- package/dist/utils/transform-source/breadcrumbs.d.ts +2 -0
- package/dist/utils/transform-source/breadcrumbs.js +16 -0
- package/dist/utils/transform-source/common-words/long.cjs +1 -0
- package/dist/utils/transform-source/common-words/long.d.cts +1 -0
- package/dist/utils/transform-source/common-words/long.d.ts +1 -0
- package/dist/utils/transform-source/common-words/long.js +69 -0
- package/dist/utils/transform-source/common-words/lowercase.cjs +1 -0
- package/dist/utils/transform-source/common-words/lowercase.d.cts +1 -0
- package/dist/utils/transform-source/common-words/lowercase.d.ts +1 -0
- package/dist/utils/transform-source/common-words/lowercase.js +48 -0
- package/dist/utils/transform-source/common-words/short.cjs +1 -0
- package/dist/utils/transform-source/common-words/short.d.cts +1 -0
- package/dist/utils/transform-source/common-words/short.d.ts +1 -0
- package/dist/utils/transform-source/common-words/short.js +141 -0
- package/dist/utils/transform-source/description.cjs +1 -0
- package/dist/utils/transform-source/description.d.cts +2 -0
- package/dist/utils/transform-source/description.d.ts +2 -0
- package/dist/utils/transform-source/description.js +10 -0
- package/dist/utils/transform-source/icon.cjs +1 -0
- package/dist/utils/transform-source/icon.d.cts +2 -0
- package/dist/utils/transform-source/icon.d.ts +2 -0
- package/dist/utils/transform-source/icon.js +9 -0
- package/dist/utils/transform-source/index.cjs +1 -0
- package/dist/utils/transform-source/index.d.cts +2 -0
- package/dist/utils/transform-source/index.d.ts +2 -0
- package/dist/utils/transform-source/index.js +21 -0
- package/dist/utils/transform-source/tabs.cjs +1 -0
- package/dist/utils/transform-source/tabs.d.cts +2 -0
- package/dist/utils/transform-source/tabs.d.ts +2 -0
- package/dist/utils/transform-source/tabs.js +13 -0
- package/dist/utils/transform-source/title.cjs +1 -0
- package/dist/utils/transform-source/title.d.cts +2 -0
- package/dist/utils/transform-source/title.d.ts +2 -0
- package/dist/utils/transform-source/title.js +12 -0
- package/dist/utils/transform-source/utils/description-without-title.cjs +1 -0
- package/dist/utils/transform-source/utils/description-without-title.d.cts +11 -0
- package/dist/utils/transform-source/utils/description-without-title.d.ts +11 -0
- package/dist/utils/transform-source/utils/description-without-title.js +12 -0
- package/dist/utils/transform-source/utils/index.cjs +1 -0
- package/dist/utils/transform-source/utils/index.d.cts +6 -0
- package/dist/utils/transform-source/utils/index.d.ts +6 -0
- package/dist/utils/transform-source/utils/index.js +16 -0
- package/dist/utils/transform-source/utils/misc.cjs +1 -0
- package/dist/utils/transform-source/utils/misc.d.cts +2 -0
- package/dist/utils/transform-source/utils/misc.d.ts +2 -0
- package/dist/utils/transform-source/utils/misc.js +15 -0
- package/dist/utils/transform-source/utils/standardize-common-words.cjs +1 -0
- package/dist/utils/transform-source/utils/standardize-common-words.d.cts +1 -0
- package/dist/utils/transform-source/utils/standardize-common-words.d.ts +1 -0
- package/dist/utils/transform-source/utils/standardize-common-words.js +26 -0
- package/dist/utils/transform-source/utils/standardize-organization-display-name.cjs +1 -0
- package/dist/utils/transform-source/utils/standardize-organization-display-name.d.cts +8 -0
- package/dist/utils/transform-source/utils/standardize-organization-display-name.d.ts +8 -0
- package/dist/utils/transform-source/utils/standardize-organization-display-name.js +10 -0
- package/dist/utils/transform-source/utils/standardize-suffixes.cjs +1 -0
- package/dist/utils/transform-source/utils/standardize-suffixes.d.cts +5 -0
- package/dist/utils/transform-source/utils/standardize-suffixes.d.ts +5 -0
- package/dist/utils/transform-source/utils/standardize-suffixes.js +16 -0
- package/dist/utils/transform-source/utils/strip-branding-keywords.cjs +1 -0
- package/dist/utils/transform-source/utils/strip-branding-keywords.d.cts +17 -0
- package/dist/utils/transform-source/utils/strip-branding-keywords.d.ts +17 -0
- package/dist/utils/transform-source/utils/strip-branding-keywords.js +14 -0
- package/package.json +111 -0
|
@@ -0,0 +1,568 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { ikp as t } from "./factory.js";
|
|
4
|
+
import { forwardRef as I, useRef as C, useEffect as h } from "react";
|
|
5
|
+
import w from "react-textarea-autosize";
|
|
6
|
+
import * as u from "@radix-ui/react-select";
|
|
7
|
+
import * as R from "@radix-ui/react-checkbox";
|
|
8
|
+
import { useIntelligentForm as s } from "./intelligent-form/intelligent-form-provider.js";
|
|
9
|
+
import { IntelligentFormProvider as ki } from "./intelligent-form/intelligent-form-provider.js";
|
|
10
|
+
import * as v from "@radix-ui/react-scroll-area";
|
|
11
|
+
import { BuiltInIconRenderer as S } from "../atoms/icons/built-in-icon-renderer.js";
|
|
12
|
+
import { maybeRender as b, dataAttr as a } from "../utils/misc.js";
|
|
13
|
+
import { Controller as L } from "react-hook-form";
|
|
14
|
+
import { IntelligentFormFieldProvider as E, useIntelligentFormField as _ } from "../providers/intelligent-form-field-provider.js";
|
|
15
|
+
import { CheckboxIcon as V } from "../atoms/icons/checkbox-icon.js";
|
|
16
|
+
import { useInkeepConfig as T } from "../providers/config-provider.js";
|
|
17
|
+
import { SourceItemProvider as H, useSourceItem as x } from "../providers/source-item-provider.js";
|
|
18
|
+
import { LinkWithQueryParams as D } from "../atoms/link.js";
|
|
19
|
+
import { Markdown as N } from "../atoms/markdown/index.js";
|
|
20
|
+
import { useComposedRefs as P } from "../utils/compose-refs.js";
|
|
21
|
+
import { composeEventHandlers as F } from "../utils/compose-event-handlers.js";
|
|
22
|
+
const q = t("form", {
|
|
23
|
+
_id: "intelligentForm__Root"
|
|
24
|
+
}), Be = (i) => {
|
|
25
|
+
const { onSubmit: e, ...n } = i, { handleSubmit: r } = s();
|
|
26
|
+
return /* @__PURE__ */ o(q, { onSubmit: F(e, r), ...n });
|
|
27
|
+
}, ke = t("h2", {
|
|
28
|
+
_id: "intelligentForm__Heading",
|
|
29
|
+
children: "Contact Support"
|
|
30
|
+
}), Le = t("div", {
|
|
31
|
+
_id: "intelligentForm__Content"
|
|
32
|
+
}), Ee = t(v.Root, {
|
|
33
|
+
_id: "intelligentForm__Content__ScrollArea"
|
|
34
|
+
}), M = t(v.Viewport, {
|
|
35
|
+
_id: "intelligentForm__Content__ScrollAreaViewport"
|
|
36
|
+
}), Ve = (i) => {
|
|
37
|
+
const { children: e, ...n } = i;
|
|
38
|
+
return /* @__PURE__ */ o(
|
|
39
|
+
M,
|
|
40
|
+
{
|
|
41
|
+
children: (
|
|
42
|
+
/* added this to fix an overflow issue see https://github.com/radix-ui/primitives/issues/926 */
|
|
43
|
+
/* @__PURE__ */ o("div", { "data-part": "grid", style: { display: "grid" }, children: e })
|
|
44
|
+
),
|
|
45
|
+
...n
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}, He = t(
|
|
49
|
+
v.ScrollAreaScrollbar,
|
|
50
|
+
{
|
|
51
|
+
_id: "intelligentForm__Content__ScrollAreaScrollbar"
|
|
52
|
+
}
|
|
53
|
+
), De = t(
|
|
54
|
+
v.ScrollAreaThumb,
|
|
55
|
+
{
|
|
56
|
+
_id: "intelligentForm__Content__ScrollAreaThumb"
|
|
57
|
+
}
|
|
58
|
+
), Ne = t(v.Corner, {
|
|
59
|
+
_id: "intelligentForm__Content__ScrollAreaCorner"
|
|
60
|
+
}), z = t("div", {
|
|
61
|
+
_id: "intelligentForm__Success"
|
|
62
|
+
}), qe = (i) => {
|
|
63
|
+
const { children: e, ...n } = i, { isSubmitSuccessful: r } = s();
|
|
64
|
+
return r ? /* @__PURE__ */ o(z, { ...n, children: e }) : null;
|
|
65
|
+
}, O = t(S, {
|
|
66
|
+
_id: "intelligentForm__SuccessIcon"
|
|
67
|
+
}), Me = (i) => {
|
|
68
|
+
const {
|
|
69
|
+
formConfig: { successView: e }
|
|
70
|
+
} = s();
|
|
71
|
+
return /* @__PURE__ */ o(
|
|
72
|
+
O,
|
|
73
|
+
{
|
|
74
|
+
iconSettings: e.icon ?? { builtIn: "LuCircleCheck" },
|
|
75
|
+
...i
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}, U = t("h2", {
|
|
79
|
+
_id: "intelligentForm__SuccessHeading"
|
|
80
|
+
}), ze = (i) => {
|
|
81
|
+
const {
|
|
82
|
+
formConfig: { successView: e }
|
|
83
|
+
} = s();
|
|
84
|
+
return /* @__PURE__ */ o(U, { children: e.heading, ...i });
|
|
85
|
+
}, X = t("p", {
|
|
86
|
+
_id: "intelligentForm__SuccessMessage"
|
|
87
|
+
}), Oe = (i) => {
|
|
88
|
+
const {
|
|
89
|
+
formConfig: { successView: e }
|
|
90
|
+
} = s();
|
|
91
|
+
return /* @__PURE__ */ o(X, { children: e.message, ...i });
|
|
92
|
+
}, Ue = t("div", {
|
|
93
|
+
_id: "intelligentForm__PrimaryForm"
|
|
94
|
+
}), j = t("div", {
|
|
95
|
+
_id: "intelligentForm__PrimaryFormFields"
|
|
96
|
+
}), Q = t("p", {
|
|
97
|
+
_id: "intelligentForm__PrimaryForm__Description"
|
|
98
|
+
}), Xe = (i) => {
|
|
99
|
+
const {
|
|
100
|
+
formConfig: { primary: e }
|
|
101
|
+
} = s();
|
|
102
|
+
return e.description ? /* @__PURE__ */ o(Q, { children: e.description, ...i }) : null;
|
|
103
|
+
}, je = (i) => {
|
|
104
|
+
const { children: e, ...n } = i, {
|
|
105
|
+
formConfig: { primary: r }
|
|
106
|
+
} = s();
|
|
107
|
+
return /* @__PURE__ */ o(j, { children: b(e, r.fields), ...n });
|
|
108
|
+
}, W = t("button", {
|
|
109
|
+
_id: "intelligentForm__PrimaryFormSubmit",
|
|
110
|
+
type: "button",
|
|
111
|
+
children: "Next"
|
|
112
|
+
}), Qe = (i) => {
|
|
113
|
+
const { onClick: e, ...n } = i, { submittedPrimaryForm: r, handleSubmitPrimaryForm: l } = s();
|
|
114
|
+
return /* @__PURE__ */ o(
|
|
115
|
+
W,
|
|
116
|
+
{
|
|
117
|
+
"data-submitted": a(r),
|
|
118
|
+
onClick: F(e, l),
|
|
119
|
+
...n
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
}, $ = t("div", {
|
|
123
|
+
_id: "intelligentForm__Field"
|
|
124
|
+
}), We = (i) => {
|
|
125
|
+
const { field: e, autoFocus: n, ...r } = i, { control: l, errors: c } = s();
|
|
126
|
+
return /* @__PURE__ */ o(
|
|
127
|
+
L,
|
|
128
|
+
{
|
|
129
|
+
name: e.name,
|
|
130
|
+
control: l,
|
|
131
|
+
rules: {
|
|
132
|
+
required: e.required ? `${e.label} is required.` : void 0
|
|
133
|
+
},
|
|
134
|
+
render: ({ field: m }) => {
|
|
135
|
+
const d = m.value !== void 0 || e.inputType === "FILE";
|
|
136
|
+
return /* @__PURE__ */ o(
|
|
137
|
+
E,
|
|
138
|
+
{
|
|
139
|
+
"data-invalid": a(!!c[e.name]),
|
|
140
|
+
field: e,
|
|
141
|
+
fieldProps: m,
|
|
142
|
+
autoFocus: n,
|
|
143
|
+
children: d && /* @__PURE__ */ o(
|
|
144
|
+
$,
|
|
145
|
+
{
|
|
146
|
+
"data-input-type": e.inputType,
|
|
147
|
+
"data-hidden": a(e.isHidden),
|
|
148
|
+
...r
|
|
149
|
+
}
|
|
150
|
+
)
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
}, G = t("label", {
|
|
157
|
+
_id: "intelligentForm__FieldLabel"
|
|
158
|
+
}), $e = (i) => {
|
|
159
|
+
const { field: e } = _();
|
|
160
|
+
return /* @__PURE__ */ o(
|
|
161
|
+
G,
|
|
162
|
+
{
|
|
163
|
+
"data-required": a(e.required),
|
|
164
|
+
htmlFor: e.name,
|
|
165
|
+
children: e.label,
|
|
166
|
+
...i
|
|
167
|
+
}
|
|
168
|
+
);
|
|
169
|
+
}, J = t("input", {
|
|
170
|
+
_id: "intelligentForm__FieldText",
|
|
171
|
+
type: "text"
|
|
172
|
+
}), A = I((i, e) => {
|
|
173
|
+
const {
|
|
174
|
+
field: n,
|
|
175
|
+
error: r,
|
|
176
|
+
fieldProps: {
|
|
177
|
+
onChange: l,
|
|
178
|
+
onBlur: c,
|
|
179
|
+
ref: m,
|
|
180
|
+
...d
|
|
181
|
+
},
|
|
182
|
+
autoFocus: p
|
|
183
|
+
} = _(), g = P(
|
|
184
|
+
e,
|
|
185
|
+
m
|
|
186
|
+
);
|
|
187
|
+
return /* @__PURE__ */ o(
|
|
188
|
+
J,
|
|
189
|
+
{
|
|
190
|
+
asChild: n.inputType === "TEXTAREA",
|
|
191
|
+
ref: g,
|
|
192
|
+
id: n.name,
|
|
193
|
+
autoFocus: p,
|
|
194
|
+
placeholder: "placeholder" in n ? n.placeholder : void 0,
|
|
195
|
+
"data-invalid": a(!!r),
|
|
196
|
+
onChange: F(i.onChange, l),
|
|
197
|
+
onBlur: F(i.onBlur, c),
|
|
198
|
+
...d,
|
|
199
|
+
...i,
|
|
200
|
+
children: n.inputType === "TEXTAREA" ? /* @__PURE__ */ o(w, { minRows: 3, maxRows: 10 }) : null
|
|
201
|
+
}
|
|
202
|
+
);
|
|
203
|
+
}), Ge = t(A, {
|
|
204
|
+
_id: "intelligentForm__FieldEmail",
|
|
205
|
+
type: "email"
|
|
206
|
+
}), K = t("input", {
|
|
207
|
+
_id: "intelligentForm__FieldFile",
|
|
208
|
+
type: "file",
|
|
209
|
+
multiple: !0
|
|
210
|
+
}), Je = (i) => {
|
|
211
|
+
const {
|
|
212
|
+
field: e,
|
|
213
|
+
error: n,
|
|
214
|
+
fieldProps: { value: r, onChange: l, onBlur: c, ...m },
|
|
215
|
+
autoFocus: d
|
|
216
|
+
} = _(), { onChange: p, onBlur: g, ...y } = i, f = (B) => {
|
|
217
|
+
const k = B.target.files;
|
|
218
|
+
l(k);
|
|
219
|
+
};
|
|
220
|
+
return /* @__PURE__ */ o(
|
|
221
|
+
K,
|
|
222
|
+
{
|
|
223
|
+
id: e.name,
|
|
224
|
+
autoFocus: d,
|
|
225
|
+
"data-value": r,
|
|
226
|
+
"data-invalid": a(!!n),
|
|
227
|
+
...y,
|
|
228
|
+
...m,
|
|
229
|
+
onChange: F(p, f),
|
|
230
|
+
onBlur: F(g, c)
|
|
231
|
+
}
|
|
232
|
+
);
|
|
233
|
+
}, Ke = t(
|
|
234
|
+
A,
|
|
235
|
+
{
|
|
236
|
+
_id: "intelligentForm__FieldTextArea",
|
|
237
|
+
type: "textarea",
|
|
238
|
+
asChild: !0,
|
|
239
|
+
children: /* @__PURE__ */ o(w, { rows: 1, maxRows: 8 })
|
|
240
|
+
}
|
|
241
|
+
), Y = t(R.Root, {
|
|
242
|
+
_id: "intelligentForm__FieldCheckbox"
|
|
243
|
+
}), Ye = (i) => {
|
|
244
|
+
const { field: e, error: n, fieldProps: r, autoFocus: l } = _(), { onCheckedChange: c, ...m } = i;
|
|
245
|
+
return /* @__PURE__ */ o(
|
|
246
|
+
Y,
|
|
247
|
+
{
|
|
248
|
+
id: e.name,
|
|
249
|
+
name: e.name,
|
|
250
|
+
autoFocus: l,
|
|
251
|
+
"data-invalid": a(!!n),
|
|
252
|
+
checked: r.value,
|
|
253
|
+
onCheckedChange: F(c, r.onChange),
|
|
254
|
+
...m
|
|
255
|
+
}
|
|
256
|
+
);
|
|
257
|
+
}, Ze = t(R.Indicator, {
|
|
258
|
+
_id: "intelligentForm__FieldCheckboxIndicator",
|
|
259
|
+
children: /* @__PURE__ */ o(V, {})
|
|
260
|
+
}), Z = t(u.Root, {
|
|
261
|
+
_id: "intelligentForm__FieldSelect"
|
|
262
|
+
}), ei = (i) => {
|
|
263
|
+
const { field: e, error: n, fieldProps: r } = _(), { onValueChange: l, ...c } = i;
|
|
264
|
+
return /* @__PURE__ */ o(
|
|
265
|
+
Z,
|
|
266
|
+
{
|
|
267
|
+
name: e.name,
|
|
268
|
+
"data-invalid": a(!!n),
|
|
269
|
+
value: r.value,
|
|
270
|
+
onValueChange: F(l, r.onChange),
|
|
271
|
+
...c
|
|
272
|
+
}
|
|
273
|
+
);
|
|
274
|
+
}, ii = t(u.Trigger, {
|
|
275
|
+
_id: "intelligentForm__FieldSelect__Trigger"
|
|
276
|
+
}), ee = t(u.Value, {
|
|
277
|
+
_id: "intelligentForm__FieldSelect__Value"
|
|
278
|
+
}), ti = (i) => {
|
|
279
|
+
const { field: e } = _();
|
|
280
|
+
return /* @__PURE__ */ o(
|
|
281
|
+
ee,
|
|
282
|
+
{
|
|
283
|
+
placeholder: "placeholder" in e ? e.placeholder : void 0,
|
|
284
|
+
...i
|
|
285
|
+
}
|
|
286
|
+
);
|
|
287
|
+
}, ni = t(u.Icon, {
|
|
288
|
+
_id: "intelligentForm__FieldSelect__Icon",
|
|
289
|
+
asChild: !0,
|
|
290
|
+
children: /* @__PURE__ */ o(S, { iconSettings: { builtIn: "LuChevronDown" } })
|
|
291
|
+
}), ri = t(u.Content, {
|
|
292
|
+
_id: "intelligentForm__FieldSelect__Content",
|
|
293
|
+
position: "popper"
|
|
294
|
+
}), oi = t(u.Viewport, {
|
|
295
|
+
_id: "intelligentForm__FieldSelect__Viewport"
|
|
296
|
+
}), li = t(u.Item, {
|
|
297
|
+
_id: "intelligentForm__FieldSelect__Item"
|
|
298
|
+
}), si = t(u.ItemText, {
|
|
299
|
+
_id: "intelligentForm__FieldSelect__ItemText"
|
|
300
|
+
}), ci = t(
|
|
301
|
+
u.ItemIndicator,
|
|
302
|
+
{
|
|
303
|
+
_id: "intelligentForm__FieldSelect__ItemIndicator",
|
|
304
|
+
asChild: !0,
|
|
305
|
+
children: /* @__PURE__ */ o(S, { iconSettings: { builtIn: "LuCheck" } })
|
|
306
|
+
}
|
|
307
|
+
), ie = t("span", {
|
|
308
|
+
_id: "intelligentForm__FieldError"
|
|
309
|
+
}), mi = (i) => {
|
|
310
|
+
const { error: e } = _();
|
|
311
|
+
return e ? /* @__PURE__ */ o(ie, { children: e.message?.toString(), ...i }) : null;
|
|
312
|
+
}, di = t("div", {
|
|
313
|
+
_id: "intelligentForm__BotHeading"
|
|
314
|
+
}), ai = t(S, {
|
|
315
|
+
_id: "intelligentForm__BotHeading__Icon",
|
|
316
|
+
iconSettings: { builtIn: "LuSparkles" }
|
|
317
|
+
}), te = t("div", {
|
|
318
|
+
_id: "intelligentForm__BotHeading__Name"
|
|
319
|
+
}), Fi = (i) => {
|
|
320
|
+
const { baseSettings: e } = T(), { organizationDisplayName: n } = e ?? {}, {
|
|
321
|
+
formConfig: { botName: r }
|
|
322
|
+
} = s();
|
|
323
|
+
return /* @__PURE__ */ o(te, { children: r ?? n, ...i });
|
|
324
|
+
}, ne = t("div", {
|
|
325
|
+
_id: "intelligentForm__Loading"
|
|
326
|
+
}), ui = I(({ ...i }, e) => {
|
|
327
|
+
const { loading: n } = s(), r = C(null), l = P(e, r);
|
|
328
|
+
return h(() => {
|
|
329
|
+
n && r.current && r.current.scrollIntoView({
|
|
330
|
+
behavior: "smooth",
|
|
331
|
+
block: "nearest",
|
|
332
|
+
inline: "nearest"
|
|
333
|
+
});
|
|
334
|
+
}, [n]), n ? /* @__PURE__ */ o(ne, { ref: l, ...i }) : null;
|
|
335
|
+
}), re = t("div", {
|
|
336
|
+
_id: "intelligentForm__ConfidentResponse"
|
|
337
|
+
}), _i = I(({ ...i }, e) => {
|
|
338
|
+
const { aiResponse: n, loading: r } = s(), l = C(null), c = P(e, l);
|
|
339
|
+
return h(() => {
|
|
340
|
+
!r && n.answerConfidence && l.current && l.current.scrollIntoView({
|
|
341
|
+
behavior: "smooth",
|
|
342
|
+
block: "nearest",
|
|
343
|
+
inline: "nearest"
|
|
344
|
+
});
|
|
345
|
+
}, [r, n.answerConfidence]), n.answerConfidence ? /* @__PURE__ */ o(re, { ref: c, ...i }) : null;
|
|
346
|
+
}), oe = t(N, {
|
|
347
|
+
_id: "intelligentForm__ConfidentAnswer"
|
|
348
|
+
}), gi = (i) => {
|
|
349
|
+
const { aiResponse: e } = s();
|
|
350
|
+
return /* @__PURE__ */ o(oe, { shouldOpenLinksInNewTab: !0, children: e.answer, ...i });
|
|
351
|
+
}, le = t("button", {
|
|
352
|
+
_id: "intelligentForm__ConfidentResponseButton",
|
|
353
|
+
type: "button"
|
|
354
|
+
}), Si = (i) => {
|
|
355
|
+
const { onClick: e, ...n } = i, { showSecondaryFields: r, setShowSecondaryFields: l } = s(), c = () => {
|
|
356
|
+
l(!0);
|
|
357
|
+
};
|
|
358
|
+
return /* @__PURE__ */ o(
|
|
359
|
+
le,
|
|
360
|
+
{
|
|
361
|
+
"data-escalated": a(r),
|
|
362
|
+
onClick: F(e, c),
|
|
363
|
+
...n
|
|
364
|
+
}
|
|
365
|
+
);
|
|
366
|
+
}, pi = t(S, {
|
|
367
|
+
_id: "intelligentForm__ConfidentResponseButton__Icon",
|
|
368
|
+
iconSettings: { builtIn: "LuUser" }
|
|
369
|
+
}), vi = t("span", {
|
|
370
|
+
_id: "intelligentForm__ConfidentResponseButton__Label",
|
|
371
|
+
children: "Escalate to human"
|
|
372
|
+
}), se = t("div", {
|
|
373
|
+
_id: "intelligentForm__SecondaryForm"
|
|
374
|
+
}), Ii = I(({ ...i }, e) => {
|
|
375
|
+
const { showSecondaryFields: n } = s(), r = C(null), l = P(e, r);
|
|
376
|
+
return h(() => {
|
|
377
|
+
n && r.current && r.current.scrollIntoView({
|
|
378
|
+
behavior: "smooth",
|
|
379
|
+
block: "nearest",
|
|
380
|
+
inline: "nearest"
|
|
381
|
+
});
|
|
382
|
+
}, [n]), n ? /* @__PURE__ */ o(se, { ref: l, ...i }) : null;
|
|
383
|
+
}), ce = t("p", {
|
|
384
|
+
_id: "intelligentForm__SecondaryForm__Description"
|
|
385
|
+
}), Pi = (i) => {
|
|
386
|
+
const {
|
|
387
|
+
formConfig: { secondary: e },
|
|
388
|
+
aiResponse: { answerConfidence: n }
|
|
389
|
+
} = s();
|
|
390
|
+
if (!e.description) return null;
|
|
391
|
+
const r = typeof e.description == "string" ? e.description : (
|
|
392
|
+
// If description is an object, use the confident description if the answer is confident
|
|
393
|
+
n ? e.description.confident : e.description.default
|
|
394
|
+
);
|
|
395
|
+
return /* @__PURE__ */ o(ce, { children: r, ...i });
|
|
396
|
+
}, me = t("div", {
|
|
397
|
+
_id: "intelligentForm__SecondaryFormFields"
|
|
398
|
+
}), fi = (i) => {
|
|
399
|
+
const { children: e, ...n } = i, {
|
|
400
|
+
formConfig: { secondary: r }
|
|
401
|
+
} = s();
|
|
402
|
+
return /* @__PURE__ */ o(me, { children: b(e, r.fields), ...n });
|
|
403
|
+
}, Ci = t("button", {
|
|
404
|
+
_id: "intelligentForm__SecondaryFormSubmit",
|
|
405
|
+
type: "submit",
|
|
406
|
+
children: "Submit"
|
|
407
|
+
}), de = t("span", {
|
|
408
|
+
_id: "intelligentForm__Error"
|
|
409
|
+
}), hi = (i) => {
|
|
410
|
+
const { formError: e } = s();
|
|
411
|
+
return e ? /* @__PURE__ */ o(de, { children: e.message, ...i }) : null;
|
|
412
|
+
}, bi = t("div", {
|
|
413
|
+
_id: "intelligentForm__Sources"
|
|
414
|
+
}), yi = t("p", {
|
|
415
|
+
_id: "intelligentForm__SourcesCaption",
|
|
416
|
+
children: "Here are the sources I considered:"
|
|
417
|
+
}), ae = t("div", {
|
|
418
|
+
_id: "intelligentForm__SourcesList"
|
|
419
|
+
}), wi = (i) => {
|
|
420
|
+
const { children: e, ...n } = i, {
|
|
421
|
+
baseSettings: { transformSource: r, organizationDisplayName: l }
|
|
422
|
+
} = T(), {
|
|
423
|
+
aiResponse: { recordsConsidered: c }
|
|
424
|
+
} = s();
|
|
425
|
+
if (!c) return null;
|
|
426
|
+
const m = c.reduce((d, p) => {
|
|
427
|
+
const g = r(p, "intelligentFormSource", {
|
|
428
|
+
organizationDisplayName: l
|
|
429
|
+
});
|
|
430
|
+
return d.some((f) => f.url === g.url) || d.push(g), d;
|
|
431
|
+
}, []);
|
|
432
|
+
return /* @__PURE__ */ o(ae, { children: b(e, m), ...n });
|
|
433
|
+
}, Fe = t(D, {
|
|
434
|
+
_id: "intelligentForm__Source"
|
|
435
|
+
}), Ri = (i) => {
|
|
436
|
+
const { source: e, ...n } = i;
|
|
437
|
+
return /* @__PURE__ */ o(H, { source: { ...e, isExternal: !!e.shouldOpenInNewTab }, children: /* @__PURE__ */ o(
|
|
438
|
+
Fe,
|
|
439
|
+
{
|
|
440
|
+
"data-type": e.type,
|
|
441
|
+
appendToUrl: e.appendToUrl,
|
|
442
|
+
href: e.url,
|
|
443
|
+
isExternal: e.shouldOpenInNewTab !== !1,
|
|
444
|
+
...n
|
|
445
|
+
}
|
|
446
|
+
) });
|
|
447
|
+
}, ue = t(S, {
|
|
448
|
+
_id: "intelligentForm__SourceIcon"
|
|
449
|
+
}), Ti = (i) => {
|
|
450
|
+
const { source: e } = x();
|
|
451
|
+
return /* @__PURE__ */ o(ue, { iconSettings: e.icon, "data-type": e.type, ...i });
|
|
452
|
+
}, _e = t("span", {
|
|
453
|
+
_id: "intelligentForm__SourceTitle"
|
|
454
|
+
}), xi = (i) => {
|
|
455
|
+
const { source: e } = x();
|
|
456
|
+
return /* @__PURE__ */ o(_e, { "data-type": e.type, children: e.title, ...i });
|
|
457
|
+
};
|
|
458
|
+
export {
|
|
459
|
+
di as BotHeading,
|
|
460
|
+
ai as BotHeadingIcon,
|
|
461
|
+
Fi as BotHeadingName,
|
|
462
|
+
gi as ConfidentAnswer,
|
|
463
|
+
_i as ConfidentResponse,
|
|
464
|
+
Si as ConfidentResponseButton,
|
|
465
|
+
pi as ConfidentResponseButtonIcon,
|
|
466
|
+
vi as ConfidentResponseButtonLabel,
|
|
467
|
+
Le as Content,
|
|
468
|
+
Ee as ContentScrollArea,
|
|
469
|
+
Ne as ContentScrollAreaCorner,
|
|
470
|
+
He as ContentScrollAreaScrollbar,
|
|
471
|
+
De as ContentScrollAreaThumb,
|
|
472
|
+
Ve as ContentScrollAreaViewport,
|
|
473
|
+
hi as Error,
|
|
474
|
+
We as FormField,
|
|
475
|
+
Ye as FormFieldCheckbox,
|
|
476
|
+
Ze as FormFieldCheckboxIndicator,
|
|
477
|
+
Ge as FormFieldEmail,
|
|
478
|
+
mi as FormFieldError,
|
|
479
|
+
Je as FormFieldFile,
|
|
480
|
+
$e as FormFieldLabel,
|
|
481
|
+
ei as FormFieldSelect,
|
|
482
|
+
ri as FormFieldSelectContent,
|
|
483
|
+
ni as FormFieldSelectIcon,
|
|
484
|
+
li as FormFieldSelectItem,
|
|
485
|
+
ci as FormFieldSelectItemIndicator,
|
|
486
|
+
si as FormFieldSelectItemText,
|
|
487
|
+
ii as FormFieldSelectTrigger,
|
|
488
|
+
ti as FormFieldSelectValue,
|
|
489
|
+
oi as FormFieldSelectViewport,
|
|
490
|
+
A as FormFieldText,
|
|
491
|
+
Ke as FormFieldTextArea,
|
|
492
|
+
ke as Heading,
|
|
493
|
+
di as IntelligentFormPrimitiveBotHeading,
|
|
494
|
+
ai as IntelligentFormPrimitiveBotHeadingIcon,
|
|
495
|
+
Fi as IntelligentFormPrimitiveBotHeadingName,
|
|
496
|
+
gi as IntelligentFormPrimitiveConfidentAnswer,
|
|
497
|
+
_i as IntelligentFormPrimitiveConfidentResponse,
|
|
498
|
+
Si as IntelligentFormPrimitiveConfidentResponseButton,
|
|
499
|
+
pi as IntelligentFormPrimitiveConfidentResponseButtonIcon,
|
|
500
|
+
vi as IntelligentFormPrimitiveConfidentResponseButtonLabel,
|
|
501
|
+
Le as IntelligentFormPrimitiveContent,
|
|
502
|
+
Ee as IntelligentFormPrimitiveContentScrollArea,
|
|
503
|
+
Ne as IntelligentFormPrimitiveContentScrollAreaCorner,
|
|
504
|
+
He as IntelligentFormPrimitiveContentScrollAreaScrollbar,
|
|
505
|
+
De as IntelligentFormPrimitiveContentScrollAreaThumb,
|
|
506
|
+
Ve as IntelligentFormPrimitiveContentScrollAreaViewport,
|
|
507
|
+
hi as IntelligentFormPrimitiveFormError,
|
|
508
|
+
We as IntelligentFormPrimitiveFormField,
|
|
509
|
+
Ye as IntelligentFormPrimitiveFormFieldCheckbox,
|
|
510
|
+
Ze as IntelligentFormPrimitiveFormFieldCheckboxIndicator,
|
|
511
|
+
Ge as IntelligentFormPrimitiveFormFieldEmail,
|
|
512
|
+
mi as IntelligentFormPrimitiveFormFieldError,
|
|
513
|
+
Je as IntelligentFormPrimitiveFormFieldFile,
|
|
514
|
+
$e as IntelligentFormPrimitiveFormFieldLabel,
|
|
515
|
+
ei as IntelligentFormPrimitiveFormFieldSelect,
|
|
516
|
+
ri as IntelligentFormPrimitiveFormFieldSelectContent,
|
|
517
|
+
ni as IntelligentFormPrimitiveFormFieldSelectIcon,
|
|
518
|
+
li as IntelligentFormPrimitiveFormFieldSelectItem,
|
|
519
|
+
ci as IntelligentFormPrimitiveFormFieldSelectItemIndicator,
|
|
520
|
+
si as IntelligentFormPrimitiveFormFieldSelectItemText,
|
|
521
|
+
ii as IntelligentFormPrimitiveFormFieldSelectTrigger,
|
|
522
|
+
ti as IntelligentFormPrimitiveFormFieldSelectValue,
|
|
523
|
+
oi as IntelligentFormPrimitiveFormFieldSelectViewport,
|
|
524
|
+
A as IntelligentFormPrimitiveFormFieldText,
|
|
525
|
+
Ke as IntelligentFormPrimitiveFormFieldTextArea,
|
|
526
|
+
ke as IntelligentFormPrimitiveHeading,
|
|
527
|
+
ui as IntelligentFormPrimitiveLoading,
|
|
528
|
+
Ue as IntelligentFormPrimitivePrimaryForm,
|
|
529
|
+
Xe as IntelligentFormPrimitivePrimaryFormDescription,
|
|
530
|
+
je as IntelligentFormPrimitivePrimaryFormFields,
|
|
531
|
+
Qe as IntelligentFormPrimitivePrimaryFormSubmit,
|
|
532
|
+
Be as IntelligentFormPrimitiveRoot,
|
|
533
|
+
Ii as IntelligentFormPrimitiveSecondaryForm,
|
|
534
|
+
Pi as IntelligentFormPrimitiveSecondaryFormDescription,
|
|
535
|
+
fi as IntelligentFormPrimitiveSecondaryFormFields,
|
|
536
|
+
Ci as IntelligentFormPrimitiveSecondaryFormSubmit,
|
|
537
|
+
Ri as IntelligentFormPrimitiveSource,
|
|
538
|
+
Ti as IntelligentFormPrimitiveSourceIcon,
|
|
539
|
+
xi as IntelligentFormPrimitiveSourceTitle,
|
|
540
|
+
bi as IntelligentFormPrimitiveSources,
|
|
541
|
+
yi as IntelligentFormPrimitiveSourcesCaption,
|
|
542
|
+
wi as IntelligentFormPrimitiveSourcesList,
|
|
543
|
+
qe as IntelligentFormPrimitiveSuccess,
|
|
544
|
+
ze as IntelligentFormPrimitiveSuccessHeading,
|
|
545
|
+
Me as IntelligentFormPrimitiveSuccessIcon,
|
|
546
|
+
Oe as IntelligentFormPrimitiveSuccessMessage,
|
|
547
|
+
ui as Loading,
|
|
548
|
+
Ue as PrimaryForm,
|
|
549
|
+
Xe as PrimaryFormDescription,
|
|
550
|
+
je as PrimaryFormFields,
|
|
551
|
+
Qe as PrimaryFormSubmit,
|
|
552
|
+
ki as Provider,
|
|
553
|
+
Be as Root,
|
|
554
|
+
Ii as SecondaryForm,
|
|
555
|
+
Pi as SecondaryFormDescription,
|
|
556
|
+
fi as SecondaryFormFields,
|
|
557
|
+
Ci as SecondaryFormSubmit,
|
|
558
|
+
Ri as Source,
|
|
559
|
+
Ti as SourceIcon,
|
|
560
|
+
xi as SourceTitle,
|
|
561
|
+
bi as Sources,
|
|
562
|
+
yi as SourcesCaption,
|
|
563
|
+
wi as SourcesList,
|
|
564
|
+
qe as Success,
|
|
565
|
+
ze as SuccessHeading,
|
|
566
|
+
Me as SuccessIcon,
|
|
567
|
+
Oe as SuccessMessage
|
|
568
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),t=require("react"),o=t.createContext(void 0),s=({children:e,modal:r})=>n.jsx(o.Provider,{value:r,children:e}),c=()=>t.useContext(o);exports.ModalProvider=s;exports.useModal=c;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useInkeepModal } from './use-inkeep-modal';
|
|
2
|
+
export type ModalContextValue = ReturnType<typeof useInkeepModal>;
|
|
3
|
+
export declare const ModalProvider: React.FC<{
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
modal: ModalContextValue;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const useModal: () => {
|
|
8
|
+
open: boolean | undefined;
|
|
9
|
+
openModal: () => void;
|
|
10
|
+
closeModal: () => void;
|
|
11
|
+
handleOpenChange: (newState: boolean) => void;
|
|
12
|
+
shortcutKey: string | null | undefined;
|
|
13
|
+
} | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useInkeepModal } from './use-inkeep-modal';
|
|
2
|
+
export type ModalContextValue = ReturnType<typeof useInkeepModal>;
|
|
3
|
+
export declare const ModalProvider: React.FC<{
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
modal: ModalContextValue;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const useModal: () => {
|
|
8
|
+
open: boolean | undefined;
|
|
9
|
+
openModal: () => void;
|
|
10
|
+
closeModal: () => void;
|
|
11
|
+
handleOpenChange: (newState: boolean) => void;
|
|
12
|
+
shortcutKey: string | null | undefined;
|
|
13
|
+
} | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as n, useContext as c } from "react";
|
|
4
|
+
const o = n(void 0), d = ({ children: t, modal: e }) => /* @__PURE__ */ r(o.Provider, { value: e, children: t }), i = () => c(o);
|
|
5
|
+
export {
|
|
6
|
+
d as ModalProvider,
|
|
7
|
+
i as useModal
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),p=c=>{const{open:s,onOpenChange:l,shortcutKey:a}=c??{},e=n.useCallback(t=>{l?.(t)},[l]),r=n.useCallback(t=>{e(t)},[e]),u=n.useCallback(()=>e(!0),[e]),d=n.useCallback(()=>e(!1),[e]);return n.useEffect(()=>{const t=o=>{a&&(o.metaKey||o.ctrlKey)&&o.key.toLowerCase()===a.toLowerCase()&&(o.preventDefault(),o.stopPropagation(),e(!0)),o.key==="Escape"&&s&&(o.preventDefault(),e(!1))};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[a,e,s]),{open:s,openModal:u,closeModal:d,handleOpenChange:r,shortcutKey:a}};exports.useInkeepModal=p;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
2
|
+
export declare const useInkeepModal: (props: InkeepModalSettings | undefined) => {
|
|
3
|
+
open: boolean | undefined;
|
|
4
|
+
openModal: () => void;
|
|
5
|
+
closeModal: () => void;
|
|
6
|
+
handleOpenChange: (newState: boolean) => void;
|
|
7
|
+
shortcutKey: string | null | undefined;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
2
|
+
export declare const useInkeepModal: (props: InkeepModalSettings | undefined) => {
|
|
3
|
+
open: boolean | undefined;
|
|
4
|
+
openModal: () => void;
|
|
5
|
+
closeModal: () => void;
|
|
6
|
+
handleOpenChange: (newState: boolean) => void;
|
|
7
|
+
shortcutKey: string | null | undefined;
|
|
8
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useCallback as s, useEffect as d } from "react";
|
|
3
|
+
const y = (c) => {
|
|
4
|
+
const { open: a, onOpenChange: r, shortcutKey: n } = c ?? {}, e = s(
|
|
5
|
+
(t) => {
|
|
6
|
+
r?.(t);
|
|
7
|
+
},
|
|
8
|
+
[r]
|
|
9
|
+
), l = s(
|
|
10
|
+
(t) => {
|
|
11
|
+
e(t);
|
|
12
|
+
},
|
|
13
|
+
[e]
|
|
14
|
+
), p = s(() => e(!0), [e]), u = s(() => e(!1), [e]);
|
|
15
|
+
return d(() => {
|
|
16
|
+
const t = (o) => {
|
|
17
|
+
n && (o.metaKey || o.ctrlKey) && o.key.toLowerCase() === n.toLowerCase() && (o.preventDefault(), o.stopPropagation(), e(!0)), o.key === "Escape" && a && (o.preventDefault(), e(!1));
|
|
18
|
+
};
|
|
19
|
+
return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
|
|
20
|
+
}, [n, e, a]), {
|
|
21
|
+
open: a,
|
|
22
|
+
openModal: p,
|
|
23
|
+
closeModal: u,
|
|
24
|
+
handleOpenChange: l,
|
|
25
|
+
shortcutKey: n
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
y as useInkeepModal
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),t=require("../atoms/dialog.cjs"),r=require("./factory.cjs"),d=require("../atoms/icons/custom-icon.cjs"),c=require("./modal/use-inkeep-modal.cjs"),s=require("./modal/modal-provider.cjs"),u=require("../utils/compose-event-handlers.cjs"),m=require("../hooks/use-media-query.cjs"),M=require("../utils/misc.cjs"),p=r.ikp(t.Root,{_id:"modal"}),v=e=>{const{onOpenChange:n,config:l,...a}=e,i=c.useInkeepModal(l);return o.jsx(s.ModalProvider,{modal:i,children:o.jsx(p,{open:i.open,onOpenChange:u.composeEventHandlers(n,i.handleOpenChange),...a})})},C=r.ikp(t.Overlay,{_id:"modal__Overlay"}),y=r.ikp(t.Content,{_id:"modal__Content","aria-describedby":void 0}),_=e=>{const n=m.useMediaQuery("(max-width: 768px)");return o.jsx(y,{"data-mobile":M.dataAttr(n),...e})},q=r.ikp(t.Close,{_id:"modal__Close",children:o.jsx(d.CustomIcon,{iconKey:"close"})}),x=e=>s.useModal()?o.jsx(q,{...e}):null;exports.Close=x;exports.Content=_;exports.Modal=v;exports.Overlay=C;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
+
import { InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
3
|
+
import { PolymorphicProps } from './factory';
|
|
4
|
+
import * as DialogPrimitive from '../atoms/dialog';
|
|
5
|
+
declare const Modal: ForwardRefExoticComponent< PolymorphicProps & Omit<DialogPrimitive.DialogProps, "_id"> & Partial<Pick<DialogPrimitive.DialogProps, "_id">>>;
|
|
6
|
+
export interface PrimitiveModalProps extends ComponentPropsWithRef<typeof Modal> {
|
|
7
|
+
/**
|
|
8
|
+
* Configuration for the modal.
|
|
9
|
+
*/
|
|
10
|
+
config?: InkeepModalSettings;
|
|
11
|
+
}
|
|
12
|
+
declare const PrimitiveModal: (props: PrimitiveModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const PrimitiveModalOverlay: ForwardRefExoticComponent< PolymorphicProps & Omit<DialogPrimitive.DialogOverlayProps & RefAttributes<HTMLDivElement>, "_id"> & Partial<Pick<DialogPrimitive.DialogOverlayProps & RefAttributes<HTMLDivElement>, "_id">>>;
|
|
14
|
+
declare const ModalContent: ForwardRefExoticComponent< PolymorphicProps & Omit<DialogPrimitive.DialogContentProps & RefAttributes<HTMLDivElement>, "aria-describedby" | "_id"> & Partial<Pick<DialogPrimitive.DialogContentProps & RefAttributes<HTMLDivElement>, "aria-describedby" | "_id">>>;
|
|
15
|
+
declare const PrimitiveModalContent: (props: ComponentPropsWithRef<typeof ModalContent>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare const ModalClose: ForwardRefExoticComponent< PolymorphicProps & Omit<DialogPrimitive.DialogCloseProps & RefAttributes<HTMLButtonElement>, "children" | "_id"> & Partial<Pick<DialogPrimitive.DialogCloseProps & RefAttributes<HTMLButtonElement>, "children" | "_id">>>;
|
|
17
|
+
declare const PrimitiveModalClose: (props: ComponentPropsWithRef<typeof ModalClose>) => import("react/jsx-runtime").JSX.Element | null;
|
|
18
|
+
export { PrimitiveModal as Modal, PrimitiveModalOverlay as Overlay, PrimitiveModalContent as Content, PrimitiveModalClose as Close, };
|