@dbcdk/react-components 0.0.3 → 0.0.5
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/assets/logo.cjs +10 -10
- package/dist/assets/logo.js +10 -10
- package/dist/components/__stories__/story-components/Colors.cjs +159 -0
- package/dist/components/__stories__/story-components/Colors.d.ts +10 -0
- package/dist/components/__stories__/story-components/Colors.js +151 -0
- package/dist/components/__stories__/story-components/Colors.module.css +27 -0
- package/dist/components/__stories__/story-components/Spacing.cjs +190 -0
- package/dist/components/__stories__/story-components/Spacing.d.ts +1 -0
- package/dist/components/__stories__/story-components/Spacing.js +184 -0
- package/dist/components/__stories__/story-components/Spacing.module.css +154 -0
- package/dist/components/app-header/AppHeader.module.css +10 -15
- package/dist/components/attribute-chip/AttributeChip.cjs +22 -0
- package/dist/components/attribute-chip/AttributeChip.d.ts +8 -0
- package/dist/components/attribute-chip/AttributeChip.js +16 -0
- package/dist/components/attribute-chip/AttributeChip.module.css +65 -0
- package/dist/components/avatar/Avatar.cjs +38 -4
- package/dist/components/avatar/Avatar.d.ts +4 -2
- package/dist/components/avatar/Avatar.js +39 -5
- package/dist/components/avatar/Avatar.module.css +27 -0
- package/dist/components/breadcrumbs/Breadcrumbs.cjs +1 -2
- package/dist/components/breadcrumbs/Breadcrumbs.js +1 -2
- package/dist/components/breadcrumbs/Breadcrumbs.module.css +19 -22
- package/dist/components/button/Button.cjs +20 -12
- package/dist/components/button/Button.d.ts +4 -1
- package/dist/components/button/Button.js +20 -12
- package/dist/components/button/Button.module.css +118 -55
- package/dist/components/card/Card.cjs +53 -13
- package/dist/components/card/Card.d.ts +21 -6
- package/dist/components/card/Card.js +54 -14
- package/dist/components/card/Card.module.css +148 -44
- package/dist/components/card-container/CardContainer.cjs +6 -5
- package/dist/components/card-container/CardContainer.d.ts +5 -2
- package/dist/components/card-container/CardContainer.js +6 -5
- package/dist/components/card-container/CardContainer.module.css +40 -0
- package/dist/components/checkbox/Checkbox.cjs +3 -4
- package/dist/components/checkbox/Checkbox.d.ts +1 -1
- package/dist/components/checkbox/Checkbox.js +3 -4
- package/dist/components/checkbox/Checkbox.module.css +10 -10
- package/dist/components/chip/Chip.cjs +2 -1
- package/dist/components/chip/Chip.d.ts +2 -1
- package/dist/components/chip/Chip.js +2 -1
- package/dist/components/chip/Chip.module.css +42 -27
- package/dist/components/circle/Circle.module.css +11 -11
- package/dist/components/clear-button/ClearButton.cjs +3 -3
- package/dist/components/clear-button/ClearButton.js +3 -3
- package/dist/components/clear-button/ClearButton.module.css +8 -7
- package/dist/components/code-block/CodeBlock.cjs +18 -0
- package/dist/components/code-block/CodeBlock.d.ts +6 -0
- package/dist/components/code-block/CodeBlock.js +12 -0
- package/dist/components/code-block/CodeBlock.module.css +60 -0
- package/dist/components/copy-button/CopyButton.cjs +35 -0
- package/dist/components/copy-button/CopyButton.d.ts +9 -0
- package/dist/components/copy-button/CopyButton.js +29 -0
- package/dist/components/copy-button/CopyButton.module.css +6 -0
- package/dist/components/datetime-picker/DateTimePicker.cjs +504 -0
- package/dist/components/datetime-picker/DateTimePicker.d.ts +39 -0
- package/dist/components/datetime-picker/DateTimePicker.js +498 -0
- package/dist/components/datetime-picker/DateTimePicker.module.css +144 -0
- package/dist/components/filter-field/FilterField.cjs +34 -19
- package/dist/components/filter-field/FilterField.d.ts +2 -2
- package/dist/components/filter-field/FilterField.js +35 -20
- package/dist/components/filter-field/FilterField.module.css +14 -20
- package/dist/components/headline/Headline.cjs +10 -4
- package/dist/components/headline/Headline.d.ts +9 -1
- package/dist/components/headline/Headline.js +10 -4
- package/dist/components/headline/Headline.module.css +32 -7
- package/dist/components/icon/Icon.module.css +10 -9
- package/dist/components/input/Input.cjs +60 -19
- package/dist/components/input/Input.d.ts +7 -2
- package/dist/components/input/Input.js +60 -19
- package/dist/components/input/Input.module.css +90 -43
- package/dist/components/link/Link.cjs +46 -0
- package/dist/components/link/Link.d.ts +9 -0
- package/dist/components/link/Link.js +21 -0
- package/dist/components/link/Link.module.css +32 -0
- package/dist/components/menu/Menu.module.css +10 -32
- package/dist/components/meta-bar/MetaBar.cjs +29 -0
- package/dist/components/meta-bar/MetaBar.d.ts +11 -0
- package/dist/components/meta-bar/MetaBar.js +22 -0
- package/dist/components/meta-bar/MetaBar.module.css +12 -0
- package/dist/components/modal/Modal.cjs +134 -0
- package/dist/components/modal/Modal.d.ts +21 -0
- package/dist/components/modal/Modal.js +128 -0
- package/dist/components/modal/Modal.module.css +66 -0
- package/dist/components/modal/provider/ModalProvider.cjs +80 -0
- package/dist/components/modal/provider/ModalProvider.d.ts +21 -0
- package/dist/components/modal/provider/ModalProvider.js +77 -0
- package/dist/components/multi-select/MultiSelect.cjs +12 -1
- package/dist/components/multi-select/MultiSelect.js +12 -1
- package/dist/components/nav-bar/NavBar.module.css +11 -16
- package/dist/components/page/Page.module.css +2 -2
- package/dist/components/page-layout/PageLayout.cjs +5 -22
- package/dist/components/page-layout/PageLayout.d.ts +1 -8
- package/dist/components/page-layout/PageLayout.js +5 -22
- package/dist/components/page-layout/PageLayout.module.css +4 -80
- package/dist/components/page-layout/components/page-layout-hero/PageLayoutHero.cjs +32 -0
- package/dist/components/page-layout/components/page-layout-hero/PageLayoutHero.d.ts +11 -0
- package/dist/components/page-layout/components/page-layout-hero/PageLayoutHero.js +25 -0
- package/dist/components/page-layout/components/page-layout-hero/PageLayoutHero.module.css +84 -0
- package/dist/components/pagination/Pagination.cjs +83 -67
- package/dist/components/pagination/Pagination.d.ts +3 -1
- package/dist/components/pagination/Pagination.js +84 -68
- package/dist/components/pagination/Pagination.module.css +11 -3
- package/dist/components/panel/Panel.module.css +5 -7
- package/dist/components/popover/Popover.cjs +25 -8
- package/dist/components/popover/Popover.d.ts +2 -1
- package/dist/components/popover/Popover.js +25 -8
- package/dist/components/popover/Popover.module.css +4 -6
- package/dist/components/search-box/SearchBox.cjs +50 -37
- package/dist/components/search-box/SearchBox.d.ts +10 -7
- package/dist/components/search-box/SearchBox.js +50 -37
- package/dist/components/search-box/SearchBox.module.css +0 -1
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.cjs +12 -6
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.js +12 -6
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.module.css +5 -1
- package/dist/components/select/Select.cjs +82 -13
- package/dist/components/select/Select.d.ts +2 -1
- package/dist/components/select/Select.js +83 -14
- package/dist/components/sidebar/Sidebar.cjs +3 -30
- package/dist/components/sidebar/Sidebar.d.ts +2 -1
- package/dist/components/sidebar/Sidebar.js +4 -26
- package/dist/components/sidebar/components/SidebarItem.cjs +3 -1
- package/dist/components/sidebar/components/SidebarItem.js +3 -1
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.cjs +40 -14
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.d.ts +3 -1
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.js +40 -14
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.module.css +9 -38
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.cjs +50 -0
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.d.ts +8 -0
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.js +43 -0
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.module.css +155 -0
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.cjs +16 -9
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.d.ts +2 -1
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.js +16 -9
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.module.css +25 -12
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.cjs +2 -1
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.d.ts +1 -1
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.js +2 -1
- package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.cjs +29 -2
- package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.js +25 -2
- package/dist/components/sidebar/providers/SidebarProvider.cjs +108 -10
- package/dist/components/sidebar/providers/SidebarProvider.d.ts +7 -3
- package/dist/components/sidebar/providers/SidebarProvider.js +109 -11
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.cjs +1 -1
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.js +1 -1
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.module.css +0 -12
- package/dist/components/split-pane/SplitPane.cjs +123 -0
- package/dist/components/split-pane/SplitPane.d.ts +34 -0
- package/dist/components/split-pane/SplitPane.js +114 -0
- package/dist/components/split-pane/SplitPane.module.css +106 -0
- package/dist/components/split-pane/provider/SplitPaneContext.cjs +87 -0
- package/dist/components/split-pane/provider/SplitPaneContext.d.ts +23 -0
- package/dist/components/split-pane/provider/SplitPaneContext.js +79 -0
- package/dist/components/table/Table.cjs +180 -112
- package/dist/components/table/Table.d.ts +22 -6
- package/dist/components/table/Table.js +181 -113
- package/dist/components/table/Table.module.css +74 -47
- package/dist/components/table/components/empty-state/EmptyState.cjs +52 -0
- package/dist/components/table/components/empty-state/EmptyState.d.ts +40 -0
- package/dist/components/table/components/empty-state/EmptyState.js +46 -0
- package/dist/components/table/components/empty-state/EmptyState.module.css +16 -0
- package/dist/components/table/components/table-settings/TableSettings.cjs +32 -0
- package/dist/components/table/components/table-settings/TableSettings.d.ts +7 -0
- package/dist/components/table/components/table-settings/TableSettings.js +30 -0
- package/dist/{tanstack.cjs → components/table/tanstack.cjs} +61 -99
- package/dist/components/table/tanstack.d.ts +14 -0
- package/dist/{tanstack.js → components/table/tanstack.js} +61 -99
- package/dist/components/tabs/Tabs.cjs +33 -17
- package/dist/components/tabs/Tabs.d.ts +6 -3
- package/dist/components/tabs/Tabs.js +33 -17
- package/dist/components/tabs/Tabs.module.css +9 -9
- package/dist/components/toast/Toast.cjs +47 -0
- package/dist/components/toast/Toast.d.ts +14 -0
- package/dist/components/toast/Toast.js +41 -0
- package/dist/components/toast/Toast.module.css +101 -0
- package/dist/components/toast/provider/ToastProvider.cjs +98 -0
- package/dist/components/toast/provider/ToastProvider.d.ts +23 -0
- package/dist/components/toast/provider/ToastProvider.js +91 -0
- package/dist/components/tooltip/Tooltip.cjs +134 -29
- package/dist/components/tooltip/Tooltip.js +135 -30
- package/dist/components/tooltip/Tooltip.module.css +25 -43
- package/dist/components/user-display/UserDisplay.module.css +2 -2
- package/dist/constants/severity.cjs +12 -12
- package/dist/constants/severity.js +12 -12
- package/dist/constants/sizes.cjs +1 -0
- package/dist/constants/sizes.d.ts +1 -1
- package/dist/constants/sizes.js +1 -0
- package/dist/hooks/usePagination.cjs +88 -0
- package/dist/hooks/usePagination.d.ts +33 -0
- package/dist/hooks/usePagination.js +86 -0
- package/dist/hooks/useSorting.cjs +118 -0
- package/dist/hooks/useSorting.d.ts +49 -0
- package/dist/hooks/useSorting.js +116 -0
- package/dist/hooks/useTableData.cjs +52 -0
- package/dist/hooks/useTableData.d.ts +40 -0
- package/dist/hooks/useTableData.js +50 -0
- package/dist/hooks/useTableSelection.cjs +130 -0
- package/dist/hooks/useTableSelection.d.ts +25 -0
- package/dist/hooks/useTableSelection.js +128 -0
- package/dist/hooks/useTableSettings.cjs +28 -0
- package/dist/hooks/useTableSettings.d.ts +7 -0
- package/dist/hooks/useTableSettings.js +26 -0
- package/dist/hooks/useTimeDuration.cjs +39 -0
- package/dist/hooks/useTimeDuration.d.ts +22 -0
- package/dist/hooks/useTimeDuration.js +37 -0
- package/dist/hooks/useViewportFill.js +1 -1
- package/dist/index.cjs +119 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +17 -0
- package/dist/src/styles/styles.css +101 -8
- package/dist/styles/css-helper-classes/flex.css +97 -0
- package/dist/styles/css-helper-classes/typography.css +7 -0
- package/dist/styles/styles.css +101 -8
- package/dist/styles/themes/dbc/dark.css +206 -99
- package/dist/styles/themes/dbc/light.css +183 -89
- package/dist/types/sizes.types.d.ts +2 -2
- package/package.json +17 -11
- package/dist/components/data-summary/DataSummary.cjs +0 -49
- package/dist/components/data-summary/DataSummary.d.ts +0 -19
- package/dist/components/data-summary/DataSummary.js +0 -43
- package/dist/components/data-summary/DataSummary.module.css +0 -51
- package/dist/components/sidebar/Sidebar.module.css +0 -66
- package/dist/tanstack.d.ts +0 -25
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
@import './css-helper-classes/spacing.css';
|
|
2
|
+
@import './css-helper-classes/flex.css';
|
|
3
|
+
@import './css-helper-classes/typography.css';
|
|
2
4
|
|
|
3
5
|
@font-face {
|
|
4
6
|
font-family: 'Roboto';
|
|
@@ -25,8 +27,8 @@
|
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
body {
|
|
28
|
-
color: var(--color-
|
|
29
|
-
background-color: var(--color-
|
|
30
|
+
color: var(--color-fg-default);
|
|
31
|
+
background-color: var(--color-bg-page);
|
|
30
32
|
--density: var(--density-comfortable);
|
|
31
33
|
}
|
|
32
34
|
|
|
@@ -42,10 +44,73 @@ h3 {
|
|
|
42
44
|
font-size: var(--font-size-lg);
|
|
43
45
|
}
|
|
44
46
|
|
|
47
|
+
h4 {
|
|
48
|
+
font-size: var(--font-size-md);
|
|
49
|
+
font-weight: var(--font-weight-medium);
|
|
50
|
+
}
|
|
51
|
+
|
|
45
52
|
body.dbc-app {
|
|
46
53
|
max-width: 1600px;
|
|
47
54
|
}
|
|
48
55
|
|
|
56
|
+
.dbc-table {
|
|
57
|
+
--card-label-width: 260px;
|
|
58
|
+
border-collapse: collapse;
|
|
59
|
+
font-size: var(--font-size-sm);
|
|
60
|
+
line-height: var(--line-height-normal);
|
|
61
|
+
tr + tr th,
|
|
62
|
+
tr + tr td {
|
|
63
|
+
padding-top: var(--spacing-xxs);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
th {
|
|
67
|
+
width: 1%;
|
|
68
|
+
white-space: nowrap;
|
|
69
|
+
color: var(--color-fg-subtle);
|
|
70
|
+
font-weight: var(--font-weight-default);
|
|
71
|
+
padding-right: var(--spacing-lg);
|
|
72
|
+
vertical-align: top;
|
|
73
|
+
text-align: left;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
td {
|
|
77
|
+
color: var(--color-fg-default);
|
|
78
|
+
vertical-align: top;
|
|
79
|
+
min-width: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
th {
|
|
83
|
+
max-width: var(--card-label-width);
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
text-overflow: ellipsis;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.dbc-table--bordered {
|
|
90
|
+
width: auto;
|
|
91
|
+
border: 1px solid var(--color-border-default);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.dbc-table--bordered th,
|
|
95
|
+
.dbc-table--bordered td {
|
|
96
|
+
border: 1px solid var(--color-border-default);
|
|
97
|
+
padding: var(--spacing-xs) var(--spacing-sm);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.dbc-table--bordered thead th {
|
|
101
|
+
background-color: var(--color-bg-surface);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.dbc-table--align-middle {
|
|
105
|
+
vertical-align: middle;
|
|
106
|
+
th {
|
|
107
|
+
vertical-align: middle;
|
|
108
|
+
}
|
|
109
|
+
td {
|
|
110
|
+
vertical-align: middle;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
49
114
|
@media screen and (min-height: 400px) {
|
|
50
115
|
.body.dbc-app {
|
|
51
116
|
overflow: hidden;
|
|
@@ -55,10 +120,17 @@ body.dbc-app {
|
|
|
55
120
|
.grow-container {
|
|
56
121
|
display: flex;
|
|
57
122
|
flex-direction: column;
|
|
58
|
-
flex
|
|
123
|
+
flex: 1;
|
|
59
124
|
overflow: auto;
|
|
60
125
|
}
|
|
61
126
|
|
|
127
|
+
.hideScrollBar {
|
|
128
|
+
scrollbar-width: none; /* Firefox */
|
|
129
|
+
}
|
|
130
|
+
.hideScrollBar::-webkit-scrollbar {
|
|
131
|
+
display: none; /* Chrome, Safari, Opera */
|
|
132
|
+
}
|
|
133
|
+
|
|
62
134
|
/* Apply globally */
|
|
63
135
|
::-webkit-scrollbar {
|
|
64
136
|
width: 10px; /* or thinner: 6px */
|
|
@@ -69,13 +141,13 @@ body.dbc-app {
|
|
|
69
141
|
}
|
|
70
142
|
|
|
71
143
|
::-webkit-scrollbar-thumb {
|
|
72
|
-
background-color: var(--
|
|
144
|
+
background-color: var(--color-border-strong);
|
|
73
145
|
border-radius: 4px; /* rounded for modern look */
|
|
74
|
-
border: 2px solid
|
|
146
|
+
border: 2px solid var(--color-bg-surface); /* creates padding effect */
|
|
75
147
|
}
|
|
76
148
|
|
|
77
149
|
::-webkit-scrollbar-thumb:hover {
|
|
78
|
-
background-color:
|
|
150
|
+
background-color: var(--color-fg-subtle);
|
|
79
151
|
}
|
|
80
152
|
|
|
81
153
|
.animate--expand {
|
|
@@ -87,9 +159,19 @@ body.dbc-app {
|
|
|
87
159
|
}
|
|
88
160
|
|
|
89
161
|
.fitContent {
|
|
90
|
-
white-space: nowrap;
|
|
91
|
-
width: 1
|
|
162
|
+
white-space: nowrap !important;
|
|
163
|
+
width: 1% !important;
|
|
164
|
+
min-width: unset !important;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.dbc-full-height {
|
|
168
|
+
height: 100%;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.dbc-offset-height {
|
|
172
|
+
transform: translateY(-8vh);
|
|
92
173
|
}
|
|
174
|
+
|
|
93
175
|
/* Animations */
|
|
94
176
|
@keyframes expand {
|
|
95
177
|
0% {
|
|
@@ -122,3 +204,14 @@ body.dbc-app {
|
|
|
122
204
|
display: inline-block;
|
|
123
205
|
animation: spin 2s linear infinite;
|
|
124
206
|
}
|
|
207
|
+
|
|
208
|
+
.srOnly {
|
|
209
|
+
position: absolute;
|
|
210
|
+
width: 1px;
|
|
211
|
+
height: 1px;
|
|
212
|
+
padding: 0;
|
|
213
|
+
margin: -1px;
|
|
214
|
+
overflow: hidden;
|
|
215
|
+
clip: rect(0, 0, 0, 0);
|
|
216
|
+
border: 0;
|
|
217
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
.dbc-flex {
|
|
2
|
+
display: flex;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.dbc-flex-row {
|
|
6
|
+
flex-direction: row;
|
|
7
|
+
}
|
|
8
|
+
.dbc-flex-column {
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.dbc-flex-wrap {
|
|
13
|
+
flex-wrap: wrap;
|
|
14
|
+
}
|
|
15
|
+
.dbc-flex-nowrap {
|
|
16
|
+
flex-wrap: nowrap;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.dbc-justify-start {
|
|
20
|
+
justify-content: flex-start;
|
|
21
|
+
}
|
|
22
|
+
.dbc-justify-center {
|
|
23
|
+
justify-content: center;
|
|
24
|
+
}
|
|
25
|
+
.dbc-justify-end {
|
|
26
|
+
justify-content: flex-end;
|
|
27
|
+
}
|
|
28
|
+
.dbc-justify-between {
|
|
29
|
+
justify-content: space-between;
|
|
30
|
+
}
|
|
31
|
+
.dbc-justify-around {
|
|
32
|
+
justify-content: space-around;
|
|
33
|
+
}
|
|
34
|
+
.dbc-justify-evenly {
|
|
35
|
+
justify-content: space-evenly;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.dbc-items-start {
|
|
39
|
+
align-items: flex-start;
|
|
40
|
+
}
|
|
41
|
+
.dbc-items-center {
|
|
42
|
+
align-items: center;
|
|
43
|
+
}
|
|
44
|
+
.dbc-items-end {
|
|
45
|
+
align-items: flex-end;
|
|
46
|
+
}
|
|
47
|
+
.dbc-items-stretch {
|
|
48
|
+
align-items: stretch;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.dbc-self-start {
|
|
52
|
+
align-self: flex-start;
|
|
53
|
+
}
|
|
54
|
+
.dbc-self-center {
|
|
55
|
+
align-self: center;
|
|
56
|
+
}
|
|
57
|
+
.dbc-self-end {
|
|
58
|
+
align-self: flex-end;
|
|
59
|
+
}
|
|
60
|
+
.dbc-self-stretch {
|
|
61
|
+
align-self: stretch;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.dbc-gap-xxs {
|
|
65
|
+
gap: var(--spacing-xxs);
|
|
66
|
+
}
|
|
67
|
+
.dbc-gap-xs {
|
|
68
|
+
gap: var(--spacing-xs);
|
|
69
|
+
}
|
|
70
|
+
.dbc-gap-sm {
|
|
71
|
+
gap: var(--spacing-sm);
|
|
72
|
+
}
|
|
73
|
+
.dbc-gap-md {
|
|
74
|
+
gap: var(--spacing-md);
|
|
75
|
+
}
|
|
76
|
+
.dbc-gap-lg {
|
|
77
|
+
gap: var(--spacing-lg);
|
|
78
|
+
}
|
|
79
|
+
.dbc-gap-xl {
|
|
80
|
+
gap: var(--spacing-xl);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.dbc-flex-grow {
|
|
84
|
+
flex-grow: 1;
|
|
85
|
+
}
|
|
86
|
+
.dbc-flex-shrink {
|
|
87
|
+
flex-shrink: 1;
|
|
88
|
+
}
|
|
89
|
+
.dbc-flex-none {
|
|
90
|
+
flex: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.dbc-flex-center {
|
|
94
|
+
display: flex;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
align-items: center;
|
|
97
|
+
}
|
package/dist/styles/styles.css
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
@import './css-helper-classes/spacing.css';
|
|
2
|
+
@import './css-helper-classes/flex.css';
|
|
3
|
+
@import './css-helper-classes/typography.css';
|
|
2
4
|
|
|
3
5
|
@font-face {
|
|
4
6
|
font-family: 'Roboto';
|
|
@@ -25,8 +27,8 @@
|
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
body {
|
|
28
|
-
color: var(--color-
|
|
29
|
-
background-color: var(--color-
|
|
30
|
+
color: var(--color-fg-default);
|
|
31
|
+
background-color: var(--color-bg-page);
|
|
30
32
|
--density: var(--density-comfortable);
|
|
31
33
|
}
|
|
32
34
|
|
|
@@ -42,10 +44,73 @@ h3 {
|
|
|
42
44
|
font-size: var(--font-size-lg);
|
|
43
45
|
}
|
|
44
46
|
|
|
47
|
+
h4 {
|
|
48
|
+
font-size: var(--font-size-md);
|
|
49
|
+
font-weight: var(--font-weight-medium);
|
|
50
|
+
}
|
|
51
|
+
|
|
45
52
|
body.dbc-app {
|
|
46
53
|
max-width: 1600px;
|
|
47
54
|
}
|
|
48
55
|
|
|
56
|
+
.dbc-table {
|
|
57
|
+
--card-label-width: 260px;
|
|
58
|
+
border-collapse: collapse;
|
|
59
|
+
font-size: var(--font-size-sm);
|
|
60
|
+
line-height: var(--line-height-normal);
|
|
61
|
+
tr + tr th,
|
|
62
|
+
tr + tr td {
|
|
63
|
+
padding-top: var(--spacing-xxs);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
th {
|
|
67
|
+
width: 1%;
|
|
68
|
+
white-space: nowrap;
|
|
69
|
+
color: var(--color-fg-subtle);
|
|
70
|
+
font-weight: var(--font-weight-default);
|
|
71
|
+
padding-right: var(--spacing-lg);
|
|
72
|
+
vertical-align: top;
|
|
73
|
+
text-align: left;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
td {
|
|
77
|
+
color: var(--color-fg-default);
|
|
78
|
+
vertical-align: top;
|
|
79
|
+
min-width: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
th {
|
|
83
|
+
max-width: var(--card-label-width);
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
text-overflow: ellipsis;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.dbc-table--bordered {
|
|
90
|
+
width: auto;
|
|
91
|
+
border: 1px solid var(--color-border-default);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.dbc-table--bordered th,
|
|
95
|
+
.dbc-table--bordered td {
|
|
96
|
+
border: 1px solid var(--color-border-default);
|
|
97
|
+
padding: var(--spacing-xs) var(--spacing-sm);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.dbc-table--bordered thead th {
|
|
101
|
+
background-color: var(--color-bg-surface);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.dbc-table--align-middle {
|
|
105
|
+
vertical-align: middle;
|
|
106
|
+
th {
|
|
107
|
+
vertical-align: middle;
|
|
108
|
+
}
|
|
109
|
+
td {
|
|
110
|
+
vertical-align: middle;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
49
114
|
@media screen and (min-height: 400px) {
|
|
50
115
|
.body.dbc-app {
|
|
51
116
|
overflow: hidden;
|
|
@@ -55,10 +120,17 @@ body.dbc-app {
|
|
|
55
120
|
.grow-container {
|
|
56
121
|
display: flex;
|
|
57
122
|
flex-direction: column;
|
|
58
|
-
flex
|
|
123
|
+
flex: 1;
|
|
59
124
|
overflow: auto;
|
|
60
125
|
}
|
|
61
126
|
|
|
127
|
+
.hideScrollBar {
|
|
128
|
+
scrollbar-width: none; /* Firefox */
|
|
129
|
+
}
|
|
130
|
+
.hideScrollBar::-webkit-scrollbar {
|
|
131
|
+
display: none; /* Chrome, Safari, Opera */
|
|
132
|
+
}
|
|
133
|
+
|
|
62
134
|
/* Apply globally */
|
|
63
135
|
::-webkit-scrollbar {
|
|
64
136
|
width: 10px; /* or thinner: 6px */
|
|
@@ -69,13 +141,13 @@ body.dbc-app {
|
|
|
69
141
|
}
|
|
70
142
|
|
|
71
143
|
::-webkit-scrollbar-thumb {
|
|
72
|
-
background-color: var(--
|
|
144
|
+
background-color: var(--color-border-strong);
|
|
73
145
|
border-radius: 4px; /* rounded for modern look */
|
|
74
|
-
border: 2px solid
|
|
146
|
+
border: 2px solid var(--color-bg-surface); /* creates padding effect */
|
|
75
147
|
}
|
|
76
148
|
|
|
77
149
|
::-webkit-scrollbar-thumb:hover {
|
|
78
|
-
background-color:
|
|
150
|
+
background-color: var(--color-fg-subtle);
|
|
79
151
|
}
|
|
80
152
|
|
|
81
153
|
.animate--expand {
|
|
@@ -87,9 +159,19 @@ body.dbc-app {
|
|
|
87
159
|
}
|
|
88
160
|
|
|
89
161
|
.fitContent {
|
|
90
|
-
white-space: nowrap;
|
|
91
|
-
width: 1
|
|
162
|
+
white-space: nowrap !important;
|
|
163
|
+
width: 1% !important;
|
|
164
|
+
min-width: unset !important;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.dbc-full-height {
|
|
168
|
+
height: 100%;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.dbc-offset-height {
|
|
172
|
+
transform: translateY(-8vh);
|
|
92
173
|
}
|
|
174
|
+
|
|
93
175
|
/* Animations */
|
|
94
176
|
@keyframes expand {
|
|
95
177
|
0% {
|
|
@@ -122,3 +204,14 @@ body.dbc-app {
|
|
|
122
204
|
display: inline-block;
|
|
123
205
|
animation: spin 2s linear infinite;
|
|
124
206
|
}
|
|
207
|
+
|
|
208
|
+
.srOnly {
|
|
209
|
+
position: absolute;
|
|
210
|
+
width: 1px;
|
|
211
|
+
height: 1px;
|
|
212
|
+
padding: 0;
|
|
213
|
+
margin: -1px;
|
|
214
|
+
overflow: hidden;
|
|
215
|
+
clip: rect(0, 0, 0, 0);
|
|
216
|
+
border: 0;
|
|
217
|
+
}
|