@dbcdk/react-components 0.0.124 → 0.0.125
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/page/Page.cjs +1 -1
- package/dist/components/page/Page.js +1 -1
- package/dist/components/page-layout/PageLayout.module.css +1 -1
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.module.css +4 -4
- package/dist/components/tabs/Tabs.cjs +6 -2
- package/dist/components/tabs/Tabs.js +6 -2
- package/dist/components/tabs/Tabs.module.css +10 -1
- package/package.json +1 -1
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
--progress-fill-progress: color-mix(in srgb, var(--color-fg-default) 6%, transparent);
|
|
13
13
|
--progress-fill-missing: color-mix(in srgb, var(--color-fg-default) 8%, transparent);
|
|
14
14
|
--progress-fill-neutral: color-mix(in srgb, var(--color-fg-default) 8%, transparent);
|
|
15
|
-
--progress-fill-success: color-mix(in srgb, var(--color-status-success)
|
|
16
|
-
--progress-fill-info: color-mix(in srgb, var(--color-status-info)
|
|
17
|
-
--progress-fill-warning: color-mix(in srgb, var(--color-status-warning)
|
|
18
|
-
--progress-fill-error: color-mix(in srgb, var(--color-status-error)
|
|
15
|
+
--progress-fill-success: color-mix(in srgb, var(--color-status-success) 95%, transparent);
|
|
16
|
+
--progress-fill-info: color-mix(in srgb, var(--color-status-info) 70%, transparent);
|
|
17
|
+
--progress-fill-warning: color-mix(in srgb, var(--color-status-warning) 70%, transparent);
|
|
18
|
+
--progress-fill-error: color-mix(in srgb, var(--color-status-error) 75%, transparent);
|
|
19
19
|
|
|
20
20
|
position: relative;
|
|
21
21
|
width: 100%;
|
|
@@ -124,8 +124,12 @@ function Tabs({
|
|
|
124
124
|
header ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
125
125
|
"div",
|
|
126
126
|
{
|
|
127
|
-
className: [
|
|
128
|
-
|
|
127
|
+
className: [
|
|
128
|
+
styles__default.default.headerContainer,
|
|
129
|
+
variant === "outlined" ? styles__default.default.headerContainerOutlined : "",
|
|
130
|
+
disableTopPadding ? styles__default.default.disableTopPadding : ""
|
|
131
|
+
].filter(Boolean).join(" "),
|
|
132
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Headline.Headline, { disableMargin: true, size: 2, subheader, addition, children: header })
|
|
129
133
|
}
|
|
130
134
|
) : null,
|
|
131
135
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${styles__default.default.tabs} ${styles__default.default[variant]} ${panelStyle ? styles__default.default.panelStyle : ""}`, children: [
|
|
@@ -118,8 +118,12 @@ function Tabs({
|
|
|
118
118
|
header ? /* @__PURE__ */ jsx(
|
|
119
119
|
"div",
|
|
120
120
|
{
|
|
121
|
-
className: [
|
|
122
|
-
|
|
121
|
+
className: [
|
|
122
|
+
styles.headerContainer,
|
|
123
|
+
variant === "outlined" ? styles.headerContainerOutlined : "",
|
|
124
|
+
disableTopPadding ? styles.disableTopPadding : ""
|
|
125
|
+
].filter(Boolean).join(" "),
|
|
126
|
+
children: /* @__PURE__ */ jsx(Headline, { disableMargin: true, size: 2, subheader, addition, children: header })
|
|
123
127
|
}
|
|
124
128
|
) : null,
|
|
125
129
|
/* @__PURE__ */ jsxs("div", { className: `${styles.tabs} ${styles[variant]} ${panelStyle ? styles.panelStyle : ""}`, children: [
|
|
@@ -183,10 +183,19 @@
|
|
|
183
183
|
Outlined variant
|
|
184
184
|
========================= */
|
|
185
185
|
|
|
186
|
-
.outlined {
|
|
186
|
+
.tabs.outlined {
|
|
187
187
|
gap: var(--spacing-lg);
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
+
.headerContainerOutlined {
|
|
191
|
+
padding-block-start: var(--spacing-sm);
|
|
192
|
+
padding-block-end: var(--spacing-sm);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.headerContainerOutlined.disableTopPadding {
|
|
196
|
+
padding-block-start: 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
190
199
|
.outlined .tab {
|
|
191
200
|
color: var(--color-fg-muted);
|
|
192
201
|
border-block-end: 2px solid var(--color-border-default);
|