@db-ux/core-components 4.14.0-shell-52d18db → 5.0.0
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/CHANGELOG.md +28 -0
- package/agent/Best-Practise_Common-AI-Mistakes.md +3 -3
- package/build/components/accordion-item/accordion-item.css +0 -1
- package/build/components/brand/brand.css +0 -1
- package/build/components/brand/brand.scss +0 -1
- package/build/components/button/button.css +4 -9
- package/build/components/checkbox/checkbox.css +0 -3
- package/build/components/checkbox/checkbox.scss +0 -2
- package/build/components/custom-button/custom-button.css +8 -13
- package/build/components/custom-button/custom-button.scss +2 -3
- package/build/components/custom-select/custom-select.css +0 -1
- package/build/components/custom-select-list-item/custom-select-list-item.css +6 -2
- package/build/components/custom-select-list-item/custom-select-list-item.scss +8 -3
- package/build/components/drawer/drawer.css +32 -21
- package/build/components/drawer/drawer.scss +50 -26
- package/build/components/header/header.css +3 -10
- package/build/components/header/header.scss +7 -6
- package/build/components/icon/icon.css +0 -6
- package/build/components/infotext/infotext.css +0 -4
- package/build/components/infotext/infotext.scss +0 -2
- package/build/components/input/input.css +0 -5
- package/build/components/link/link.css +6 -9
- package/build/components/link/link.scss +8 -3
- package/build/components/navigation/navigation.css +1 -2
- package/build/components/navigation/navigation.scss +2 -2
- package/build/components/navigation-item/navigation-item.css +5 -28
- package/build/components/navigation-item/navigation-item.scss +5 -24
- package/build/components/notification/notification.css +1 -5
- package/build/components/notification/notification.scss +0 -2
- package/build/components/page/page.css +0 -8
- package/build/components/page/page.scss +0 -8
- package/build/components/select/select.css +0 -1
- package/build/components/stack/stack-web-component.css +0 -1
- package/build/components/stack/stack.css +0 -1
- package/build/components/switch/switch.css +0 -3
- package/build/components/switch/switch.scss +0 -1
- package/build/components/tab-item/tab-item.css +120 -98
- package/build/components/tab-item/tab-item.scss +89 -90
- package/build/components/tab-list/tab-list.css +38 -36
- package/build/components/tab-list/tab-list.scss +11 -9
- package/build/components/tab-panel/tab-panel.css +30 -4
- package/build/components/tab-panel/tab-panel.scss +60 -2
- package/build/components/table/table.css +0 -4
- package/build/components/table-row/table-row.css +0 -4
- package/build/components/table-row/table-row.scss +0 -5
- package/build/components/tabs/tabs.css +152 -263
- package/build/components/tabs/tabs.scss +243 -198
- package/build/components/tag/tag.css +2 -21
- package/build/components/tag/tag.scss +5 -7
- package/build/styles/absolute.css +12 -12
- package/build/styles/bundle.css +12 -12
- package/build/styles/index.css +11 -11
- package/build/styles/index.scss +3 -17
- package/build/styles/internal/_button-components.scss +7 -4
- package/build/styles/internal/_custom-elements.scss +8 -32
- package/build/styles/internal/_icon-passing.scss +9 -10
- package/build/styles/internal/_link-components.scss +1 -3
- package/build/styles/relative.css +12 -12
- package/build/styles/rollup.css +12 -12
- package/build/styles/wc-workarounds.css +1 -1
- package/build/styles/wc-workarounds.scss +0 -11
- package/build/styles/webpack.css +12 -12
- package/package.json +4 -4
- package/build/components/control-panel-brand/control-panel-brand.css +0 -53
- package/build/components/control-panel-brand/control-panel-brand.scss +0 -48
- package/build/components/control-panel-desktop/control-panel-desktop.css +0 -579
- package/build/components/control-panel-desktop/control-panel-desktop.scss +0 -30
- package/build/components/control-panel-flat-icon/control-panel-flat-icon.css +0 -258
- package/build/components/control-panel-flat-icon/control-panel-flat-icon.scss +0 -239
- package/build/components/control-panel-meta/control-panel-meta.css +0 -14
- package/build/components/control-panel-meta/control-panel-meta.scss +0 -15
- package/build/components/control-panel-mobile/control-panel-mobile.css +0 -442
- package/build/components/control-panel-mobile/control-panel-mobile.scss +0 -119
- package/build/components/control-panel-navigation/control-panel-navigation.css +0 -402
- package/build/components/control-panel-navigation/control-panel-navigation.scss +0 -186
- package/build/components/control-panel-navigation-item/control-panel-navigation-item.css +0 -87
- package/build/components/control-panel-navigation-item/control-panel-navigation-item.scss +0 -39
- package/build/components/control-panel-navigation-item-group/control-panel-navigation-item-group-menu-popover.css +0 -21
- package/build/components/control-panel-navigation-item-group/control-panel-navigation-item-group-menu-popover.scss +0 -129
- package/build/components/control-panel-navigation-item-group/control-panel-navigation-item-group-menu-tree.css +0 -35
- package/build/components/control-panel-navigation-item-group/control-panel-navigation-item-group-menu-tree.scss +0 -36
- package/build/components/control-panel-navigation-item-group/control-panel-navigation-item-group.css +0 -158
- package/build/components/control-panel-navigation-item-group/control-panel-navigation-item-group.scss +0 -80
- package/build/components/control-panel-primary-actions/control-panel-primary-actions.css +0 -12
- package/build/components/control-panel-primary-actions/control-panel-primary-actions.scss +0 -7
- package/build/components/control-panel-secondary-actions/control-panel-secondary-actions.css +0 -12
- package/build/components/control-panel-secondary-actions/control-panel-secondary-actions.scss +0 -7
- package/build/components/control-panel-skip-navigation/control-panel-skip-navigation.css +0 -23
- package/build/components/control-panel-skip-navigation/control-panel-skip-navigation.scss +0 -25
- package/build/components/shell/shell-desktop.css +0 -475
- package/build/components/shell/shell-desktop.scss +0 -105
- package/build/components/shell/shell-mobile.css +0 -441
- package/build/components/shell/shell-mobile.scss +0 -148
- package/build/components/shell/shell.css +0 -1670
- package/build/components/shell/shell.scss +0 -70
- package/build/components/shell-content/shell-content.css +0 -34
- package/build/components/shell-content/shell-content.scss +0 -53
- package/build/components/shell-sub-navigation/shell-sub-navigation.css +0 -51
- package/build/components/shell-sub-navigation/shell-sub-navigation.scss +0 -184
- package/build/styles/internal/_control-panel-actions.scss +0 -11
- package/build/styles/internal/_control-panel-desktop.scss +0 -412
- package/build/styles/internal/_control-panel-mobile.scss +0 -107
- package/build/styles/internal/_navigation-item.scss +0 -122
package/build/styles/index.scss
CHANGED
|
@@ -7,9 +7,6 @@
|
|
|
7
7
|
@forward "../components/brand/brand";
|
|
8
8
|
@forward "../components/header/header";
|
|
9
9
|
@forward "../components/page/page";
|
|
10
|
-
@forward "../components/control-panel-brand/control-panel-brand";
|
|
11
|
-
@forward "../components/control-panel-desktop/control-panel-desktop";
|
|
12
|
-
@forward "../components/shell/shell";
|
|
13
10
|
@forward "../components/link/link";
|
|
14
11
|
@forward "../components/section/section";
|
|
15
12
|
@forward "../components/infotext/infotext";
|
|
@@ -19,17 +16,16 @@
|
|
|
19
16
|
@forward "../components/tag/tag";
|
|
20
17
|
@forward "../components/drawer/drawer";
|
|
21
18
|
@forward "../components/select/select";
|
|
22
|
-
@forward "../components/navigation/navigation";
|
|
23
19
|
@forward "../components/navigation-item/navigation-item";
|
|
24
20
|
@forward "../components/textarea/textarea";
|
|
25
21
|
@forward "../components/badge/badge";
|
|
26
22
|
@forward "../components/accordion/accordion";
|
|
27
23
|
@forward "../components/accordion-item/accordion-item";
|
|
28
|
-
@forward "../components/
|
|
29
|
-
@forward "../components/control-panel-navigation-item/control-panel-navigation-item";
|
|
30
|
-
@forward "../components/control-panel-navigation-item-group/control-panel-navigation-item-group";
|
|
24
|
+
@forward "../components/navigation/navigation";
|
|
31
25
|
@forward "../components/popover/popover";
|
|
32
26
|
@forward "../components/tooltip/tooltip";
|
|
27
|
+
@forward "../components/drawer-header/drawer-header";
|
|
28
|
+
@forward "../components/drawer-footer/drawer-footer";
|
|
33
29
|
@forward "../components/tab-item/tab-item";
|
|
34
30
|
@forward "../components/tab-list/tab-list";
|
|
35
31
|
@forward "../components/tab-panel/tab-panel";
|
|
@@ -50,13 +46,3 @@
|
|
|
50
46
|
@forward "../components/table-header-cell/table-header-cell";
|
|
51
47
|
@forward "../components/table-data-cell/table-data-cell";
|
|
52
48
|
@forward "../components/custom-button/custom-button";
|
|
53
|
-
@forward "../components/control-panel-mobile/control-panel-mobile";
|
|
54
|
-
@forward "../components/control-panel-meta/control-panel-meta";
|
|
55
|
-
@forward "../components/control-panel-primary-actions/control-panel-primary-actions";
|
|
56
|
-
@forward "../components/control-panel-secondary-actions/control-panel-secondary-actions";
|
|
57
|
-
@forward "../components/shell-sub-navigation/shell-sub-navigation";
|
|
58
|
-
@forward "../components/control-panel-flat-icon/control-panel-flat-icon";
|
|
59
|
-
@forward "../components/shell-content/shell-content";
|
|
60
|
-
@forward "../components/drawer-header/drawer-header";
|
|
61
|
-
@forward "../components/drawer-footer/drawer-footer";
|
|
62
|
-
@forward "../components/control-panel-skip-navigation/control-panel-skip-navigation";
|
|
@@ -76,6 +76,12 @@
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
&:not([data-no-text="true"]) {
|
|
80
|
+
#{$selector} {
|
|
81
|
+
gap: variables.$db-spacing-fixed-xs;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
79
85
|
&[data-wrap="false"] {
|
|
80
86
|
#{$selector} {
|
|
81
87
|
white-space: nowrap;
|
|
@@ -92,10 +98,7 @@
|
|
|
92
98
|
&:not([data-no-text="true"]) {
|
|
93
99
|
// stylelint-disable-next-line db-ux/use-spacings
|
|
94
100
|
padding: 1px variables.$db-spacing-fixed-sm;
|
|
95
|
-
|
|
96
|
-
&::before {
|
|
97
|
-
margin-inline-end: variables.$db-spacing-fixed-2xs;
|
|
98
|
-
}
|
|
101
|
+
gap: variables.$db-spacing-fixed-2xs;
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
// Square icon only buttons
|
|
@@ -1,37 +1,13 @@
|
|
|
1
1
|
$custom-elements: //hygen-insert
|
|
2
2
|
|
|
3
|
-
db-
|
|
4
|
-
db-
|
|
5
|
-
db-shell-content, db-control-panel-navigation-item-group,
|
|
6
|
-
db-control-panel-secondary-actions, db-control-panel-primary-actions,
|
|
7
|
-
db-control-panel-meta, db-control-panel-mobile, db-table-data-cell,
|
|
8
|
-
db-table-header-cell, db-table-row, db-table-footer, db-table-body,
|
|
9
|
-
db-table-head, db-table-caption, db-table, db-custom-button,
|
|
3
|
+
db-table-data-cell, db-table-header-cell, db-table-row, db-table-footer,
|
|
4
|
+
db-table-body, db-table-head, db-table-caption, db-table, db-custom-button,
|
|
10
5
|
db-custom-select-list-item, db-custom-select-list,
|
|
11
6
|
db-custom-select-dropdown, db-custom-select-form-field, db-custom-select,
|
|
12
7
|
db-stack, db-switch, db-tab-panel, db-tabs, db-tab-list, db-tab-item,
|
|
13
|
-
db-tab-bar, db-tooltip, db-popover, db-textarea,
|
|
14
|
-
db-
|
|
15
|
-
db-
|
|
16
|
-
db-
|
|
17
|
-
db-
|
|
18
|
-
db-
|
|
19
|
-
db-brand, db-navigation, db-navigation-item;
|
|
20
|
-
|
|
21
|
-
/* Sub components for shell */
|
|
22
|
-
|
|
23
|
-
@function get-sub-component($selector) {
|
|
24
|
-
@return "> * > #{$selector} > .#{$selector}, > #{$selector} > .#{$selector}, > .#{$selector}";
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
$control-panel-desktop: get-sub-component(db-control-panel-desktop);
|
|
28
|
-
$control-panel-flat-icon: get-sub-component(db-control-panel-flat-icon);
|
|
29
|
-
$control-panel-mobile: get-sub-component(db-control-panel-mobile);
|
|
30
|
-
$control-panel-navigation: get-sub-component(db-control-panel-navigation);
|
|
31
|
-
$control-panel-navigation-item: get-sub-component(
|
|
32
|
-
db-control-panel-navigation-item
|
|
33
|
-
);
|
|
34
|
-
$control-panel-navigation-item-group: get-sub-component(
|
|
35
|
-
db-control-panel-navigation-item-group
|
|
36
|
-
);
|
|
37
|
-
$shell-sub-navigation: get-sub-component(db-shell-sub-navigation);
|
|
8
|
+
db-tab-bar, db-tooltip, db-popover, db-textarea, db-navigation,
|
|
9
|
+
db-accordion-item, db-accordion, db-badge, db-navigation-item, db-tag,
|
|
10
|
+
db-radio, db-select, db-notification, db-brand, db-button, db-card,
|
|
11
|
+
db-checkbox, db-divider, db-drawer, db-drawer-footer, db-drawer-header,
|
|
12
|
+
db-header, db-icon, db-infotext, db-input, db-link, db-page, db-section,
|
|
13
|
+
db-tab;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
@use "@db-ux/core-foundations/build/styles/variables";
|
|
2
|
-
@use "@db-ux/core-foundations/build/styles/icons";
|
|
3
2
|
|
|
4
3
|
$interactive-button-selectors: "label,button,a";
|
|
5
4
|
|
|
6
5
|
@mixin icon-passing(
|
|
7
6
|
$inline-start: variables.$db-spacing-fixed-sm,
|
|
8
|
-
$
|
|
7
|
+
$gap: variables.$db-spacing-fixed-xs
|
|
9
8
|
) {
|
|
10
9
|
&[data-icon-leading]:not([data-show-icon-leading="false"]),
|
|
11
10
|
&[data-icon]:not([data-show-icon="false"]) {
|
|
@@ -13,7 +12,7 @@ $interactive-button-selectors: "label,button,a";
|
|
|
13
12
|
position: absolute;
|
|
14
13
|
inset-block-start: var(
|
|
15
14
|
--db-icon-passing-inset-block-start,
|
|
16
|
-
|
|
15
|
+
calc(50% - 0.5em)
|
|
17
16
|
);
|
|
18
17
|
inset-inline-start: var(
|
|
19
18
|
--db-icon-passing-inset-inline-start,
|
|
@@ -28,10 +27,7 @@ $interactive-button-selectors: "label,button,a";
|
|
|
28
27
|
/* stylelint-disable-next-line db-ux/use-spacings */
|
|
29
28
|
padding-inline-start: var(
|
|
30
29
|
--db-icon-passing-padding-inline-start,
|
|
31
|
-
calc(
|
|
32
|
-
#{$inline-start} + #{icons.$default-icon-margin-end} +
|
|
33
|
-
var(--db-icon-font-size)
|
|
34
|
-
)
|
|
30
|
+
calc(#{$inline-start} + #{$gap} + var(--db-icon-font-size, 1lh))
|
|
35
31
|
);
|
|
36
32
|
}
|
|
37
33
|
}
|
|
@@ -41,7 +37,10 @@ $interactive-button-selectors: "label,button,a";
|
|
|
41
37
|
&[data-icon-trailing]:not([data-show-icon-trailing="false"]) {
|
|
42
38
|
&::after {
|
|
43
39
|
position: absolute;
|
|
44
|
-
inset-block-start:
|
|
40
|
+
inset-block-start: var(
|
|
41
|
+
--db-icon-passing-inset-block-start,
|
|
42
|
+
calc(50% - 0.5em)
|
|
43
|
+
);
|
|
45
44
|
inset-inline-end: $inline-end;
|
|
46
45
|
pointer-events: none;
|
|
47
46
|
z-index: 1;
|
|
@@ -50,8 +49,8 @@ $interactive-button-selectors: "label,button,a";
|
|
|
50
49
|
> :is(#{$interactive-button-selectors}),
|
|
51
50
|
> * > :is(#{$interactive-button-selectors}) {
|
|
52
51
|
padding-inline-end: calc(
|
|
53
|
-
#{$inline-end} + #{
|
|
54
|
-
var(--db-icon-font-size)
|
|
52
|
+
#{$inline-end} + #{variables.$db-spacing-fixed-xs} +
|
|
53
|
+
var(--db-icon-font-size, 1lh)
|
|
55
54
|
);
|
|
56
55
|
}
|
|
57
56
|
}
|