@c15t/react 0.0.1-rc.3 → 0.0.1-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/components/consent-manager-provider.cjs +8 -4
- package/dist/common/components/consent-manager-provider.d.ts.map +1 -1
- package/dist/common/components/consent-manager-provider.js +8 -4
- package/dist/common/hooks/use-consent-manager.d.ts +38 -1
- package/dist/common/hooks/use-consent-manager.d.ts.map +1 -1
- package/dist/common/utils/theme.cjs +2 -1
- package/dist/common/utils/theme.d.ts.map +1 -1
- package/dist/common/utils/theme.js +2 -1
- package/dist/consent-manager-dialog/__tests__/utils.d.ts.map +1 -1
- package/dist/consent-manager-dialog/consent-manager-dialog.css +8 -1
- package/dist/consent-manager-widget/__tests__/utils.d.ts.map +1 -1
- package/dist/consent-manager-widget/atoms/accordion.d.ts +2 -2
- package/dist/consent-manager-widget/atoms/accordion.d.ts.map +1 -1
- package/dist/consent-manager-widget/atoms/button.cjs +18 -2
- package/dist/consent-manager-widget/atoms/button.d.ts +11 -1
- package/dist/consent-manager-widget/atoms/button.d.ts.map +1 -1
- package/dist/consent-manager-widget/atoms/button.js +15 -1
- package/dist/consent-manager-widget/atoms/footer.cjs +5 -16
- package/dist/consent-manager-widget/atoms/footer.d.ts +3 -10
- package/dist/consent-manager-widget/atoms/footer.d.ts.map +1 -1
- package/dist/consent-manager-widget/atoms/footer.js +3 -15
- package/dist/consent-manager-widget/consent-manager-widget.cjs +1 -1
- package/dist/consent-manager-widget/consent-manager-widget.css +22 -0
- package/dist/consent-manager-widget/consent-manager-widget.js +1 -1
- package/dist/consent-manager-widget/index.cjs +20 -13
- package/dist/consent-manager-widget/index.d.ts +2 -1
- package/dist/consent-manager-widget/index.d.ts.map +1 -1
- package/dist/consent-manager-widget/index.js +8 -1
- package/dist/cookie-banner/__tests__/utils.d.ts.map +1 -1
- package/dist/cookie-banner/cookie-banner.css +5 -7
- package/dist/primitives/button.cjs +1 -1
- package/dist/primitives/button.js +1 -1
- package/dist/theme/context.d.ts +2 -2
- package/dist/theme/context.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -34,7 +34,7 @@ const external_c15t_namespaceObject = require("c15t");
|
|
|
34
34
|
const external_react_namespaceObject = require("react");
|
|
35
35
|
const consent_manager_context_cjs_namespaceObject = require("../context/consent-manager-context.cjs");
|
|
36
36
|
const translations_cjs_namespaceObject = require("../utils/translations.cjs");
|
|
37
|
-
function ConsentManagerProvider({ children, initialGdprTypes, initialComplianceSettings, namespace = '
|
|
37
|
+
function ConsentManagerProvider({ children, initialGdprTypes, initialComplianceSettings, namespace = 'c15tStore', noStyle = false, translationConfig, trackingBlockerConfig }) {
|
|
38
38
|
const preparedTranslationConfig = (0, external_react_namespaceObject.useMemo)(()=>{
|
|
39
39
|
const mergedConfig = (0, translations_cjs_namespaceObject.mergeTranslationConfigs)(external_c15t_namespaceObject.defaultTranslationConfig, translationConfig);
|
|
40
40
|
const defaultLanguage = (0, translations_cjs_namespaceObject.detectBrowserLanguage)(mergedConfig.translations, mergedConfig.defaultLanguage, mergedConfig.disableAutoLanguageSwitch);
|
|
@@ -50,17 +50,20 @@ function ConsentManagerProvider({ children, initialGdprTypes, initialComplianceS
|
|
|
50
50
|
trackingBlockerConfig
|
|
51
51
|
});
|
|
52
52
|
store.getState().setTranslationConfig(preparedTranslationConfig);
|
|
53
|
+
store.getState().setNoStyle(noStyle);
|
|
53
54
|
return store;
|
|
54
55
|
}, [
|
|
55
56
|
namespace,
|
|
56
57
|
preparedTranslationConfig,
|
|
57
|
-
trackingBlockerConfig
|
|
58
|
+
trackingBlockerConfig,
|
|
59
|
+
noStyle
|
|
58
60
|
]);
|
|
59
61
|
const [state, setState] = (0, external_react_namespaceObject.useState)(store.getState());
|
|
60
62
|
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
61
|
-
const { setGdprTypes, setComplianceSetting, setDetectedCountry } = store.getState();
|
|
63
|
+
const { setGdprTypes, setComplianceSetting, setDetectedCountry, setNoStyle } = store.getState();
|
|
62
64
|
if (initialGdprTypes) setGdprTypes(initialGdprTypes);
|
|
63
65
|
if (initialComplianceSettings) for (const [region, settings] of Object.entries(initialComplianceSettings))setComplianceSetting(region, settings);
|
|
66
|
+
setNoStyle(noStyle);
|
|
64
67
|
const country = document.querySelector('meta[name="user-country"]')?.getAttribute('content') || 'US';
|
|
65
68
|
setDetectedCountry(country);
|
|
66
69
|
const unsubscribe = store.subscribe((newState)=>{
|
|
@@ -72,7 +75,8 @@ function ConsentManagerProvider({ children, initialGdprTypes, initialComplianceS
|
|
|
72
75
|
}, [
|
|
73
76
|
store,
|
|
74
77
|
initialGdprTypes,
|
|
75
|
-
initialComplianceSettings
|
|
78
|
+
initialComplianceSettings,
|
|
79
|
+
noStyle
|
|
76
80
|
]);
|
|
77
81
|
const contextValue = (0, external_react_namespaceObject.useMemo)(()=>({
|
|
78
82
|
state,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-manager-provider.d.ts","sourceRoot":"","sources":["../../../src/common/components/consent-manager-provider.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAM5E;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAC,EACtC,QAAQ,EACR,gBAAgB,EAChB,yBAAyB,EACzB,
|
|
1
|
+
{"version":3,"file":"consent-manager-provider.d.ts","sourceRoot":"","sources":["../../../src/common/components/consent-manager-provider.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAM5E;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAC,EACtC,QAAQ,EACR,gBAAgB,EAChB,yBAAyB,EACzB,SAAuB,EACvB,OAAe,EACf,iBAAiB,EACjB,qBAAqB,GACrB,EAAE,2BAA2B,2CAwF7B"}
|
|
@@ -4,7 +4,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_c15t__ from "c15t";
|
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE__context_consent_manager_context_js_ee8f06d2__ from "../context/consent-manager-context.js";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__utils_translations_js_c2629c1f__ from "../utils/translations.js";
|
|
7
|
-
function ConsentManagerProvider({ children, initialGdprTypes, initialComplianceSettings, namespace = '
|
|
7
|
+
function ConsentManagerProvider({ children, initialGdprTypes, initialComplianceSettings, namespace = 'c15tStore', noStyle = false, translationConfig, trackingBlockerConfig }) {
|
|
8
8
|
const preparedTranslationConfig = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
|
|
9
9
|
const mergedConfig = (0, __WEBPACK_EXTERNAL_MODULE__utils_translations_js_c2629c1f__.mergeTranslationConfigs)(__WEBPACK_EXTERNAL_MODULE_c15t__.defaultTranslationConfig, translationConfig);
|
|
10
10
|
const defaultLanguage = (0, __WEBPACK_EXTERNAL_MODULE__utils_translations_js_c2629c1f__.detectBrowserLanguage)(mergedConfig.translations, mergedConfig.defaultLanguage, mergedConfig.disableAutoLanguageSwitch);
|
|
@@ -20,17 +20,20 @@ function ConsentManagerProvider({ children, initialGdprTypes, initialComplianceS
|
|
|
20
20
|
trackingBlockerConfig
|
|
21
21
|
});
|
|
22
22
|
store.getState().setTranslationConfig(preparedTranslationConfig);
|
|
23
|
+
store.getState().setNoStyle(noStyle);
|
|
23
24
|
return store;
|
|
24
25
|
}, [
|
|
25
26
|
namespace,
|
|
26
27
|
preparedTranslationConfig,
|
|
27
|
-
trackingBlockerConfig
|
|
28
|
+
trackingBlockerConfig,
|
|
29
|
+
noStyle
|
|
28
30
|
]);
|
|
29
31
|
const [state, setState] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(store.getState());
|
|
30
32
|
(0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
|
|
31
|
-
const { setGdprTypes, setComplianceSetting, setDetectedCountry } = store.getState();
|
|
33
|
+
const { setGdprTypes, setComplianceSetting, setDetectedCountry, setNoStyle } = store.getState();
|
|
32
34
|
if (initialGdprTypes) setGdprTypes(initialGdprTypes);
|
|
33
35
|
if (initialComplianceSettings) for (const [region, settings] of Object.entries(initialComplianceSettings))setComplianceSetting(region, settings);
|
|
36
|
+
setNoStyle(noStyle);
|
|
34
37
|
const country = document.querySelector('meta[name="user-country"]')?.getAttribute('content') || 'US';
|
|
35
38
|
setDetectedCountry(country);
|
|
36
39
|
const unsubscribe = store.subscribe((newState)=>{
|
|
@@ -42,7 +45,8 @@ function ConsentManagerProvider({ children, initialGdprTypes, initialComplianceS
|
|
|
42
45
|
}, [
|
|
43
46
|
store,
|
|
44
47
|
initialGdprTypes,
|
|
45
|
-
initialComplianceSettings
|
|
48
|
+
initialComplianceSettings,
|
|
49
|
+
noStyle
|
|
46
50
|
]);
|
|
47
51
|
const contextValue = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
|
|
48
52
|
state,
|
|
@@ -16,5 +16,42 @@
|
|
|
16
16
|
* @returns Combined state and methods for consent management
|
|
17
17
|
* @public
|
|
18
18
|
*/
|
|
19
|
-
export declare function useConsentManager():
|
|
19
|
+
export declare function useConsentManager(): {
|
|
20
|
+
consents: import("c15t").ConsentState;
|
|
21
|
+
consentInfo: {
|
|
22
|
+
time: number;
|
|
23
|
+
type: "all" | "custom" | "necessary";
|
|
24
|
+
} | null;
|
|
25
|
+
showPopup: boolean;
|
|
26
|
+
gdprTypes: import("c15t").AllConsentNames[];
|
|
27
|
+
isPrivacyDialogOpen: boolean;
|
|
28
|
+
complianceSettings: Record<import("c15t").ComplianceRegion, import("c15t").ComplianceSettings>;
|
|
29
|
+
callbacks: import("c15t").Callbacks;
|
|
30
|
+
detectedCountry: string;
|
|
31
|
+
privacySettings: import("c15t").PrivacySettings;
|
|
32
|
+
translationConfig: import("c15t").TranslationConfig;
|
|
33
|
+
noStyle?: boolean;
|
|
34
|
+
setTranslationConfig: (config: import("c15t").TranslationConfig) => void;
|
|
35
|
+
setNoStyle: (noStyle: boolean) => void;
|
|
36
|
+
includeNonDisplayedConsents: boolean;
|
|
37
|
+
consentTypes: import("c15t").ConsentType[];
|
|
38
|
+
setConsent: (name: import("c15t").AllConsentNames, value: boolean) => void;
|
|
39
|
+
setShowPopup: (show: boolean, force?: boolean) => void;
|
|
40
|
+
setIsPrivacyDialogOpen: (isOpen: boolean) => void;
|
|
41
|
+
saveConsents: (type: "all" | "custom" | "necessary") => void;
|
|
42
|
+
resetConsents: () => void;
|
|
43
|
+
setGdprTypes: (types: import("c15t").AllConsentNames[]) => void;
|
|
44
|
+
setComplianceSetting: (region: import("c15t").ComplianceRegion, settings: Partial<import("c15t").ComplianceSettings>) => void;
|
|
45
|
+
resetComplianceSettings: () => void;
|
|
46
|
+
setCallback: (name: keyof import("c15t").Callbacks, callback: import("c15t").CallbackFunction | undefined) => void;
|
|
47
|
+
setDetectedCountry: (country: string) => void;
|
|
48
|
+
getDisplayedConsents: () => typeof import("c15t").consentTypes;
|
|
49
|
+
hasConsented: () => boolean;
|
|
50
|
+
clearAllData: () => void;
|
|
51
|
+
updateConsentMode: () => void;
|
|
52
|
+
setPrivacySettings: (settings: Partial<import("c15t").PrivacySettings>) => void;
|
|
53
|
+
getEffectiveConsents: () => import("c15t").ConsentState;
|
|
54
|
+
hasConsentFor: (consentType: import("c15t").AllConsentNames) => boolean;
|
|
55
|
+
setIncludeNonDisplayedConsents: (include: boolean) => void;
|
|
56
|
+
};
|
|
20
57
|
//# sourceMappingURL=use-consent-manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-consent-manager.d.ts","sourceRoot":"","sources":["../../../src/common/hooks/use-consent-manager.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"use-consent-manager.d.ts","sourceRoot":"","sources":["../../../src/common/hooks/use-consent-manager.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB;;;;;;;;;;;;;;;;;;;;uCAc0uE,CAAC;;;;;;;;;;;;;;;;;EAD3wE"}
|
|
@@ -35,7 +35,8 @@ function createThemeContextValue(consentManager, themeProps) {
|
|
|
35
35
|
});
|
|
36
36
|
const result = Object.assign(fn, {
|
|
37
37
|
...consentManager,
|
|
38
|
-
...themeProps
|
|
38
|
+
...themeProps,
|
|
39
|
+
noStyle: themeProps.noStyle ?? consentManager.noStyle
|
|
39
40
|
});
|
|
40
41
|
if ('function' != typeof result || !('theme' in result)) throw new Error('Invalid theme context value');
|
|
41
42
|
return result;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/common/utils/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,UAAU,4BACT,SAAQ,mBAAmB,EAC1B,iBAAiB;IAClB,IAAI,mBAAmB,GAAG,iBAAiB,CAAC;CAC5C;AAED,wBAAgB,uBAAuB,CACtC,cAAc,EAAE,mBAAmB,EACnC,UAAU,EAAE,iBAAiB,GAC3B,4BAA4B,
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/common/utils/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,UAAU,4BACT,SAAQ,mBAAmB,EAC1B,iBAAiB;IAClB,IAAI,mBAAmB,GAAG,iBAAiB,CAAC;CAC5C;AAED,wBAAgB,uBAAuB,CACtC,cAAc,EAAE,mBAAmB,EACnC,UAAU,EAAE,iBAAiB,GAC3B,4BAA4B,CAe9B"}
|
|
@@ -5,7 +5,8 @@ function createThemeContextValue(consentManager, themeProps) {
|
|
|
5
5
|
});
|
|
6
6
|
const result = Object.assign(fn, {
|
|
7
7
|
...consentManager,
|
|
8
|
-
...themeProps
|
|
8
|
+
...themeProps,
|
|
9
|
+
noStyle: themeProps.noStyle ?? consentManager.noStyle
|
|
9
10
|
});
|
|
10
11
|
if ('function' != typeof result || !('theme' in result)) throw new Error('Invalid theme context value');
|
|
11
12
|
return result;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/consent-manager-dialog/__tests__/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE,UAAU,eAAe;IACxB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE;QACV,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC;KAC5B,EAAE,CAAC;IACJ,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,iBAAe,mBAAmB,CAAC,EAClC,SAAS,EACT,SAAS,EACT,OAAe,GACf,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/consent-manager-dialog/__tests__/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE,UAAU,eAAe;IACxB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE;QACV,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC;KAC5B,EAAE,CAAC;IACJ,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,iBAAe,mBAAmB,CAAC,EAClC,SAAS,EACT,SAAS,EACT,OAAe,GACf,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAwCjC;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -8,9 +8,16 @@
|
|
|
8
8
|
background: none;
|
|
9
9
|
border: 0;
|
|
10
10
|
margin: 0;
|
|
11
|
-
padding:
|
|
11
|
+
padding: 1rem;
|
|
12
12
|
font-family: system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
|
|
13
13
|
line-height: 1.15;
|
|
14
|
+
|
|
15
|
+
@media (width >= 640px) {
|
|
16
|
+
& {
|
|
17
|
+
width: auto;
|
|
18
|
+
padding: 1.5rem;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
14
21
|
}
|
|
15
22
|
|
|
16
23
|
.c15t-consent-manager-dialog-card .c15t-consent-manager-widget-branding {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/consent-manager-widget/__tests__/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE,UAAU,eAAe;IACxB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE;QACV,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC;KAC5B,EAAE,CAAC;IACJ,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,iBAAe,mBAAmB,CAAC,EAClC,SAAS,EACT,SAAS,EACT,OAAe,GACf,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/consent-manager-widget/__tests__/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE,UAAU,eAAe;IACxB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE;QACV,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC;KAC5B,EAAE,CAAC;IACJ,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,iBAAe,mBAAmB,CAAC,EAClC,SAAS,EACT,SAAS,EACT,OAAe,GACf,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAwCjC;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -38,7 +38,7 @@ declare const ConsentManagerWidgetSwitch: import("react").ForwardRefExoticCompon
|
|
|
38
38
|
* </ConsentManagerWidgetAccordion>
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
|
-
declare const ConsentManagerWidgetAccordionItems: () =>
|
|
41
|
+
declare const ConsentManagerWidgetAccordionItems: () => import("react/jsx-runtime").JSX.Element[];
|
|
42
42
|
declare const ConsentManagerWidgetAccordionItem: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-accordion").AccordionItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("../../theme").ExtendThemeKeys & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
43
43
|
declare const AccordionTriggerInner: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-accordion").AccordionTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("../../theme").ExtendThemeKeys & import("react").RefAttributes<HTMLButtonElement>>;
|
|
44
44
|
declare const AccordionTrigger: import("react").ForwardRefExoticComponent<BoxProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -51,7 +51,7 @@ declare const AccordionContent: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
51
51
|
declare const AccordionArrow: typeof RadixAccordion.Arrow;
|
|
52
52
|
declare const Accordion: import("react").ForwardRefExoticComponent<(ComponentPropsWithoutRef<import("react").ForwardRefExoticComponent<(import("@radix-ui/react-accordion").AccordionSingleProps | import("@radix-ui/react-accordion").AccordionMultipleProps) & import("react").RefAttributes<HTMLDivElement>>> & import("../../theme").ExtendThemeKeys) & import("react").RefAttributes<HTMLDivElement>>;
|
|
53
53
|
declare const Switch: import("react").ForwardRefExoticComponent<RadixSwitch.SwitchProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
54
|
-
declare const AccordionItems: () =>
|
|
54
|
+
declare const AccordionItems: () => import("react/jsx-runtime").JSX.Element[];
|
|
55
55
|
declare const AccordionItem: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-accordion").AccordionItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("../../theme").ExtendThemeKeys & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
56
56
|
export { ConsentManagerWidgetAccordionTrigger, ConsentManagerWidgetAccordionTriggerInner, ConsentManagerWidgetAccordionContent, ConsentManagerWidgetAccordionArrow, ConsentManagerWidgetAccordion, ConsentManagerWidgetSwitch, ConsentManagerWidgetAccordionItems, ConsentManagerWidgetAccordionItem, AccordionTrigger, AccordionTriggerInner, AccordionContent, AccordionArrow, Accordion, Switch, AccordionItems, AccordionItem, };
|
|
57
57
|
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/consent-manager-widget/atoms/accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,EACN,KAAK,wBAAwB,EAK7B,MAAM,OAAO,CAAC;AAGf,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,cAAc,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,WAAW,MAAM,4BAA4B,CAAC;AAE1D;;;;;;;GAOG;AACH,QAAA,MAAM,oCAAoC,qGAcxC,CAAC;AAEH,QAAA,MAAM,yCAAyC,iQAAyB,CAAC;AACzE,QAAA,MAAM,oCAAoC;;;;;kDAAyB,CAAC;AACpE,QAAA,MAAM,kCAAkC,6BAAuB,CAAC;AAChE,QAAA,MAAM,6BAA6B,mXAAsB,CAAC;AAC1D,QAAA,MAAM,0BAA0B,uHAAmB,CAAC;AAEpD;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,kCAAkC,
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/consent-manager-widget/atoms/accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,EACN,KAAK,wBAAwB,EAK7B,MAAM,OAAO,CAAC;AAGf,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,cAAc,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,WAAW,MAAM,4BAA4B,CAAC;AAE1D;;;;;;;GAOG;AACH,QAAA,MAAM,oCAAoC,qGAcxC,CAAC;AAEH,QAAA,MAAM,yCAAyC,iQAAyB,CAAC;AACzE,QAAA,MAAM,oCAAoC;;;;;kDAAyB,CAAC;AACpE,QAAA,MAAM,kCAAkC,6BAAuB,CAAC;AAChE,QAAA,MAAM,6BAA6B,mXAAsB,CAAC;AAC1D,QAAA,MAAM,0BAA0B,uHAAmB,CAAC;AAEpD;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,kCAAkC,iDAgEvC,CAAC;AAEF,QAAA,MAAM,iCAAiC,qTAKrC,CAAC;AAEH,QAAA,MAAM,qBAAqB,iQAA4C,CAAC;AACxE,QAAA,MAAM,gBAAgB,qGAAuC,CAAC;AAC9D,QAAA,MAAM,gBAAgB;;;;;kDAAuC,CAAC;AAC9D,QAAA,MAAM,cAAc,6BAAqC,CAAC;AAC1D,QAAA,MAAM,SAAS,mXAAgC,CAAC;AAChD,QAAA,MAAM,MAAM,uHAA6B,CAAC;AAC1C,QAAA,MAAM,cAAc,iDAAqC,CAAC;AAC1D,QAAA,MAAM,aAAa,qTAAoC,CAAC;AAExD,OAAO,EACN,oCAAoC,EACpC,yCAAyC,EACzC,oCAAoC,EACpC,kCAAkC,EAClC,6BAA6B,EAC7B,0BAA0B,EAC1B,kCAAkC,EAClC,iCAAiC,EACjC,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,MAAM,EACN,cAAc,EACd,aAAa,GACb,CAAC"}
|
|
@@ -26,12 +26,14 @@ var __webpack_require__ = {};
|
|
|
26
26
|
var __webpack_exports__ = {};
|
|
27
27
|
__webpack_require__.r(__webpack_exports__);
|
|
28
28
|
__webpack_require__.d(__webpack_exports__, {
|
|
29
|
+
ConsentManagerWidgetCustomizeButton: ()=>ConsentManagerWidgetCustomizeButton,
|
|
29
30
|
SaveButton: ()=>SaveButton,
|
|
30
31
|
CustomizeButton: ()=>CustomizeButton,
|
|
32
|
+
RejectButton: ()=>RejectButton,
|
|
31
33
|
ConsentManagerWidgetAcceptAllButton: ()=>ConsentManagerWidgetAcceptAllButton,
|
|
32
34
|
ConsentManagerWidgetSaveButton: ()=>ConsentManagerWidgetSaveButton,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
ConsentManagerWidgetRejectButton: ()=>ConsentManagerWidgetRejectButton,
|
|
36
|
+
AcceptAllButton: ()=>AcceptAllButton
|
|
35
37
|
});
|
|
36
38
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
37
39
|
const external_react_namespaceObject = require("react");
|
|
@@ -67,9 +69,23 @@ const ConsentManagerWidgetSaveButton = /*#__PURE__*/ (0, external_react_namespac
|
|
|
67
69
|
"data-testid": "consent-manager-widget-footer-save-button",
|
|
68
70
|
children: children
|
|
69
71
|
}));
|
|
72
|
+
const ConsentManagerWidgetRejectButton = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.ConsentButton, {
|
|
73
|
+
ref: ref,
|
|
74
|
+
variant: "neutral",
|
|
75
|
+
mode: "stroke",
|
|
76
|
+
size: "small",
|
|
77
|
+
action: "reject-consent",
|
|
78
|
+
...props,
|
|
79
|
+
themeKey: "consent-manager-widget.footer.reject-button",
|
|
80
|
+
"data-testid": "consent-manager-widget-reject-button",
|
|
81
|
+
closeCookieBanner: true,
|
|
82
|
+
closeCustomizeDialog: true,
|
|
83
|
+
children: children
|
|
84
|
+
}));
|
|
70
85
|
const AcceptAllButton = ConsentManagerWidgetAcceptAllButton;
|
|
71
86
|
const CustomizeButton = ConsentManagerWidgetCustomizeButton;
|
|
72
87
|
const SaveButton = ConsentManagerWidgetSaveButton;
|
|
88
|
+
const RejectButton = ConsentManagerWidgetRejectButton;
|
|
73
89
|
var __webpack_export_target__ = exports;
|
|
74
90
|
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
75
91
|
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
@@ -10,8 +10,18 @@ import type { ConsentButtonProps } from '../../primitives/button.types';
|
|
|
10
10
|
declare const ConsentManagerWidgetAcceptAllButton: import("react").ForwardRefExoticComponent<ConsentButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
11
|
declare const ConsentManagerWidgetCustomizeButton: import("react").ForwardRefExoticComponent<ConsentButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
declare const ConsentManagerWidgetSaveButton: import("react").ForwardRefExoticComponent<ConsentButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
/**
|
|
14
|
+
* Button to reject all non-essential cookies.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* - Sets all optional consents to false
|
|
18
|
+
* - Maintains required consents
|
|
19
|
+
* - Closes dialog after action
|
|
20
|
+
*/
|
|
21
|
+
declare const ConsentManagerWidgetRejectButton: import("react").ForwardRefExoticComponent<ConsentButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
22
|
declare const AcceptAllButton: import("react").ForwardRefExoticComponent<ConsentButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
23
|
declare const CustomizeButton: import("react").ForwardRefExoticComponent<ConsentButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
15
24
|
declare const SaveButton: import("react").ForwardRefExoticComponent<ConsentButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
16
|
-
|
|
25
|
+
declare const RejectButton: import("react").ForwardRefExoticComponent<ConsentButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
26
|
+
export { AcceptAllButton, CustomizeButton, SaveButton, RejectButton, ConsentManagerWidgetAcceptAllButton, ConsentManagerWidgetCustomizeButton, ConsentManagerWidgetSaveButton, ConsentManagerWidgetRejectButton, };
|
|
17
27
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/consent-manager-widget/atoms/button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExE;;;;;;;GAOG;AACH,QAAA,MAAM,mCAAmC,kHAoBvC,CAAC;AAEH,QAAA,MAAM,mCAAmC,kHAevC,CAAC;AAEH,QAAA,MAAM,8BAA8B,kHAiBlC,CAAC;AAEH,QAAA,MAAM,eAAe,kHAAsC,CAAC;AAC5D,QAAA,MAAM,eAAe,kHAAsC,CAAC;AAC5D,QAAA,MAAM,UAAU,kHAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/consent-manager-widget/atoms/button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExE;;;;;;;GAOG;AACH,QAAA,MAAM,mCAAmC,kHAoBvC,CAAC;AAEH,QAAA,MAAM,mCAAmC,kHAevC,CAAC;AAEH,QAAA,MAAM,8BAA8B,kHAiBlC,CAAC;AAEH;;;;;;;GAOG;AACH,QAAA,MAAM,gCAAgC,kHAoBpC,CAAC;AAEH,QAAA,MAAM,eAAe,kHAAsC,CAAC;AAC5D,QAAA,MAAM,eAAe,kHAAsC,CAAC;AAC5D,QAAA,MAAM,UAAU,kHAAiC,CAAC;AAClD,QAAA,MAAM,YAAY,kHAAmC,CAAC;AAEtD,OAAO,EACN,eAAe,EACf,eAAe,EACf,UAAU,EACV,YAAY,EACZ,mCAAmC,EACnC,mCAAmC,EACnC,8BAA8B,EAC9B,gCAAgC,GAChC,CAAC"}
|
|
@@ -32,7 +32,21 @@ const ConsentManagerWidgetSaveButton = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODU
|
|
|
32
32
|
"data-testid": "consent-manager-widget-footer-save-button",
|
|
33
33
|
children: children
|
|
34
34
|
}));
|
|
35
|
+
const ConsentManagerWidgetRejectButton = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ children, ...props }, ref)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__primitives_button_js_c15a17d1__.ConsentButton, {
|
|
36
|
+
ref: ref,
|
|
37
|
+
variant: "neutral",
|
|
38
|
+
mode: "stroke",
|
|
39
|
+
size: "small",
|
|
40
|
+
action: "reject-consent",
|
|
41
|
+
...props,
|
|
42
|
+
themeKey: "consent-manager-widget.footer.reject-button",
|
|
43
|
+
"data-testid": "consent-manager-widget-reject-button",
|
|
44
|
+
closeCookieBanner: true,
|
|
45
|
+
closeCustomizeDialog: true,
|
|
46
|
+
children: children
|
|
47
|
+
}));
|
|
35
48
|
const AcceptAllButton = ConsentManagerWidgetAcceptAllButton;
|
|
36
49
|
const CustomizeButton = ConsentManagerWidgetCustomizeButton;
|
|
37
50
|
const SaveButton = ConsentManagerWidgetSaveButton;
|
|
38
|
-
|
|
51
|
+
const RejectButton = ConsentManagerWidgetRejectButton;
|
|
52
|
+
export { AcceptAllButton, ConsentManagerWidgetAcceptAllButton, ConsentManagerWidgetCustomizeButton, ConsentManagerWidgetRejectButton, ConsentManagerWidgetSaveButton, CustomizeButton, RejectButton, SaveButton };
|
|
@@ -26,14 +26,14 @@ var __webpack_require__ = {};
|
|
|
26
26
|
var __webpack_exports__ = {};
|
|
27
27
|
__webpack_require__.r(__webpack_exports__);
|
|
28
28
|
__webpack_require__.d(__webpack_exports__, {
|
|
29
|
-
ConsentManagerWidgetFooterSubGroup: ()=>ConsentManagerWidgetFooterSubGroup,
|
|
30
29
|
ConsentManagerWidgetFooter: ()=>ConsentManagerWidgetFooter,
|
|
31
|
-
|
|
30
|
+
Footer: ()=>Footer,
|
|
31
|
+
ConsentManagerWidgetFooterSubGroup: ()=>ConsentManagerWidgetFooterSubGroup,
|
|
32
|
+
FooterSubGroup: ()=>FooterSubGroup
|
|
32
33
|
});
|
|
33
34
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
34
35
|
const external_react_namespaceObject = require("react");
|
|
35
36
|
const box_cjs_namespaceObject = require("../../primitives/box.cjs");
|
|
36
|
-
const button_cjs_namespaceObject = require("../../primitives/button.cjs");
|
|
37
37
|
const ConsentManagerWidgetFooter = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(box_cjs_namespaceObject.Box, {
|
|
38
38
|
ref: ref,
|
|
39
39
|
baseClassName: "c15t-consent-manager-widget-footer",
|
|
@@ -50,19 +50,8 @@ const ConsentManagerWidgetFooterSubGroup = /*#__PURE__*/ (0, external_react_name
|
|
|
50
50
|
themeKey: "consent-manager-widget.footer.sub-group",
|
|
51
51
|
children: children
|
|
52
52
|
}));
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
variant: "neutral",
|
|
56
|
-
mode: "stroke",
|
|
57
|
-
size: "small",
|
|
58
|
-
action: "reject-consent",
|
|
59
|
-
...props,
|
|
60
|
-
themeKey: "consent-manager-widget.footer.reject-button",
|
|
61
|
-
"data-testid": "consent-manager-widget-reject-button",
|
|
62
|
-
closeCookieBanner: true,
|
|
63
|
-
closeCustomizeDialog: true,
|
|
64
|
-
children: children
|
|
65
|
-
}));
|
|
53
|
+
const Footer = ConsentManagerWidgetFooter;
|
|
54
|
+
const FooterSubGroup = ConsentManagerWidgetFooterSubGroup;
|
|
66
55
|
var __webpack_export_target__ = exports;
|
|
67
56
|
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
68
57
|
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type BoxProps } from '../../primitives/box';
|
|
2
|
-
import type { ConsentButtonProps } from '../../primitives/button.types';
|
|
3
2
|
/**
|
|
4
3
|
* Footer component for consent management actions.
|
|
5
4
|
*
|
|
@@ -10,13 +9,7 @@ import type { ConsentButtonProps } from '../../primitives/button.types';
|
|
|
10
9
|
*/
|
|
11
10
|
export declare const ConsentManagerWidgetFooter: import("react").ForwardRefExoticComponent<Omit<BoxProps, "themeKey"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
11
|
export declare const ConsentManagerWidgetFooterSubGroup: import("react").ForwardRefExoticComponent<BoxProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* @remarks
|
|
17
|
-
* - Sets all optional consents to false
|
|
18
|
-
* - Maintains required consents
|
|
19
|
-
* - Closes dialog after action
|
|
20
|
-
*/
|
|
21
|
-
export declare const ConsentManagerWidgetRejectButton: import("react").ForwardRefExoticComponent<ConsentButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
declare const Footer: import("react").ForwardRefExoticComponent<Omit<BoxProps, "themeKey"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const FooterSubGroup: import("react").ForwardRefExoticComponent<BoxProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export { Footer, FooterSubGroup };
|
|
22
15
|
//# sourceMappingURL=footer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footer.d.ts","sourceRoot":"","sources":["../../../src/consent-manager-widget/atoms/footer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE1D
|
|
1
|
+
{"version":3,"file":"footer.d.ts","sourceRoot":"","sources":["../../../src/consent-manager-widget/atoms/footer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,uHAerC,CAAC;AAEH,eAAO,MAAM,kCAAkC,qGAe7C,CAAC;AAEH,QAAA,MAAM,MAAM,uHAA6B,CAAC;AAC1C,QAAA,MAAM,cAAc,qGAAqC,CAAC;AAE1D,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE__primitives_box_js_62a8881e__ from "../../primitives/box.js";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE__primitives_button_js_c15a17d1__ from "../../primitives/button.js";
|
|
5
4
|
const ConsentManagerWidgetFooter = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ children, ...props }, ref)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__primitives_box_js_62a8881e__.Box, {
|
|
6
5
|
ref: ref,
|
|
7
6
|
baseClassName: "c15t-consent-manager-widget-footer",
|
|
@@ -18,17 +17,6 @@ const ConsentManagerWidgetFooterSubGroup = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_
|
|
|
18
17
|
themeKey: "consent-manager-widget.footer.sub-group",
|
|
19
18
|
children: children
|
|
20
19
|
}));
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
mode: "stroke",
|
|
25
|
-
size: "small",
|
|
26
|
-
action: "reject-consent",
|
|
27
|
-
...props,
|
|
28
|
-
themeKey: "consent-manager-widget.footer.reject-button",
|
|
29
|
-
"data-testid": "consent-manager-widget-reject-button",
|
|
30
|
-
closeCookieBanner: true,
|
|
31
|
-
closeCustomizeDialog: true,
|
|
32
|
-
children: children
|
|
33
|
-
}));
|
|
34
|
-
export { ConsentManagerWidgetFooter, ConsentManagerWidgetFooterSubGroup, ConsentManagerWidgetRejectButton };
|
|
20
|
+
const Footer = ConsentManagerWidgetFooter;
|
|
21
|
+
const FooterSubGroup = ConsentManagerWidgetFooterSubGroup;
|
|
22
|
+
export { ConsentManagerWidgetFooter, ConsentManagerWidgetFooterSubGroup, Footer, FooterSubGroup };
|
|
@@ -58,7 +58,7 @@ const ConsentManagerWidget = ({ hideBrading, ...props })=>{
|
|
|
58
58
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(footer_cjs_namespaceObject.ConsentManagerWidgetFooterSubGroup, {
|
|
59
59
|
themeKey: "consent-manager-widget.footer.sub-group",
|
|
60
60
|
children: [
|
|
61
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
61
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.ConsentManagerWidgetRejectButton, {
|
|
62
62
|
themeKey: "consent-manager-widget.footer.reject-button",
|
|
63
63
|
children: consentManagerWidget.rejectAll
|
|
64
64
|
}),
|
|
@@ -38,6 +38,12 @@
|
|
|
38
38
|
gap: 1rem;
|
|
39
39
|
display: flex;
|
|
40
40
|
|
|
41
|
+
@media (width <= 640px) {
|
|
42
|
+
& {
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
41
47
|
@media (width >= 640px) {
|
|
42
48
|
& {
|
|
43
49
|
flex-direction: row;
|
|
@@ -50,6 +56,22 @@
|
|
|
50
56
|
justify-content: space-between;
|
|
51
57
|
gap: 1rem;
|
|
52
58
|
display: flex;
|
|
59
|
+
|
|
60
|
+
@media (width <= 640px) {
|
|
61
|
+
& {
|
|
62
|
+
width: 100%;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.c15t-consent-manager-widget-footer-sub-group .c15t-button {
|
|
68
|
+
width: auto;
|
|
69
|
+
|
|
70
|
+
@media (width <= 640px) {
|
|
71
|
+
&, &:last-child:not(:only-child) {
|
|
72
|
+
width: 100%;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
53
75
|
}
|
|
54
76
|
|
|
55
77
|
.c15t-consent-manager-widget-branding {
|
|
@@ -28,7 +28,7 @@ const ConsentManagerWidget = ({ hideBrading, ...props })=>{
|
|
|
28
28
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE__atoms_footer_js_ccc39505__.ConsentManagerWidgetFooterSubGroup, {
|
|
29
29
|
themeKey: "consent-manager-widget.footer.sub-group",
|
|
30
30
|
children: [
|
|
31
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
31
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__atoms_button_js_8afc8370__.ConsentManagerWidgetRejectButton, {
|
|
32
32
|
themeKey: "consent-manager-widget.footer.reject-button",
|
|
33
33
|
children: consentManagerWidget.rejectAll
|
|
34
34
|
}),
|
|
@@ -29,32 +29,39 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29
29
|
__webpack_require__.d(__webpack_exports__, {
|
|
30
30
|
AccordionContent: ()=>accordion_cjs_namespaceObject.AccordionContent,
|
|
31
31
|
AccordionItem: ()=>accordion_cjs_namespaceObject.AccordionItem,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
AccordionTrigger: ()=>accordion_cjs_namespaceObject.AccordionTrigger,
|
|
32
|
+
Footer: ()=>footer_cjs_namespaceObject.Footer,
|
|
33
|
+
ConsentManagerWidgetFooterSubGroup: ()=>footer_cjs_namespaceObject.ConsentManagerWidgetFooterSubGroup,
|
|
35
34
|
Accordion: ()=>accordion_cjs_namespaceObject.Accordion,
|
|
36
|
-
ConsentManagerWidgetAccordionArrow: ()=>accordion_cjs_namespaceObject.ConsentManagerWidgetAccordionArrow,
|
|
37
35
|
ConsentManagerWidgetAccordionItems: ()=>accordion_cjs_namespaceObject.ConsentManagerWidgetAccordionItems,
|
|
38
|
-
AccordionTriggerInner: ()=>accordion_cjs_namespaceObject.AccordionTriggerInner,
|
|
39
|
-
ConsentManagerWidgetRoot: ()=>root_cjs_namespaceObject.ConsentManagerWidgetRoot,
|
|
40
36
|
ConsentManagerWidgetSwitch: ()=>accordion_cjs_namespaceObject.ConsentManagerWidgetSwitch,
|
|
41
|
-
|
|
37
|
+
ConsentManagerWidgetRoot: ()=>root_cjs_namespaceObject.ConsentManagerWidgetRoot,
|
|
42
38
|
ConsentManagerWidgetAcceptAllButton: ()=>button_cjs_namespaceObject.ConsentManagerWidgetAcceptAllButton,
|
|
39
|
+
FooterSubGroup: ()=>footer_cjs_namespaceObject.FooterSubGroup,
|
|
40
|
+
ConsentManagerWidgetRejectButton: ()=>button_cjs_namespaceObject.ConsentManagerWidgetRejectButton,
|
|
43
41
|
SaveButton: ()=>button_cjs_namespaceObject.SaveButton,
|
|
44
|
-
Root: ()=>root_cjs_namespaceObject.Root,
|
|
45
|
-
ConsentManagerWidgetAccordionTrigger: ()=>accordion_cjs_namespaceObject.ConsentManagerWidgetAccordionTrigger,
|
|
46
|
-
Switch: ()=>accordion_cjs_namespaceObject.Switch,
|
|
47
42
|
AccordionItems: ()=>accordion_cjs_namespaceObject.AccordionItems,
|
|
48
43
|
ConsentManagerWidgetAccordion: ()=>accordion_cjs_namespaceObject.ConsentManagerWidgetAccordion,
|
|
49
|
-
ConsentManagerWidgetAccordionContent: ()=>accordion_cjs_namespaceObject.ConsentManagerWidgetAccordionContent,
|
|
50
|
-
ConsentManagerWidgetAccordionTriggerInner: ()=>accordion_cjs_namespaceObject.ConsentManagerWidgetAccordionTriggerInner,
|
|
51
44
|
ConsentManagerWidgetSaveButton: ()=>button_cjs_namespaceObject.ConsentManagerWidgetSaveButton,
|
|
52
45
|
AcceptAllButton: ()=>button_cjs_namespaceObject.AcceptAllButton,
|
|
53
|
-
AccordionArrow: ()=>accordion_cjs_namespaceObject.AccordionArrow
|
|
46
|
+
AccordionArrow: ()=>accordion_cjs_namespaceObject.AccordionArrow,
|
|
47
|
+
ConsentManagerWidgetAccordionItem: ()=>accordion_cjs_namespaceObject.ConsentManagerWidgetAccordionItem,
|
|
48
|
+
ConsentManagerWidgetFooter: ()=>footer_cjs_namespaceObject.ConsentManagerWidgetFooter,
|
|
49
|
+
AccordionTrigger: ()=>accordion_cjs_namespaceObject.AccordionTrigger,
|
|
50
|
+
ConsentManagerWidgetAccordionArrow: ()=>accordion_cjs_namespaceObject.ConsentManagerWidgetAccordionArrow,
|
|
51
|
+
CustomizeButton: ()=>button_cjs_namespaceObject.CustomizeButton,
|
|
52
|
+
RejectButton: ()=>button_cjs_namespaceObject.RejectButton,
|
|
53
|
+
AccordionTriggerInner: ()=>accordion_cjs_namespaceObject.AccordionTriggerInner,
|
|
54
|
+
Root: ()=>root_cjs_namespaceObject.Root,
|
|
55
|
+
ConsentManagerWidgetAccordionTrigger: ()=>accordion_cjs_namespaceObject.ConsentManagerWidgetAccordionTrigger,
|
|
56
|
+
ConsentManagerWidgetAccordionContent: ()=>accordion_cjs_namespaceObject.ConsentManagerWidgetAccordionContent,
|
|
57
|
+
ConsentManagerWidgetAccordionTriggerInner: ()=>accordion_cjs_namespaceObject.ConsentManagerWidgetAccordionTriggerInner,
|
|
58
|
+
Switch: ()=>accordion_cjs_namespaceObject.Switch,
|
|
59
|
+
ConsentManagerWidgetCustomizeButton: ()=>button_cjs_namespaceObject.ConsentManagerWidgetCustomizeButton
|
|
54
60
|
});
|
|
55
61
|
const accordion_cjs_namespaceObject = require("./atoms/accordion.cjs");
|
|
56
62
|
const root_cjs_namespaceObject = require("./atoms/root.cjs");
|
|
57
63
|
const button_cjs_namespaceObject = require("./atoms/button.cjs");
|
|
64
|
+
const footer_cjs_namespaceObject = require("./atoms/footer.cjs");
|
|
58
65
|
var __webpack_export_target__ = exports;
|
|
59
66
|
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
60
67
|
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export { ConsentManagerWidgetAccordionTrigger, ConsentManagerWidgetAccordionTriggerInner, ConsentManagerWidgetAccordionContent, ConsentManagerWidgetAccordionArrow, ConsentManagerWidgetAccordion, ConsentManagerWidgetSwitch, ConsentManagerWidgetAccordionItems, ConsentManagerWidgetAccordionItem, AccordionTrigger, AccordionTriggerInner, AccordionContent, AccordionArrow, Accordion, Switch, AccordionItems, AccordionItem, } from './atoms/accordion';
|
|
7
7
|
export { Root, ConsentManagerWidgetRoot, } from './atoms/root';
|
|
8
|
-
export { AcceptAllButton, CustomizeButton, SaveButton, ConsentManagerWidgetAcceptAllButton, ConsentManagerWidgetCustomizeButton, ConsentManagerWidgetSaveButton, } from './atoms/button';
|
|
8
|
+
export { AcceptAllButton, CustomizeButton, SaveButton, RejectButton, ConsentManagerWidgetAcceptAllButton, ConsentManagerWidgetCustomizeButton, ConsentManagerWidgetSaveButton, ConsentManagerWidgetRejectButton, } from './atoms/button';
|
|
9
|
+
export { ConsentManagerWidgetFooter, ConsentManagerWidgetFooterSubGroup, Footer, FooterSubGroup, } from './atoms/footer';
|
|
9
10
|
export type { ConsentManagerWidgetTheme } from './theme';
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/consent-manager-widget/index.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,OAAO,EACN,oCAAoC,EACpC,yCAAyC,EACzC,oCAAoC,EACpC,kCAAkC,EAClC,6BAA6B,EAC7B,0BAA0B,EAC1B,kCAAkC,EAClC,iCAAiC,EACjC,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,MAAM,EACN,cAAc,EACd,aAAa,GACb,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACN,IAAI,EACJ,wBAAwB,GACxB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACN,eAAe,EACf,eAAe,EACf,UAAU,EACV,mCAAmC,EACnC,mCAAmC,EACnC,8BAA8B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/consent-manager-widget/index.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,OAAO,EACN,oCAAoC,EACpC,yCAAyC,EACzC,oCAAoC,EACpC,kCAAkC,EAClC,6BAA6B,EAC7B,0BAA0B,EAC1B,kCAAkC,EAClC,iCAAiC,EACjC,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,MAAM,EACN,cAAc,EACd,aAAa,GACb,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACN,IAAI,EACJ,wBAAwB,GACxB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACN,eAAe,EACf,eAAe,EACf,UAAU,EACV,YAAY,EACZ,mCAAmC,EACnC,mCAAmC,EACnC,8BAA8B,EAC9B,gCAAgC,GAChC,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACN,0BAA0B,EAC1B,kCAAkC,EAClC,MAAM,EACN,cAAc,GACd,MAAM,gBAAgB,CAAC;AAExB,YAAY,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE__atoms_accordion_js_6108145a__ from "./atoms/accordion.js";
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE__atoms_root_js_8443a91f__ from "./atoms/root.js";
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE__atoms_button_js_8afc8370__ from "./atoms/button.js";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__atoms_footer_js_ccc39505__ from "./atoms/footer.js";
|
|
5
6
|
var __webpack_exports__AcceptAllButton = __WEBPACK_EXTERNAL_MODULE__atoms_button_js_8afc8370__.AcceptAllButton;
|
|
6
7
|
var __webpack_exports__Accordion = __WEBPACK_EXTERNAL_MODULE__atoms_accordion_js_6108145a__.Accordion;
|
|
7
8
|
var __webpack_exports__AccordionArrow = __WEBPACK_EXTERNAL_MODULE__atoms_accordion_js_6108145a__.AccordionArrow;
|
|
@@ -19,11 +20,17 @@ var __webpack_exports__ConsentManagerWidgetAccordionItems = __WEBPACK_EXTERNAL_M
|
|
|
19
20
|
var __webpack_exports__ConsentManagerWidgetAccordionTrigger = __WEBPACK_EXTERNAL_MODULE__atoms_accordion_js_6108145a__.ConsentManagerWidgetAccordionTrigger;
|
|
20
21
|
var __webpack_exports__ConsentManagerWidgetAccordionTriggerInner = __WEBPACK_EXTERNAL_MODULE__atoms_accordion_js_6108145a__.ConsentManagerWidgetAccordionTriggerInner;
|
|
21
22
|
var __webpack_exports__ConsentManagerWidgetCustomizeButton = __WEBPACK_EXTERNAL_MODULE__atoms_button_js_8afc8370__.ConsentManagerWidgetCustomizeButton;
|
|
23
|
+
var __webpack_exports__ConsentManagerWidgetFooter = __WEBPACK_EXTERNAL_MODULE__atoms_footer_js_ccc39505__.ConsentManagerWidgetFooter;
|
|
24
|
+
var __webpack_exports__ConsentManagerWidgetFooterSubGroup = __WEBPACK_EXTERNAL_MODULE__atoms_footer_js_ccc39505__.ConsentManagerWidgetFooterSubGroup;
|
|
25
|
+
var __webpack_exports__ConsentManagerWidgetRejectButton = __WEBPACK_EXTERNAL_MODULE__atoms_button_js_8afc8370__.ConsentManagerWidgetRejectButton;
|
|
22
26
|
var __webpack_exports__ConsentManagerWidgetRoot = __WEBPACK_EXTERNAL_MODULE__atoms_root_js_8443a91f__.ConsentManagerWidgetRoot;
|
|
23
27
|
var __webpack_exports__ConsentManagerWidgetSaveButton = __WEBPACK_EXTERNAL_MODULE__atoms_button_js_8afc8370__.ConsentManagerWidgetSaveButton;
|
|
24
28
|
var __webpack_exports__ConsentManagerWidgetSwitch = __WEBPACK_EXTERNAL_MODULE__atoms_accordion_js_6108145a__.ConsentManagerWidgetSwitch;
|
|
25
29
|
var __webpack_exports__CustomizeButton = __WEBPACK_EXTERNAL_MODULE__atoms_button_js_8afc8370__.CustomizeButton;
|
|
30
|
+
var __webpack_exports__Footer = __WEBPACK_EXTERNAL_MODULE__atoms_footer_js_ccc39505__.Footer;
|
|
31
|
+
var __webpack_exports__FooterSubGroup = __WEBPACK_EXTERNAL_MODULE__atoms_footer_js_ccc39505__.FooterSubGroup;
|
|
32
|
+
var __webpack_exports__RejectButton = __WEBPACK_EXTERNAL_MODULE__atoms_button_js_8afc8370__.RejectButton;
|
|
26
33
|
var __webpack_exports__Root = __WEBPACK_EXTERNAL_MODULE__atoms_root_js_8443a91f__.Root;
|
|
27
34
|
var __webpack_exports__SaveButton = __WEBPACK_EXTERNAL_MODULE__atoms_button_js_8afc8370__.SaveButton;
|
|
28
35
|
var __webpack_exports__Switch = __WEBPACK_EXTERNAL_MODULE__atoms_accordion_js_6108145a__.Switch;
|
|
29
|
-
export { __webpack_exports__AcceptAllButton as AcceptAllButton, __webpack_exports__Accordion as Accordion, __webpack_exports__AccordionArrow as AccordionArrow, __webpack_exports__AccordionContent as AccordionContent, __webpack_exports__AccordionItem as AccordionItem, __webpack_exports__AccordionItems as AccordionItems, __webpack_exports__AccordionTrigger as AccordionTrigger, __webpack_exports__AccordionTriggerInner as AccordionTriggerInner, __webpack_exports__ConsentManagerWidgetAcceptAllButton as ConsentManagerWidgetAcceptAllButton, __webpack_exports__ConsentManagerWidgetAccordion as ConsentManagerWidgetAccordion, __webpack_exports__ConsentManagerWidgetAccordionArrow as ConsentManagerWidgetAccordionArrow, __webpack_exports__ConsentManagerWidgetAccordionContent as ConsentManagerWidgetAccordionContent, __webpack_exports__ConsentManagerWidgetAccordionItem as ConsentManagerWidgetAccordionItem, __webpack_exports__ConsentManagerWidgetAccordionItems as ConsentManagerWidgetAccordionItems, __webpack_exports__ConsentManagerWidgetAccordionTrigger as ConsentManagerWidgetAccordionTrigger, __webpack_exports__ConsentManagerWidgetAccordionTriggerInner as ConsentManagerWidgetAccordionTriggerInner, __webpack_exports__ConsentManagerWidgetCustomizeButton as ConsentManagerWidgetCustomizeButton, __webpack_exports__ConsentManagerWidgetRoot as ConsentManagerWidgetRoot, __webpack_exports__ConsentManagerWidgetSaveButton as ConsentManagerWidgetSaveButton, __webpack_exports__ConsentManagerWidgetSwitch as ConsentManagerWidgetSwitch, __webpack_exports__CustomizeButton as CustomizeButton, __webpack_exports__Root as Root, __webpack_exports__SaveButton as SaveButton, __webpack_exports__Switch as Switch };
|
|
36
|
+
export { __webpack_exports__AcceptAllButton as AcceptAllButton, __webpack_exports__Accordion as Accordion, __webpack_exports__AccordionArrow as AccordionArrow, __webpack_exports__AccordionContent as AccordionContent, __webpack_exports__AccordionItem as AccordionItem, __webpack_exports__AccordionItems as AccordionItems, __webpack_exports__AccordionTrigger as AccordionTrigger, __webpack_exports__AccordionTriggerInner as AccordionTriggerInner, __webpack_exports__ConsentManagerWidgetAcceptAllButton as ConsentManagerWidgetAcceptAllButton, __webpack_exports__ConsentManagerWidgetAccordion as ConsentManagerWidgetAccordion, __webpack_exports__ConsentManagerWidgetAccordionArrow as ConsentManagerWidgetAccordionArrow, __webpack_exports__ConsentManagerWidgetAccordionContent as ConsentManagerWidgetAccordionContent, __webpack_exports__ConsentManagerWidgetAccordionItem as ConsentManagerWidgetAccordionItem, __webpack_exports__ConsentManagerWidgetAccordionItems as ConsentManagerWidgetAccordionItems, __webpack_exports__ConsentManagerWidgetAccordionTrigger as ConsentManagerWidgetAccordionTrigger, __webpack_exports__ConsentManagerWidgetAccordionTriggerInner as ConsentManagerWidgetAccordionTriggerInner, __webpack_exports__ConsentManagerWidgetCustomizeButton as ConsentManagerWidgetCustomizeButton, __webpack_exports__ConsentManagerWidgetFooter as ConsentManagerWidgetFooter, __webpack_exports__ConsentManagerWidgetFooterSubGroup as ConsentManagerWidgetFooterSubGroup, __webpack_exports__ConsentManagerWidgetRejectButton as ConsentManagerWidgetRejectButton, __webpack_exports__ConsentManagerWidgetRoot as ConsentManagerWidgetRoot, __webpack_exports__ConsentManagerWidgetSaveButton as ConsentManagerWidgetSaveButton, __webpack_exports__ConsentManagerWidgetSwitch as ConsentManagerWidgetSwitch, __webpack_exports__CustomizeButton as CustomizeButton, __webpack_exports__Footer as Footer, __webpack_exports__FooterSubGroup as FooterSubGroup, __webpack_exports__RejectButton as RejectButton, __webpack_exports__Root as Root, __webpack_exports__SaveButton as SaveButton, __webpack_exports__Switch as Switch };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/cookie-banner/__tests__/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE,UAAU,eAAe;IACxB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE;QACV,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC;KAC5B,EAAE,CAAC;IACJ,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,iBAAe,mBAAmB,CAAC,EAClC,SAAS,EACT,SAAS,EACT,OAAe,GACf,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/cookie-banner/__tests__/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE,UAAU,eAAe;IACxB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE;QACV,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC;KAC5B,EAAE,CAAC;IACJ,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,iBAAe,mBAAmB,CAAC,EAClC,SAAS,EACT,SAAS,EACT,OAAe,GACf,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAsCjC;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -186,20 +186,18 @@
|
|
|
186
186
|
justify-content: space-between;
|
|
187
187
|
gap: 1rem;
|
|
188
188
|
display: flex;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.c15t-cookie-banner-footer-sub-group .c15t-button {
|
|
192
|
+
width: auto;
|
|
189
193
|
|
|
190
194
|
@media (width <= 640px) {
|
|
191
195
|
& {
|
|
192
|
-
|
|
196
|
+
width: 100%;
|
|
193
197
|
}
|
|
194
198
|
}
|
|
195
199
|
}
|
|
196
200
|
|
|
197
|
-
@media (width <= 640px) {
|
|
198
|
-
.c15t-cookie-banner-reject-button, .c15t-cookie-banner-customize-button {
|
|
199
|
-
width: 100%;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
201
|
.c15t-cookie-banner-description {
|
|
204
202
|
letter-spacing: -.006em;
|
|
205
203
|
color: var(--c15t-cookie-banner-description-color);
|
package/dist/theme/context.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export type ThemeContextValue<Theme = unknown> = {
|
|
|
65
65
|
*
|
|
66
66
|
* @public
|
|
67
67
|
*/
|
|
68
|
-
export declare const ThemeContext: import("react").Context<
|
|
68
|
+
export declare const ThemeContext: import("react").Context<(import("c15t").PrivacyConsentState & (() => import("c15t").PrivacyConsentState) & ThemeContextValue<unknown>) | null>;
|
|
69
69
|
/**
|
|
70
70
|
* Hook to access the current theme context.
|
|
71
71
|
*
|
|
@@ -92,5 +92,5 @@ export declare const ThemeContext: import("react").Context<any>;
|
|
|
92
92
|
* @returns The current theme context value
|
|
93
93
|
* @public
|
|
94
94
|
*/
|
|
95
|
-
export declare const useThemeContext: () =>
|
|
95
|
+
export declare const useThemeContext: () => import("c15t").PrivacyConsentState & (() => import("c15t").PrivacyConsentState) & ThemeContextValue<unknown>;
|
|
96
96
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/theme/context.tsx"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,MAAM,iBAAiB,CAAC,KAAK,GAAG,OAAO,IAAI;IAChD;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAEvB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/theme/context.tsx"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,MAAM,iBAAiB,CAAC,KAAK,GAAG,OAAO,IAAI;IAChD;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAEvB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,YAAY,gJAElB,CAAC;AAER;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,eAAe,oHAM3B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c15t/react",
|
|
3
|
-
"version": "0.0.1-rc.
|
|
3
|
+
"version": "0.0.1-rc.5",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"@radix-ui/react-slot": "1.1.2",
|
|
44
44
|
"@radix-ui/react-switch": "1.1.3",
|
|
45
45
|
"clsx": "2.1.1",
|
|
46
|
-
"motion": "^12.4.
|
|
46
|
+
"motion": "^12.4.4",
|
|
47
47
|
"tailwind-variants": "^0.3.1",
|
|
48
48
|
"zustand": "^5.0.3",
|
|
49
|
-
"c15t": "0.0.1-rc.
|
|
49
|
+
"c15t": "0.0.1-rc.5"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@c15t/typescript-config": "0.0.1-beta.1"
|