@dbcdk/react-components 0.0.149 → 0.0.150

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.
@@ -18,6 +18,7 @@ function Modal({
18
18
  onRequestClose,
19
19
  header,
20
20
  subheader,
21
+ headerAddition,
21
22
  content,
22
23
  children,
23
24
  primaryAction,
@@ -143,6 +144,7 @@ function Modal({
143
144
  size: 2,
144
145
  disableMargin: true,
145
146
  subheader,
147
+ addition: headerAddition,
146
148
  children: header
147
149
  }
148
150
  ),
@@ -14,6 +14,7 @@ export type ModalProps = {
14
14
  onRequestClose: () => void;
15
15
  header?: ReactNode;
16
16
  subheader?: ReactNode;
17
+ headerAddition?: ReactNode;
17
18
  content?: ReactNode;
18
19
  children?: ReactNode;
19
20
  primaryAction?: ModalActionConfig;
@@ -25,4 +26,4 @@ export type ModalProps = {
25
26
  width?: number | string;
26
27
  ariaLabel?: string;
27
28
  };
28
- export declare function Modal({ isOpen, onRequestClose, header, subheader, content, children, primaryAction, secondaryAction, closeOnOverlayClick, severity, disableContentSpacing, isLoading, dataCy, width, ariaLabel, }: ModalProps): React.ReactNode;
29
+ export declare function Modal({ isOpen, onRequestClose, header, subheader, headerAddition, content, children, primaryAction, secondaryAction, closeOnOverlayClick, severity, disableContentSpacing, isLoading, dataCy, width, ariaLabel, }: ModalProps): React.ReactNode;
@@ -12,6 +12,7 @@ function Modal({
12
12
  onRequestClose,
13
13
  header,
14
14
  subheader,
15
+ headerAddition,
15
16
  content,
16
17
  children,
17
18
  primaryAction,
@@ -137,6 +138,7 @@ function Modal({
137
138
  size: 2,
138
139
  disableMargin: true,
139
140
  subheader,
141
+ addition: headerAddition,
140
142
  children: header
141
143
  }
142
144
  ),
@@ -237,7 +237,7 @@ body.dbc-app {
237
237
  color: var(--color-code-fg, inherit);
238
238
  background-color: var(--color-code-bg, var(--color-bg-contextual));
239
239
  border-radius: var(--border-radius-sm);
240
- padding-inline: var(--spacing-xs);
240
+ padding-inline: var(--spacing-xxs);
241
241
  font-family: var(--font-family-mono);
242
242
  font-size: 0.9em;
243
243
  box-decoration-break: clone;
@@ -55,6 +55,8 @@ html {
55
55
 
56
56
  --dbc-amber-700: light-dark(#b45309, #f59e0b);
57
57
  --dbc-amber-100: light-dark(#fff7ed, #2b1b00);
58
+ /* Fixed (not light-dark): needs to stay a legible pale gold behind dark ink in both schemes */
59
+ --dbc-amber-200: #fde68a;
58
60
  --dbc-amber-800: light-dark(#92400e, #fcd34d);
59
61
  --dbc-amber-400: light-dark(#f59e0b, #fbbf24);
60
62
 
@@ -99,8 +101,8 @@ html {
99
101
  --color-bg-selected-hover: var(--dbc-blue-150);
100
102
 
101
103
  /* Highlight */
102
- --color-highlight-bg: var(--color-bg-selected-hover);
103
- --color-highlight-fg: var(--color-fg-default);
104
+ --color-highlight-bg: var(--dbc-amber-200);
105
+ --color-highlight-fg: #1a1a1a;
104
106
 
105
107
  --color-neutral: var(--dbc-neutral-200);
106
108
 
package/dist/styles.css CHANGED
@@ -237,7 +237,7 @@ body.dbc-app {
237
237
  color: var(--color-code-fg, inherit);
238
238
  background-color: var(--color-code-bg, var(--color-bg-contextual));
239
239
  border-radius: var(--border-radius-sm);
240
- padding-inline: var(--spacing-xs);
240
+ padding-inline: var(--spacing-xxs);
241
241
  font-family: var(--font-family-mono);
242
242
  font-size: 0.9em;
243
243
  box-decoration-break: clone;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbcdk/react-components",
3
- "version": "0.0.149",
3
+ "version": "0.0.150",
4
4
  "description": "Reusable React components for DBC projects",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -1,121 +0,0 @@
1
- :root {
2
- /* Colors */
3
- --color-primary: #1e88e5;
4
- --color-primary-hover: #007bb0;
5
- --color-highlight: #3b99e0;
6
- --focus-ring: 0 0 0 2px #3b99e0;
7
- --color-primary-hover: #0932b6;
8
- --color-secondary: #6b7280;
9
- --color-secondary-hover: #4b5563;
10
- --color-accent: #ec4899;
11
- --color-accent-hover: #be185d;
12
-
13
- --color-highlight: #0932b6;
14
- --color-hover: var(--opac-bg-light);
15
-
16
- --color-background: #ffffff;
17
-
18
- --color-text: #111827;
19
- --color-text-on-primary: var(--color-text-inverse);
20
- --color-text-on-highlight: var(--color-text-inverse);
21
- --color-text-on-secondary: var(--color-text-inverse);
22
- --color-text-muted: #6b7280;
23
- --color-text-inverse: #ffffff;
24
-
25
- --color-border: #e5e7eb;
26
- --color-border-strong: #d1d5db;
27
-
28
- --color-success: #16a34a;
29
- --color-warning: #f59e0b;
30
- --color-error: #dc2626;
31
- --color-info: #0ea5e9;
32
-
33
- --color-chart-empty: color-mix(in srgb, var(--color-text-muted) 15%, rgb(255 255 255 / 0));
34
- --color-chart-neutral: color-mix(in srgb, var(--color-text-muted) 25%, rgb(255 255 255 / 0));
35
- --color-chart-primary: color-mix(in srgb, var(--color-primary) 75%, rgb(255 255 255 / 0));
36
- --color-chart-success: color-mix(in srgb, var(--color-success) 75%, rgb(255 255 255 / 0));
37
- --color-chart-warning: color-mix(in srgb, var(--color-warning) 75%, rgb(255 255 255 / 0));
38
- --color-chart-brand: color-mix(in srgb, var(--color-accent) 75%, rgb(255 255 255 / 0));
39
- --color-chart-info: color-mix(in srgb, var(--color-info) 75%, rgb(255 255 255 / 0));
40
- --color-chart-error: color-mix(in srgb, var(--color-error) 75%, rgb(255 255 255 / 0));
41
-
42
- /* Legacy aliases */
43
- --color-chart-blue: var(--color-chart-primary);
44
- --color-chart-green: var(--color-chart-success);
45
- --color-chart-amber: var(--color-chart-warning);
46
- --color-chart-pink: var(--color-chart-brand);
47
- --color-chart-sky: var(--color-chart-info);
48
- --color-chart-red: var(--color-chart-error);
49
-
50
- --opac-bg-light: rgba(0, 0, 0, 0.025);
51
- --opac-bg-default: rgba(0, 0, 0, 0.05);
52
- --opac-bg-dark: rgba(0, 0, 0, 0.1);
53
- --opac-bg-dark-inverse: rgba(255, 255, 255, 0.1);
54
-
55
- /* Spacing */
56
- --spacing-xxs: 0.25rem;
57
- --spacing-xs: 0.5rem;
58
- --spacing-sm: 0.75rem;
59
- --spacing-md: 1rem;
60
- --spacing-lg: 1.5rem;
61
- --spacing-xl: 2rem;
62
- --spacing-2xl: 3rem;
63
-
64
- --icon-size: 20px;
65
-
66
- --component-size-xs: 1.5rem;
67
- --component-size-sm: 2rem;
68
- --component-size-md: 2.5rem;
69
- --component-size-lg: 3rem;
70
- --component-size-xl: 4rem;
71
-
72
- /* Borders */
73
-
74
- --border-width-thin: 1px;
75
- --border-width-thick: 2px;
76
-
77
- --border-radius-none: 0;
78
- --border-radius-default: 0.25rem;
79
- --border-radius-rounded: 2rem;
80
- --border-radius-round: 50%;
81
-
82
- /* Typography */
83
- --font-family: Roboto, -apple-system, 'Segoe UI', Roboto, sans-serif;
84
- --font-family-mono: ui-monospace, SFMono-Regular, monospace;
85
-
86
- --font-size-xs: 0.75rem;
87
- --font-size-sm: 0.875rem;
88
- --font-size-md: 1rem;
89
- --font-size-lg: 1.25rem;
90
- --font-size-xl: 2rem;
91
- --font-size-2xl: 3rem;
92
-
93
- --font-weight-regular: 400;
94
- --font-weight-medium: 500;
95
- --font-weight-bold: 700;
96
-
97
- --line-height-tight: 1.25;
98
- --line-height-normal: 1.5;
99
- --line-height-relaxed: 1.75;
100
-
101
- /* Overlay */
102
- --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
103
- --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
104
- --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
105
- --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
106
- --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
107
-
108
- /* Transitions */
109
- --transition-fast: 150ms ease-in-out;
110
- --transition-normal: 250ms ease-in-out;
111
- --transition-slow: 400ms ease-in-out;
112
-
113
- --focus-ring: 0 0 0 2px var(--color-primary);
114
-
115
- /* Layers */
116
- --z-dropdown: 1000;
117
- --z-sticky: 1100;
118
- --z-modal: 1200;
119
- --z-popover: 1300;
120
- --z-tooltip: 1400;
121
- }
@@ -1,2 +0,0 @@
1
- @import '../styles/themes/forfatterweb/light.css';
2
- @import '../index.css';