@dbcdk/react-components 0.0.114 → 0.0.116
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/components/forms/input-container/InputContainer.cjs +1 -1
- package/dist/components/forms/input-container/InputContainer.js +1 -1
- package/dist/components/table/Table.module.css +4 -0
- package/dist/components/table/components/TableRow.cjs +1 -1
- package/dist/components/table/components/TableRow.js +2 -2
- package/dist/components/toast/Toast.module.css +4 -4
- package/package.json +1 -1
|
@@ -28,7 +28,7 @@ function InputContainer({
|
|
|
28
28
|
label,
|
|
29
29
|
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles__default.default.required, children: " *" })
|
|
30
30
|
] }),
|
|
31
|
-
labelAction &&
|
|
31
|
+
labelAction && labelAction
|
|
32
32
|
] });
|
|
33
33
|
const renderMessageRow = (error || helpText || helpTextAddition) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${error ? styles__default.default.errorText : styles__default.default.helpText} ${styles__default.default.messageRow}`, children: error ? /* @__PURE__ */ jsxRuntime.jsx(InlineStatus.InlineStatus, { severity: "error", disableIcon: true, children: error }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
34
34
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: helpText }),
|
|
@@ -22,7 +22,7 @@ function InputContainer({
|
|
|
22
22
|
label,
|
|
23
23
|
required && /* @__PURE__ */ jsx("span", { className: styles.required, children: " *" })
|
|
24
24
|
] }),
|
|
25
|
-
labelAction &&
|
|
25
|
+
labelAction && labelAction
|
|
26
26
|
] });
|
|
27
27
|
const renderMessageRow = (error || helpText || helpTextAddition) && /* @__PURE__ */ jsx("div", { className: `${error ? styles.errorText : styles.helpText} ${styles.messageRow}`, children: error ? /* @__PURE__ */ jsx(InlineStatus, { severity: "error", disableIcon: true, children: error }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
28
28
|
/* @__PURE__ */ jsx("span", { children: helpText }),
|
|
@@ -146,6 +146,10 @@
|
|
|
146
146
|
border-block-start: var(--spacing-xs) solid var(--table-component-row-bg);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
.embedded [data-show-header='true'] .body .row:first-child .cell {
|
|
150
|
+
border-block-start: none;
|
|
151
|
+
}
|
|
152
|
+
|
|
149
153
|
.headerCell,
|
|
150
154
|
.cell {
|
|
151
155
|
position: relative;
|
|
@@ -49,7 +49,7 @@ function TableRow({
|
|
|
49
49
|
rowSeverity && styles__default.default.severity
|
|
50
50
|
),
|
|
51
51
|
style: {
|
|
52
|
-
["--row-severity-color"]: rowSeverity ? severity.
|
|
52
|
+
["--row-severity-color"]: rowSeverity ? `color-mix(in srgb, ${severity.SeverityBgColor[rowSeverity]} 65%, var(--table-component-row-bg))` : void 0
|
|
53
53
|
},
|
|
54
54
|
tabIndex: onRowClick ? 0 : -1,
|
|
55
55
|
onKeyDown: handleRowKeyDown,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Checkbox } from '../../../components/forms/checkbox/Checkbox';
|
|
3
3
|
import { RadioButton } from '../../../components/forms/radio-buttons/RadioButton';
|
|
4
|
-
import {
|
|
4
|
+
import { SeverityBgColor } from '../../../constants/severity';
|
|
5
5
|
import { useTableRowInteractions } from '../hooks/useTableRowInteractions';
|
|
6
6
|
import { cx } from '../table.classes';
|
|
7
7
|
import styles from '../Table.module.css';
|
|
@@ -43,7 +43,7 @@ function TableRow({
|
|
|
43
43
|
rowSeverity && styles.severity
|
|
44
44
|
),
|
|
45
45
|
style: {
|
|
46
|
-
["--row-severity-color"]: rowSeverity ?
|
|
46
|
+
["--row-severity-color"]: rowSeverity ? `color-mix(in srgb, ${SeverityBgColor[rowSeverity]} 65%, var(--table-component-row-bg))` : void 0
|
|
47
47
|
},
|
|
48
48
|
tabIndex: onRowClick ? 0 : -1,
|
|
49
49
|
onKeyDown: handleRowKeyDown,
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
/* Severity accents */
|
|
36
36
|
.info {
|
|
37
|
-
border-left-color: var(--color-status-info
|
|
37
|
+
border-left-color: var(--color-status-info);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.brand {
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.success {
|
|
45
|
-
border-left-color: var(--color-status-success
|
|
45
|
+
border-left-color: var(--color-status-success);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.warning {
|
|
49
|
-
border-left-color: var(--color-status-warning
|
|
49
|
+
border-left-color: var(--color-status-warning);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.error {
|
|
53
|
-
border-left-color: var(--color-status-error
|
|
53
|
+
border-left-color: var(--color-status-error);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.neutral {
|