@dbcdk/react-components 0.0.188 → 0.0.190
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/accordion/Accordion.cjs +4 -8
- package/dist/components/accordion/Accordion.d.ts +1 -1
- package/dist/components/accordion/Accordion.js +4 -8
- package/dist/components/accordion/Accordion.module.css +55 -6
- package/dist/components/accordion/components/AccordionRow.cjs +2 -2
- package/dist/components/accordion/components/AccordionRow.d.ts +2 -2
- package/dist/components/accordion/components/AccordionRow.js +2 -2
- package/dist/components/accordion/components/AccordionRow.module.css +24 -2
- package/dist/components/badge/Badge.module.css +11 -11
- package/dist/components/breadcrumbs/Breadcrumbs.cjs +10 -7
- package/dist/components/breadcrumbs/Breadcrumbs.js +10 -7
- package/dist/components/breadcrumbs/Breadcrumbs.module.css +1 -5
- package/dist/components/button/Button.module.css +4 -2
- package/dist/components/chip/Chip.module.css +15 -1
- package/dist/components/circle/Circle.module.css +4 -0
- package/dist/components/forms/input/Input.module.css +2 -1
- package/dist/components/forms/input-container/InputContainer.cjs +11 -4
- package/dist/components/forms/input-container/InputContainer.d.ts +4 -4
- package/dist/components/forms/input-container/InputContainer.js +11 -4
- package/dist/components/forms/text-area/Textarea.cjs +2 -1
- package/dist/components/forms/text-area/Textarea.js +2 -1
- package/dist/components/metric-tile/MetricTile.cjs +25 -0
- package/dist/components/metric-tile/MetricTile.d.ts +1 -0
- package/dist/components/metric-tile/MetricTile.js +25 -0
- package/dist/components/metric-tile/MetricTile.module.css +8 -0
- package/dist/components/nav-bar/NavBar.d.ts +1 -0
- package/dist/components/overlay/tooltip/TooltipProvider.cjs +9 -5
- package/dist/components/overlay/tooltip/TooltipProvider.js +9 -5
- package/dist/components/page-layout/PageLayout.module.css +8 -1
- package/dist/components/sidebar/components/SidebarItem.cjs +2 -0
- package/dist/components/sidebar/components/SidebarItem.d.ts +2 -1
- package/dist/components/sidebar/components/SidebarItem.js +2 -0
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.cjs +4 -0
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.d.ts +2 -1
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.js +4 -0
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.cjs +6 -1
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.d.ts +2 -1
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.js +6 -1
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.module.css +14 -0
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.cjs +13 -2
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.js +13 -2
- package/dist/components/table/Table.cjs +1 -0
- package/dist/components/table/Table.js +1 -0
- package/dist/components/table/Table.module.css +8 -5
- package/dist/components/table/Table.types.d.ts +1 -0
- package/dist/components/table/components/TableHeader.cjs +2 -0
- package/dist/components/table/components/TableHeader.d.ts +2 -1
- package/dist/components/table/components/TableHeader.js +2 -0
- package/dist/components/table/components/TableHeaderCell.cjs +3 -2
- package/dist/components/table/components/TableHeaderCell.d.ts +2 -1
- package/dist/components/table/components/TableHeaderCell.js +4 -3
- package/dist/components/table/components/TableRow.cjs +1 -0
- package/dist/components/table/components/TableRow.js +1 -0
- package/dist/components/table/tanstackTable.utils.cjs +3 -2
- package/dist/components/table/tanstackTable.utils.js +3 -2
- package/dist/components/tabs/Tabs.module.css +34 -6
- package/dist/styles/styles.css +39 -3
- package/dist/styles.css +39 -3
- package/package.json +1 -1
|
@@ -144,6 +144,7 @@ function TableRow({
|
|
|
144
144
|
{
|
|
145
145
|
className: table_classes.cx(
|
|
146
146
|
styles__default.default.cell,
|
|
147
|
+
column.muted && "dbc-muted-text",
|
|
147
148
|
showRowActions && styles__default.default.actionCell,
|
|
148
149
|
allowOverflow && styles__default.default.allowOverflow,
|
|
149
150
|
allowWrap ? styles__default.default.allowWrap : styles__default.default.nowrap,
|
|
@@ -20,7 +20,7 @@ function buildColumnVisibilityFromVisibleIds(defs, visibleColumnIds) {
|
|
|
20
20
|
}
|
|
21
21
|
function mapDefsToColumnItems(defs, columnVisibility, resolvedLayout = {}) {
|
|
22
22
|
return defs.map((def, index) => {
|
|
23
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
23
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
24
24
|
const id = getColumnId(def, index);
|
|
25
25
|
const accessorKey = def.accessorKey;
|
|
26
26
|
const accessorFn = def.accessorFn;
|
|
@@ -52,9 +52,10 @@ function mapDefsToColumnItems(defs, columnVisibility, resolvedLayout = {}) {
|
|
|
52
52
|
verticalAlign: meta.verticalAlign,
|
|
53
53
|
emptyPlaceholder: (_e = meta.emptyPlaceholder) != null ? _e : "-",
|
|
54
54
|
allowWrap: (_f = meta.allowWrap) != null ? _f : false,
|
|
55
|
+
muted: (_g = meta.muted) != null ? _g : false,
|
|
55
56
|
severity: meta.severity,
|
|
56
57
|
divider: meta.divider,
|
|
57
|
-
allowOverflow: (
|
|
58
|
+
allowOverflow: (_h = meta.allowOverflow) != null ? _h : false
|
|
58
59
|
};
|
|
59
60
|
});
|
|
60
61
|
}
|
|
@@ -18,7 +18,7 @@ function buildColumnVisibilityFromVisibleIds(defs, visibleColumnIds) {
|
|
|
18
18
|
}
|
|
19
19
|
function mapDefsToColumnItems(defs, columnVisibility, resolvedLayout = {}) {
|
|
20
20
|
return defs.map((def, index) => {
|
|
21
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
21
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
22
22
|
const id = getColumnId(def, index);
|
|
23
23
|
const accessorKey = def.accessorKey;
|
|
24
24
|
const accessorFn = def.accessorFn;
|
|
@@ -50,9 +50,10 @@ function mapDefsToColumnItems(defs, columnVisibility, resolvedLayout = {}) {
|
|
|
50
50
|
verticalAlign: meta.verticalAlign,
|
|
51
51
|
emptyPlaceholder: (_e = meta.emptyPlaceholder) != null ? _e : "-",
|
|
52
52
|
allowWrap: (_f = meta.allowWrap) != null ? _f : false,
|
|
53
|
+
muted: (_g = meta.muted) != null ? _g : false,
|
|
53
54
|
severity: meta.severity,
|
|
54
55
|
divider: meta.divider,
|
|
55
|
-
allowOverflow: (
|
|
56
|
+
allowOverflow: (_h = meta.allowOverflow) != null ? _h : false
|
|
56
57
|
};
|
|
57
58
|
});
|
|
58
59
|
}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
squeezing it. */
|
|
48
48
|
.tabListAddition {
|
|
49
49
|
display: flex;
|
|
50
|
-
align-items:
|
|
50
|
+
align-items: start;
|
|
51
51
|
flex-shrink: 0;
|
|
52
52
|
gap: var(--spacing-sm);
|
|
53
53
|
margin-inline-start: auto;
|
|
@@ -220,7 +220,17 @@
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
.filled > .tabList {
|
|
223
|
-
|
|
223
|
+
position: relative;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.filled > .tabList::after {
|
|
227
|
+
content: '';
|
|
228
|
+
position: absolute;
|
|
229
|
+
inset-inline: 0;
|
|
230
|
+
inset-block-end: 0;
|
|
231
|
+
block-size: 1px;
|
|
232
|
+
background: var(--color-border-subtle);
|
|
233
|
+
pointer-events: none;
|
|
224
234
|
}
|
|
225
235
|
|
|
226
236
|
/* One continuous backdrop behind the whole button row, so the curved gap
|
|
@@ -232,6 +242,15 @@
|
|
|
232
242
|
border-start-start-radius: var(--border-radius-md);
|
|
233
243
|
}
|
|
234
244
|
|
|
245
|
+
.filled > .tabList > .tabButtons > .tab > .tabButton {
|
|
246
|
+
padding-block: var(--spacing-xs);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.filled > .tabList > .tabButtons > .tab > .tabButton .icon svg {
|
|
250
|
+
inline-size: var(--icon-size-sm);
|
|
251
|
+
block-size: var(--icon-size-sm);
|
|
252
|
+
}
|
|
253
|
+
|
|
235
254
|
.filled > .tabList > .tabButtons.tabButtonsEnd {
|
|
236
255
|
border-start-end-radius: var(--border-radius-md);
|
|
237
256
|
}
|
|
@@ -249,7 +268,8 @@
|
|
|
249
268
|
|
|
250
269
|
.filled > .tabList > .tabButtons > .tab {
|
|
251
270
|
border: 1px solid transparent;
|
|
252
|
-
border-block-end:
|
|
271
|
+
border-block-end-width: 1px;
|
|
272
|
+
margin-block-end: -1px;
|
|
253
273
|
color: var(--color-fg-muted);
|
|
254
274
|
position: relative;
|
|
255
275
|
transition:
|
|
@@ -271,18 +291,26 @@
|
|
|
271
291
|
border-block-end-color: var(--color-bg-surface);
|
|
272
292
|
border-start-start-radius: var(--border-radius-md);
|
|
273
293
|
border-start-end-radius: var(--border-radius-md);
|
|
274
|
-
margin-block-end: -1px;
|
|
275
294
|
z-index: 1;
|
|
276
295
|
color: var(--color-fg-default);
|
|
277
296
|
}
|
|
278
297
|
|
|
298
|
+
.filled > .tabList > .tabButtons > .tab.active::after {
|
|
299
|
+
content: '';
|
|
300
|
+
position: absolute;
|
|
301
|
+
inset-inline: -1px;
|
|
302
|
+
inset-block-end: -1px;
|
|
303
|
+
block-size: 1px;
|
|
304
|
+
background: var(--color-bg-surface);
|
|
305
|
+
}
|
|
306
|
+
|
|
279
307
|
.filled > .tabContent {
|
|
280
308
|
background: var(--color-bg-surface);
|
|
281
309
|
border: 1px solid var(--color-border-subtle);
|
|
282
310
|
border-block-start: none;
|
|
283
311
|
border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
|
|
284
312
|
box-shadow: var(--shadow-xs);
|
|
285
|
-
padding: var(--spacing-md);
|
|
313
|
+
padding: calc(var(--spacing-md) + var(--spacing-xs)) var(--spacing-md) var(--spacing-md);
|
|
286
314
|
}
|
|
287
315
|
|
|
288
316
|
/* =========================
|
|
@@ -362,7 +390,7 @@
|
|
|
362
390
|
|
|
363
391
|
.filled > .tabContent,
|
|
364
392
|
.panelStyle.outlined > .tabContent {
|
|
365
|
-
padding-block: var(--spacing-sm);
|
|
393
|
+
padding-block: calc(var(--spacing-sm) + var(--spacing-xs)) var(--spacing-sm);
|
|
366
394
|
padding-inline: var(--spacing-sm);
|
|
367
395
|
}
|
|
368
396
|
|
package/dist/styles/styles.css
CHANGED
|
@@ -72,9 +72,45 @@ body.dbc-app {
|
|
|
72
72
|
font-family: monospace;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
.dbc-pulse {
|
|
76
|
+
position: relative;
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
border-radius: var(--border-radius-round);
|
|
81
|
+
color: var(--color-primary-500, var(--color-brand));
|
|
82
|
+
transform-origin: center;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.dbc-pulse::after {
|
|
86
|
+
content: '';
|
|
87
|
+
position: absolute;
|
|
88
|
+
inset: 0;
|
|
89
|
+
border-radius: inherit;
|
|
90
|
+
animation: dbc-pulse 1.8s ease-out infinite;
|
|
91
|
+
pointer-events: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@keyframes dbc-pulse {
|
|
95
|
+
0% {
|
|
96
|
+
opacity: 0.2;
|
|
97
|
+
}
|
|
98
|
+
20% {
|
|
99
|
+
opacity: 0.55;
|
|
100
|
+
}
|
|
101
|
+
60% {
|
|
102
|
+
opacity: 0.15;
|
|
103
|
+
}
|
|
104
|
+
100% {
|
|
105
|
+
opacity: 0;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@media (prefers-reduced-motion: reduce) {
|
|
110
|
+
.dbc-pulse::after {
|
|
111
|
+
animation: none;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
78
114
|
|
|
79
115
|
.dbc-table {
|
|
80
116
|
--card-label-width: 260px;
|
package/dist/styles.css
CHANGED
|
@@ -72,9 +72,45 @@ body.dbc-app {
|
|
|
72
72
|
font-family: monospace;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
.dbc-pulse {
|
|
76
|
+
position: relative;
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
border-radius: var(--border-radius-round);
|
|
81
|
+
color: var(--color-primary-500, var(--color-brand));
|
|
82
|
+
transform-origin: center;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.dbc-pulse::after {
|
|
86
|
+
content: '';
|
|
87
|
+
position: absolute;
|
|
88
|
+
inset: 0;
|
|
89
|
+
border-radius: inherit;
|
|
90
|
+
animation: dbc-pulse 1.8s ease-out infinite;
|
|
91
|
+
pointer-events: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@keyframes dbc-pulse {
|
|
95
|
+
0% {
|
|
96
|
+
opacity: 0.2;
|
|
97
|
+
}
|
|
98
|
+
20% {
|
|
99
|
+
opacity: 0.55;
|
|
100
|
+
}
|
|
101
|
+
60% {
|
|
102
|
+
opacity: 0.15;
|
|
103
|
+
}
|
|
104
|
+
100% {
|
|
105
|
+
opacity: 0;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@media (prefers-reduced-motion: reduce) {
|
|
110
|
+
.dbc-pulse::after {
|
|
111
|
+
animation: none;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
78
114
|
|
|
79
115
|
.dbc-table {
|
|
80
116
|
--card-label-width: 260px;
|