@dbcdk/react-components 0.0.163 → 0.0.164
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.
|
@@ -53,7 +53,6 @@ function Tabs({
|
|
|
53
53
|
storageKey,
|
|
54
54
|
onValueChange,
|
|
55
55
|
addition,
|
|
56
|
-
disableTopPadding,
|
|
57
56
|
loading = false,
|
|
58
57
|
children
|
|
59
58
|
}) {
|
|
@@ -139,8 +138,7 @@ function Tabs({
|
|
|
139
138
|
{
|
|
140
139
|
className: [
|
|
141
140
|
styles__default.default.headerContainer,
|
|
142
|
-
variant === "outlined" ? styles__default.default.headerContainerOutlined : ""
|
|
143
|
-
disableTopPadding ? styles__default.default.disableTopPadding : ""
|
|
141
|
+
variant === "outlined" ? styles__default.default.headerContainerOutlined : ""
|
|
144
142
|
].filter(Boolean).join(" "),
|
|
145
143
|
children: /* @__PURE__ */ jsxRuntime.jsx(Headline.Headline, { disableMargin: true, size: 2, subheader, addition, children: header })
|
|
146
144
|
}
|
|
@@ -28,7 +28,6 @@ export interface TabsProps {
|
|
|
28
28
|
storageKey?: string;
|
|
29
29
|
onValueChange?: (id: TabId, tab: TabItem, index: number) => void;
|
|
30
30
|
addition?: ReactNode;
|
|
31
|
-
disableTopPadding?: boolean;
|
|
32
31
|
loading?: boolean;
|
|
33
32
|
/** Composition API */
|
|
34
33
|
children?: ReactNode;
|
|
@@ -46,7 +45,7 @@ type SlotName = 'Item';
|
|
|
46
45
|
type TabsItemComponent = ((props: TabsItemProps) => JSX.Element) & {
|
|
47
46
|
__TABS_SLOT__?: SlotName;
|
|
48
47
|
};
|
|
49
|
-
export declare function Tabs({ header, subheader, variant, panelStyle, tabs, value, defaultValue, storageKey, onValueChange, addition,
|
|
48
|
+
export declare function Tabs({ header, subheader, variant, panelStyle, tabs, value, defaultValue, storageKey, onValueChange, addition, loading, children, }: TabsProps): JSX.Element;
|
|
50
49
|
export declare namespace Tabs {
|
|
51
50
|
var Item: TabsItemComponent;
|
|
52
51
|
}
|
|
@@ -47,7 +47,6 @@ function Tabs({
|
|
|
47
47
|
storageKey,
|
|
48
48
|
onValueChange,
|
|
49
49
|
addition,
|
|
50
|
-
disableTopPadding,
|
|
51
50
|
loading = false,
|
|
52
51
|
children
|
|
53
52
|
}) {
|
|
@@ -133,8 +132,7 @@ function Tabs({
|
|
|
133
132
|
{
|
|
134
133
|
className: [
|
|
135
134
|
styles.headerContainer,
|
|
136
|
-
variant === "outlined" ? styles.headerContainerOutlined : ""
|
|
137
|
-
disableTopPadding ? styles.disableTopPadding : ""
|
|
135
|
+
variant === "outlined" ? styles.headerContainerOutlined : ""
|
|
138
136
|
].filter(Boolean).join(" "),
|
|
139
137
|
children: /* @__PURE__ */ jsx(Headline, { disableMargin: true, size: 2, subheader, addition, children: header })
|
|
140
138
|
}
|
|
@@ -10,12 +10,9 @@
|
|
|
10
10
|
display: flex;
|
|
11
11
|
justify-content: space-between;
|
|
12
12
|
align-items: center;
|
|
13
|
-
padding-block: var(--spacing-lg);
|
|
14
|
-
gap: var(--spacing-md);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.headerContainer.disableTopPadding {
|
|
18
13
|
padding-block-start: 0;
|
|
14
|
+
padding-block-end: var(--spacing-lg);
|
|
15
|
+
gap: var(--spacing-md);
|
|
19
16
|
}
|
|
20
17
|
|
|
21
18
|
/* Outer wrapper for tablist + content */
|
|
@@ -188,12 +185,7 @@
|
|
|
188
185
|
}
|
|
189
186
|
|
|
190
187
|
.headerContainerOutlined {
|
|
191
|
-
padding-block-
|
|
192
|
-
padding-block-end: 0;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.headerContainerOutlined.disableTopPadding {
|
|
196
|
-
padding-block-start: 0;
|
|
188
|
+
padding-block-end: var(--spacing-xs);
|
|
197
189
|
}
|
|
198
190
|
|
|
199
191
|
.outlined .tab {
|
|
@@ -240,7 +232,8 @@
|
|
|
240
232
|
|
|
241
233
|
@media (max-width: 767px) {
|
|
242
234
|
.headerContainer {
|
|
243
|
-
padding-block:
|
|
235
|
+
padding-block-start: 0;
|
|
236
|
+
padding-block-end: var(--spacing-md);
|
|
244
237
|
}
|
|
245
238
|
|
|
246
239
|
.tabButton {
|