@kickstartds/ds-agency-premium 1.6.71--canary.45.2029.0 → 1.6.71--canary.45.2035.0

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.
@@ -1,4 +1,4 @@
1
- import { BlogPostProps } from "../../BlogPostProps-6b3cff22.js";
1
+ import { BlogPostProps } from "../../BlogPostProps-c760fd2a.js";
2
2
  import { FC, PropsWithChildren } from "react";
3
3
  declare const BlogPost: FC<PropsWithChildren<BlogPostProps>>;
4
4
  export type { BlogPostProps };
@@ -3,7 +3,8 @@
3
3
  --dsa-cookie-consent-notice--max-height: 45vh;
4
4
  --dsa-cookie-consent-notice_card--background-color: var(--ks-background-color-default);
5
5
  --dsa-cookie-consent-notice_card--padding: var(--ks-spacing-inset-m);
6
- --dsa-cookie-consent-notice_card--spacing: var(--ks-spacing-m);
6
+ --dsa-cookie-consent-notice_card--left: var(--ks-spacing-m);
7
+ --dsa-cookie-consent-notice_card--bottom: var(--ks-spacing-m);
7
8
  --dsa-cookie-consent-notice_card--border-radius: var(--ks-border-radius-card);
8
9
  --dsa-cookie-consent-notice_card--max-width: var(--dsa-tile--width_largest);
9
10
  --dsa-cookie-consent-notice_card--border: var(--ks-border-color-card) solid var(--ks-border-width-default);
@@ -13,6 +14,11 @@
13
14
  --dsa-cookie-consent-notice_banner--box-shadow: var(--ks-box-shadow-surface);
14
15
  --dsa-cookie-consent-notice_banner--border-top: var(--ks-border-color-interface) solid var(--ks-border-width-default);
15
16
  --dsa-cookie-consent-notice__buttons--gap: var(--ks-spacing-stack-xs) var(--ks-spacing-inline-s);
17
+ --dsa-cookie-consent-revisit--bottom: var(--ks-spacing-m);
18
+ --dsa-cookie-consent-revisit--left: var(--ks-spacing-m);
19
+ --dsa-cookie-consent-revisit__label--background-color: var(--ks-background-color-default-inverted);
20
+ --dsa-cookie-consent-revisit__label--border-radius: 0.25em;
21
+ --dsa-cookie-consent-revisit__label--padding: var(--ks-spacing-inset-squish-xs);
16
22
  --dsa-cookie-consent-dialogue--padding-horizontal: var(--ks-spacing-inset-m);
17
23
  --dsa-cookie-consent-dialogue--border-radius: var(--ks-border-radius-card);
18
24
  --dsa-cookie-consent-dialogue--border: var(--ks-border-color-interface) solid var(--ks-border-width-default);
@@ -71,8 +77,8 @@
71
77
  border: var(--dsa-cookie-consent-notice_card--border, var(--ks-border-color-card) solid var(--ks-border-width-default));
72
78
  border-radius: var(--dsa-cookie-consent-notice_card--border-radius, var(--ks-border-radius-card));
73
79
  max-width: var(--dsa-cookie-consent-notice_card--max-width, var(--dsa-tile--width_large));
74
- bottom: var(--dsa-cookie-consent-notice_card--spacing, var(--ks-spacing-m));
75
- left: var(--dsa-cookie-consent-notice_card--spacing, var(--ks-spacing-m));
80
+ bottom: var(--dsa-cookie-consent-notice_card--bottom, var(--ks-spacing-m));
81
+ left: var(--dsa-cookie-consent-notice_card--left, var(--ks-spacing-m));
76
82
  border-radius: var(--dsa-cookie-consent-notice_card--border-radius, var(--ks-border-radius-card));
77
83
  }
78
84
  }
@@ -99,6 +105,45 @@
99
105
  }
100
106
  }
101
107
 
108
+ .dsa-cookie-consent-revisit {
109
+ position: fixed;
110
+ bottom: var(--dsa-cookie-consent-revisit--bottom, var(--ks-spacing-m));
111
+ left: var(--dsa-cookie-consent-revisit--left, var(--ks-spacing-m));
112
+ z-index: 1000;
113
+ height: fit-content;
114
+ width: fit-content;
115
+ padding: var(--dsa-cookie-consent-revisit--padding, var(--ks-spacing-inset-s));
116
+ border-radius: var(--ks-border-radius-circle);
117
+ }
118
+ .dsa-cookie-consent-revisit .icon {
119
+ margin: 0;
120
+ }
121
+ .dsa-cookie-consent-revisit:hover span {
122
+ opacity: 1;
123
+ }
124
+ .dsa-cookie-consent-revisit span {
125
+ transition: var(--ks-transition-hover);
126
+ position: absolute;
127
+ width: fit-content;
128
+ white-space: nowrap;
129
+ left: 100%;
130
+ transform: translateX(6.5%);
131
+ background-color: var(--dsa-cookie-consent-revisit__label--background-color, var(--ks-background-color-default-inverted));
132
+ padding: var(--dsa-cookie-consent-revisit__label--padding, var(--ks-spacing-inset-squish-xs));
133
+ border-radius: var(--dsa-cookie-consent-revisit__label--border-radius, 0.25em);
134
+ opacity: 0;
135
+ }
136
+ .dsa-cookie-consent-revisit span::before {
137
+ position: absolute;
138
+ content: "";
139
+ height: 0.75em;
140
+ aspect-ratio: 1;
141
+ background-color: var(--dsa-cookie-consent-revisit__label--background-color, var(--ks-background-color-default-inverted));
142
+ top: 50%;
143
+ transform: translate(-50%, -50%) rotate(45deg);
144
+ left: 0;
145
+ }
146
+
102
147
  .dsa-cookie-consent-dialogue {
103
148
  border-radius: var(--dsa-cookie-consent-dialogue--border-radius, var(--ks-border-radius-card));
104
149
  border: var(--dsa-cookie-consent-dialogue--border, var(--ks-border-color-interface) solid var(--ks-border-width-default));
@@ -34,18 +34,6 @@
34
34
  "examples": [
35
35
  "Accept All Cookies"
36
36
  ]
37
- },
38
- "variant": {
39
- "type": "string",
40
- "enum": [
41
- "primary",
42
- "secondary",
43
- "tertiary"
44
- ],
45
- "examples": [
46
- "primary"
47
- ],
48
- "description": "The variant of the accept button"
49
37
  }
50
38
  },
51
39
  "additionalProperties": false
@@ -59,18 +47,6 @@
59
47
  "examples": [
60
48
  "Reject All Cookies"
61
49
  ]
62
- },
63
- "variant": {
64
- "type": "string",
65
- "enum": [
66
- "primary",
67
- "secondary",
68
- "tertiary"
69
- ],
70
- "examples": [
71
- "tertiary"
72
- ],
73
- "description": "The variant of the reject button"
74
50
  }
75
51
  },
76
52
  "additionalProperties": false
@@ -87,19 +63,29 @@
87
63
  },
88
64
  "variant": {
89
65
  "type": "string",
66
+ "title": "Variant",
67
+ "description": "Variant of button to be used",
90
68
  "enum": [
91
69
  "primary",
92
70
  "secondary",
93
71
  "tertiary"
94
72
  ],
95
- "examples": [
96
- "tertiary"
97
- ],
98
- "description": "The variant of the customize button"
73
+ "default": "secondary"
99
74
  }
100
75
  },
101
76
  "additionalProperties": false
102
77
  },
78
+ "decisionButtonVariant": {
79
+ "type": "string",
80
+ "title": "Variant",
81
+ "description": "Variant of button to be used",
82
+ "enum": [
83
+ "primary",
84
+ "secondary",
85
+ "tertiary"
86
+ ],
87
+ "default": "secondary"
88
+ },
103
89
  "description": {
104
90
  "type": "string",
105
91
  "description": "The description of the cookie consent section",
@@ -110,6 +96,24 @@
110
96
  },
111
97
  "additionalProperties": false
112
98
  },
99
+ "revisitButton": {
100
+ "type": "object",
101
+ "title": "Revisit Cookie Consent Button",
102
+ "description": "The button that allows users to revisit their cookie preferences.",
103
+ "properties": {
104
+ "label": {
105
+ "type": "string",
106
+ "description": "The label for the revisit button",
107
+ "default": "Manage Cookies"
108
+ },
109
+ "toggle": {
110
+ "type": "boolean",
111
+ "description": "Whether the revisit button is a toggle",
112
+ "default": true
113
+ }
114
+ },
115
+ "additionalProperties": false
116
+ },
113
117
  "dialogue": {
114
118
  "type": "object",
115
119
  "title": "Cookie Consent Dialogue",
@@ -153,6 +157,35 @@
153
157
  "additionalProperties": false
154
158
  }
155
159
  },
160
+ "buttons": {
161
+ "type": "object",
162
+ "properties": {
163
+ "acceptLabel": {
164
+ "type": "string",
165
+ "description": "The label for the accept button in the dialogue",
166
+ "default": "Accept All"
167
+ },
168
+ "rejectLabel": {
169
+ "type": "string",
170
+ "description": "The label for the reject button in the dialogue",
171
+ "default": "Reject All"
172
+ },
173
+ "savePreferencesLabel": {
174
+ "type": "string",
175
+ "description": "The label for the button to save preferences",
176
+ "default": "Save Preferences"
177
+ }
178
+ },
179
+ "additionalProperties": false
180
+ },
181
+ "decisionButtonVariant": {
182
+ "type": "string",
183
+ "description": "The variant of the decision buttons in the dialogue",
184
+ "enum": [
185
+ "secondary",
186
+ "tertiary"
187
+ ]
188
+ },
156
189
  "options": {
157
190
  "type": "array",
158
191
  "items": {
@@ -180,6 +213,27 @@
180
213
  },
181
214
  "additionalProperties": false
182
215
  }
216
+ },
217
+ "toggleLabels": {
218
+ "type": "object",
219
+ "properties": {
220
+ "accept": {
221
+ "type": "string",
222
+ "description": "Label for enabled toggle state",
223
+ "default": "Accept"
224
+ },
225
+ "reject": {
226
+ "type": "string",
227
+ "description": "Label for disabled toggle state",
228
+ "default": "Reject"
229
+ }
230
+ },
231
+ "additionalProperties": false
232
+ },
233
+ "alwaysActiveLabel": {
234
+ "type": "string",
235
+ "description": "Label that indicates that the cookie category is always active",
236
+ "default": "Always Active"
183
237
  }
184
238
  },
185
239
  "additionalProperties": false
@@ -27,12 +27,6 @@
27
27
  "type": "string",
28
28
  "description": "The label for the accept button",
29
29
  "examples": ["Accept All Cookies"]
30
- },
31
- "variant": {
32
- "type": "string",
33
- "enum": ["primary", "secondary", "tertiary"],
34
- "examples": ["primary"],
35
- "description": "The variant of the accept button"
36
30
  }
37
31
  }
38
32
  },
@@ -43,12 +37,6 @@
43
37
  "type": "string",
44
38
  "description": "The label for the reject button",
45
39
  "examples": ["Reject All Cookies"]
46
- },
47
- "variant": {
48
- "type": "string",
49
- "enum": ["primary", "secondary", "tertiary"],
50
- "examples": ["tertiary"],
51
- "description": "The variant of the reject button"
52
40
  }
53
41
  }
54
42
  },
@@ -61,13 +49,13 @@
61
49
  "examples": ["Customize Cookies"]
62
50
  },
63
51
  "variant": {
64
- "type": "string",
65
- "enum": ["primary", "secondary", "tertiary"],
66
- "examples": ["tertiary"],
67
- "description": "The variant of the customize button"
52
+ "$ref": "http://schema.mydesignsystem.com/button.schema.json#/properties/variant"
68
53
  }
69
54
  }
70
55
  },
56
+ "decisionButtonVariant": {
57
+ "$ref": "http://schema.mydesignsystem.com/button.schema.json#/properties/variant"
58
+ },
71
59
  "description": {
72
60
  "type": "string",
73
61
  "description": "The description of the cookie consent section",
@@ -77,6 +65,23 @@
77
65
  }
78
66
  }
79
67
  },
68
+ "revisitButton": {
69
+ "type": "object",
70
+ "title": "Revisit Cookie Consent Button",
71
+ "description": "The button that allows users to revisit their cookie preferences.",
72
+ "properties": {
73
+ "label": {
74
+ "type": "string",
75
+ "description": "The label for the revisit button",
76
+ "default": "Manage Cookies"
77
+ },
78
+ "toggle": {
79
+ "type": "boolean",
80
+ "description": "Whether the revisit button is a toggle",
81
+ "default": true
82
+ }
83
+ }
84
+ },
80
85
  "dialogue": {
81
86
  "type": "object",
82
87
  "title": "Cookie Consent Dialogue",
@@ -115,6 +120,31 @@
115
120
  }
116
121
  }
117
122
  },
123
+ "buttons": {
124
+ "type": "object",
125
+ "properties": {
126
+ "acceptLabel": {
127
+ "type": "string",
128
+ "description": "The label for the accept button in the dialogue",
129
+ "default": "Accept All"
130
+ },
131
+ "rejectLabel": {
132
+ "type": "string",
133
+ "description": "The label for the reject button in the dialogue",
134
+ "default": "Reject All"
135
+ },
136
+ "savePreferencesLabel": {
137
+ "type": "string",
138
+ "description": "The label for the button to save preferences",
139
+ "default": "Save Preferences"
140
+ }
141
+ }
142
+ },
143
+ "decisionButtonVariant": {
144
+ "type": "string",
145
+ "description": "The variant of the decision buttons in the dialogue",
146
+ "enum": ["secondary", "tertiary"]
147
+ },
118
148
  "options": {
119
149
  "type": "array",
120
150
  "items": {
@@ -139,6 +169,27 @@
139
169
  }
140
170
  }
141
171
  }
172
+ },
173
+ "toggleLabels": {
174
+ "type": "object",
175
+ "properties": {
176
+ "accept": {
177
+ "type": "string",
178
+ "description": "Label for enabled toggle state",
179
+ "default": "Accept"
180
+ },
181
+ "reject": {
182
+ "type": "string",
183
+ "description": "Label for disabled toggle state",
184
+ "default": "Reject"
185
+ }
186
+ },
187
+ "additionalProperties": false
188
+ },
189
+ "alwaysActiveLabel": {
190
+ "type": "string",
191
+ "description": "Label that indicates that the cookie category is always active",
192
+ "default": "Always Active"
142
193
  }
143
194
  }
144
195
  }
@@ -6,6 +6,10 @@ import { HTMLAttributes } from "react";
6
6
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
7
7
  * and run json-schema-to-typescript to regenerate this file.
8
8
  */
9
+ /**
10
+ * Variant of button to be used
11
+ */
12
+ type Variant = "primary" | "secondary" | "tertiary";
9
13
  type RequiredCookies = {
10
14
  /**
11
15
  * The name of the required cookie
@@ -18,6 +22,7 @@ type RequiredCookies = {
18
22
  }[];
19
23
  interface CookieConsentProps {
20
24
  notice?: InitialCookieConsentNotice;
25
+ revisitButton?: RevisitCookieConsentButton;
21
26
  dialogue?: CookieConsentDialogue;
22
27
  }
23
28
  /**
@@ -37,36 +42,39 @@ interface InitialCookieConsentNotice {
37
42
  * The label for the accept button
38
43
  */
39
44
  label?: string;
40
- /**
41
- * The variant of the accept button
42
- */
43
- variant?: "primary" | "secondary" | "tertiary";
44
45
  };
45
46
  rejectButton?: {
46
47
  /**
47
48
  * The label for the reject button
48
49
  */
49
50
  label?: string;
50
- /**
51
- * The variant of the reject button
52
- */
53
- variant?: "primary" | "secondary" | "tertiary";
54
51
  };
55
52
  customizeButton?: {
56
53
  /**
57
54
  * The label for the customize button
58
55
  */
59
56
  label?: string;
60
- /**
61
- * The variant of the customize button
62
- */
63
- variant?: "primary" | "secondary" | "tertiary";
57
+ variant?: Variant;
64
58
  };
59
+ decisionButtonVariant?: Variant;
65
60
  /**
66
61
  * The description of the cookie consent section
67
62
  */
68
63
  description?: string;
69
64
  }
65
+ /**
66
+ * The button that allows users to revisit their cookie preferences.
67
+ */
68
+ interface RevisitCookieConsentButton {
69
+ /**
70
+ * The label for the revisit button
71
+ */
72
+ label?: string;
73
+ /**
74
+ * Whether the revisit button is a toggle
75
+ */
76
+ toggle?: boolean;
77
+ }
70
78
  /**
71
79
  * The dialogue displayed when users choose to customize their cookie preferences.
72
80
  */
@@ -80,6 +88,24 @@ interface CookieConsentDialogue {
80
88
  */
81
89
  description?: string;
82
90
  required?: RequiredCookies;
91
+ buttons?: {
92
+ /**
93
+ * The label for the accept button in the dialogue
94
+ */
95
+ acceptLabel?: string;
96
+ /**
97
+ * The label for the reject button in the dialogue
98
+ */
99
+ rejectLabel?: string;
100
+ /**
101
+ * The label for the button to save preferences
102
+ */
103
+ savePreferencesLabel?: string;
104
+ };
105
+ /**
106
+ * The variant of the decision buttons in the dialogue
107
+ */
108
+ decisionButtonVariant?: "secondary" | "tertiary";
83
109
  options?: {
84
110
  /**
85
111
  * The name of the cookie category
@@ -94,6 +120,20 @@ interface CookieConsentDialogue {
94
120
  */
95
121
  checked?: boolean;
96
122
  }[];
123
+ toggleLabels?: {
124
+ /**
125
+ * Label for enabled toggle state
126
+ */
127
+ accept?: string;
128
+ /**
129
+ * Label for disabled toggle state
130
+ */
131
+ reject?: string;
132
+ };
133
+ /**
134
+ * Label that indicates that the cookie category is always active
135
+ */
136
+ alwaysActiveLabel?: string;
97
137
  }
98
138
  declare const CookieConsentContextDefault: import("react").ForwardRefExoticComponent<CookieConsentProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
99
139
  declare const CookieConsentContext: import("react").Context<import("react").ForwardRefExoticComponent<CookieConsentProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
@@ -11,14 +11,14 @@ import '@kickstartds/base/lib/headline';
11
11
  import '../../helpers-12f48df8.js';
12
12
  import '@kickstartds/base/lib/button';
13
13
 
14
- const CookieConsentContextDefault = forwardRef(({ notice, dialogue }, ref) => {
14
+ const CookieConsentContextDefault = forwardRef(({ notice, revisitButton, dialogue }, ref) => {
15
15
  const [showDialogue, setShowDialogue] = useState(false);
16
16
  const [optionStates, setOptionStates] = useState(dialogue?.options?.map((option) => option.checked ?? true) // true = default checked
17
17
  );
18
18
  const handleRadioChange = (index, value) => {
19
19
  setOptionStates((prev) => prev.map((checked, i) => (i === index ? value : checked)));
20
20
  };
21
- return (jsxs("div", { className: "dsa-cookie-consent", ref: ref, children: [jsxs("div", { className: classnames(`dsa-cookie-consent-notice dsa-cookie-consent-notice--${notice?.displayMode}`), children: [jsx(Headline, { spaceAfter: "minimum", text: notice?.title, level: "h2", style: "h3" }), jsx(RichText, { text: notice?.description }), jsxs("div", { className: "dsa-cookie-consent-notice__buttons", children: [jsx(Button, { size: "small", label: notice?.customizeButton?.label, variant: notice?.customizeButton?.variant, onClick: () => setShowDialogue(true) }), jsx(Button, { size: "small", label: notice?.rejectButton?.label, variant: notice?.rejectButton?.variant }), jsx(Button, { size: "small", label: notice?.acceptButton?.label, variant: notice?.acceptButton?.variant })] })] }), jsxs("div", { className: "dsa-cookie-consent-dialogue", hidden: !showDialogue, "aria-hidden": !showDialogue, children: [jsxs("div", { className: "dsa-cookie-consent-dialogue__header", children: [jsx(Headline, { spaceAfter: "minimum", text: dialogue?.title, level: "h2", style: "h3" }), jsx(Button, { "aria-label": "Close Cookie Consent Dialogue", className: "dsa-cookie-consent-dialogue__close", icon: "close", label: "", onClick: () => setShowDialogue(false) })] }), jsxs("div", { className: "dsa-cookie-consent-dialogue__content", children: [jsx(RichText, { className: "dsa-cookie-consent-dialogue__description", text: dialogue?.description }), jsxs("div", { className: "dsa-cookie-consent-dialogue__options", children: [dialogue?.required?.map((option, index) => (jsxs("div", { className: "dsa-cookie-consent-dialogue__option", children: [jsx(Headline, { spaceAfter: "minimum", text: option.name, level: "h3", style: "h4" }, index), jsx(Markdown, { className: "dsa-cookie-consent-dialogue__option-description", children: option.description }), jsx("span", { className: "dsa-cookie-consent-dialogue__label", children: "Always active" })] }, index))), dialogue?.options?.map((option, index) => (jsxs("div", { className: "dsa-cookie-consent-dialogue__option", children: [jsx(Headline, { spaceAfter: "minimum", text: option.name, level: "h3", style: "h4" }, index), jsx(Markdown, { className: "dsa-cookie-consent-dialogue__option-description", children: option.description }), jsxs("div", { className: "dsa-cookie-consent-dialogue__toggle", children: [jsx(Radio, { name: option.name, checked: optionStates?.[index] ?? true, label: "Accept", onChange: () => handleRadioChange(index, true) }), jsx(Radio, { name: option.name, checked: optionStates ? !optionStates[index] : false, label: "Reject", onChange: () => handleRadioChange(index, false) })] })] }, index)))] })] }), jsxs("div", { className: "dsa-cookie-consent-dialogue__buttons", children: [jsx(Button, { size: "small", variant: "tertiary", label: "Accept All", onClick: () => setOptionStates(optionStates?.map(() => true)) }), jsx(Button, { size: "small", variant: "tertiary", label: "Reject All", onClick: () => setOptionStates(optionStates?.map(() => false)) }), jsx(Button, { size: "small", variant: "primary", label: "Save Preferences", onClick: () => setShowDialogue(false) })] })] }), jsx("div", { className: "dsa-cookie-consent-overlay", hidden: !showDialogue })] }));
21
+ return (jsxs("div", { className: "dsa-cookie-consent", ref: ref, children: [jsxs("div", { className: classnames(`dsa-cookie-consent-notice dsa-cookie-consent-notice--${notice?.displayMode}`), children: [jsx(Headline, { spaceAfter: "minimum", text: notice?.title, level: "h2", style: "h3" }), jsx(RichText, { text: notice?.description }), jsxs("div", { className: "dsa-cookie-consent-notice__buttons", children: [jsx(Button, { size: "small", label: notice?.customizeButton?.label, variant: notice?.customizeButton?.variant, onClick: () => setShowDialogue(true) }), jsx(Button, { size: "small", label: notice?.rejectButton?.label, variant: notice?.decisionButtonVariant }), jsx(Button, { size: "small", label: notice?.acceptButton?.label, variant: notice?.decisionButtonVariant })] })] }), revisitButton && revisitButton.toggle && (jsx(Button, { className: "dsa-cookie-consent-revisit", size: "small", variant: "primary", icon: "star", label: revisitButton?.label || "Cookie Preferences", onClick: () => setShowDialogue(true) })), jsxs("div", { className: "dsa-cookie-consent-dialogue", hidden: !showDialogue, "aria-hidden": !showDialogue, children: [jsxs("div", { className: "dsa-cookie-consent-dialogue__header", children: [jsx(Headline, { spaceAfter: "minimum", text: dialogue?.title, level: "h2", style: "h3" }), jsx(Button, { "aria-label": "Close Cookie Consent Dialogue", className: "dsa-cookie-consent-dialogue__close", icon: "close", label: "", onClick: () => setShowDialogue(false) })] }), jsxs("div", { className: "dsa-cookie-consent-dialogue__content", children: [jsx(RichText, { className: "dsa-cookie-consent-dialogue__description", text: dialogue?.description }), jsxs("div", { className: "dsa-cookie-consent-dialogue__options", children: [dialogue?.required?.map((option, index) => (jsxs("div", { className: "dsa-cookie-consent-dialogue__option", children: [jsx(Headline, { spaceAfter: "minimum", text: option.name, level: "h3", style: "h4" }, index), jsx(Markdown, { className: "dsa-cookie-consent-dialogue__option-description", children: option.description }), jsx("span", { className: "dsa-cookie-consent-dialogue__label", children: dialogue?.alwaysActiveLabel || "Always Active" })] }, index))), dialogue?.options?.map((option, index) => (jsxs("div", { className: "dsa-cookie-consent-dialogue__option", children: [jsx(Headline, { spaceAfter: "minimum", text: option.name, level: "h3", style: "h4" }, index), jsx(Markdown, { className: "dsa-cookie-consent-dialogue__option-description", children: option.description }), jsxs("div", { className: "dsa-cookie-consent-dialogue__toggle", children: [jsx(Radio, { name: option.name, checked: optionStates?.[index] ?? true, label: dialogue?.toggleLabels?.accept || "Accept", onChange: () => handleRadioChange(index, true) }), jsx(Radio, { name: option.name, checked: optionStates ? !optionStates[index] : false, label: dialogue?.toggleLabels?.reject || "Reject", onChange: () => handleRadioChange(index, false) })] })] }, index)))] })] }), jsxs("div", { className: "dsa-cookie-consent-dialogue__buttons", children: [jsx(Button, { size: "small", variant: dialogue?.decisionButtonVariant, label: dialogue?.buttons.acceptLabel || "Accept All", onClick: () => setOptionStates(optionStates?.map(() => true)) }), jsx(Button, { size: "small", variant: dialogue?.decisionButtonVariant, label: dialogue?.buttons.rejectLabel || "Reject All", onClick: () => setOptionStates(optionStates?.map(() => false)) }), jsx(Button, { size: "small", variant: "primary", label: dialogue?.buttons.savePreferencesLabel || "Save Preferences", onClick: () => setShowDialogue(false) })] })] }), jsx("div", { className: "dsa-cookie-consent-overlay", hidden: !showDialogue })] }));
22
22
  });
23
23
  const CookieConsentContext = createContext(CookieConsentContextDefault);
24
24
  const CookieConsent = forwardRef((props, ref) => {
@@ -29,7 +29,7 @@ interface SettingsProps {
29
29
  seo: SeoProps;
30
30
  iconSprite?: IconSprite;
31
31
  }
32
- export * from "../../BlogPostProps-6b3cff22.js";
32
+ export * from "../../BlogPostProps-c760fd2a.js";
33
33
  export * from "../../BlogOverviewProps-9f207f1c.js";
34
34
  export * from "../../PageProps-aa29c554.js";
35
35
  export { IconSprite, SettingsProps };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 07 Aug 2025 12:13:44 GMT
3
+ * Generated on Thu, 07 Aug 2025 15:19:49 GMT
4
4
  */
5
5
  :root, [ks-theme] {
6
6
  --ks-background-color-accent-base: var(--ks-color-fg-to-bg-9-base);
@@ -1544,25 +1544,28 @@
1544
1544
  "id": "corporate-cookie-consent--card",
1545
1545
  "group": "Corporate/Cookie Consent",
1546
1546
  "name": "Card",
1547
- "code": "<CookieConsent\n dialogue={{\n description: 'Manage your cookie preferences below.',\n options: [\n {\n checked: true,\n description: 'These cookies help us understand how our visitors interact with the website.',\n name: 'Analytics Cookies'\n },\n {\n checked: true,\n description: 'These cookies are used to deliver advertisements that are relevant to you.',\n name: 'Marketing Cookies'\n },\n {\n checked: true,\n description: 'These cookies allow the website to remember choices you make and provide enhanced, more personal features.',\n name: 'Functional Cookies'\n },\n {\n checked: true,\n description: 'These cookies collect information about how visitors use the website, such as which pages are visited most often and if they get error messages from web pages.',\n name: 'Performance Cookies'\n }\n ],\n required: [\n {\n description: 'These cookies are necessary for the website to function.',\n name: 'Essential Cookies'\n }\n ],\n title: 'Cookie Preferences'\n }}\n notice={{\n acceptButton: {\n label: 'Accept All',\n variant: 'primary'\n },\n customizeButton: {\n label: 'Customize',\n variant: 'tertiary'\n },\n description: 'We use cookies to enhance your experience on our website. You can choose which cookies to accept.',\n displayMode: 'card',\n rejectButton: {\n label: 'Reject All',\n variant: 'tertiary'\n },\n title: 'We use cookies'\n }}\n/>",
1547
+ "code": "<CookieConsent\n dialogue={{\n alwaysActiveLabel: 'Always Active',\n buttons: {\n acceptLabel: 'Accept All',\n rejectLabel: 'Reject All',\n savePreferencesLabel: 'Save Preferences'\n },\n description: 'Manage your cookie preferences below.',\n options: [\n {\n checked: true,\n description: 'These cookies help us understand how our visitors interact with the website.',\n name: 'Analytics Cookies'\n },\n {\n checked: true,\n description: 'These cookies are used to deliver advertisements that are relevant to you.',\n name: 'Marketing Cookies'\n },\n {\n checked: true,\n description: 'These cookies allow the website to remember choices you make and provide enhanced, more personal features.',\n name: 'Functional Cookies'\n },\n {\n checked: true,\n description: 'These cookies collect information about how visitors use the website, such as which pages are visited most often and if they get error messages from web pages.',\n name: 'Performance Cookies'\n }\n ],\n required: [\n {\n description: 'These cookies are necessary for the website to function.',\n name: 'Essential Cookies'\n }\n ],\n title: 'Cookie Preferences',\n toggleLabels: {\n accept: 'Accept',\n reject: 'Reject'\n }\n }}\n notice={{\n acceptButton: {\n label: 'Accept All'\n },\n customizeButton: {\n label: 'Customize',\n variant: 'tertiary'\n },\n decisionButtonVariant: 'primary',\n description: 'We use cookies to enhance your experience on our website. You can choose which cookies to accept.',\n displayMode: 'card',\n rejectButton: {\n label: 'Reject All'\n },\n title: 'We use cookies'\n }}\n revisitButton={{\n label: 'Manage Cookies',\n toggle: true\n }}\n/>",
1548
1548
  "args": {
1549
1549
  "notice": {
1550
1550
  "displayMode": "card",
1551
1551
  "title": "We use cookies",
1552
1552
  "acceptButton": {
1553
- "label": "Accept All",
1554
- "variant": "primary"
1553
+ "label": "Accept All"
1555
1554
  },
1556
1555
  "rejectButton": {
1557
- "label": "Reject All",
1558
- "variant": "tertiary"
1556
+ "label": "Reject All"
1559
1557
  },
1560
1558
  "customizeButton": {
1561
1559
  "label": "Customize",
1562
1560
  "variant": "tertiary"
1563
1561
  },
1562
+ "decisionButtonVariant": "primary",
1564
1563
  "description": "We use cookies to enhance your experience on our website. You can choose which cookies to accept."
1565
1564
  },
1565
+ "revisitButton": {
1566
+ "label": "Manage Cookies",
1567
+ "toggle": true
1568
+ },
1566
1569
  "dialogue": {
1567
1570
  "title": "Cookie Preferences",
1568
1571
  "description": "Manage your cookie preferences below.",
@@ -1572,6 +1575,11 @@
1572
1575
  "description": "These cookies are necessary for the website to function."
1573
1576
  }
1574
1577
  ],
1578
+ "buttons": {
1579
+ "acceptLabel": "Accept All",
1580
+ "rejectLabel": "Reject All",
1581
+ "savePreferencesLabel": "Save Preferences"
1582
+ },
1575
1583
  "options": [
1576
1584
  {
1577
1585
  "name": "Analytics Cookies",
@@ -1593,7 +1601,12 @@
1593
1601
  "description": "These cookies collect information about how visitors use the website, such as which pages are visited most often and if they get error messages from web pages.",
1594
1602
  "checked": true
1595
1603
  }
1596
- ]
1604
+ ],
1605
+ "toggleLabels": {
1606
+ "accept": "Accept",
1607
+ "reject": "Reject"
1608
+ },
1609
+ "alwaysActiveLabel": "Always Active"
1597
1610
  }
1598
1611
  },
1599
1612
  "screenshot": "img/screenshots/corporate-cookie-consent--card.png"
@@ -1602,25 +1615,28 @@
1602
1615
  "id": "corporate-cookie-consent--banner",
1603
1616
  "group": "Corporate/Cookie Consent",
1604
1617
  "name": "Banner",
1605
- "code": "<CookieConsent\n dialogue={{\n description: 'Here you can enable or disable different types of cookies. Essential cookies are always active as they are necessary for the website to function properly. You can change your preferences at any time. Please note that disabling certain cookies may affect your experience on our website.',\n options: [\n {\n checked: true,\n description: 'These cookies help us to understand how visitors interact with our website by collecting and reporting information anonymously.',\n name: 'Statistics Cookies'\n },\n {\n checked: true,\n description: 'These cookies allow the website to remember choices you make, such as your language or region, to provide a more personalized experience.',\n name: 'Personalization Cookies'\n },\n {\n checked: true,\n description: 'Advertising cookies are used to deliver relevant ads and marketing campaigns to you. They track visitors across websites and collect information to provide customized ads.',\n name: 'Advertising Cookies'\n }\n ],\n required: [\n {\n description: 'These cookies are required for basic website functionality, such as page navigation and access to secure areas of the website. The website cannot function properly without these cookies.',\n name: 'Essential Cookies'\n }\n ],\n title: 'Manage Your Cookie Preferences'\n }}\n notice={{\n acceptButton: {\n label: 'Accept All Cookies',\n variant: 'tertiary'\n },\n customizeButton: {\n label: 'Customize Settings',\n variant: 'secondary'\n },\n description: 'We use cookies and similar technologies to personalize content, provide social media features, and analyze our traffic. You can choose which categories you want to allow and change your preferences at any time. For more information, please see our privacy policy.',\n displayMode: 'banner',\n rejectButton: {\n label: 'Reject Non-Essential',\n variant: 'tertiary'\n },\n title: 'Your Privacy Matters to Us'\n }}\n/>",
1618
+ "code": "<CookieConsent\n dialogue={{\n alwaysActiveLabel: 'Always Active',\n buttons: {\n acceptLabel: 'Accept All',\n rejectLabel: 'Reject All',\n savePreferencesLabel: 'Save Preferences'\n },\n decisionButtonVariant: 'tertiary',\n description: 'Here you can enable or disable different types of cookies. Essential cookies are always active as they are necessary for the website to function properly. You can change your preferences at any time. Please note that disabling certain cookies may affect your experience on our website.',\n options: [\n {\n checked: true,\n description: 'These cookies help us to understand how visitors interact with our website by collecting and reporting information anonymously.',\n name: 'Statistics Cookies'\n },\n {\n checked: true,\n description: 'These cookies allow the website to remember choices you make, such as your language or region, to provide a more personalized experience.',\n name: 'Personalization Cookies'\n },\n {\n checked: true,\n description: 'Advertising cookies are used to deliver relevant ads and marketing campaigns to you. They track visitors across websites and collect information to provide customized ads.',\n name: 'Advertising Cookies'\n }\n ],\n required: [\n {\n description: 'These cookies are required for basic website functionality, such as page navigation and access to secure areas of the website. The website cannot function properly without these cookies.',\n name: 'Essential Cookies'\n }\n ],\n title: 'Manage Your Cookie Preferences',\n toggleLabels: {\n accept: 'Accept',\n reject: 'Reject'\n }\n }}\n notice={{\n acceptButton: {\n label: 'Accept All Cookies'\n },\n customizeButton: {\n label: 'Customize Settings',\n variant: 'secondary'\n },\n decisionButtonVariant: 'tertiary',\n description: 'We use cookies and similar technologies to personalize content, provide social media features, and analyze our traffic. You can choose which categories you want to allow and change your preferences at any time. For more information, please see our privacy policy.',\n displayMode: 'banner',\n rejectButton: {\n label: 'Reject Non-Essential'\n },\n title: 'Your Privacy Matters to Us'\n }}\n revisitButton={{\n label: 'Manage Cookies',\n toggle: true\n }}\n/>",
1606
1619
  "args": {
1607
1620
  "notice": {
1608
1621
  "displayMode": "banner",
1609
1622
  "title": "Your Privacy Matters to Us",
1610
1623
  "acceptButton": {
1611
- "label": "Accept All Cookies",
1612
- "variant": "tertiary"
1624
+ "label": "Accept All Cookies"
1613
1625
  },
1614
1626
  "rejectButton": {
1615
- "label": "Reject Non-Essential",
1616
- "variant": "tertiary"
1627
+ "label": "Reject Non-Essential"
1617
1628
  },
1618
1629
  "customizeButton": {
1619
1630
  "label": "Customize Settings",
1620
1631
  "variant": "secondary"
1621
1632
  },
1633
+ "decisionButtonVariant": "tertiary",
1622
1634
  "description": "We use cookies and similar technologies to personalize content, provide social media features, and analyze our traffic. You can choose which categories you want to allow and change your preferences at any time. For more information, please see our privacy policy."
1623
1635
  },
1636
+ "revisitButton": {
1637
+ "label": "Manage Cookies",
1638
+ "toggle": true
1639
+ },
1624
1640
  "dialogue": {
1625
1641
  "title": "Manage Your Cookie Preferences",
1626
1642
  "description": "Here you can enable or disable different types of cookies. Essential cookies are always active as they are necessary for the website to function properly. You can change your preferences at any time. Please note that disabling certain cookies may affect your experience on our website.",
@@ -1630,6 +1646,11 @@
1630
1646
  "description": "These cookies are required for basic website functionality, such as page navigation and access to secure areas of the website. The website cannot function properly without these cookies."
1631
1647
  }
1632
1648
  ],
1649
+ "buttons": {
1650
+ "acceptLabel": "Accept All",
1651
+ "rejectLabel": "Reject All",
1652
+ "savePreferencesLabel": "Save Preferences"
1653
+ },
1633
1654
  "options": [
1634
1655
  {
1635
1656
  "name": "Statistics Cookies",
@@ -1646,7 +1667,13 @@
1646
1667
  "description": "Advertising cookies are used to deliver relevant ads and marketing campaigns to you. They track visitors across websites and collect information to provide customized ads.",
1647
1668
  "checked": true
1648
1669
  }
1649
- ]
1670
+ ],
1671
+ "toggleLabels": {
1672
+ "accept": "Accept",
1673
+ "reject": "Reject"
1674
+ },
1675
+ "alwaysActiveLabel": "Always Active",
1676
+ "decisionButtonVariant": "tertiary"
1650
1677
  }
1651
1678
  },
1652
1679
  "screenshot": "img/screenshots/corporate-cookie-consent--banner.png"
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 07 Aug 2025 12:13:47 GMT
3
+ * Generated on Thu, 07 Aug 2025 15:19:51 GMT
4
4
  */
5
5
  :root [ks-theme=business] {
6
6
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -2727,7 +2727,7 @@
2727
2727
  }
2728
2728
  /**
2729
2729
  * Do not edit directly
2730
- * Generated on Thu, 07 Aug 2025 12:13:52 GMT
2730
+ * Generated on Thu, 07 Aug 2025 15:19:55 GMT
2731
2731
  */
2732
2732
  :root [ks-theme=google] {
2733
2733
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -5458,7 +5458,7 @@
5458
5458
  }
5459
5459
  /**
5460
5460
  * Do not edit directly
5461
- * Generated on Thu, 07 Aug 2025 12:13:49 GMT
5461
+ * Generated on Thu, 07 Aug 2025 15:19:53 GMT
5462
5462
  */
5463
5463
  :root [ks-theme=ngo] {
5464
5464
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -8459,7 +8459,7 @@
8459
8459
  }
8460
8460
  /**
8461
8461
  * Do not edit directly
8462
- * Generated on Thu, 07 Aug 2025 12:13:54 GMT
8462
+ * Generated on Thu, 07 Aug 2025 15:19:57 GMT
8463
8463
  */
8464
8464
  :root [ks-theme=telekom] {
8465
8465
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 07 Aug 2025 12:13:44 GMT
3
+ * Generated on Thu, 07 Aug 2025 15:19:49 GMT
4
4
  */
5
5
 
6
6
  :root, [ks-theme] {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 07 Aug 2025 12:13:45 GMT
3
+ * Generated on Thu, 07 Aug 2025 15:19:49 GMT
4
4
  */
5
5
 
6
6
  export const KsBackgroundColorAccentBase = "#f3f3f4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kickstartds/ds-agency-premium",
3
- "version": "1.6.71--canary.45.2029.0",
3
+ "version": "1.6.71--canary.45.2035.0",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kickstartDS/ds-agency-premium#readme",
6
6
  "bugs": {