@redacto.io/consent-sdk-react 10.0.0 → 10.1.0-beta.1

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.
@@ -66,6 +66,14 @@ var NOTICE_FONT_CATALOGUE = [
66
66
  var NOTICE_FONT_ENTRY_BY_ID = Object.fromEntries(NOTICE_FONT_CATALOGUE.map((entry) => [entry.id, entry]));
67
67
 
68
68
  // src/shared/constants.ts
69
+ var REQUIRED_MARKER_GLYPH = "*";
70
+ var REQUIRED_MARKER_ARIA_LABEL = "required";
71
+ var REQUIRED_MARKER_COLOR = "red";
72
+ var REQUIRED_MARKER_GAP = "4px";
73
+ var REQUIRED_MARKER_STYLE = {
74
+ color: REQUIRED_MARKER_COLOR,
75
+ marginLeft: REQUIRED_MARKER_GAP
76
+ };
69
77
  var INHERIT_FONT_FAMILY = "inherit";
70
78
  var NOTICE_FONT_STACKS = Object.fromEntries(
71
79
  NOTICE_FONT_CATALOGUE.map((entry) => [entry.id, entry.stack])
@@ -171,6 +179,9 @@ var injectNoticeFontStyles = () => {
171
179
  export {
172
180
  NOTICE_FONT_CATALOGUE,
173
181
  NOTICE_FONT_ENTRY_BY_ID,
182
+ REQUIRED_MARKER_GLYPH,
183
+ REQUIRED_MARKER_ARIA_LABEL,
184
+ REQUIRED_MARKER_STYLE,
174
185
  FONT_NAME_QUOTE_CHARACTERS,
175
186
  FONT_FAMILY_SEPARATOR,
176
187
  NOTICE_FONT_FACE_STYLE_ID_PREFIX,
package/dist/fonts.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { N as NoticeFontEntry, a as NoticeFontSourceValue } from './types-6Aj7faxL.mjs';
2
- export { b as NoticeFontFormat, c as NoticeFontGenericFallback, d as NoticeSystemFont, e as NoticeWebFont } from './types-6Aj7faxL.mjs';
1
+ import { N as NoticeFontEntry, a as NoticeFontSourceValue } from './types-xaCyZUfo.mjs';
2
+ export { b as NoticeFontFormat, c as NoticeFontGenericFallback, d as NoticeSystemFont, e as NoticeWebFont } from './types-xaCyZUfo.mjs';
3
3
 
4
4
  /**
5
5
  * Every font family the console can assign to a notice, in dropdown order
package/dist/fonts.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { N as NoticeFontEntry, a as NoticeFontSourceValue } from './types-6Aj7faxL.js';
2
- export { b as NoticeFontFormat, c as NoticeFontGenericFallback, d as NoticeSystemFont, e as NoticeWebFont } from './types-6Aj7faxL.js';
1
+ import { N as NoticeFontEntry, a as NoticeFontSourceValue } from './types-xaCyZUfo.js';
2
+ export { b as NoticeFontFormat, c as NoticeFontGenericFallback, d as NoticeSystemFont, e as NoticeWebFont } from './types-xaCyZUfo.js';
3
3
 
4
4
  /**
5
5
  * Every font family the console can assign to a notice, in dropdown order
package/dist/fonts.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  NOTICE_FONT_CATALOGUE,
3
3
  resolveNoticeFontFamily,
4
4
  toNoticeFontValue
5
- } from "./chunk-FEGTW73Q.mjs";
5
+ } from "./chunk-FT5G2PXK.mjs";
6
6
  export {
7
7
  NOTICE_FONT_CATALOGUE,
8
8
  resolveNoticeFontFamily,
package/dist/index.d.mts CHANGED
@@ -1,13 +1,19 @@
1
1
  import * as react from 'react';
2
2
  import react__default from 'react';
3
- import { f as NoticeFontOptions } from './types-6Aj7faxL.mjs';
3
+ import { f as NoticeFontOptions } from './types-xaCyZUfo.mjs';
4
4
 
5
5
  type Settings$1 = {
6
6
  button: {
7
+ /** Styles the "accept selected" button. */
7
8
  accept: {
8
9
  backgroundColor: string;
9
10
  textColor: string;
10
11
  };
12
+ /** Optional: the accept-all shortcut falls back to `accept` when unset. */
13
+ acceptAll?: {
14
+ backgroundColor: string;
15
+ textColor: string;
16
+ };
11
17
  decline: {
12
18
  backgroundColor: string;
13
19
  textColor: string;
package/dist/index.d.ts CHANGED
@@ -1,13 +1,19 @@
1
1
  import * as react from 'react';
2
2
  import react__default from 'react';
3
- import { f as NoticeFontOptions } from './types-6Aj7faxL.js';
3
+ import { f as NoticeFontOptions } from './types-xaCyZUfo.js';
4
4
 
5
5
  type Settings$1 = {
6
6
  button: {
7
+ /** Styles the "accept selected" button. */
7
8
  accept: {
8
9
  backgroundColor: string;
9
10
  textColor: string;
10
11
  };
12
+ /** Optional: the accept-all shortcut falls back to `accept` when unset. */
13
+ acceptAll?: {
14
+ backgroundColor: string;
15
+ textColor: string;
16
+ };
11
17
  decline: {
12
18
  backgroundColor: string;
13
19
  textColor: string;