@blateral/b.kit 2.0.0-beta.14.1-patch.5 → 2.0.0-beta.14.1-patch.6
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/lib/components/base/icons/UnfoldMore.d.ts +8 -0
- package/lib/components/base/icons/UnfoldMore.d.ts.map +1 -0
- package/lib/components/blocks/CookieConsent.d.ts +24 -21
- package/lib/components/blocks/CookieConsent.d.ts.map +1 -1
- package/lib/index.es.js +1 -1
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/utils/cookie-consent/mutations.d.ts +3 -11
- package/lib/utils/cookie-consent/mutations.d.ts.map +1 -1
- package/lib/utils/cookie-consent/useCookieConsent.d.ts +43 -0
- package/lib/utils/cookie-consent/useCookieConsent.d.ts.map +1 -0
- package/lib/utils/styles.d.ts +12 -0
- package/lib/utils/styles.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnfoldMore.d.ts","sourceRoot":"","sources":["../../../../src/components/base/icons/UnfoldMore.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAeA,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
+
import { CookieTypes } from "../../utils/cookie-consent/useCookieConsent";
|
|
2
3
|
import { ThemeMods } from "../../utils/LibThemeProvider";
|
|
3
|
-
export interface CookieConfig {
|
|
4
|
-
cookieName?: string;
|
|
5
|
-
/** URL's that should be excluded from consent */
|
|
6
|
-
urlWhitelist?: string[];
|
|
7
|
-
consentAcceptStatusMsg?: string;
|
|
8
|
-
consentDeclineStatusMsg?: string;
|
|
9
|
-
noCookieStatusMsg?: string;
|
|
10
|
-
dateFormat?: string;
|
|
11
|
-
timeFormat?: string;
|
|
12
|
-
lifetime?: number;
|
|
13
|
-
localeKey?: 'de' | 'en';
|
|
14
|
-
zIndex?: number;
|
|
15
|
-
overlayOpacity?: number;
|
|
16
|
-
}
|
|
17
4
|
declare type RenderProps = {
|
|
18
|
-
|
|
19
|
-
|
|
5
|
+
types: CookieTypes;
|
|
6
|
+
acceptAll: () => void;
|
|
7
|
+
acceptSelected: () => void;
|
|
8
|
+
declineAll: () => void;
|
|
9
|
+
setConsent: (type: keyof CookieTypes, isAccepted?: boolean) => void;
|
|
20
10
|
additionalDeclineProps: {
|
|
21
11
|
['data-gtm']: string;
|
|
22
12
|
};
|
|
@@ -24,11 +14,15 @@ declare type RenderProps = {
|
|
|
24
14
|
['data-gtm']: string;
|
|
25
15
|
};
|
|
26
16
|
};
|
|
27
|
-
export
|
|
28
|
-
consent
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
17
|
+
export declare const CookieConsent: FC<{
|
|
18
|
+
/** URL's that should be excluded from consent */
|
|
19
|
+
urlWhitelist?: string[];
|
|
20
|
+
zIndex?: number;
|
|
21
|
+
overlayOpacity?: number;
|
|
22
|
+
status?: (props: {
|
|
23
|
+
updatedAt: number;
|
|
24
|
+
state: CookieTypes;
|
|
25
|
+
}) => React.ReactElement;
|
|
32
26
|
className?: string;
|
|
33
27
|
children?: (props: RenderProps) => React.ReactElement;
|
|
34
28
|
theme?: ThemeMods;
|
|
@@ -36,14 +30,23 @@ export declare const CookieConsent: FC<CookieConfig & {
|
|
|
36
30
|
/** Example Cookie icon */
|
|
37
31
|
export declare const CookieIcon: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {}, never>;
|
|
38
32
|
export declare const CookieTitle: FC<{
|
|
33
|
+
isCentered?: boolean;
|
|
39
34
|
innerHTML?: string;
|
|
40
35
|
className?: string;
|
|
41
36
|
children?: React.ReactNode;
|
|
42
37
|
}>;
|
|
43
38
|
export declare const CookieText: FC<{
|
|
39
|
+
isCentered?: boolean;
|
|
44
40
|
innerHTML?: string;
|
|
41
|
+
allowClamping?: boolean;
|
|
45
42
|
className?: string;
|
|
46
43
|
children?: React.ReactNode;
|
|
44
|
+
toggle?: (handleClick: () => void) => React.ReactNode;
|
|
45
|
+
}>;
|
|
46
|
+
export declare const CookieTypeSelect: FC<{
|
|
47
|
+
title?: string;
|
|
48
|
+
types: CookieTypes;
|
|
49
|
+
setConsent: (typeName: keyof CookieTypes, isAccepted?: boolean) => void;
|
|
47
50
|
}>;
|
|
48
51
|
/** Example Cookie actions */
|
|
49
52
|
export declare const CookieActions: import("styled-components").StyledComponent<React.FC<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CookieConsent.d.ts","sourceRoot":"","sources":["../../../src/components/blocks/CookieConsent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CookieConsent.d.ts","sourceRoot":"","sources":["../../../src/components/blocks/CookieConsent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAA4C,MAAM,OAAO,CAAC;AAI5E,OAAyB,EACrB,WAAW,EAEd,oDAA8C;AAM/C,OAAO,EAEH,SAAS,EAEZ,qCAA+B;AA0EhC,aAAK,WAAW,GAAG;IACf,KAAK,EAAE,WAAW,CAAC;IACnB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,WAAW,EAAE,UAAU,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACpE,sBAAsB,EAAE;QACpB,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,qBAAqB,EAAE;QACnB,CAAC,UAAU,CA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