69 lines
2.3 KiB
TypeScript
69 lines
2.3 KiB
TypeScript
'use client'
|
|
export { MaskedField } from '../globals/SiteIntegrations/components/MaskedField.js'
|
|
export { TestEmailButton } from '../globals/SiteIntegrations/components/TestEmailButton.js'
|
|
export {
|
|
AccessibilityProvider,
|
|
AccessibilityWidget,
|
|
useAccessibility,
|
|
} from '../modules/accessibility/client.js'
|
|
export type { A11yClassNames, A11yState, A11yTexts } from '../modules/accessibility/client.js'
|
|
export { Analytics } from '../modules/analytics/client.js'
|
|
/**
|
|
* Entry point: ipal-kit/client
|
|
*
|
|
* Client-side ('use client') exports — React hooks, providers, and UI
|
|
* components. Kept separate from the main entry so server bundles don't pull in
|
|
* client-only code.
|
|
*/
|
|
export {
|
|
ConsentProvider,
|
|
ConsentScript,
|
|
CookieBanner,
|
|
CookieButton,
|
|
useConsent,
|
|
useConsentContext,
|
|
} from '../modules/consent/client.js'
|
|
|
|
export type { CookieBannerClassNames } from '../modules/consent/client.js'
|
|
export { HONEYPOT_FIELD, honeypotInputProps, isHoneypotTripped } from '../modules/forms/honeypot.js'
|
|
export { useContactForm } from '../modules/forms/useContactForm.js'
|
|
export type {
|
|
ContactFormErrors,
|
|
ContactFormValues,
|
|
SubmitAction,
|
|
} from '../modules/forms/useContactForm.js'
|
|
export { useForm } from '../modules/forms/useForm.js'
|
|
export type { FormErrors, FormSubmitAction, Validator } from '../modules/forms/useForm.js'
|
|
export {
|
|
buildValidator,
|
|
checked,
|
|
custom,
|
|
email,
|
|
isEmail,
|
|
maxLength,
|
|
minLength,
|
|
pattern,
|
|
required,
|
|
} from '../modules/forms/validators.js'
|
|
export type { Rule } from '../modules/forms/validators.js'
|
|
// Pure i18n path helpers — no server/RSC deps, safe to import in client
|
|
// components (e.g. a LanguageSwitcher that computes locale URLs on the client).
|
|
export {
|
|
buildLocalizedPath,
|
|
getLocaleCodes,
|
|
getLocalizedSlugs,
|
|
switchLocalePath,
|
|
} from '../modules/i18n/index.js'
|
|
export type { I18nConfig, LocalizedSlugs } from '../modules/i18n/index.js'
|
|
export {
|
|
AlternateLinksProvider,
|
|
AlternateLinksUpdater,
|
|
LanguageSwitcher,
|
|
useAlternateLinks,
|
|
useSetAlternateLinks,
|
|
} from '../modules/i18n/index.js'
|
|
export type { AlternateLinks, LanguageSwitcherClassNames } from '../modules/i18n/index.js'
|
|
export { Turnstile } from '../modules/turnstile/client.js'
|
|
export { TurnstileProvider, useTurnstile } from '../modules/turnstile/client.js'
|
|
export type { TurnstileProps } from '../modules/turnstile/client.js'
|