@c15t/react 2.0.0-rc.0 → 2.0.0-rc.10
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/README.md +12 -3
- package/client/components/consent-banner.js +4 -0
- package/client/components/consent-dialog-link.js +3 -0
- package/client/components/consent-dialog-trigger.js +3 -0
- package/client/components/consent-dialog.js +4 -0
- package/client/components/consent-widget.js +4 -0
- package/client/components/frame.js +3 -0
- package/dist/components/consent-banner/atoms/overlay.cjs +1 -1
- package/dist/components/consent-banner/atoms/overlay.js +1 -1
- package/dist/components/consent-banner/atoms/root.cjs +1 -1
- package/dist/components/consent-banner/atoms/root.js +1 -1
- package/dist/components/consent-banner/components.cjs +1 -1
- package/dist/components/consent-banner/components.js +1 -1
- package/dist/components/consent-banner/consent-banner.cjs +1 -1
- package/dist/components/consent-banner/consent-banner.js +1 -1
- package/dist/components/consent-banner/error-boundary.cjs +1 -1
- package/dist/components/consent-banner/index.cjs +1 -1
- package/dist/components/consent-banner/index.js +1 -1
- package/dist/components/consent-banner/policy-actions.cjs +1 -0
- package/dist/components/consent-banner/policy-actions.js +1 -0
- package/dist/components/consent-dialog/atoms/card.cjs +1 -1
- package/dist/components/consent-dialog/atoms/card.js +1 -1
- package/dist/components/consent-dialog/atoms/overlay.cjs +1 -1
- package/dist/components/consent-dialog/atoms/overlay.js +1 -1
- package/dist/components/consent-dialog/atoms/root.cjs +1 -1
- package/dist/components/consent-dialog/atoms/root.js +1 -1
- package/dist/components/consent-dialog/consent-dialog.cjs +1 -1
- package/dist/components/consent-dialog/consent-dialog.js +1 -1
- package/dist/components/consent-dialog/index.cjs +1 -1
- package/dist/components/consent-dialog/index.js +1 -1
- package/dist/components/consent-dialog-link/index.cjs +1 -0
- package/dist/components/consent-dialog-link/index.js +1 -0
- package/dist/components/consent-dialog-trigger/atoms/button.cjs +1 -1
- package/dist/components/consent-dialog-trigger/atoms/button.js +1 -1
- package/dist/components/consent-dialog-trigger/atoms/icon.cjs +1 -1
- package/dist/components/consent-dialog-trigger/atoms/icon.js +1 -1
- package/dist/components/consent-dialog-trigger/atoms/root.cjs +1 -1
- package/dist/components/consent-dialog-trigger/atoms/root.js +1 -1
- package/dist/components/consent-dialog-trigger/atoms/text.cjs +1 -1
- package/dist/components/consent-dialog-trigger/atoms/text.js +1 -1
- package/dist/components/consent-dialog-trigger/consent-dialog-trigger.cjs +1 -1
- package/dist/components/consent-dialog-trigger/consent-dialog-trigger.js +1 -1
- package/dist/components/consent-dialog-trigger/index.cjs +1 -1
- package/dist/components/consent-dialog-trigger/index.js +1 -1
- package/dist/components/consent-dialog-trigger/types.cjs +1 -1
- package/dist/components/consent-dialog-trigger/use-draggable.cjs +1 -1
- package/dist/components/consent-dialog-trigger/use-draggable.js +1 -1
- package/dist/components/consent-preferences-link/consent-preferences-link.cjs +1 -0
- package/dist/components/consent-preferences-link/consent-preferences-link.js +1 -0
- package/dist/components/consent-preferences-link/index.cjs +1 -0
- package/dist/components/consent-preferences-link/index.js +1 -0
- package/dist/components/consent-widget/atoms/accordion.cjs +1 -1
- package/dist/components/consent-widget/atoms/accordion.js +1 -1
- package/dist/components/consent-widget/atoms/button.cjs +1 -1
- package/dist/components/consent-widget/atoms/button.js +1 -1
- package/dist/components/consent-widget/atoms/footer.cjs +1 -1
- package/dist/components/consent-widget/atoms/footer.js +1 -1
- package/dist/components/consent-widget/atoms/root.cjs +1 -1
- package/dist/components/consent-widget/atoms/root.js +1 -1
- package/dist/components/consent-widget/consent-widget.cjs +1 -1
- package/dist/components/consent-widget/consent-widget.js +1 -1
- package/dist/components/consent-widget/index.cjs +1 -1
- package/dist/components/consent-widget/index.js +1 -1
- package/dist/components/consent-widget/policy-actions.cjs +1 -0
- package/dist/components/consent-widget/policy-actions.js +1 -0
- package/dist/components/consent-widget/types.cjs +1 -1
- package/dist/components/frame/atoms.cjs +1 -1
- package/dist/components/frame/atoms.js +1 -1
- package/dist/components/frame/frame.cjs +1 -1
- package/dist/components/frame/frame.js +1 -1
- package/dist/components/frame/index.cjs +1 -1
- package/dist/components/frame/index.js +1 -1
- package/dist/components/frame/types.cjs +1 -1
- package/dist/components/iab-consent-banner/atoms/button-group.cjs +1 -1
- package/dist/components/iab-consent-banner/atoms/button-group.js +1 -1
- package/dist/components/iab-consent-banner/atoms/card.cjs +1 -1
- package/dist/components/iab-consent-banner/atoms/card.js +1 -1
- package/dist/components/iab-consent-banner/atoms/description.cjs +1 -1
- package/dist/components/iab-consent-banner/atoms/description.js +1 -1
- package/dist/components/iab-consent-banner/atoms/footer.cjs +1 -1
- package/dist/components/iab-consent-banner/atoms/footer.js +1 -1
- package/dist/components/iab-consent-banner/atoms/header.cjs +1 -1
- package/dist/components/iab-consent-banner/atoms/header.js +1 -1
- package/dist/components/iab-consent-banner/atoms/overlay.cjs +1 -1
- package/dist/components/iab-consent-banner/atoms/overlay.js +1 -1
- package/dist/components/iab-consent-banner/atoms/root.cjs +1 -1
- package/dist/components/iab-consent-banner/atoms/root.js +1 -1
- package/dist/components/iab-consent-banner/atoms/title.cjs +1 -1
- package/dist/components/iab-consent-banner/atoms/title.js +1 -1
- package/dist/components/iab-consent-banner/iab-consent-banner.cjs +1 -1
- package/dist/components/iab-consent-banner/iab-consent-banner.js +1 -1
- package/dist/components/iab-consent-banner/index.cjs +1 -1
- package/dist/components/iab-consent-banner/index.js +1 -1
- package/dist/components/iab-consent-dialog/atoms/card.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/card.js +1 -1
- package/dist/components/iab-consent-dialog/atoms/content.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/content.js +1 -1
- package/dist/components/iab-consent-dialog/atoms/footer.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/footer.js +1 -1
- package/dist/components/iab-consent-dialog/atoms/header.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/header.js +1 -1
- package/dist/components/iab-consent-dialog/atoms/overlay.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/overlay.js +1 -1
- package/dist/components/iab-consent-dialog/atoms/purpose-item.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/purpose-item.js +1 -1
- package/dist/components/iab-consent-dialog/atoms/root.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/root.js +1 -1
- package/dist/components/iab-consent-dialog/atoms/stack-item.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/stack-item.js +1 -1
- package/dist/components/iab-consent-dialog/atoms/tabs.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/tabs.js +1 -1
- package/dist/components/iab-consent-dialog/atoms/vendor-list.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/vendor-list.js +1 -1
- package/dist/components/iab-consent-dialog/hooks/use-gvl-data.cjs +1 -1
- package/dist/components/iab-consent-dialog/iab-consent-dialog.cjs +1 -1
- package/dist/components/iab-consent-dialog/iab-consent-dialog.js +1 -1
- package/dist/components/iab-consent-dialog/index.cjs +1 -1
- package/dist/components/iab-consent-dialog/index.js +1 -1
- package/dist/components/iab-consent-dialog/types.cjs +1 -1
- package/dist/components/iab-consent-dialog/use-iab-translations.cjs +1 -1
- package/dist/components/shared/libs/polymorphic.cjs +1 -1
- package/dist/components/shared/libs/recursive-clone-children.cjs +1 -1
- package/dist/components/shared/libs/slot.cjs +1 -0
- package/dist/components/shared/libs/slot.js +1 -0
- package/dist/components/shared/libs/use-controllable-state.cjs +1 -0
- package/dist/components/shared/libs/use-controllable-state.js +1 -0
- package/dist/components/shared/policy-actions.cjs +1 -0
- package/dist/components/shared/policy-actions.js +1 -0
- package/dist/components/shared/primitives/box.cjs +1 -1
- package/dist/components/shared/primitives/box.js +1 -1
- package/dist/components/shared/primitives/button.cjs +1 -1
- package/dist/components/shared/primitives/button.js +1 -1
- package/dist/components/shared/primitives/button.types.cjs +1 -1
- package/dist/components/shared/primitives/legal-links/index.cjs +1 -1
- package/dist/components/shared/primitives/legal-links/index.js +1 -1
- package/dist/components/shared/ui/accordion/accordion.cjs +1 -1
- package/dist/components/shared/ui/accordion/accordion.js +1 -1
- package/dist/components/shared/ui/accordion/accordion.types.cjs +1 -1
- package/dist/components/shared/ui/accordion/index.cjs +1 -1
- package/dist/components/shared/ui/animated-collapse/animated-collapse.cjs +1 -1
- package/dist/components/shared/ui/animated-collapse/index.cjs +1 -1
- package/dist/components/shared/ui/animated-collapse/index.js +1 -1
- package/dist/components/shared/ui/branding.cjs +1 -0
- package/dist/components/shared/ui/branding.js +1 -0
- package/dist/components/shared/ui/button/button.cjs +1 -1
- package/dist/components/shared/ui/button/button.js +1 -1
- package/dist/components/shared/ui/button/button.types.cjs +1 -1
- package/dist/components/shared/ui/button/index.cjs +1 -1
- package/dist/components/shared/ui/collapsible/collapsible.cjs +1 -0
- package/dist/components/shared/ui/collapsible/collapsible.js +1 -0
- package/dist/components/shared/ui/collapsible/index.cjs +1 -0
- package/dist/components/shared/ui/collapsible/index.js +1 -0
- package/dist/components/shared/ui/dialog/dialog.cjs +1 -0
- package/dist/components/shared/ui/dialog/dialog.js +1 -0
- package/dist/components/shared/ui/dialog/index.cjs +1 -0
- package/dist/components/shared/ui/dialog/index.js +1 -0
- package/dist/components/shared/ui/icon.cjs +1 -1
- package/dist/components/shared/ui/logo.cjs +1 -1
- package/dist/components/shared/ui/logo.js +1 -1
- package/dist/components/shared/ui/preference-item/index.cjs +1 -0
- package/dist/components/shared/ui/preference-item/index.js +1 -0
- package/dist/components/shared/ui/preference-item/preference-item.cjs +1 -0
- package/dist/components/shared/ui/preference-item/preference-item.js +1 -0
- package/dist/components/shared/ui/switch/index.cjs +1 -1
- package/dist/components/shared/ui/switch/index.js +1 -1
- package/dist/components/shared/ui/switch/switch.cjs +1 -1
- package/dist/components/shared/ui/switch/switch.js +1 -1
- package/dist/components/shared/ui/switch/switch.types.cjs +1 -1
- package/dist/components/shared/ui/tabs/index.cjs +1 -0
- package/dist/components/shared/ui/tabs/index.js +1 -0
- package/dist/components/shared/ui/tabs/tabs.cjs +1 -0
- package/dist/components/shared/ui/tabs/tabs.js +1 -0
- package/dist/context/consent-manager-context.cjs +1 -1
- package/dist/context/consent-tracking-context.cjs +1 -1
- package/dist/context/theme-context.cjs +1 -1
- package/dist/headless.cjs +1 -1
- package/dist/headless.js +1 -1
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-color-scheme.cjs +1 -1
- package/dist/hooks/use-component-config.cjs +1 -1
- package/dist/hooks/use-consent-dialog-trigger.cjs +1 -0
- package/dist/hooks/use-consent-dialog-trigger.js +1 -0
- package/dist/hooks/use-consent-manager.cjs +1 -1
- package/dist/hooks/use-consent-manager.js +1 -1
- package/dist/hooks/use-focus-trap.cjs +1 -1
- package/dist/hooks/use-focus-trap.js +1 -1
- package/dist/hooks/use-headless-consent-ui.cjs +1 -0
- package/dist/hooks/use-headless-consent-ui.js +1 -0
- package/dist/hooks/use-headless-iab-consent-ui.cjs +1 -0
- package/dist/hooks/use-headless-iab-consent-ui.js +1 -0
- package/dist/hooks/use-reduced-motion.cjs +1 -1
- package/dist/hooks/use-reduced-motion.js +1 -1
- package/dist/hooks/use-scroll-lock.cjs +1 -1
- package/dist/hooks/use-scroll-lock.js +1 -1
- package/dist/hooks/use-ssr-status.cjs +1 -1
- package/dist/hooks/use-styles.cjs +1 -1
- package/dist/hooks/use-text-direction.cjs +1 -1
- package/dist/hooks/use-theme.cjs +1 -1
- package/dist/hooks/use-theme.js +1 -1
- package/dist/hooks/use-translations.cjs +1 -1
- package/dist/iab/styles.css +11 -0
- package/dist/iab/styles.tw3.css +14 -0
- package/dist/iab.cjs +1 -0
- package/dist/iab.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/primitives/accordion.cjs +1 -0
- package/dist/primitives/accordion.js +1 -0
- package/dist/primitives/button.cjs +1 -0
- package/dist/primitives/button.js +1 -0
- package/dist/primitives/collapsible.cjs +1 -0
- package/dist/primitives/collapsible.js +1 -0
- package/dist/primitives/dialog.cjs +1 -0
- package/dist/primitives/dialog.js +1 -0
- package/dist/primitives/preference-item.cjs +1 -0
- package/dist/primitives/preference-item.js +1 -0
- package/dist/primitives/switch.cjs +1 -0
- package/dist/primitives/switch.js +1 -0
- package/dist/primitives/tabs.cjs +1 -0
- package/dist/primitives/tabs.js +1 -0
- package/dist/primitives.cjs +1 -0
- package/dist/primitives.js +1 -0
- package/dist/providers/consent-manager-provider.cjs +1 -1
- package/dist/providers/consent-manager-provider.js +1 -1
- package/dist/server/fetch-ssr-data.cjs +1 -1
- package/dist/server/fetch-ssr-data.js +1 -1
- package/dist/server/headers.cjs +1 -1
- package/dist/server/headers.js +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/init-cache-key.cjs +1 -0
- package/dist/server/init-cache-key.js +1 -0
- package/dist/server/normalize-url.cjs +1 -1
- package/dist/server/types.cjs +1 -1
- package/dist/styles.css +10 -0
- package/dist/styles.tw3.css +13 -0
- package/dist/types/consent-manager.cjs +1 -1
- package/dist/types/theme/index.cjs +1 -1
- package/dist/types/theme/style-keys.cjs +1 -1
- package/dist/types/theme/style-types.cjs +1 -1
- package/dist/utils/cn.cjs +1 -1
- package/dist/utils/merge-styles.cjs +1 -1
- package/dist/utils/test-helpers.cjs +1 -1
- package/dist/utils/test-helpers.js +1 -1
- package/dist/utils/theme-utils.cjs +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/{dist → dist-types}/components/consent-banner/atoms/overlay.d.ts +1 -2
- package/{dist → dist-types}/components/consent-banner/atoms/root.d.ts +44 -14
- package/{dist → dist-types}/components/consent-banner/components.d.ts +4 -5
- package/{dist → dist-types}/components/consent-banner/consent-banner.d.ts +14 -8
- package/{dist → dist-types}/components/consent-banner/error-boundary.d.ts +0 -1
- package/{dist → dist-types}/components/consent-banner/index.d.ts +48 -26
- package/dist-types/components/consent-banner/policy-actions.d.ts +11 -0
- package/{dist → dist-types}/components/consent-dialog/atoms/card.d.ts +14 -8
- package/{dist → dist-types}/components/consent-dialog/atoms/overlay.d.ts +1 -2
- package/{dist → dist-types}/components/consent-dialog/atoms/root.d.ts +1 -2
- package/{dist → dist-types}/components/consent-dialog/consent-dialog.d.ts +2 -3
- package/{dist → dist-types}/components/consent-dialog/index.d.ts +31 -10
- package/dist-types/components/consent-dialog-link/index.d.ts +1 -0
- package/{dist → dist-types}/components/consent-dialog-trigger/atoms/button.d.ts +0 -1
- package/{dist → dist-types}/components/consent-dialog-trigger/atoms/icon.d.ts +1 -2
- package/{dist → dist-types}/components/consent-dialog-trigger/atoms/root.d.ts +0 -1
- package/{dist → dist-types}/components/consent-dialog-trigger/atoms/text.d.ts +0 -1
- package/{dist → dist-types}/components/consent-dialog-trigger/consent-dialog-trigger.d.ts +2 -3
- package/{dist → dist-types}/components/consent-dialog-trigger/index.d.ts +0 -1
- package/{dist → dist-types}/components/consent-dialog-trigger/types.d.ts +2 -3
- package/{dist → dist-types}/components/consent-dialog-trigger/use-draggable.d.ts +1 -2
- package/dist-types/components/consent-preferences-link/consent-preferences-link.d.ts +15 -0
- package/dist-types/components/consent-preferences-link/index.d.ts +1 -0
- package/dist-types/components/consent-widget/atoms/accordion.d.ts +28 -0
- package/{dist → dist-types}/components/consent-widget/atoms/button.d.ts +1 -2
- package/{dist → dist-types}/components/consent-widget/atoms/footer.d.ts +0 -1
- package/{dist → dist-types}/components/consent-widget/atoms/root.d.ts +1 -7
- package/{dist → dist-types}/components/consent-widget/consent-widget.d.ts +0 -1
- package/{dist → dist-types}/components/consent-widget/index.d.ts +27 -8
- package/dist-types/components/consent-widget/policy-actions.d.ts +11 -0
- package/{dist → dist-types}/components/consent-widget/types.d.ts +2 -3
- package/{dist → dist-types}/components/frame/atoms.d.ts +1 -2
- package/{dist → dist-types}/components/frame/frame.d.ts +0 -1
- package/{dist → dist-types}/components/frame/index.d.ts +1 -2
- package/{dist → dist-types}/components/frame/types.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-banner/atoms/button-group.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-banner/atoms/card.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-banner/atoms/description.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-banner/atoms/footer.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-banner/atoms/header.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-banner/atoms/overlay.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-banner/atoms/root.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-banner/atoms/title.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-banner/iab-consent-banner.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-banner/index.d.ts +1 -2
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/card.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/content.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/footer.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/header.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/overlay.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/purpose-item.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/root.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/stack-item.d.ts +0 -1
- package/dist-types/components/iab-consent-dialog/atoms/tabs.d.ts +12 -0
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/vendor-list.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/hooks/use-gvl-data.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/iab-consent-dialog.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/index.d.ts +1 -2
- package/{dist → dist-types}/components/iab-consent-dialog/types.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/use-iab-translations.d.ts +0 -1
- package/{dist → dist-types}/components/shared/libs/polymorphic.d.ts +0 -1
- package/{dist → dist-types}/components/shared/libs/recursive-clone-children.d.ts +0 -1
- package/dist-types/components/shared/libs/slot.d.ts +6 -0
- package/dist-types/components/shared/libs/use-controllable-state.d.ts +7 -0
- package/dist-types/components/shared/policy-actions.d.ts +29 -0
- package/{dist → dist-types}/components/shared/primitives/box.d.ts +0 -1
- package/{dist → dist-types}/components/shared/primitives/button.d.ts +4 -1
- package/{dist → dist-types}/components/shared/primitives/button.types.d.ts +17 -1
- package/{dist → dist-types}/components/shared/primitives/legal-links/index.d.ts +0 -45
- package/{dist → dist-types}/components/shared/ui/accordion/accordion.d.ts +32 -68
- package/{dist → dist-types}/components/shared/ui/accordion/accordion.types.d.ts +0 -1
- package/{dist → dist-types}/components/shared/ui/accordion/index.d.ts +0 -1
- package/{dist → dist-types}/components/shared/ui/animated-collapse/animated-collapse.d.ts +0 -1
- package/{dist → dist-types}/components/shared/ui/animated-collapse/index.d.ts +0 -1
- package/dist-types/components/shared/ui/branding.d.ts +27 -0
- package/{dist → dist-types}/components/shared/ui/button/button.d.ts +2 -3
- package/{dist → dist-types}/components/shared/ui/button/button.types.d.ts +0 -1
- package/{dist → dist-types}/components/shared/ui/button/index.d.ts +0 -1
- package/dist-types/components/shared/ui/collapsible/collapsible.d.ts +20 -0
- package/dist-types/components/shared/ui/collapsible/index.d.ts +1 -0
- package/dist-types/components/shared/ui/dialog/dialog.d.ts +29 -0
- package/dist-types/components/shared/ui/dialog/index.d.ts +1 -0
- package/{dist → dist-types}/components/shared/ui/icon.d.ts +0 -1
- package/{dist → dist-types}/components/shared/ui/logo.d.ts +8 -1
- package/dist-types/components/shared/ui/preference-item/index.d.ts +1 -0
- package/dist-types/components/shared/ui/preference-item/preference-item.d.ts +33 -0
- package/dist-types/components/shared/ui/switch/index.d.ts +2 -0
- package/dist-types/components/shared/ui/switch/switch.d.ts +20 -0
- package/{dist → dist-types}/components/shared/ui/switch/switch.types.d.ts +0 -1
- package/dist-types/components/shared/ui/tabs/index.d.ts +1 -0
- package/dist-types/components/shared/ui/tabs/tabs.d.ts +28 -0
- package/{dist → dist-types}/context/consent-manager-context.d.ts +0 -1
- package/{dist → dist-types}/context/consent-tracking-context.d.ts +0 -1
- package/{dist → dist-types}/context/theme-context.d.ts +0 -1
- package/dist-types/headless.d.ts +9 -0
- package/{dist → dist-types}/hooks/index.d.ts +3 -1
- package/{dist → dist-types}/hooks/use-color-scheme.d.ts +0 -1
- package/{dist → dist-types}/hooks/use-component-config.d.ts +0 -1
- package/dist-types/hooks/use-consent-dialog-trigger.d.ts +10 -0
- package/{dist → dist-types}/hooks/use-consent-manager.d.ts +0 -1
- package/{dist → dist-types}/hooks/use-focus-trap.d.ts +0 -1
- package/dist-types/hooks/use-headless-consent-ui.d.ts +46 -0
- package/dist-types/hooks/use-headless-iab-consent-ui.d.ts +41 -0
- package/{dist → dist-types}/hooks/use-reduced-motion.d.ts +0 -1
- package/{dist → dist-types}/hooks/use-scroll-lock.d.ts +0 -1
- package/{dist → dist-types}/hooks/use-ssr-status.d.ts +2 -2
- package/{dist → dist-types}/hooks/use-styles.d.ts +0 -1
- package/{dist → dist-types}/hooks/use-text-direction.d.ts +0 -1
- package/{dist → dist-types}/hooks/use-theme.d.ts +0 -1
- package/{dist → dist-types}/hooks/use-translations.d.ts +0 -1
- package/dist-types/iab.d.ts +24 -0
- package/{dist → dist-types}/index.d.ts +5 -6
- package/dist-types/primitives/accordion.d.ts +1 -0
- package/dist-types/primitives/button.d.ts +1 -0
- package/dist-types/primitives/collapsible.d.ts +1 -0
- package/dist-types/primitives/dialog.d.ts +1 -0
- package/dist-types/primitives/preference-item.d.ts +1 -0
- package/dist-types/primitives/switch.d.ts +1 -0
- package/dist-types/primitives/tabs.d.ts +1 -0
- package/dist-types/primitives.d.ts +7 -0
- package/{dist → dist-types}/providers/consent-manager-provider.d.ts +0 -1
- package/{dist → dist-types}/server/fetch-ssr-data.d.ts +0 -1
- package/{dist → dist-types}/server/headers.d.ts +2 -2
- package/{dist → dist-types}/server/index.d.ts +1 -1
- package/dist-types/server/init-cache-key.d.ts +21 -0
- package/{dist → dist-types}/server/normalize-url.d.ts +0 -1
- package/{dist → dist-types}/server/types.d.ts +0 -1
- package/{dist → dist-types}/types/consent-manager.d.ts +7 -1
- package/{dist → dist-types}/types/theme/index.d.ts +0 -1
- package/{dist → dist-types}/types/theme/style-keys.d.ts +0 -1
- package/{dist → dist-types}/types/theme/style-types.d.ts +2 -1
- package/{dist → dist-types}/utils/cn.d.ts +0 -1
- package/{dist → dist-types}/utils/merge-styles.d.ts +0 -1
- package/{dist → dist-types}/utils/test-helpers.d.ts +0 -1
- package/{dist → dist-types}/utils/theme-utils.d.ts +1 -2
- package/dist-types/version.d.ts +1 -0
- package/docs/README.md +76 -0
- package/docs/building-headless-components.md +266 -0
- package/docs/callbacks.md +184 -0
- package/docs/components/consent-banner.md +298 -0
- package/docs/components/consent-dialog-link.md +59 -0
- package/docs/components/consent-dialog-trigger.md +103 -0
- package/docs/components/consent-dialog.md +177 -0
- package/docs/components/consent-manager-provider.md +425 -0
- package/docs/components/consent-widget.md +160 -0
- package/docs/components/dev-tools.md +63 -0
- package/docs/components/frame.md +73 -0
- package/docs/concepts/client-modes.md +175 -0
- package/docs/concepts/consent-categories.md +97 -0
- package/docs/concepts/consent-models.md +112 -0
- package/docs/concepts/cookie-management.md +122 -0
- package/docs/concepts/glossary.md +23 -0
- package/docs/concepts/initialization-flow.md +148 -0
- package/docs/concepts/policy-packs.md +227 -0
- package/docs/headless.md +190 -0
- package/docs/hooks/use-color-scheme.md +40 -0
- package/docs/hooks/use-consent-manager/checking-consent.md +94 -0
- package/docs/hooks/use-consent-manager/location-info.md +95 -0
- package/docs/hooks/use-consent-manager/overview.md +420 -0
- package/docs/hooks/use-consent-manager/setting-consent.md +92 -0
- package/docs/hooks/use-draggable.md +57 -0
- package/docs/hooks/use-focus-trap.md +41 -0
- package/docs/hooks/use-reduced-motion.md +35 -0
- package/docs/hooks/use-ssr-status.md +31 -0
- package/docs/hooks/use-text-direction.md +49 -0
- package/docs/hooks/use-translations.md +118 -0
- package/docs/iab/consent-banner.md +92 -0
- package/docs/iab/consent-dialog.md +132 -0
- package/docs/iab/overview.md +125 -0
- package/docs/iab/use-gvl-data.md +208 -0
- package/docs/iframe-blocking.md +107 -0
- package/docs/integrations/building-integrations.md +405 -0
- package/docs/integrations/databuddy.md +203 -0
- package/docs/integrations/google-tag-manager.md +153 -0
- package/docs/integrations/google-tag.md +122 -0
- package/docs/integrations/linkedin-insights.md +109 -0
- package/docs/integrations/meta-pixel.md +342 -0
- package/docs/integrations/microsoft-uet.md +112 -0
- package/docs/integrations/overview.md +105 -0
- package/docs/integrations/posthog.md +199 -0
- package/docs/integrations/tiktok-pixel.md +113 -0
- package/docs/integrations/x-pixel.md +143 -0
- package/docs/internationalization.md +197 -0
- package/docs/network-blocker.md +178 -0
- package/docs/optimization.md +113 -0
- package/docs/policy-packs.md +240 -0
- package/docs/quickstart.md +152 -0
- package/docs/script-loader.md +321 -0
- package/docs/server-side.md +153 -0
- package/docs/styling/classnames.md +92 -0
- package/docs/styling/color-scheme.md +82 -0
- package/docs/styling/css-variables.md +92 -0
- package/docs/styling/overview.md +459 -0
- package/docs/styling/slots.md +127 -0
- package/docs/styling/tailwind.md +113 -0
- package/docs/styling/tokens.md +216 -0
- package/docs/troubleshooting.md +137 -0
- package/iab/styles.css +1 -0
- package/package.json +87 -27
- package/readme.json +6 -0
- package/src/iab/styles.css +11 -0
- package/src/iab/styles.tw3.css +14 -0
- package/src/styles.css +10 -0
- package/src/styles.tw3.css +13 -0
- package/styles.css +1 -0
- package/dist/components/__tests__/active-ui-transitions.e2e.test.cjs +0 -1
- package/dist/components/__tests__/active-ui-transitions.e2e.test.js +0 -1
- package/dist/components/__tests__/consent-flow.e2e.test.cjs +0 -1
- package/dist/components/__tests__/consent-flow.e2e.test.js +0 -1
- package/dist/components/__tests__/models-prop.e2e.test.cjs +0 -1
- package/dist/components/__tests__/models-prop.e2e.test.js +0 -1
- package/dist/components/__tests__/ui-source-tracking.e2e.test.cjs +0 -1
- package/dist/components/__tests__/ui-source-tracking.e2e.test.js +0 -1
- package/dist/components/consent-banner/atoms/overlay.d.ts.map +0 -1
- package/dist/components/consent-banner/atoms/root.d.ts.map +0 -1
- package/dist/components/consent-banner/components.d.ts.map +0 -1
- package/dist/components/consent-banner/consent-banner.d.ts.map +0 -1
- package/dist/components/consent-banner/error-boundary.d.ts.map +0 -1
- package/dist/components/consent-banner/index.d.ts.map +0 -1
- package/dist/components/consent-dialog/atoms/card.d.ts.map +0 -1
- package/dist/components/consent-dialog/atoms/overlay.d.ts.map +0 -1
- package/dist/components/consent-dialog/atoms/root.d.ts.map +0 -1
- package/dist/components/consent-dialog/consent-dialog.d.ts.map +0 -1
- package/dist/components/consent-dialog/index.d.ts.map +0 -1
- package/dist/components/consent-dialog-trigger/atoms/button.d.ts.map +0 -1
- package/dist/components/consent-dialog-trigger/atoms/icon.d.ts.map +0 -1
- package/dist/components/consent-dialog-trigger/atoms/root.d.ts.map +0 -1
- package/dist/components/consent-dialog-trigger/atoms/text.d.ts.map +0 -1
- package/dist/components/consent-dialog-trigger/consent-dialog-trigger.d.ts.map +0 -1
- package/dist/components/consent-dialog-trigger/index.d.ts.map +0 -1
- package/dist/components/consent-dialog-trigger/types.d.ts.map +0 -1
- package/dist/components/consent-dialog-trigger/use-draggable.d.ts.map +0 -1
- package/dist/components/consent-widget/atoms/accordion.d.ts +0 -46
- package/dist/components/consent-widget/atoms/accordion.d.ts.map +0 -1
- package/dist/components/consent-widget/atoms/button.d.ts.map +0 -1
- package/dist/components/consent-widget/atoms/footer.d.ts.map +0 -1
- package/dist/components/consent-widget/atoms/root.d.ts.map +0 -1
- package/dist/components/consent-widget/consent-widget.d.ts.map +0 -1
- package/dist/components/consent-widget/index.d.ts.map +0 -1
- package/dist/components/consent-widget/types.d.ts.map +0 -1
- package/dist/components/frame/atoms.d.ts.map +0 -1
- package/dist/components/frame/frame.d.ts.map +0 -1
- package/dist/components/frame/index.d.ts.map +0 -1
- package/dist/components/frame/types.d.ts.map +0 -1
- package/dist/components/iab/__tests__/e2e-setup.cjs +0 -1
- package/dist/components/iab/__tests__/e2e-setup.js +0 -1
- package/dist/components/iab/__tests__/fixtures/mock-consent-state.cjs +0 -1
- package/dist/components/iab/__tests__/fixtures/mock-consent-state.d.ts +0 -212
- package/dist/components/iab/__tests__/fixtures/mock-consent-state.d.ts.map +0 -1
- package/dist/components/iab/__tests__/fixtures/mock-consent-state.js +0 -1
- package/dist/components/iab/__tests__/iab-banner.e2e.test.cjs +0 -1
- package/dist/components/iab/__tests__/iab-banner.e2e.test.js +0 -1
- package/dist/components/iab/__tests__/iab-consent-flow.e2e.test.cjs +0 -1
- package/dist/components/iab/__tests__/iab-consent-flow.e2e.test.js +0 -1
- package/dist/components/iab/__tests__/iab-events.e2e.test.cjs +0 -1
- package/dist/components/iab/__tests__/iab-events.e2e.test.js +0 -1
- package/dist/components/iab/__tests__/iab-gvl.e2e.test.cjs +0 -1
- package/dist/components/iab/__tests__/iab-gvl.e2e.test.js +0 -1
- package/dist/components/iab/__tests__/iab-preference-center.e2e.test.cjs +0 -1
- package/dist/components/iab/__tests__/iab-preference-center.e2e.test.js +0 -1
- package/dist/components/iab/__tests__/iab-storage.e2e.test.cjs +0 -1
- package/dist/components/iab/__tests__/iab-storage.e2e.test.js +0 -1
- package/dist/components/iab/__tests__/iab-stub.e2e.test.cjs +0 -1
- package/dist/components/iab/__tests__/iab-stub.e2e.test.js +0 -1
- package/dist/components/iab/__tests__/iab-tcfapi.e2e.test.cjs +0 -1
- package/dist/components/iab/__tests__/iab-tcfapi.e2e.test.js +0 -1
- package/dist/components/iab/__tests__/msw-handlers.cjs +0 -1
- package/dist/components/iab/__tests__/msw-handlers.js +0 -1
- package/dist/components/iab-consent-banner/__tests__/iab-consent-banner.test.cjs +0 -1
- package/dist/components/iab-consent-banner/__tests__/iab-consent-banner.test.js +0 -1
- package/dist/components/iab-consent-banner/atoms/button-group.d.ts.map +0 -1
- package/dist/components/iab-consent-banner/atoms/card.d.ts.map +0 -1
- package/dist/components/iab-consent-banner/atoms/description.d.ts.map +0 -1
- package/dist/components/iab-consent-banner/atoms/footer.d.ts.map +0 -1
- package/dist/components/iab-consent-banner/atoms/header.d.ts.map +0 -1
- package/dist/components/iab-consent-banner/atoms/overlay.d.ts.map +0 -1
- package/dist/components/iab-consent-banner/atoms/root.d.ts.map +0 -1
- package/dist/components/iab-consent-banner/atoms/title.d.ts.map +0 -1
- package/dist/components/iab-consent-banner/iab-consent-banner.d.ts.map +0 -1
- package/dist/components/iab-consent-banner/index.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/__tests__/legitimate-interest-ui.test.cjs +0 -1
- package/dist/components/iab-consent-dialog/__tests__/legitimate-interest-ui.test.js +0 -1
- package/dist/components/iab-consent-dialog/__tests__/preference-center.test.cjs +0 -1
- package/dist/components/iab-consent-dialog/__tests__/preference-center.test.js +0 -1
- package/dist/components/iab-consent-dialog/__tests__/purposes-tab.test.cjs +0 -1
- package/dist/components/iab-consent-dialog/__tests__/purposes-tab.test.js +0 -1
- package/dist/components/iab-consent-dialog/__tests__/vendors-tab.test.cjs +0 -1
- package/dist/components/iab-consent-dialog/__tests__/vendors-tab.test.js +0 -1
- package/dist/components/iab-consent-dialog/atoms/card.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/atoms/content.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/atoms/footer.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/atoms/header.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/atoms/overlay.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/atoms/purpose-item.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/atoms/root.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/atoms/stack-item.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/atoms/tabs.d.ts +0 -40
- package/dist/components/iab-consent-dialog/atoms/tabs.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/atoms/vendor-list.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/hooks/use-gvl-data.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/iab-consent-dialog.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/index.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/types.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/use-iab-translations.d.ts.map +0 -1
- package/dist/components/shared/libs/polymorphic.d.ts.map +0 -1
- package/dist/components/shared/libs/recursive-clone-children.d.ts.map +0 -1
- package/dist/components/shared/primitives/box.d.ts.map +0 -1
- package/dist/components/shared/primitives/button.d.ts.map +0 -1
- package/dist/components/shared/primitives/button.types.d.ts.map +0 -1
- package/dist/components/shared/primitives/legal-links/index.d.ts.map +0 -1
- package/dist/components/shared/ui/__tests__/primitives.test.cjs +0 -1
- package/dist/components/shared/ui/__tests__/primitives.test.js +0 -1
- package/dist/components/shared/ui/accordion/accordion.d.ts.map +0 -1
- package/dist/components/shared/ui/accordion/accordion.types.d.ts.map +0 -1
- package/dist/components/shared/ui/accordion/index.d.ts.map +0 -1
- package/dist/components/shared/ui/animated-collapse/animated-collapse.d.ts.map +0 -1
- package/dist/components/shared/ui/animated-collapse/index.d.ts.map +0 -1
- package/dist/components/shared/ui/button/button.d.ts.map +0 -1
- package/dist/components/shared/ui/button/button.types.d.ts.map +0 -1
- package/dist/components/shared/ui/button/index.d.ts.map +0 -1
- package/dist/components/shared/ui/icon.d.ts.map +0 -1
- package/dist/components/shared/ui/logo.d.ts.map +0 -1
- package/dist/components/shared/ui/switch/index.d.ts +0 -3
- package/dist/components/shared/ui/switch/index.d.ts.map +0 -1
- package/dist/components/shared/ui/switch/switch.d.ts +0 -45
- package/dist/components/shared/ui/switch/switch.d.ts.map +0 -1
- package/dist/components/shared/ui/switch/switch.types.d.ts.map +0 -1
- package/dist/context/consent-manager-context.d.ts.map +0 -1
- package/dist/context/consent-tracking-context.d.ts.map +0 -1
- package/dist/context/theme-context.d.ts.map +0 -1
- package/dist/headless.d.ts +0 -8
- package/dist/headless.d.ts.map +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-cleans-up-system-preference-listener-on-unmount-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-cleans-up-system-preference-listener-on-unmount-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-handles-default-theme-based-on-document-class-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-handles-default-theme-based-on-document-class-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-responds-to-system-preference-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-responds-to-system-preference-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-sets-dark-theme-correctly-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-sets-dark-theme-correctly-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-updates-theme-when-default-theme-changes-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-updates-theme-when-default-theme-changes-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-updates-theme-when-system-preference-changes-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-updates-theme-when-system-preference-changes-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-consent-manager.test.tsx/useConsentManager-provides-manager-object-when-configured-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-consent-manager.test.tsx/useConsentManager-provides-manager-object-when-configured-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-styles.test.tsx/useStyles-handles-string-className-correctly-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-styles.test.tsx/useStyles-handles-string-className-correctly-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-styles.test.tsx/useStyles-merges-theme-and-component-styles-correctly-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-styles.test.tsx/useStyles-merges-theme-and-component-styles-correctly-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-styles.test.tsx/useStyles-should-remove-base-default-styles-but-keep-theme-and-component-classNames-when-noStyle--true-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-styles.test.tsx/useStyles-should-remove-base-default-styles-but-keep-theme-and-component-classNames-when-noStyle--true-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-styles.test.tsx/useStyles-should-remove-default-styles-but-keep-custom-classNames-when-theme-object-provides-noStyle--true-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-styles.test.tsx/useStyles-should-remove-default-styles-but-keep-custom-classNames-when-theme-object-provides-noStyle--true-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-theme.test.tsx/useTheme-local-theme-takes-precedence-over-global-theme-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-theme.test.tsx/useTheme-local-theme-takes-precedence-over-global-theme-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-translations.test.tsx/useTranslations-Custom-English-instead-of-English-when-German-is-selected-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-translations.test.tsx/useTranslations-Custom-English-instead-of-English-when-German-is-selected-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-translations.test.tsx/useTranslations-falls-back-to-English-when-selected-language-is-not-available-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-translations.test.tsx/useTranslations-falls-back-to-English-when-selected-language-is-not-available-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-translations.test.tsx/useTranslations-merges-custom-translations-with-defaults-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-translations.test.tsx/useTranslations-merges-custom-translations-with-defaults-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-translations.test.tsx/useTranslations-returns-English-translations-by-default-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-translations.test.tsx/useTranslations-returns-English-translations-by-default-1.js +0 -1
- package/dist/hooks/__tests__/use-color-scheme.test.cjs +0 -1
- package/dist/hooks/__tests__/use-color-scheme.test.js +0 -1
- package/dist/hooks/__tests__/use-consent-manager.test.cjs +0 -1
- package/dist/hooks/__tests__/use-consent-manager.test.js +0 -1
- package/dist/hooks/__tests__/use-focus-trap.test.cjs +0 -1
- package/dist/hooks/__tests__/use-focus-trap.test.js +0 -1
- package/dist/hooks/__tests__/use-scroll-lock.test.cjs +0 -1
- package/dist/hooks/__tests__/use-scroll-lock.test.js +0 -1
- package/dist/hooks/__tests__/use-styles.test.cjs +0 -1
- package/dist/hooks/__tests__/use-styles.test.js +0 -1
- package/dist/hooks/__tests__/use-theme.test.cjs +0 -1
- package/dist/hooks/__tests__/use-theme.test.js +0 -1
- package/dist/hooks/__tests__/use-translations.test.cjs +0 -1
- package/dist/hooks/__tests__/use-translations.test.js +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/use-color-scheme.d.ts.map +0 -1
- package/dist/hooks/use-component-config.d.ts.map +0 -1
- package/dist/hooks/use-consent-manager.d.ts.map +0 -1
- package/dist/hooks/use-focus-trap.d.ts.map +0 -1
- package/dist/hooks/use-reduced-motion.d.ts.map +0 -1
- package/dist/hooks/use-scroll-lock.d.ts.map +0 -1
- package/dist/hooks/use-ssr-status.d.ts.map +0 -1
- package/dist/hooks/use-styles.d.ts.map +0 -1
- package/dist/hooks/use-text-direction.d.ts.map +0 -1
- package/dist/hooks/use-theme.d.ts.map +0 -1
- package/dist/hooks/use-translations.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/mockServiceWorker.js +0 -349
- package/dist/providers/__tests__/__screenshots__/provider-basic.test.tsx/ConsentManagerProvider-Basic-Request-Behavior-should-make-a-new-request-when-core-options-change-1.cjs +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-basic.test.tsx/ConsentManagerProvider-Basic-Request-Behavior-should-make-a-new-request-when-core-options-change-1.js +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-basic.test.tsx/ConsentManagerProvider-Basic-Request-Behavior-should-not-make-additional-requests-when-props-change-but-core-options-remain-same-1.cjs +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-basic.test.tsx/ConsentManagerProvider-Basic-Request-Behavior-should-not-make-additional-requests-when-props-change-but-core-options-remain-same-1.js +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-basic.test.tsx/ConsentManagerProvider-Basic-Request-Behavior-should-only-make-one-initial-request-for-consent-banner-status-1.cjs +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-basic.test.tsx/ConsentManagerProvider-Basic-Request-Behavior-should-only-make-one-initial-request-for-consent-banner-status-1.js +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-hydration.test.tsx/ConsentManagerProvider-Hydration-Behavior-should-handle-rapid-re-renders-without-blocking-children-1.cjs +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-hydration.test.tsx/ConsentManagerProvider-Hydration-Behavior-should-handle-rapid-re-renders-without-blocking-children-1.js +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-hydration.test.tsx/ConsentManagerProvider-Hydration-Behavior-should-not-block-SSR-provider-content-when-SSR-provider-wraps-ConsentManager-1.cjs +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-hydration.test.tsx/ConsentManagerProvider-Hydration-Behavior-should-not-block-SSR-provider-content-when-SSR-provider-wraps-ConsentManager-1.js +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-hydration.test.tsx/ConsentManagerProvider-Hydration-Behavior-should-render-children-immediately-without-blocking-during-hydration-1.cjs +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-hydration.test.tsx/ConsentManagerProvider-Hydration-Behavior-should-render-children-immediately-without-blocking-during-hydration-1.js +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-hydration.test.tsx/ConsentManagerProvider-Hydration-Behavior-should-use-startTransition-for-non-blocking-state-updates-during-hydration-1.cjs +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-hydration.test.tsx/ConsentManagerProvider-Hydration-Behavior-should-use-startTransition-for-non-blocking-state-updates-during-hydration-1.js +0 -1
- package/dist/providers/__tests__/provider-basic.test.cjs +0 -1
- package/dist/providers/__tests__/provider-basic.test.js +0 -1
- package/dist/providers/__tests__/provider-context.test.cjs +0 -1
- package/dist/providers/__tests__/provider-context.test.js +0 -1
- package/dist/providers/__tests__/provider-errors.test.cjs +0 -1
- package/dist/providers/__tests__/provider-errors.test.js +0 -1
- package/dist/providers/__tests__/provider-hydration.test.cjs +0 -1
- package/dist/providers/__tests__/provider-hydration.test.js +0 -1
- package/dist/providers/__tests__/test-helpers.cjs +0 -1
- package/dist/providers/__tests__/test-helpers.js +0 -1
- package/dist/providers/consent-manager-provider.d.ts.map +0 -1
- package/dist/server/fetch-ssr-data.d.ts.map +0 -1
- package/dist/server/headers.d.ts.map +0 -1
- package/dist/server/headers.test.cjs +0 -1
- package/dist/server/headers.test.d.ts +0 -2
- package/dist/server/headers.test.d.ts.map +0 -1
- package/dist/server/headers.test.js +0 -1
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/normalize-url.d.ts.map +0 -1
- package/dist/server/normalize-url.test.cjs +0 -1
- package/dist/server/normalize-url.test.d.ts +0 -2
- package/dist/server/normalize-url.test.d.ts.map +0 -1
- package/dist/server/normalize-url.test.js +0 -1
- package/dist/server/types.d.ts.map +0 -1
- package/dist/static/image/ConsentManagerProvider-Basic-Request-Behavior-should-make-a-new-request-when-core-options-change-1.png +0 -0
- package/dist/static/image/ConsentManagerProvider-Basic-Request-Behavior-should-not-make-additional-requests-when-props-change-but-core-options-remain-same-1.png +0 -0
- package/dist/static/image/ConsentManagerProvider-Basic-Request-Behavior-should-only-make-one-initial-request-for-consent-banner-status-1.png +0 -0
- package/dist/static/image/ConsentManagerProvider-Hydration-Behavior-should-handle-rapid-re-renders-without-blocking-children-1.png +0 -0
- package/dist/static/image/ConsentManagerProvider-Hydration-Behavior-should-not-block-SSR-provider-content-when-SSR-provider-wraps-ConsentManager-1.png +0 -0
- package/dist/static/image/ConsentManagerProvider-Hydration-Behavior-should-render-children-immediately-without-blocking-during-hydration-1.png +0 -0
- package/dist/static/image/ConsentManagerProvider-Hydration-Behavior-should-use-startTransition-for-non-blocking-state-updates-during-hydration-1.png +0 -0
- package/dist/static/image/useColorScheme-cleans-up-system-preference-listener-on-unmount-1.png +0 -0
- package/dist/static/image/useColorScheme-handles-default-theme-based-on-document-class-1.png +0 -0
- package/dist/static/image/useColorScheme-responds-to-system-preference-1.png +0 -0
- package/dist/static/image/useColorScheme-sets-dark-theme-correctly-1.png +0 -0
- package/dist/static/image/useColorScheme-updates-theme-when-default-theme-changes-1.png +0 -0
- package/dist/static/image/useColorScheme-updates-theme-when-system-preference-changes-1.png +0 -0
- package/dist/static/image/useConsentManager-provides-manager-object-when-configured-1.png +0 -0
- package/dist/static/image/useStyles-handles-string-className-correctly-1.png +0 -0
- package/dist/static/image/useStyles-merges-theme-and-component-styles-correctly-1.png +0 -0
- package/dist/static/image/useStyles-should-remove-base-default-styles-but-keep-theme-and-component-classNames-when-noStyle--true-1.png +0 -0
- package/dist/static/image/useStyles-should-remove-default-styles-but-keep-custom-classNames-when-theme-object-provides-noStyle--true-1.png +0 -0
- package/dist/static/image/useTheme-local-theme-takes-precedence-over-global-theme-1.png +0 -0
- package/dist/static/image/useTranslations-Custom-English-instead-of-English-when-German-is-selected-1.png +0 -0
- package/dist/static/image/useTranslations-falls-back-to-English-when-selected-language-is-not-available-1.png +0 -0
- package/dist/static/image/useTranslations-merges-custom-translations-with-defaults-1.png +0 -0
- package/dist/static/image/useTranslations-returns-English-translations-by-default-1.png +0 -0
- package/dist/test-setup.browser.cjs +0 -1
- package/dist/test-setup.browser.d.ts +0 -8
- package/dist/test-setup.browser.d.ts.map +0 -1
- package/dist/test-setup.browser.js +0 -1
- package/dist/types/consent-manager.d.ts.map +0 -1
- package/dist/types/theme/index.d.ts.map +0 -1
- package/dist/types/theme/style-keys.d.ts.map +0 -1
- package/dist/types/theme/style-types.d.ts.map +0 -1
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/merge-styles.d.ts.map +0 -1
- package/dist/utils/test-helpers.d.ts.map +0 -1
- package/dist/utils/theme-utils.d.ts.map +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/version.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{forwardRef as o,useEffect as t,useState as i}from"react";import{useConsentManager as s}from"../../hooks/use-consent-manager.js";import{useTranslations as l}from"../../hooks/use-translations.js";import{FrameButton as a,FrameRoot as n,FrameTitle as c}from"./atoms.js";let m=o(({children:r,category:o,placeholder:a,noStyle:n,className:c,theme:m,...u},p)=>{let{has:y,updateConsentCategories:g,consentCategories:h,policyCategories:f,policyScopeMode:k}=s(),{frame:j}=l(),[v,A]=i(!1),[B,F]=i(!1),x=y(o),N=Array.isArray(f)&&f.length>0&&!f.includes("*")&&!f.includes(o);return t(()=>{A(!0),g([...h,o])},[o]),t(()=>{v&&requestAnimationFrame(()=>{F(!0)})},[v]),e("div",{ref:p,className:c,...u,children:v&&B?x?r:a||e(d,{category:o,policyBlocked:"strict"===k&&N,policyBlockedMessage:j?.policyBlocked}):null})});m.displayName="Frame";let d=({category:o,policyBlocked:t,policyBlockedMessage:i})=>r(n,{children:[e(c,{category:o,children:t?i??"This content is unavailable under your region's consent policy.":void 0}),t?null:e(a,{category:o})]}),u=m;export{u as Frame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{FrameRoot:()=>external_atoms_cjs_namespaceObject.FrameRoot,FrameTitle:()=>external_atoms_cjs_namespaceObject.FrameTitle,Frame:()=>Frame,FrameButton:()=>external_atoms_cjs_namespaceObject.FrameButton});const external_atoms_cjs_namespaceObject=require("./atoms.cjs"),external_frame_cjs_namespaceObject=require("./frame.cjs"),Frame=Object.assign(external_frame_cjs_namespaceObject.Frame,{Root:external_atoms_cjs_namespaceObject.FrameRoot,Title:external_atoms_cjs_namespaceObject.FrameTitle,Button:external_atoms_cjs_namespaceObject.FrameButton});for(var __rspack_i in exports.Frame=__webpack_exports__.Frame,exports.FrameButton=__webpack_exports__.FrameButton,exports.FrameRoot=__webpack_exports__.FrameRoot,exports.FrameTitle=__webpack_exports__.FrameTitle,__webpack_exports__)-1===["Frame","FrameButton","FrameRoot","FrameTitle"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Frame as t}from"./frame.js";import*as e from"./atoms.js";let r=Object.assign(t,{Root:e.FrameRoot,Title:e.FrameTitle,Button:e.FrameButton});var a=e.FrameButton,m=e.FrameRoot,o=e.FrameTitle;export{a as FrameButton,m as FrameRoot,o as FrameTitle,r as Frame};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __rspack_i in __webpack_require__.r(__webpack_exports__),__webpack_exports__)exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{IABConsentBannerFooterSpacer:()=>IABConsentBannerFooterSpacer,IABConsentBannerButtonGroup:()=>IABConsentBannerButtonGroup});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),iab_consent_banner_module_js_namespaceObject=require("@c15t/ui/styles/components/iab-consent-banner.module.js");var iab_consent_banner_module_js_default=__webpack_require__.n(iab_consent_banner_module_js_namespaceObject);const external_react_namespaceObject=require("react"),IABConsentBannerButtonGroup=(0,external_react_namespaceObject.forwardRef)(({children:e,className:_,...r},n)=>(0,jsx_runtime_namespaceObject.jsx)("div",{ref:n,className:_?`${iab_consent_banner_module_js_default().footerButtonGroup} ${_}`:iab_consent_banner_module_js_default().footerButtonGroup,...r,children:e}));IABConsentBannerButtonGroup.displayName="IABConsentBannerButtonGroup";const IABConsentBannerFooterSpacer=(0,external_react_namespaceObject.forwardRef)(({className:e,..._},r)=>(0,jsx_runtime_namespaceObject.jsx)("div",{ref:r,className:e?`${iab_consent_banner_module_js_default().footerSpacer} ${e}`:iab_consent_banner_module_js_default().footerSpacer,..._}));for(var __rspack_i in IABConsentBannerFooterSpacer.displayName="IABConsentBannerFooterSpacer",exports.IABConsentBannerButtonGroup=__webpack_exports__.IABConsentBannerButtonGroup,exports.IABConsentBannerFooterSpacer=__webpack_exports__.IABConsentBannerFooterSpacer,__webpack_exports__)-1===["IABConsentBannerButtonGroup","IABConsentBannerFooterSpacer"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import o from"@c15t/ui/styles/components/iab-consent-banner.module.
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import o from"@c15t/ui/styles/components/iab-consent-banner.module.js";import{forwardRef as r}from"react";let t=r(({children:r,className:t,...n},a)=>e("div",{ref:a,className:t?`${o.footerButtonGroup} ${t}`:o.footerButtonGroup,...n,children:r}));t.displayName="IABConsentBannerButtonGroup";let n=r(({className:r,...t},n)=>e("div",{ref:n,className:r?`${o.footerSpacer} ${r}`:o.footerSpacer,...t}));n.displayName="IABConsentBannerFooterSpacer";export{t as IABConsentBannerButtonGroup,n as IABConsentBannerFooterSpacer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{IABConsentBannerCard:()=>IABConsentBannerCard});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),iab_consent_banner_module_js_namespaceObject=require("@c15t/ui/styles/components/iab-consent-banner.module.js");var iab_consent_banner_module_js_default=__webpack_require__.n(iab_consent_banner_module_js_namespaceObject);const utils_namespaceObject=require("@c15t/ui/utils"),external_react_namespaceObject=require("react"),use_focus_trap_cjs_namespaceObject=require("../../../hooks/use-focus-trap.cjs"),use_styles_cjs_namespaceObject=require("../../../hooks/use-styles.cjs"),use_theme_cjs_namespaceObject=require("../../../hooks/use-theme.cjs"),IABConsentBannerCard=(0,external_react_namespaceObject.forwardRef)(({children:e,className:_,...r},a)=>{let{trapFocus:n}=(0,use_theme_cjs_namespaceObject.useTheme)();(0,use_focus_trap_cjs_namespaceObject.useFocusTrap)(!!n,a);let s=(0,use_styles_cjs_namespaceObject.useStyles)("iabConsentBannerCard",{baseClassName:iab_consent_banner_module_js_default().card,className:_}),t=(0,utils_namespaceObject.sanitizeDOMStyleProps)(s);return(0,jsx_runtime_namespaceObject.jsx)("div",{ref:a,...t,tabIndex:0,role:"dialog","aria-modal":n?"true":void 0,"data-testid":"iab-consent-banner-card",...r,children:e})});for(var __rspack_i in IABConsentBannerCard.displayName="IABConsentBannerCard",exports.IABConsentBannerCard=__webpack_exports__.IABConsentBannerCard,__webpack_exports__)-1===["IABConsentBannerCard"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import e from"@c15t/ui/styles/components/iab-consent-banner.module.
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import e from"@c15t/ui/styles/components/iab-consent-banner.module.js";import{sanitizeDOMStyleProps as o}from"@c15t/ui/utils";import{forwardRef as t}from"react";import{useFocusTrap as a}from"../../../hooks/use-focus-trap.js";import{useStyles as s}from"../../../hooks/use-styles.js";import{useTheme as n}from"../../../hooks/use-theme.js";let i=t(({children:t,className:i,...m},d)=>{let{trapFocus:l}=n();return a(!!l,d),r("div",{ref:d,...o(s("iabConsentBannerCard",{baseClassName:e.card,className:i})),tabIndex:0,role:"dialog","aria-modal":l?"true":void 0,"data-testid":"iab-consent-banner-card",...m,children:t})});i.displayName="IABConsentBannerCard";export{i as IABConsentBannerCard};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{IABConsentBannerDescription:()=>IABConsentBannerDescription});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),iab_consent_banner_module_js_namespaceObject=require("@c15t/ui/styles/components/iab-consent-banner.module.js");var iab_consent_banner_module_js_default=__webpack_require__.n(iab_consent_banner_module_js_namespaceObject);const external_react_namespaceObject=require("react"),IABConsentBannerDescription=(0,external_react_namespaceObject.forwardRef)(({children:e,className:_,...r},n)=>(0,jsx_runtime_namespaceObject.jsx)("p",{ref:n,className:_?`${iab_consent_banner_module_js_default().description} ${_}`:iab_consent_banner_module_js_default().description,...r,children:e}));for(var __rspack_i in IABConsentBannerDescription.displayName="IABConsentBannerDescription",exports.IABConsentBannerDescription=__webpack_exports__.IABConsentBannerDescription,__webpack_exports__)-1===["IABConsentBannerDescription"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import n from"@c15t/ui/styles/components/iab-consent-banner.module.
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import n from"@c15t/ui/styles/components/iab-consent-banner.module.js";import{forwardRef as r}from"react";let t=r(({children:r,className:t,...o},i)=>e("p",{ref:i,className:t?`${n.description} ${t}`:n.description,...o,children:r}));t.displayName="IABConsentBannerDescription";export{t as IABConsentBannerDescription};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{IABConsentBannerFooter:()=>IABConsentBannerFooter});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),iab_consent_banner_module_js_namespaceObject=require("@c15t/ui/styles/components/iab-consent-banner.module.js");var iab_consent_banner_module_js_default=__webpack_require__.n(iab_consent_banner_module_js_namespaceObject);const utils_namespaceObject=require("@c15t/ui/utils"),external_react_namespaceObject=require("react"),use_styles_cjs_namespaceObject=require("../../../hooks/use-styles.cjs"),IABConsentBannerFooter=(0,external_react_namespaceObject.forwardRef)(({children:e,className:_,...r},t)=>{let n=(0,use_styles_cjs_namespaceObject.useStyles)("iabConsentBannerFooter",{baseClassName:iab_consent_banner_module_js_default().footer,className:_}),a=(0,utils_namespaceObject.sanitizeDOMStyleProps)(n);return(0,jsx_runtime_namespaceObject.jsx)("div",{ref:t,...a,"data-testid":"iab-consent-banner-footer",...r,children:e})});for(var __rspack_i in IABConsentBannerFooter.displayName="IABConsentBannerFooter",exports.IABConsentBannerFooter=__webpack_exports__.IABConsentBannerFooter,__webpack_exports__)-1===["IABConsentBannerFooter"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import o from"@c15t/ui/styles/components/iab-consent-banner.module.
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import o from"@c15t/ui/styles/components/iab-consent-banner.module.js";import{sanitizeDOMStyleProps as t}from"@c15t/ui/utils";import{forwardRef as r}from"react";import{useStyles as n}from"../../../hooks/use-styles.js";let s=r(({children:r,className:s,...a},i)=>e("div",{ref:i,...t(n("iabConsentBannerFooter",{baseClassName:o.footer,className:s})),"data-testid":"iab-consent-banner-footer",...a,children:r}));s.displayName="IABConsentBannerFooter";export{s as IABConsentBannerFooter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{IABConsentBannerHeader:()=>IABConsentBannerHeader});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),iab_consent_banner_module_js_namespaceObject=require("@c15t/ui/styles/components/iab-consent-banner.module.js");var iab_consent_banner_module_js_default=__webpack_require__.n(iab_consent_banner_module_js_namespaceObject);const utils_namespaceObject=require("@c15t/ui/utils"),external_react_namespaceObject=require("react"),use_styles_cjs_namespaceObject=require("../../../hooks/use-styles.cjs"),IABConsentBannerHeader=(0,external_react_namespaceObject.forwardRef)(({children:e,className:_,...r},a)=>{let n=(0,use_styles_cjs_namespaceObject.useStyles)("iabConsentBannerHeader",{baseClassName:iab_consent_banner_module_js_default().header,className:_}),t=(0,utils_namespaceObject.sanitizeDOMStyleProps)(n);return(0,jsx_runtime_namespaceObject.jsx)("div",{ref:a,...t,"data-testid":"iab-consent-banner-header",...r,children:e})});for(var __rspack_i in IABConsentBannerHeader.displayName="IABConsentBannerHeader",exports.IABConsentBannerHeader=__webpack_exports__.IABConsentBannerHeader,__webpack_exports__)-1===["IABConsentBannerHeader"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import r from"@c15t/ui/styles/components/iab-consent-banner.module.
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import r from"@c15t/ui/styles/components/iab-consent-banner.module.js";import{sanitizeDOMStyleProps as n}from"@c15t/ui/utils";import{forwardRef as t}from"react";import{useStyles as a}from"../../../hooks/use-styles.js";let o=t(({children:t,className:o,...s},i)=>e("div",{ref:i,...n(a("iabConsentBannerHeader",{baseClassName:r.header,className:o})),"data-testid":"iab-consent-banner-header",...s,children:t}));o.displayName="IABConsentBannerHeader";export{o as IABConsentBannerHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{IABConsentBannerOverlay:()=>IABConsentBannerOverlay});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),iab_consent_banner_module_js_namespaceObject=require("@c15t/ui/styles/components/iab-consent-banner.module.js");var iab_consent_banner_module_js_default=__webpack_require__.n(iab_consent_banner_module_js_namespaceObject);const external_react_namespaceObject=require("react"),use_consent_manager_cjs_namespaceObject=require("../../../hooks/use-consent-manager.cjs"),use_scroll_lock_cjs_namespaceObject=require("../../../hooks/use-scroll-lock.cjs"),use_styles_cjs_namespaceObject=require("../../../hooks/use-styles.cjs"),use_theme_cjs_namespaceObject=require("../../../hooks/use-theme.cjs"),cn_cjs_namespaceObject=require("../../../utils/cn.cjs"),IABConsentBannerOverlay=(0,external_react_namespaceObject.forwardRef)(({className:e,style:_,noStyle:a,...r},n)=>{let s,{activeUI:t}=(0,use_consent_manager_cjs_namespaceObject.useConsentManager)(),{disableAnimation:c,noStyle:o,scrollLock:l}=(0,use_theme_cjs_namespaceObject.useTheme)(),[u,b]=(0,external_react_namespaceObject.useState)(!1),i="banner"===t;(0,external_react_namespaceObject.useEffect)(()=>{if(i)b(!0);else if(c)b(!1);else{let e=setTimeout(()=>{b(!1)},Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue("--iab-consent-banner-animation-duration")||"200",10));return()=>clearTimeout(e)}},[i,c]);let p=(0,use_styles_cjs_namespaceObject.useStyles)("iabConsentBannerOverlay",{baseClassName:!(o||a)&&iab_consent_banner_module_js_default().overlay,className:e,noStyle:o||a});o||a||c||(s=u?iab_consent_banner_module_js_default().overlayVisible:iab_consent_banner_module_js_default().overlayHidden);let m=(0,cn_cjs_namespaceObject.cnExt)(p.className,s);return((0,use_scroll_lock_cjs_namespaceObject.useScrollLock)(!!(i&&l)),i&&l)?(0,jsx_runtime_namespaceObject.jsx)("div",{ref:n,...r,className:m,style:{...p.style,..._},"data-testid":"iab-consent-banner-overlay"}):null});for(var __rspack_i in IABConsentBannerOverlay.displayName="IABConsentBannerOverlay",exports.IABConsentBannerOverlay=__webpack_exports__.IABConsentBannerOverlay,__webpack_exports__)-1===["IABConsentBannerOverlay"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import t from"@c15t/ui/styles/components/iab-consent-banner.module.
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import t from"@c15t/ui/styles/components/iab-consent-banner.module.js";import{forwardRef as o,useEffect as r,useState as n}from"react";import{useConsentManager as s}from"../../../hooks/use-consent-manager.js";import{useScrollLock as a}from"../../../hooks/use-scroll-lock.js";import{useStyles as l}from"../../../hooks/use-styles.js";import{useTheme as m}from"../../../hooks/use-theme.js";import{cnExt as i}from"../../../utils/cn.js";let u=o(({className:o,style:u,noStyle:c,...y},p)=>{let b,{activeUI:d}=s(),{disableAnimation:f,noStyle:v,scrollLock:j}=m(),[h,k]=n(!1),B="banner"===d;r(()=>{if(B)k(!0);else if(f)k(!1);else{let e=setTimeout(()=>{k(!1)},Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue("--iab-consent-banner-animation-duration")||"200",10));return()=>clearTimeout(e)}},[B,f]);let C=l("iabConsentBannerOverlay",{baseClassName:!(v||c)&&t.overlay,className:o,noStyle:v||c});v||c||f||(b=h?t.overlayVisible:t.overlayHidden);let N=i(C.className,b);return(a(!!(B&&j)),B&&j)?e("div",{ref:p,...y,className:N,style:{...C.style,...u},"data-testid":"iab-consent-banner-overlay"}):null});u.displayName="IABConsentBannerOverlay";export{u as IABConsentBannerOverlay};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{IABConsentBannerRoot:()=>IABConsentBannerRoot});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),iab_consent_banner_module_js_namespaceObject=require("@c15t/ui/styles/components/iab-consent-banner.module.js");var iab_consent_banner_module_js_default=__webpack_require__.n(iab_consent_banner_module_js_namespaceObject);const utils_namespaceObject=require("@c15t/ui/utils"),external_react_namespaceObject=require("react"),external_react_dom_namespaceObject=require("react-dom"),consent_tracking_context_cjs_namespaceObject=require("../../../context/consent-tracking-context.cjs"),theme_context_cjs_namespaceObject=require("../../../context/theme-context.cjs"),use_consent_manager_cjs_namespaceObject=require("../../../hooks/use-consent-manager.cjs"),use_styles_cjs_namespaceObject=require("../../../hooks/use-styles.cjs"),use_text_direction_cjs_namespaceObject=require("../../../hooks/use-text-direction.cjs"),external_overlay_cjs_namespaceObject=require("./overlay.cjs"),IABConsentBannerRoot=({children:e,className:t,noStyle:n,disableAnimation:a,scrollLock:_,trapFocus:r=!0,models:c,uiSource:s,...o})=>{let{policyBanner:i}=(0,use_consent_manager_cjs_namespaceObject.useConsentManager)(),u={disableAnimation:a,noStyle:n,scrollLock:_??i.scrollLock??void 0,trapFocus:r};return(0,jsx_runtime_namespaceObject.jsx)(consent_tracking_context_cjs_namespaceObject.ConsentTrackingContext.Provider,{value:{uiSource:s??"iab_banner"},children:(0,jsx_runtime_namespaceObject.jsx)(theme_context_cjs_namespaceObject.LocalThemeContext.Provider,{value:u,children:(0,jsx_runtime_namespaceObject.jsx)(IABConsentBannerRootChildren,{disableAnimation:a,className:t,noStyle:n,models:c,...o,children:e})})})},IABConsentBannerRootChildren=(0,external_react_namespaceObject.forwardRef)(({children:e,className:t,style:n,className:a,disableAnimation:_,noStyle:r,models:c=["iab"],...s},o)=>{let{activeUI:i,translationConfig:u,model:l}=(0,use_consent_manager_cjs_namespaceObject.useConsentManager)(),m=(0,use_text_direction_cjs_namespaceObject.useTextDirection)(u.defaultLanguage),[b,p]=(0,external_react_namespaceObject.useState)(!1),[j,d]=(0,external_react_namespaceObject.useState)(!1),[x,O]=(0,external_react_namespaceObject.useState)(200),f="banner"===i&&c.includes(l);(0,external_react_namespaceObject.useEffect)(()=>{O(Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue("--iab-consent-banner-animation-duration")||"200",10))},[]),(0,external_react_namespaceObject.useEffect)(()=>{if(f)if(j)p(!0);else{let e=setTimeout(()=>{p(!0),d(!0)},10);return()=>clearTimeout(e)}else if(d(!1),_)p(!1);else{let e=setTimeout(()=>{p(!1)},x);return()=>clearTimeout(e)}},[f,_,j,x]);let k=(0,use_styles_cjs_namespaceObject.useStyles)("iabConsentBanner",{baseClassName:[iab_consent_banner_module_js_default().root],style:n,className:t||a,noStyle:r}),[y,q]=(0,external_react_namespaceObject.useState)(!1);if((0,external_react_namespaceObject.useEffect)(()=>{q(!0)},[]),!y)return null;let B=r?k.className||"":`${k.className||""} ${b?iab_consent_banner_module_js_default().bannerVisible:iab_consent_banner_module_js_default().bannerHidden}`,C=(0,utils_namespaceObject.sanitizeDOMStyleProps)(k);return f?(0,external_react_dom_namespaceObject.createPortal)((0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_overlay_cjs_namespaceObject.IABConsentBannerOverlay,{}),(0,jsx_runtime_namespaceObject.jsx)("div",{ref:o,...s,...C,className:B,"data-testid":"iab-consent-banner-root",dir:m,children:e})]}),document.body):null});for(var __rspack_i in IABConsentBannerRootChildren.displayName="IABConsentBannerRootChildren",exports.IABConsentBannerRoot=__webpack_exports__.IABConsentBannerRoot,__webpack_exports__)-1===["IABConsentBannerRoot"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as e,jsx as t,jsxs as o}from"react/jsx-runtime";import
|
|
1
|
+
import{Fragment as e,jsx as t,jsxs as o}from"react/jsx-runtime";import r from"@c15t/ui/styles/components/iab-consent-banner.module.js";import{sanitizeDOMStyleProps as n}from"@c15t/ui/utils";import{forwardRef as s,useEffect as a,useState as i}from"react";import{createPortal as l}from"react-dom";import{ConsentTrackingContext as m}from"../../../context/consent-tracking-context.js";import{LocalThemeContext as c}from"../../../context/theme-context.js";import{useConsentManager as u}from"../../../hooks/use-consent-manager.js";import{useStyles as d}from"../../../hooks/use-styles.js";import{useTextDirection as b}from"../../../hooks/use-text-direction.js";import{IABConsentBannerOverlay as f}from"./overlay.js";let p=({children:e,className:o,noStyle:r,disableAnimation:n,scrollLock:s,trapFocus:a=!0,models:i,uiSource:l,...d})=>{let{policyBanner:b}=u(),f={disableAnimation:n,noStyle:r,scrollLock:s??b.scrollLock??void 0,trapFocus:a};return t(m.Provider,{value:{uiSource:l??"iab_banner"},children:t(c.Provider,{value:f,children:t(h,{disableAnimation:n,className:o,noStyle:r,models:i,...d,children:e})})})},h=s(({children:s,className:m,style:c,className:p,disableAnimation:h,noStyle:y,models:N=["iab"],...j},v)=>{let{activeUI:x,translationConfig:g,model:k}=u(),C=b(g.defaultLanguage),[B,T]=i(!1),[A,I]=i(!1),[L,P]=i(200),S="banner"===x&&N.includes(k);a(()=>{P(Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue("--iab-consent-banner-animation-duration")||"200",10))},[]),a(()=>{if(S)if(A)T(!0);else{let e=setTimeout(()=>{T(!0),I(!0)},10);return()=>clearTimeout(e)}else if(I(!1),h)T(!1);else{let e=setTimeout(()=>{T(!1)},L);return()=>clearTimeout(e)}},[S,h,A,L]);let R=d("iabConsentBanner",{baseClassName:[r.root],style:c,className:m||p,noStyle:y}),[V,$]=i(!1);if(a(()=>{$(!0)},[]),!V)return null;let E=y?R.className||"":`${R.className||""} ${B?r.bannerVisible:r.bannerHidden}`,H=n(R);return S?l(o(e,{children:[t(f,{}),t("div",{ref:v,...j,...H,className:E,"data-testid":"iab-consent-banner-root",dir:C,children:s})]}),document.body):null});h.displayName="IABConsentBannerRootChildren";export{p as IABConsentBannerRoot};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{IABConsentBannerTitle:()=>IABConsentBannerTitle});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),iab_consent_banner_module_js_namespaceObject=require("@c15t/ui/styles/components/iab-consent-banner.module.js");var iab_consent_banner_module_js_default=__webpack_require__.n(iab_consent_banner_module_js_namespaceObject);const external_react_namespaceObject=require("react"),IABConsentBannerTitle=(0,external_react_namespaceObject.forwardRef)(({children:e,className:_,...r},n)=>(0,jsx_runtime_namespaceObject.jsx)("h2",{ref:n,className:_?`${iab_consent_banner_module_js_default().title} ${_}`:iab_consent_banner_module_js_default().title,...r,children:e}));for(var __rspack_i in IABConsentBannerTitle.displayName="IABConsentBannerTitle",exports.IABConsentBannerTitle=__webpack_exports__.IABConsentBannerTitle,__webpack_exports__)-1===["IABConsentBannerTitle"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import t from"@c15t/ui/styles/components/iab-consent-banner.module.
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import t from"@c15t/ui/styles/components/iab-consent-banner.module.js";import{forwardRef as n}from"react";let r=n(({children:n,className:r,...o},i)=>e("h2",{ref:i,className:r?`${t.title} ${r}`:t.title,...o,children:n}));r.displayName="IABConsentBannerTitle";export{r as IABConsentBannerTitle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(n,{a:n}),n},__webpack_require__.d=(e,n)=>{for(var a in n)__webpack_require__.o(n,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:n[a]})},__webpack_require__.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{IABConsentBanner:()=>IABConsentBanner});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),iab_consent_banner_module_js_namespaceObject=require("@c15t/ui/styles/components/iab-consent-banner.module.js");var iab_consent_banner_module_js_default=__webpack_require__.n(iab_consent_banner_module_js_namespaceObject);const external_react_namespaceObject=require("react"),box_cjs_namespaceObject=require("../shared/primitives/box.cjs"),branding_cjs_namespaceObject=require("../shared/ui/branding.cjs"),index_cjs_namespaceObject=require("../shared/ui/button/index.cjs"),use_component_config_cjs_namespaceObject=require("../../hooks/use-component-config.cjs"),use_consent_manager_cjs_namespaceObject=require("../../hooks/use-consent-manager.cjs"),use_focus_trap_cjs_namespaceObject=require("../../hooks/use-focus-trap.cjs"),use_headless_iab_consent_ui_cjs_namespaceObject=require("../../hooks/use-headless-iab-consent-ui.cjs"),use_iab_translations_cjs_namespaceObject=require("../iab-consent-dialog/use-iab-translations.cjs"),root_cjs_namespaceObject=require("./atoms/root.cjs"),IABConsentBanner=({noStyle:e,disableAnimation:n,scrollLock:a,trapFocus:s=!0,primaryButton:t="customize",models:_,uiSource:c})=>{let r=(0,use_iab_translations_cjs_namespaceObject.useIABTranslations)(),{iab:o,banner:i,openVendorsDialog:u,performBannerAction:b}=(0,use_headless_iab_consent_ui_cjs_namespaceObject.useHeadlessIABConsentUI)(),{policyBanner:l}=(0,use_consent_manager_cjs_namespaceObject.useConsentManager)(),m=a??l.scrollLock??!0,j=(0,external_react_namespaceObject.useRef)(null),p=(0,use_component_config_cjs_namespaceObject.useComponentConfig)({noStyle:e,disableAnimation:n,scrollLock:m,trapFocus:s});if((0,use_focus_trap_cjs_namespaceObject.useFocusTrap)(!!p.trapFocus,j),!o?.config.enabled||!i.isReady)return null;let d=r.banner.description.replace("{partnerCount}",String(i.vendorCount)),x=r.banner.partnersLink.replace("{count}",String(i.vendorCount)),O=r.banner.scopeServiceSpecific;return(0,jsx_runtime_namespaceObject.jsx)(root_cjs_namespaceObject.IABConsentBannerRoot,{...p,models:_,uiSource:c,children:(0,jsx_runtime_namespaceObject.jsxs)(box_cjs_namespaceObject.Box,{baseClassName:iab_consent_banner_module_js_default().cardShell,children:[(0,jsx_runtime_namespaceObject.jsx)(branding_cjs_namespaceObject.BrandingLink,{hideBranding:!1,variant:"banner-tag",themeKey:"iabConsentBannerTag","data-testid":"iab-consent-banner-branding"}),(0,jsx_runtime_namespaceObject.jsxs)(box_cjs_namespaceObject.Box,{ref:j,baseClassName:iab_consent_banner_module_js_default().card,themeKey:"iabConsentBannerCard",tabIndex:0,role:"dialog","aria-modal":p.trapFocus?"true":void 0,"aria-label":r.banner.title,"data-testid":"iab-consent-banner-card",children:[(0,jsx_runtime_namespaceObject.jsxs)(box_cjs_namespaceObject.Box,{baseClassName:iab_consent_banner_module_js_default().header,themeKey:"iabConsentBannerHeader","data-testid":"iab-consent-banner-header",children:[(0,jsx_runtime_namespaceObject.jsx)("h2",{className:iab_consent_banner_module_js_default().title,children:r.banner.title}),(0,jsx_runtime_namespaceObject.jsxs)("p",{className:iab_consent_banner_module_js_default().description,children:[d.split(x)[0],(0,jsx_runtime_namespaceObject.jsx)("button",{type:"button",className:iab_consent_banner_module_js_default().partnersLink,onClick:()=>{u()},onMouseEnter:()=>{},children:x}),d.split(x)[1]]}),(0,jsx_runtime_namespaceObject.jsxs)("ul",{className:iab_consent_banner_module_js_default().purposeList,children:[i.displayItems.map((e,n)=>(0,jsx_runtime_namespaceObject.jsx)("li",{children:e},n)),i.remainingCount>0&&(0,jsx_runtime_namespaceObject.jsx)("li",{className:iab_consent_banner_module_js_default().purposeMore,children:r.banner.andMore.replace("{count}",String(i.remainingCount))})]}),(0,jsx_runtime_namespaceObject.jsxs)("p",{className:iab_consent_banner_module_js_default().legitimateInterestNotice,children:[r.banner.legitimateInterestNotice," ",O]})]}),(0,jsx_runtime_namespaceObject.jsxs)(box_cjs_namespaceObject.Box,{baseClassName:iab_consent_banner_module_js_default().footer,themeKey:"iabConsentBannerFooter","data-testid":"iab-consent-banner-footer",children:[(0,jsx_runtime_namespaceObject.jsxs)("div",{className:iab_consent_banner_module_js_default().footerButtonGroup,children:[(0,jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Root,{variant:"reject"===t?"primary":"neutral",mode:"stroke",size:"small",onClick:()=>{b("reject")},className:iab_consent_banner_module_js_default().rejectButton,"data-testid":"iab-consent-banner-reject-button",children:r.common.rejectAll}),(0,jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Root,{variant:"accept"===t?"primary":"neutral",mode:"accept"===t?"filled":"stroke",size:"small",onClick:()=>{b("accept")},className:iab_consent_banner_module_js_default().acceptButton,"data-testid":"iab-consent-banner-accept-button",children:r.common.acceptAll})]}),(0,jsx_runtime_namespaceObject.jsx)("div",{className:iab_consent_banner_module_js_default().footerSpacer}),(0,jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Root,{variant:"customize"===t?"primary":"neutral",mode:"customize"===t?"filled":"stroke",size:"small",onClick:()=>{b("customize")},className:iab_consent_banner_module_js_default().customizeButton,"data-testid":"iab-consent-banner-customize-button",children:r.common.customize})]})]})]})})};for(var __rspack_i in exports.IABConsentBanner=__webpack_exports__.IABConsentBanner,__webpack_exports__)-1===["IABConsentBanner"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import n from"@c15t/ui/styles/components/iab-consent-banner.module.
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import n from"@c15t/ui/styles/components/iab-consent-banner.module.js";import{useRef as a}from"react";import{Box as r}from"../shared/primitives/box.js";import{BrandingLink as o}from"../shared/ui/branding.js";import{useComponentConfig as i}from"../../hooks/use-component-config.js";import{useConsentManager as s}from"../../hooks/use-consent-manager.js";import{useFocusTrap as c}from"../../hooks/use-focus-trap.js";import{useHeadlessIABConsentUI as l}from"../../hooks/use-headless-iab-consent-ui.js";import{useIABTranslations as m}from"../iab-consent-dialog/use-iab-translations.js";import{IABConsentBannerRoot as d}from"./atoms/root.js";import*as u from"../shared/ui/button/index.js";let p=({noStyle:p,disableAnimation:b,scrollLock:h,trapFocus:f=!0,primaryButton:C="customize",models:g,uiSource:N})=>{let j=m(),{iab:k,banner:y,openVendorsDialog:v,performBannerAction:B}=l(),{policyBanner:z}=s(),S=h??z.scrollLock??!0,L=a(null),x=i({noStyle:p,disableAnimation:b,scrollLock:S,trapFocus:f});if(c(!!x.trapFocus,L),!k?.config.enabled||!y.isReady)return null;let A=j.banner.description.replace("{partnerCount}",String(y.vendorCount)),F=j.banner.partnersLink.replace("{count}",String(y.vendorCount)),I=j.banner.scopeServiceSpecific;return e(d,{...x,models:g,uiSource:N,children:t(r,{baseClassName:n.cardShell,children:[e(o,{hideBranding:!1,variant:"banner-tag",themeKey:"iabConsentBannerTag","data-testid":"iab-consent-banner-branding"}),t(r,{ref:L,baseClassName:n.card,themeKey:"iabConsentBannerCard",tabIndex:0,role:"dialog","aria-modal":x.trapFocus?"true":void 0,"aria-label":j.banner.title,"data-testid":"iab-consent-banner-card",children:[t(r,{baseClassName:n.header,themeKey:"iabConsentBannerHeader","data-testid":"iab-consent-banner-header",children:[e("h2",{className:n.title,children:j.banner.title}),t("p",{className:n.description,children:[A.split(F)[0],e("button",{type:"button",className:n.partnersLink,onClick:()=>{v()},onMouseEnter:()=>{},children:F}),A.split(F)[1]]}),t("ul",{className:n.purposeList,children:[y.displayItems.map((t,n)=>e("li",{children:t},n)),y.remainingCount>0&&e("li",{className:n.purposeMore,children:j.banner.andMore.replace("{count}",String(y.remainingCount))})]}),t("p",{className:n.legitimateInterestNotice,children:[j.banner.legitimateInterestNotice," ",I]})]}),t(r,{baseClassName:n.footer,themeKey:"iabConsentBannerFooter","data-testid":"iab-consent-banner-footer",children:[t("div",{className:n.footerButtonGroup,children:[e(u.Root,{variant:"reject"===C?"primary":"neutral",mode:"stroke",size:"small",onClick:()=>{B("reject")},className:n.rejectButton,"data-testid":"iab-consent-banner-reject-button",children:j.common.rejectAll}),e(u.Root,{variant:"accept"===C?"primary":"neutral",mode:"accept"===C?"filled":"stroke",size:"small",onClick:()=>{B("accept")},className:n.acceptButton,"data-testid":"iab-consent-banner-accept-button",children:j.common.acceptAll})]}),e("div",{className:n.footerSpacer}),e(u.Root,{variant:"customize"===C?"primary":"neutral",mode:"customize"===C?"filled":"stroke",size:"small",onClick:()=>{B("customize")},className:n.customizeButton,"data-testid":"iab-consent-banner-customize-button",children:j.common.customize})]})]})]})})};export{p as IABConsentBanner};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,n)=>{for(var r in n)__webpack_require__.o(n,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},__webpack_require__.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{IABConsentBannerTitle:()=>title_cjs_namespaceObject.IABConsentBannerTitle,IABConsentBannerFooterSpacer:()=>button_group_cjs_namespaceObject.IABConsentBannerFooterSpacer,IABConsentBannerButtonGroup:()=>button_group_cjs_namespaceObject.IABConsentBannerButtonGroup,IABConsentBannerOverlay:()=>overlay_cjs_namespaceObject.IABConsentBannerOverlay,IABConsentBannerRoot:()=>root_cjs_namespaceObject.IABConsentBannerRoot,IABConsentBannerHeader:()=>header_cjs_namespaceObject.IABConsentBannerHeader,default:()=>iab_consent_banner,IABConsentBannerCard:()=>card_cjs_namespaceObject.IABConsentBannerCard,IABConsentBanner:()=>IABConsentBanner,IABConsentBannerDescription:()=>description_cjs_namespaceObject.IABConsentBannerDescription,IABConsentBannerFooter:()=>footer_cjs_namespaceObject.IABConsentBannerFooter});const button_group_cjs_namespaceObject=require("./atoms/button-group.cjs"),card_cjs_namespaceObject=require("./atoms/card.cjs"),description_cjs_namespaceObject=require("./atoms/description.cjs"),footer_cjs_namespaceObject=require("./atoms/footer.cjs"),header_cjs_namespaceObject=require("./atoms/header.cjs"),overlay_cjs_namespaceObject=require("./atoms/overlay.cjs"),root_cjs_namespaceObject=require("./atoms/root.cjs"),title_cjs_namespaceObject=require("./atoms/title.cjs"),external_iab_consent_banner_cjs_namespaceObject=require("./iab-consent-banner.cjs"),IABConsentBanner=Object.assign(external_iab_consent_banner_cjs_namespaceObject.IABConsentBanner,{Root:root_cjs_namespaceObject.IABConsentBannerRoot,Card:card_cjs_namespaceObject.IABConsentBannerCard,Header:header_cjs_namespaceObject.IABConsentBannerHeader,Title:title_cjs_namespaceObject.IABConsentBannerTitle,Description:description_cjs_namespaceObject.IABConsentBannerDescription,Footer:footer_cjs_namespaceObject.IABConsentBannerFooter,ButtonGroup:button_group_cjs_namespaceObject.IABConsentBannerButtonGroup,FooterSpacer:button_group_cjs_namespaceObject.IABConsentBannerFooterSpacer,Overlay:overlay_cjs_namespaceObject.IABConsentBannerOverlay}),iab_consent_banner=IABConsentBanner;for(var __rspack_i in exports.IABConsentBanner=__webpack_exports__.IABConsentBanner,exports.IABConsentBannerButtonGroup=__webpack_exports__.IABConsentBannerButtonGroup,exports.IABConsentBannerCard=__webpack_exports__.IABConsentBannerCard,exports.IABConsentBannerDescription=__webpack_exports__.IABConsentBannerDescription,exports.IABConsentBannerFooter=__webpack_exports__.IABConsentBannerFooter,exports.IABConsentBannerFooterSpacer=__webpack_exports__.IABConsentBannerFooterSpacer,exports.IABConsentBannerHeader=__webpack_exports__.IABConsentBannerHeader,exports.IABConsentBannerOverlay=__webpack_exports__.IABConsentBannerOverlay,exports.IABConsentBannerRoot=__webpack_exports__.IABConsentBannerRoot,exports.IABConsentBannerTitle=__webpack_exports__.IABConsentBannerTitle,exports.default=__webpack_exports__.default,__webpack_exports__)-1===["IABConsentBanner","IABConsentBannerButtonGroup","IABConsentBannerCard","IABConsentBannerDescription","IABConsentBannerFooter","IABConsentBannerFooterSpacer","IABConsentBannerHeader","IABConsentBannerOverlay","IABConsentBannerRoot","IABConsentBannerTitle","default"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{IABConsentBannerButtonGroup as o,IABConsentBannerFooterSpacer as n}from"./atoms/button-group.js";import{IABConsentBannerCard as r}from"./atoms/card.js";import{IABConsentBannerDescription as t}from"./atoms/description.js";import{IABConsentBannerFooter as e}from"./atoms/footer.js";import{IABConsentBannerHeader as a}from"./atoms/header.js";import{IABConsentBannerOverlay as s}from"./atoms/overlay.js";import{IABConsentBannerRoot as m}from"./atoms/root.js";import{IABConsentBannerTitle as B}from"./atoms/title.js";import{IABConsentBanner as i}from"./iab-consent-banner.js";let p=Object.assign(i,{Root:m,Card:r,Header:a,Title:B,Description:t,Footer:e,ButtonGroup:o,FooterSpacer:n,Overlay:s})
|
|
1
|
+
import{IABConsentBannerButtonGroup as o,IABConsentBannerFooterSpacer as n}from"./atoms/button-group.js";import{IABConsentBannerCard as r}from"./atoms/card.js";import{IABConsentBannerDescription as t}from"./atoms/description.js";import{IABConsentBannerFooter as e}from"./atoms/footer.js";import{IABConsentBannerHeader as a}from"./atoms/header.js";import{IABConsentBannerOverlay as s}from"./atoms/overlay.js";import{IABConsentBannerRoot as m}from"./atoms/root.js";import{IABConsentBannerTitle as B}from"./atoms/title.js";import{IABConsentBanner as i}from"./iab-consent-banner.js";let p=Object.assign(i,{Root:m,Card:r,Header:a,Title:B,Description:t,Footer:e,ButtonGroup:o,FooterSpacer:n,Overlay:s});export default p;export{o as IABConsentBannerButtonGroup,r as IABConsentBannerCard,t as IABConsentBannerDescription,e as IABConsentBannerFooter,n as IABConsentBannerFooterSpacer,a as IABConsentBannerHeader,s as IABConsentBannerOverlay,m as IABConsentBannerRoot,B as IABConsentBannerTitle,p as IABConsentBanner};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{IABConsentDialogCard:()=>IABConsentDialogCard});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),iab_consent_dialog_module_js_namespaceObject=require("@c15t/ui/styles/components/iab-consent-dialog.module.js");var iab_consent_dialog_module_js_default=__webpack_require__.n(iab_consent_dialog_module_js_namespaceObject);const utils_namespaceObject=require("@c15t/ui/utils"),external_react_namespaceObject=require("react"),use_consent_manager_cjs_namespaceObject=require("../../../hooks/use-consent-manager.cjs"),use_focus_trap_cjs_namespaceObject=require("../../../hooks/use-focus-trap.cjs"),use_styles_cjs_namespaceObject=require("../../../hooks/use-styles.cjs"),use_theme_cjs_namespaceObject=require("../../../hooks/use-theme.cjs"),cn_cjs_namespaceObject=require("../../../utils/cn.cjs"),external_use_iab_translations_cjs_namespaceObject=require("../use-iab-translations.cjs"),IABConsentDialogCard=(0,external_react_namespaceObject.forwardRef)(({children:e,className:_,...a},s)=>{let{trapFocus:t}=(0,use_theme_cjs_namespaceObject.useTheme)(),{activeUI:r}=(0,use_consent_manager_cjs_namespaceObject.useConsentManager)(),c=(0,external_use_iab_translations_cjs_namespaceObject.useIABTranslations)(),[n,o]=(0,external_react_namespaceObject.useState)(!1),i="dialog"===r;(0,use_focus_trap_cjs_namespaceObject.useFocusTrap)(!!(i&&t),s),(0,external_react_namespaceObject.useEffect)(()=>{if(i)o(!0);else{let e=setTimeout(()=>{o(!1)},150);return()=>clearTimeout(e)}},[i]);let u=(0,use_styles_cjs_namespaceObject.useStyles)("iabConsentDialogCard",{baseClassName:(0,cn_cjs_namespaceObject.cnExt)(iab_consent_dialog_module_js_default().card,n?iab_consent_dialog_module_js_default().contentVisible:iab_consent_dialog_module_js_default().contentHidden),className:_}),l=(0,utils_namespaceObject.sanitizeDOMStyleProps)(u);return(0,jsx_runtime_namespaceObject.jsx)("div",{ref:s,...l,role:"dialog","aria-modal":t?"true":void 0,"aria-label":c.preferenceCenter.title,tabIndex:0,"data-testid":"iab-consent-dialog-card",...a,children:e})});for(var __rspack_i in IABConsentDialogCard.displayName="IABConsentDialogCard",exports.IABConsentDialogCard=__webpack_exports__.IABConsentDialogCard,__webpack_exports__)-1===["IABConsentDialogCard"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import o from"@c15t/ui/styles/components/iab-consent-dialog.module.js";import{sanitizeDOMStyleProps as t}from"@c15t/ui/utils";import{forwardRef as r,useEffect as i,useState as s}from"react";import{useConsentManager as a}from"../../../hooks/use-consent-manager.js";import{useFocusTrap as m}from"../../../hooks/use-focus-trap.js";import{useStyles as n}from"../../../hooks/use-styles.js";import{useTheme as l}from"../../../hooks/use-theme.js";import{cnExt as d}from"../../../utils/cn.js";import{useIABTranslations as c}from"../use-iab-translations.js";let u=r(({children:r,className:u,...p},f)=>{let{trapFocus:b}=l(),{activeUI:g}=a(),j=c(),[C,h]=s(!1),k="dialog"===g;return m(!!(k&&b),f),i(()=>{if(k)h(!0);else{let e=setTimeout(()=>{h(!1)},150);return()=>clearTimeout(e)}},[k]),e("div",{ref:f,...t(n("iabConsentDialogCard",{baseClassName:d(o.card,C?o.contentVisible:o.contentHidden),className:u})),role:"dialog","aria-modal":b?"true":void 0,"aria-label":j.preferenceCenter.title,tabIndex:0,"data-testid":"iab-consent-dialog-card",...p,children:r})});u.displayName="IABConsentDialogCard";export{u as IABConsentDialogCard};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var t in _)__webpack_require__.o(_,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:_[t]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{IABConsentDialogContent:()=>IABConsentDialogContent});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),iab_consent_dialog_module_js_namespaceObject=require("@c15t/ui/styles/components/iab-consent-dialog.module.js");var iab_consent_dialog_module_js_default=__webpack_require__.n(iab_consent_dialog_module_js_namespaceObject);const external_react_namespaceObject=require("react"),IABConsentDialogContent=(0,external_react_namespaceObject.forwardRef)(({children:e,className:_,...t},r)=>{let n=_?`${iab_consent_dialog_module_js_default().content} ${_}`:iab_consent_dialog_module_js_default().content;return(0,jsx_runtime_namespaceObject.jsx)("div",{ref:r,className:n,...t,children:e})});for(var __rspack_i in IABConsentDialogContent.displayName="IABConsentDialogContent",exports.IABConsentDialogContent=__webpack_exports__.IABConsentDialogContent,__webpack_exports__)-1===["IABConsentDialogContent"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import o from"@c15t/ui/styles/components/iab-consent-dialog.module.
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import o from"@c15t/ui/styles/components/iab-consent-dialog.module.js";import{forwardRef as e}from"react";let n=e(({children:e,className:n,...i},r)=>t("div",{ref:r,className:n?`${o.content} ${n}`:o.content,...i,children:e}));n.displayName="IABConsentDialogContent";export{n as IABConsentDialogContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{IABConsentDialogFooter:()=>IABConsentDialogFooter});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),iab_consent_dialog_module_js_namespaceObject=require("@c15t/ui/styles/components/iab-consent-dialog.module.js");var iab_consent_dialog_module_js_default=__webpack_require__.n(iab_consent_dialog_module_js_namespaceObject);const utils_namespaceObject=require("@c15t/ui/utils"),external_react_namespaceObject=require("react"),index_cjs_namespaceObject=require("../../shared/ui/button/index.cjs"),use_headless_iab_consent_ui_cjs_namespaceObject=require("../../../hooks/use-headless-iab-consent-ui.cjs"),use_styles_cjs_namespaceObject=require("../../../hooks/use-styles.cjs"),use_gvl_data_cjs_namespaceObject=require("../hooks/use-gvl-data.cjs"),external_use_iab_translations_cjs_namespaceObject=require("../use-iab-translations.cjs"),IABConsentDialogFooter=(0,external_react_namespaceObject.forwardRef)(({children:e,className:_,...a},s)=>{let{performDialogAction:t}=(0,use_headless_iab_consent_ui_cjs_namespaceObject.useHeadlessIABConsentUI)(),r=(0,external_use_iab_translations_cjs_namespaceObject.useIABTranslations)(),{isLoading:c}=(0,use_gvl_data_cjs_namespaceObject.useGVLData)(),n=(0,use_styles_cjs_namespaceObject.useStyles)("iabConsentDialogFooter",{baseClassName:iab_consent_dialog_module_js_default().footer,className:_}),o=(0,utils_namespaceObject.sanitizeDOMStyleProps)(n);return(0,jsx_runtime_namespaceObject.jsx)("div",{ref:s,...o,...a,children:e||(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsxs)("div",{className:iab_consent_dialog_module_js_default().footerButtons,children:[(0,jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Root,{variant:"neutral",mode:"stroke",size:"small",onClick:()=>{t("reject")},disabled:c,children:r.common.rejectAll}),(0,jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Root,{variant:"neutral",mode:"stroke",size:"small",onClick:()=>{t("accept")},disabled:c,children:r.common.acceptAll})]}),(0,jsx_runtime_namespaceObject.jsx)("div",{className:iab_consent_dialog_module_js_default().footerSpacer}),(0,jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Root,{variant:"primary",mode:"filled",size:"small",onClick:()=>{t("customize")},disabled:c,children:r.common.saveSettings})]})})});for(var __rspack_i in IABConsentDialogFooter.displayName="IABConsentDialogFooter",exports.IABConsentDialogFooter=__webpack_exports__.IABConsentDialogFooter,__webpack_exports__)-1===["IABConsentDialogFooter"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as o,jsx as e,jsxs as t}from"react/jsx-runtime";import s from"@c15t/ui/styles/components/iab-consent-dialog.module.js";import{sanitizeDOMStyleProps as i}from"@c15t/ui/utils";import{forwardRef as r}from"react";import{useHeadlessIABConsentUI as a}from"../../../hooks/use-headless-iab-consent-ui.js";import{useStyles as l}from"../../../hooks/use-styles.js";import{useGVLData as m}from"../hooks/use-gvl-data.js";import{useIABTranslations as n}from"../use-iab-translations.js";import*as c from"../../shared/ui/button/index.js";let d=r(({children:r,className:d,...u},p)=>{let{performDialogAction:f}=a(),h=n(),{isLoading:b}=m();return e("div",{ref:p,...i(l("iabConsentDialogFooter",{baseClassName:s.footer,className:d})),...u,children:r||t(o,{children:[t("div",{className:s.footerButtons,children:[e(c.Root,{variant:"neutral",mode:"stroke",size:"small",onClick:()=>{f("reject")},disabled:b,children:h.common.rejectAll}),e(c.Root,{variant:"neutral",mode:"stroke",size:"small",onClick:()=>{f("accept")},disabled:b,children:h.common.acceptAll})]}),e("div",{className:s.footerSpacer}),e(c.Root,{variant:"primary",mode:"filled",size:"small",onClick:()=>{f("customize")},disabled:b,children:h.common.saveSettings})]})})});d.displayName="IABConsentDialogFooter";export{d as IABConsentDialogFooter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{IABConsentDialogHeader:()=>IABConsentDialogHeader});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),iab_consent_dialog_module_js_namespaceObject=require("@c15t/ui/styles/components/iab-consent-dialog.module.js");var iab_consent_dialog_module_js_default=__webpack_require__.n(iab_consent_dialog_module_js_namespaceObject);const utils_namespaceObject=require("@c15t/ui/utils"),external_react_namespaceObject=require("react"),use_consent_manager_cjs_namespaceObject=require("../../../hooks/use-consent-manager.cjs"),use_styles_cjs_namespaceObject=require("../../../hooks/use-styles.cjs"),use_translations_cjs_namespaceObject=require("../../../hooks/use-translations.cjs"),external_use_iab_translations_cjs_namespaceObject=require("../use-iab-translations.cjs"),IABConsentDialogHeader=(0,external_react_namespaceObject.forwardRef)(({children:e,headerTitle:_,description:a,showCloseButton:s=!0,className:t},r)=>{let{setActiveUI:n}=(0,use_consent_manager_cjs_namespaceObject.useConsentManager)(),c=(0,external_use_iab_translations_cjs_namespaceObject.useIABTranslations)(),{common:i}=(0,use_translations_cjs_namespaceObject.useTranslations)(),o=(0,use_styles_cjs_namespaceObject.useStyles)("iabConsentDialogHeader",{baseClassName:iab_consent_dialog_module_js_default().header,className:t}),l=(0,utils_namespaceObject.sanitizeDOMStyleProps)(o);return(0,jsx_runtime_namespaceObject.jsx)("div",{ref:r,...l,children:e||(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsxs)("div",{className:iab_consent_dialog_module_js_default().headerContent,children:[(0,jsx_runtime_namespaceObject.jsx)("h2",{className:iab_consent_dialog_module_js_default().title,children:_??c.preferenceCenter.title}),(0,jsx_runtime_namespaceObject.jsx)("p",{className:iab_consent_dialog_module_js_default().description,children:a??c.preferenceCenter.description})]}),s&&(0,jsx_runtime_namespaceObject.jsx)("button",{type:"button",onClick:()=>{n("none")},className:iab_consent_dialog_module_js_default().closeButton,"aria-label":i.close,children:(0,jsx_runtime_namespaceObject.jsxs)("svg",{style:{width:"1rem",height:"1rem"},viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,jsx_runtime_namespaceObject.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,jsx_runtime_namespaceObject.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})})});for(var __rspack_i in IABConsentDialogHeader.displayName="IABConsentDialogHeader",exports.IABConsentDialogHeader=__webpack_exports__.IABConsentDialogHeader,__webpack_exports__)-1===["IABConsentDialogHeader"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as e,jsx as r,jsxs as t}from"react/jsx-runtime";import
|
|
1
|
+
import{Fragment as e,jsx as r,jsxs as t}from"react/jsx-runtime";import o from"@c15t/ui/styles/components/iab-consent-dialog.module.js";import{sanitizeDOMStyleProps as s}from"@c15t/ui/utils";import{forwardRef as i}from"react";import{useConsentManager as n}from"../../../hooks/use-consent-manager.js";import{useStyles as l}from"../../../hooks/use-styles.js";import{useTranslations as a}from"../../../hooks/use-translations.js";import{useIABTranslations as m}from"../use-iab-translations.js";let c=i(({children:i,headerTitle:c,description:d,showCloseButton:h=!0,className:p},u)=>{let{setActiveUI:f}=n(),y=m(),{common:C}=a();return r("div",{ref:u,...s(l("iabConsentDialogHeader",{baseClassName:o.header,className:p})),children:i||t(e,{children:[t("div",{className:o.headerContent,children:[r("h2",{className:o.title,children:c??y.preferenceCenter.title}),r("p",{className:o.description,children:d??y.preferenceCenter.description})]}),h&&r("button",{type:"button",onClick:()=>{f("none")},className:o.closeButton,"aria-label":C.close,children:t("svg",{style:{width:"1rem",height:"1rem"},viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[r("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})})});c.displayName="IABConsentDialogHeader";export{c as IABConsentDialogHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{IABConsentDialogOverlay:()=>IABConsentDialogOverlay});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),iab_consent_dialog_module_js_namespaceObject=require("@c15t/ui/styles/components/iab-consent-dialog.module.js");var iab_consent_dialog_module_js_default=__webpack_require__.n(iab_consent_dialog_module_js_namespaceObject);const external_react_namespaceObject=require("react"),use_scroll_lock_cjs_namespaceObject=require("../../../hooks/use-scroll-lock.cjs"),use_styles_cjs_namespaceObject=require("../../../hooks/use-styles.cjs"),use_theme_cjs_namespaceObject=require("../../../hooks/use-theme.cjs"),cn_cjs_namespaceObject=require("../../../utils/cn.cjs"),IABConsentDialogOverlay=(0,external_react_namespaceObject.forwardRef)(({className:e,style:_,noStyle:a,isOpen:t,...r},s)=>{let c,{disableAnimation:o,noStyle:l,scrollLock:n}=(0,use_theme_cjs_namespaceObject.useTheme)(),[i,u]=(0,external_react_namespaceObject.useState)(!1);(0,external_react_namespaceObject.useEffect)(()=>{if(t)u(!0);else if(o)u(!1);else{let e=setTimeout(()=>{u(!1)},Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue("--iab-cd-animation-duration")||"150",10));return()=>clearTimeout(e)}},[t,o]);let p=(0,use_styles_cjs_namespaceObject.useStyles)("iabConsentDialogOverlay",{baseClassName:!(l||a)&&iab_consent_dialog_module_js_default().overlay,className:e,noStyle:l||a});l||a||o||(c=i?iab_consent_dialog_module_js_default().overlayVisible:iab_consent_dialog_module_js_default().overlayHidden);let b=(0,cn_cjs_namespaceObject.cnExt)(p.className,c);return((0,use_scroll_lock_cjs_namespaceObject.useScrollLock)(!!(t&&n)),t)?(0,jsx_runtime_namespaceObject.jsx)("div",{ref:s,...r,className:b,style:{...p.style,..._},"data-testid":"iab-consent-dialog-overlay"}):null});for(var __rspack_i in IABConsentDialogOverlay.displayName="IABConsentDialogOverlay",exports.IABConsentDialogOverlay=__webpack_exports__.IABConsentDialogOverlay,__webpack_exports__)-1===["IABConsentDialogOverlay"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import o from"@c15t/ui/styles/components/iab-consent-dialog.module.
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import o from"@c15t/ui/styles/components/iab-consent-dialog.module.js";import{forwardRef as t,useEffect as l,useState as s}from"react";import{useScrollLock as r}from"../../../hooks/use-scroll-lock.js";import{useStyles as a}from"../../../hooks/use-styles.js";import{useTheme as i}from"../../../hooks/use-theme.js";import{cnExt as m}from"../../../utils/cn.js";let n=t(({className:t,style:n,noStyle:u,isOpen:y,...c},d)=>{let p,{disableAnimation:f,noStyle:v,scrollLock:b}=i(),[g,j]=s(!1);l(()=>{if(y)j(!0);else if(f)j(!1);else{let e=setTimeout(()=>{j(!1)},Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue("--iab-cd-animation-duration")||"150",10));return()=>clearTimeout(e)}},[y,f]);let C=a("iabConsentDialogOverlay",{baseClassName:!(v||u)&&o.overlay,className:t,noStyle:v||u});v||u||f||(p=g?o.overlayVisible:o.overlayHidden);let N=m(C.className,p);return(r(!!(y&&b)),y)?e("div",{ref:d,...c,className:N,style:{...C.style,...n},"data-testid":"iab-consent-dialog-overlay"}):null});n.displayName="IABConsentDialogOverlay";export{n as IABConsentDialogOverlay};
|