@cloudscape-design/components-themeable 3.0.679 → 3.0.681
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/app-layout/visual-refresh-toolbar/drawer/styles.scss +53 -0
- package/lib/internal/scss/app-layout/visual-refresh-toolbar/navigation/styles.scss +71 -0
- package/lib/internal/scss/app-layout/visual-refresh-toolbar/notifications/styles.scss +8 -0
- package/lib/internal/scss/app-layout/{skeleton → visual-refresh-toolbar/skeleton}/styles.scss +52 -15
- package/lib/internal/scss/app-layout/visual-refresh-toolbar/split-panel/styles.scss +13 -0
- package/lib/internal/scss/app-layout/visual-refresh-toolbar/toolbar/styles.scss +95 -0
- package/lib/internal/scss/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.scss +126 -0
- package/lib/internal/template/app-layout/classic.d.ts.map +1 -1
- package/lib/internal/template/app-layout/classic.js +1 -0
- package/lib/internal/template/app-layout/classic.js.map +1 -1
- package/lib/internal/template/app-layout/drawer/drawers-helpers.d.ts +4 -1
- package/lib/internal/template/app-layout/drawer/drawers-helpers.d.ts.map +1 -1
- package/lib/internal/template/app-layout/drawer/drawers-helpers.js.map +1 -1
- package/lib/internal/template/app-layout/interfaces.d.ts +1 -1
- package/lib/internal/template/app-layout/interfaces.js.map +1 -1
- package/lib/internal/template/app-layout/internal.d.ts +6 -5
- package/lib/internal/template/app-layout/internal.d.ts.map +1 -1
- package/lib/internal/template/app-layout/internal.js +18 -2
- package/lib/internal/template/app-layout/internal.js.map +1 -1
- package/lib/internal/template/app-layout/utils/use-drawers.d.ts +1 -0
- package/lib/internal/template/app-layout/utils/use-drawers.d.ts.map +1 -1
- package/lib/internal/template/app-layout/utils/use-drawers.js +1 -1
- package/lib/internal/template/app-layout/utils/use-drawers.js.map +1 -1
- package/lib/internal/template/app-layout/utils/use-focus-control.d.ts +1 -2
- package/lib/internal/template/app-layout/utils/use-focus-control.d.ts.map +1 -1
- package/lib/internal/template/app-layout/utils/use-focus-control.js.map +1 -1
- package/lib/internal/template/app-layout/utils/use-split-panel-focus-control.d.ts +1 -2
- package/lib/internal/template/app-layout/utils/use-split-panel-focus-control.d.ts.map +1 -1
- package/lib/internal/template/app-layout/utils/use-split-panel-focus-control.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/context.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/context.js +1 -0
- package/lib/internal/template/app-layout/visual-refresh/context.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/compute-layout.d.ts +33 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/compute-layout.d.ts.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/compute-layout.js +33 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/compute-layout.js.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/index.d.ts +9 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/index.d.ts.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/index.js +55 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/index.js.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +11 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +140 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +12 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/use-resize.d.ts +16 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/use-resize.d.ts.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/use-resize.js +23 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/use-resize.js.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/exports.d.ts +6 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/exports.d.ts.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/exports.js +8 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/exports.js.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/index.d.ts +20 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/index.d.ts.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/index.js +172 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/index.js.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.d.ts +41 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.d.ts.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.js +4 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.js.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/internal.d.ts +7 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/internal.d.ts.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/internal.js +14 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/internal.js.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/index.d.ts +9 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/index.d.ts.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/index.js +32 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/index.js.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.css.js +11 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +155 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +12 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/notifications/index.d.ts +10 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/notifications/index.d.ts.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/notifications/index.js +17 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/notifications/index.js.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/notifications/styles.css.js +6 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/notifications/styles.scoped.css +8 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/notifications/styles.selectors.js +7 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/index.d.ts +12 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/index.d.ts.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/index.js +32 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/index.js.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/slot-wrappers.d.ts +15 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/slot-wrappers.d.ts.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/slot-wrappers.js +8 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/slot-wrappers.js.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +20 -0
- package/lib/internal/template/app-layout/{skeleton → visual-refresh-toolbar/skeleton}/styles.scoped.css +58 -24
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +21 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/split-panel/index.d.ts +19 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/split-panel/index.d.ts.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/split-panel/index.js +20 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/split-panel/index.js.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/split-panel/styles.css.js +6 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/split-panel/styles.scoped.css +100 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/split-panel/styles.selectors.js +7 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts +8 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js +60 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.d.ts +9 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.d.ts.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js +52 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +17 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +214 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +18 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.d.ts +20 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.d.ts.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js +18 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.css.js +11 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.scoped.css +243 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.selectors.js +12 -0
- package/lib/internal/template/internal/base-component/styles.scoped.css +5 -0
- package/lib/internal/template/internal/components/tooltip/index.d.ts +2 -1
- package/lib/internal/template/internal/components/tooltip/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/tooltip/index.js +2 -2
- package/lib/internal/template/internal/components/tooltip/index.js.map +1 -1
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/environment.json +1 -1
- package/lib/internal/template/internal/generated/theming/index.cjs +3 -0
- package/lib/internal/template/internal/generated/theming/index.js +3 -0
- package/package.json +1 -1
- package/lib/internal/template/app-layout/implementation.d.ts +0 -50
- package/lib/internal/template/app-layout/implementation.d.ts.map +0 -1
- package/lib/internal/template/app-layout/implementation.js +0 -13
- package/lib/internal/template/app-layout/implementation.js.map +0 -1
- package/lib/internal/template/app-layout/skeleton/index.d.ts +0 -4
- package/lib/internal/template/app-layout/skeleton/index.d.ts.map +0 -1
- package/lib/internal/template/app-layout/skeleton/index.js +0 -10
- package/lib/internal/template/app-layout/skeleton/index.js.map +0 -1
- package/lib/internal/template/app-layout/skeleton/layout.d.ts +0 -8
- package/lib/internal/template/app-layout/skeleton/layout.d.ts.map +0 -1
- package/lib/internal/template/app-layout/skeleton/layout.js +0 -28
- package/lib/internal/template/app-layout/skeleton/layout.js.map +0 -1
- package/lib/internal/template/app-layout/skeleton/styles.css.js +0 -16
- package/lib/internal/template/app-layout/skeleton/styles.selectors.js +0 -17
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
@use '../../../internal/styles/tokens' as awsui;
|
|
6
|
+
@use '../../../internal/styles' as styles;
|
|
7
|
+
@use '../../constants.scss' as constants;
|
|
8
|
+
|
|
9
|
+
.drawer {
|
|
10
|
+
position: sticky;
|
|
11
|
+
z-index: 830;
|
|
12
|
+
background-color: awsui.$color-background-container-content;
|
|
13
|
+
display: grid;
|
|
14
|
+
grid-template-columns: awsui.$space-m 1fr;
|
|
15
|
+
|
|
16
|
+
block-size: 100%;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
19
|
+
overscroll-behavior-y: contain;
|
|
20
|
+
pointer-events: auto;
|
|
21
|
+
word-wrap: break-word;
|
|
22
|
+
|
|
23
|
+
> .drawer-content-container {
|
|
24
|
+
grid-column: 1 / span 2;
|
|
25
|
+
grid-row: 1;
|
|
26
|
+
display: grid;
|
|
27
|
+
grid-template-columns: awsui.$space-m 1fr auto awsui.$space-m;
|
|
28
|
+
grid-template-rows: awsui.$size-vertical-panel-icon-offset auto 1fr;
|
|
29
|
+
overflow-y: auto;
|
|
30
|
+
|
|
31
|
+
> .drawer-close-button {
|
|
32
|
+
grid-column: 3;
|
|
33
|
+
grid-row: 2;
|
|
34
|
+
z-index: 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
> .drawer-content {
|
|
38
|
+
grid-column: 1 / span 4;
|
|
39
|
+
grid-row: 1 / span 2;
|
|
40
|
+
&.drawer-content-hidden {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
> .drawer-slider {
|
|
47
|
+
grid-column: 1;
|
|
48
|
+
grid-row: 1;
|
|
49
|
+
block-size: 100%;
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@use '../../../internal/styles' as styles;
|
|
7
|
+
@use '../../../internal/styles/tokens' as awsui;
|
|
8
|
+
@use '../../../internal/generated/custom-css-properties/index.scss' as custom-props;
|
|
9
|
+
|
|
10
|
+
.navigation {
|
|
11
|
+
position: sticky;
|
|
12
|
+
background-color: awsui.$color-background-container-content;
|
|
13
|
+
inset-block-end: 0;
|
|
14
|
+
block-size: 100%;
|
|
15
|
+
overflow-x: hidden;
|
|
16
|
+
overflow-y: auto;
|
|
17
|
+
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
18
|
+
overscroll-behavior-y: contain;
|
|
19
|
+
word-wrap: break-word;
|
|
20
|
+
pointer-events: auto;
|
|
21
|
+
z-index: 1001;
|
|
22
|
+
|
|
23
|
+
// TODO:re-enable all transitions
|
|
24
|
+
@keyframes openNavigation {
|
|
25
|
+
from {
|
|
26
|
+
opacity: 0;
|
|
27
|
+
inline-size: calc(#{awsui.$space-layout-toggle-padding} * 2 + #{awsui.$space-layout-toggle-diameter});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
to {
|
|
31
|
+
opacity: 1;
|
|
32
|
+
inline-size: var(#{custom-props.$navigationWidth});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// All content is hidden by the overflow-x property
|
|
37
|
+
&:not(.is-navigation-open) {
|
|
38
|
+
inline-size: 0;
|
|
39
|
+
// We need to hide the closed panel to make containing focusable elements not focusable anymore.
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Apply the animation when the Navigation is opened
|
|
44
|
+
&.is-navigation-open {
|
|
45
|
+
&.animating {
|
|
46
|
+
@include styles.with-motion {
|
|
47
|
+
animation: openNavigation awsui.$motion-duration-refresh-only-fast;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/*
|
|
53
|
+
A non-semantic node is added with a fixed width equal to the final Navigation
|
|
54
|
+
width. This will create the visual appearance of horizontal movement and
|
|
55
|
+
prevent unwanted text wrapping.
|
|
56
|
+
*/
|
|
57
|
+
> .animated-content {
|
|
58
|
+
inline-size: var(#{custom-props.$navigationWidth});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// The Navigation drawer will take up the entire viewport on mobile
|
|
62
|
+
@include styles.media-breakpoint-down(styles.$breakpoint-x-small) {
|
|
63
|
+
#{custom-props.$navigationWidth}: 100vw;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.hide-navigation {
|
|
68
|
+
position: absolute;
|
|
69
|
+
inset-inline-end: awsui.$space-m;
|
|
70
|
+
inset-block-start: awsui.$size-vertical-panel-icon-offset;
|
|
71
|
+
}
|
package/lib/internal/scss/app-layout/{skeleton → visual-refresh-toolbar/skeleton}/styles.scss
RENAMED
|
@@ -2,10 +2,16 @@
|
|
|
2
2
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
-
@use '
|
|
6
|
-
@use '
|
|
7
|
-
@use '
|
|
8
|
-
@use '
|
|
5
|
+
@use '../../../internal/styles' as styles;
|
|
6
|
+
@use '../../../internal/styles/tokens' as awsui;
|
|
7
|
+
@use '../../../internal/generated/custom-css-properties/index.scss' as custom-props;
|
|
8
|
+
@use '../../constants' as constants;
|
|
9
|
+
|
|
10
|
+
@mixin desktop-only {
|
|
11
|
+
@include styles.media-breakpoint-up(styles.$breakpoint-x-small) {
|
|
12
|
+
@content;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
9
15
|
|
|
10
16
|
.root {
|
|
11
17
|
@include styles.styles-reset;
|
|
@@ -27,16 +33,17 @@
|
|
|
27
33
|
grid-template-rows: min-content min-content 1fr;
|
|
28
34
|
|
|
29
35
|
// desktop grid
|
|
30
|
-
@include
|
|
36
|
+
@include desktop-only {
|
|
31
37
|
grid-template-areas:
|
|
32
|
-
'navigation
|
|
33
|
-
'navigation . notifications . tools'
|
|
34
|
-
'navigation . main . tools';
|
|
38
|
+
'navigation toolbar toolbar toolbar toolbar tools'
|
|
39
|
+
'navigation . notifications . sideSplitPanel tools'
|
|
40
|
+
'navigation . main . sideSplitPanel tools';
|
|
35
41
|
grid-template-columns:
|
|
36
42
|
min-content
|
|
37
43
|
minmax(#{awsui.$space-layout-content-horizontal}, 1fr)
|
|
38
44
|
minmax(0, var(#{custom-props.$maxContentWidth}))
|
|
39
45
|
minmax(#{awsui.$space-layout-content-horizontal}, 1fr)
|
|
46
|
+
min-content
|
|
40
47
|
min-content;
|
|
41
48
|
grid-template-rows: min-content min-content 1fr min-content;
|
|
42
49
|
|
|
@@ -63,11 +70,11 @@
|
|
|
63
70
|
grid-row: 1 / -1;
|
|
64
71
|
grid-column: 1/ -1;
|
|
65
72
|
background: awsui.$color-background-container-content;
|
|
66
|
-
z-index:
|
|
73
|
+
z-index: 850;
|
|
67
74
|
}
|
|
68
75
|
|
|
69
76
|
.navigation {
|
|
70
|
-
@include
|
|
77
|
+
@include desktop-only {
|
|
71
78
|
grid-area: navigation;
|
|
72
79
|
inline-size: var(#{custom-props.$navigationWidth});
|
|
73
80
|
border-inline-end: 1px solid awsui.$color-border-divider-panel-side;
|
|
@@ -75,20 +82,42 @@
|
|
|
75
82
|
}
|
|
76
83
|
|
|
77
84
|
.tools {
|
|
78
|
-
@include
|
|
85
|
+
@include desktop-only {
|
|
79
86
|
grid-area: tools;
|
|
80
87
|
inline-size: var(#{custom-props.$toolsWidth});
|
|
81
88
|
border-inline-start: 1px solid awsui.$color-border-divider-panel-side;
|
|
82
89
|
}
|
|
83
90
|
}
|
|
84
91
|
|
|
85
|
-
.
|
|
86
|
-
|
|
92
|
+
.split-panel-side {
|
|
93
|
+
@include desktop-only {
|
|
94
|
+
grid-area: sideSplitPanel;
|
|
95
|
+
border-inline-start: 1px solid awsui.$color-border-divider-panel-side;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.split-panel-bottom {
|
|
100
|
+
position: sticky;
|
|
101
|
+
z-index: 840;
|
|
102
|
+
align-self: end;
|
|
103
|
+
grid-area: main;
|
|
104
|
+
grid-column: 1 / -1;
|
|
105
|
+
@include desktop-only {
|
|
106
|
+
grid-column: 2 / span 3;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.panel-hidden {
|
|
111
|
+
display: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.toolbar-container {
|
|
115
|
+
grid-area: toolbar;
|
|
87
116
|
block-size: 48px;
|
|
88
117
|
border-block-end: 1px solid awsui.$color-border-divider-panel-bottom;
|
|
89
118
|
}
|
|
90
119
|
|
|
91
|
-
.notifications {
|
|
120
|
+
.notifications-container {
|
|
92
121
|
grid-area: notifications;
|
|
93
122
|
&:not(:empty) {
|
|
94
123
|
padding-block-start: awsui.$space-scaled-xs;
|
|
@@ -106,7 +135,7 @@
|
|
|
106
135
|
margin-block-end: awsui.$space-layout-content-bottom;
|
|
107
136
|
&-disable-paddings {
|
|
108
137
|
grid-column: 1 / -1;
|
|
109
|
-
@include
|
|
138
|
+
@include desktop-only {
|
|
110
139
|
grid-column: 2 / span 3;
|
|
111
140
|
}
|
|
112
141
|
margin-block: 0;
|
|
@@ -116,3 +145,11 @@
|
|
|
116
145
|
.content-header {
|
|
117
146
|
margin-block-end: awsui.$space-content-header-padding-bottom;
|
|
118
147
|
}
|
|
148
|
+
|
|
149
|
+
/* stylelint-disable-next-line selector-combinator-disallowed-list, selector-max-universal */
|
|
150
|
+
.unfocusable-mobile * {
|
|
151
|
+
visibility: hidden;
|
|
152
|
+
@include desktop-only {
|
|
153
|
+
visibility: visible;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@use '../../../internal/styles' as styles;
|
|
7
|
+
@use '../../../internal/styles/tokens' as awsui;
|
|
8
|
+
@use '../../../internal/generated/custom-css-properties' as custom-props;
|
|
9
|
+
|
|
10
|
+
.split-panel-side {
|
|
11
|
+
position: sticky;
|
|
12
|
+
z-index: 830;
|
|
13
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@use '../../../internal/styles' as styles;
|
|
7
|
+
@use '../../../internal/styles/tokens' as awsui;
|
|
8
|
+
@use '../../../internal/generated/custom-css-properties/index.scss' as custom-props;
|
|
9
|
+
|
|
10
|
+
.universal-toolbar {
|
|
11
|
+
background-color: awsui.$color-background-layout-panel-content;
|
|
12
|
+
border-block-end: 1px solid awsui.$color-border-divider-panel-bottom;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
padding-block: 0;
|
|
15
|
+
padding-inline: awsui.$space-m;
|
|
16
|
+
position: sticky;
|
|
17
|
+
z-index: 840;
|
|
18
|
+
@include styles.with-motion {
|
|
19
|
+
transition: ease awsui.$motion-duration-refresh-only-slow;
|
|
20
|
+
transition-property: inset-block-start, opacity;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.disable-body-scroll {
|
|
24
|
+
inset-block-start: 0px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.toolbar-hidden {
|
|
28
|
+
opacity: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
> .toolbar-container {
|
|
32
|
+
block-size: 48px;
|
|
33
|
+
align-items: center;
|
|
34
|
+
display: grid;
|
|
35
|
+
column-gap: awsui.$space-static-xs;
|
|
36
|
+
inline-size: 100%;
|
|
37
|
+
grid-template-columns: min-content auto minmax(140px, 1fr);
|
|
38
|
+
grid-template-rows: 1fr;
|
|
39
|
+
|
|
40
|
+
> .universal-toolbar-nav {
|
|
41
|
+
grid-column: 1;
|
|
42
|
+
padding-inline-end: awsui.$space-static-xxs;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
> .universal-toolbar-breadcrumbs {
|
|
46
|
+
grid-column: 2;
|
|
47
|
+
background-color: transparent;
|
|
48
|
+
flex: 1 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
> .universal-toolbar-drawers {
|
|
52
|
+
grid-column: 3;
|
|
53
|
+
column-gap: awsui.$space-static-xs;
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: flex-end;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.drawers-desktop-triggers-container {
|
|
61
|
+
@include styles.styles-reset;
|
|
62
|
+
background-color: transparent;
|
|
63
|
+
box-sizing: border-box;
|
|
64
|
+
overflow-y: hidden;
|
|
65
|
+
overflow-x: hidden;
|
|
66
|
+
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
67
|
+
overscroll-behavior-y: contain;
|
|
68
|
+
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
69
|
+
overscroll-behavior-x: contain;
|
|
70
|
+
inline-size: 100%;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.drawers-trigger-content {
|
|
74
|
+
align-items: center;
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: row;
|
|
77
|
+
gap: awsui.$space-xs;
|
|
78
|
+
justify-content: flex-end;
|
|
79
|
+
|
|
80
|
+
&:not(.has-multiple-triggers).has-open-drawer {
|
|
81
|
+
opacity: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:not(.has-multiple-triggers):not(.has-open-drawer) {
|
|
85
|
+
opacity: 1;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.drawers-trigger {
|
|
90
|
+
@include styles.media-breakpoint-down(styles.$breakpoint-x-small) {
|
|
91
|
+
display: flex;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
align-items: center;
|
|
94
|
+
}
|
|
95
|
+
}
|
package/lib/internal/scss/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.scss
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@use '../../../../internal/styles' as styles;
|
|
7
|
+
@use '../../../../internal/styles/tokens' as awsui;
|
|
8
|
+
@use '../../../../internal/hooks/focus-visible' as focus-visible;
|
|
9
|
+
|
|
10
|
+
@mixin trigger-selected-styles {
|
|
11
|
+
background: awsui.$color-background-layout-toggle-selected-default;
|
|
12
|
+
color: awsui.$color-text-layout-toggle-selected;
|
|
13
|
+
border-block: awsui.$border-field-width solid awsui.$color-background-layout-toggle-selected-default;
|
|
14
|
+
border-inline: awsui.$border-field-width solid awsui.$color-background-layout-toggle-selected-default;
|
|
15
|
+
|
|
16
|
+
&:hover {
|
|
17
|
+
background: awsui.$color-background-layout-toggle-selected-hover;
|
|
18
|
+
border-color: awsui.$color-background-layout-toggle-selected-hover;
|
|
19
|
+
}
|
|
20
|
+
&:active {
|
|
21
|
+
background: awsui.$color-background-layout-toggle-selected-active;
|
|
22
|
+
border-color: awsui.$color-background-layout-toggle-selected-active;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin trigger-button-styles {
|
|
27
|
+
background: transparent;
|
|
28
|
+
color: awsui.$color-text-interactive-default;
|
|
29
|
+
border-block: awsui.$border-field-width solid transparent;
|
|
30
|
+
border-inline: awsui.$border-field-width solid transparent;
|
|
31
|
+
border-start-start-radius: 50%;
|
|
32
|
+
border-start-end-radius: 50%;
|
|
33
|
+
border-end-start-radius: 50%;
|
|
34
|
+
border-end-end-radius: 50%;
|
|
35
|
+
block-size: awsui.$space-layout-toggle-diameter;
|
|
36
|
+
inline-size: awsui.$space-layout-toggle-diameter;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
|
|
42
|
+
&:hover {
|
|
43
|
+
background: awsui.$color-background-input-disabled;
|
|
44
|
+
color: awsui.$color-text-interactive-hover;
|
|
45
|
+
border-color: awsui.$color-background-input-disabled;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:active {
|
|
49
|
+
background: awsui.$color-background-control-disabled;
|
|
50
|
+
color: awsui.$color-text-interactive-hover;
|
|
51
|
+
border-color: awsui.$color-background-control-disabled;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.trigger-badge-wrapper {
|
|
56
|
+
@include trigger-button-styles();
|
|
57
|
+
position: absolute;
|
|
58
|
+
inset-block-start: 0;
|
|
59
|
+
inset-inline-start: 0;
|
|
60
|
+
display: flex;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
align-items: center;
|
|
63
|
+
clip-path: path(
|
|
64
|
+
'M34.2193 10.1845C33.3961 10.579 32.4739 10.8 31.5 10.8C28.0206 10.8 25.2 7.97939 25.2 4.5C25.2 3.52614 25.421 2.6039 25.8155 1.78066C23.4518 0.639587 20.8006 0 18 0C8.05887 0 0 8.05887 0 18C0 27.9411 8.05887 36 18 36C27.9411 36 36 27.9411 36 18C36 15.1994 35.3604 12.5482 34.2193 10.1845Z'
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
@include styles.with-direction('rtl') {
|
|
68
|
+
clip-path: path(
|
|
69
|
+
'M1.78066 10.1845C2.6039 10.579 3.52615 10.8 4.5 10.8C7.97939 10.8 10.8 7.97939 10.8 4.5C10.8 3.52614 10.579 2.6039 10.1845 1.78066C12.5482 0.639587 15.1994 0 18 0C27.9411 0 36 8.05887 36 18C36 27.9411 27.9411 36 18 36C8.05887 36 0 27.9411 0 18C0 15.1994 0.639587 12.5482 1.78066 10.1845Z'
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/*
|
|
75
|
+
Warning! If these design tokens for width change it will adversely impact
|
|
76
|
+
the calculation used to determine the Split Panel maximum width in the
|
|
77
|
+
handleSplitPanelMaxWidth function in the context.
|
|
78
|
+
*/
|
|
79
|
+
.trigger {
|
|
80
|
+
@include trigger-button-styles();
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
pointer-events: auto;
|
|
83
|
+
|
|
84
|
+
@include focus-visible.when-visible {
|
|
85
|
+
@include styles.focus-highlight(3px);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:focus {
|
|
89
|
+
outline: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.selected {
|
|
93
|
+
@include trigger-selected-styles();
|
|
94
|
+
|
|
95
|
+
> .trigger-badge-wrapper {
|
|
96
|
+
@include trigger-selected-styles();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&.badge,
|
|
101
|
+
&.badge:hover,
|
|
102
|
+
&.badge:active {
|
|
103
|
+
background: transparent;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.trigger-wrapper {
|
|
108
|
+
position: relative;
|
|
109
|
+
border-start-start-radius: 50%;
|
|
110
|
+
border-start-end-radius: 50%;
|
|
111
|
+
border-end-start-radius: 50%;
|
|
112
|
+
border-end-end-radius: 50%;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.dot {
|
|
116
|
+
position: absolute;
|
|
117
|
+
inline-size: 9px;
|
|
118
|
+
block-size: 9px;
|
|
119
|
+
border-start-start-radius: 8px;
|
|
120
|
+
border-start-end-radius: 8px;
|
|
121
|
+
border-end-start-radius: 8px;
|
|
122
|
+
border-end-end-radius: 8px;
|
|
123
|
+
background-color: awsui.$color-background-badge-icon;
|
|
124
|
+
inset-block-start: 1px;
|
|
125
|
+
inset-inline-end: 1px;
|
|
126
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classic.d.ts","sourceRoot":"","sources":["../../../src/app-layout/classic.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAwE,MAAM,OAAO,CAAC;AAI7F,OAAO,EAAE,cAAc,EAA8B,MAAM,cAAc,CAAC;AA+B1E,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"classic.d.ts","sourceRoot":"","sources":["../../../src/app-layout/classic.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAwE,MAAM,OAAO,CAAC;AAI7F,OAAO,EAAE,cAAc,EAA8B,MAAM,cAAc,CAAC;AA+B1E,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;4CAsjBrB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -41,6 +41,7 @@ const ClassicAppLayout = React.forwardRef((_a, ref) => {
|
|
|
41
41
|
fireNonCancelableEvent(onToolsChange, { open });
|
|
42
42
|
};
|
|
43
43
|
const { drawers, activeDrawer, minDrawerSize, activeDrawerSize, activeDrawerId, ariaLabelsWithDrawers, onActiveDrawerChange, onActiveDrawerResize, } = useDrawers(Object.assign({ drawers: controlledDrawers, onDrawerChange, activeDrawerId: controlledActiveDrawerId }, rest), ariaLabels, {
|
|
44
|
+
disableDrawersMerge: true,
|
|
44
45
|
ariaLabels,
|
|
45
46
|
tools,
|
|
46
47
|
toolsOpen,
|