@cloudscape-design/components-themeable 3.0.252 → 3.0.254

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.
Files changed (146) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/app-layout/constants.scss +5 -0
  3. package/lib/internal/scss/app-layout/drawer/styles.scss +45 -5
  4. package/lib/internal/scss/app-layout/mobile-toolbar/styles.scss +6 -1
  5. package/lib/internal/scss/app-layout/test-classes/styles.scss +15 -0
  6. package/lib/internal/scss/app-layout/visual-refresh/app-bar.scss +6 -3
  7. package/lib/internal/scss/app-layout/visual-refresh/drawers.scss +151 -0
  8. package/lib/internal/scss/app-layout/visual-refresh/split-panel.scss +1 -1
  9. package/lib/internal/scss/app-layout/visual-refresh/styles.scss +1 -0
  10. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +31 -30
  11. package/lib/internal/scss/space-between/styles.scss +5 -17
  12. package/lib/internal/template/annotation-context/annotation/styles.css.js +24 -24
  13. package/lib/internal/template/annotation-context/annotation/styles.scoped.css +30 -30
  14. package/lib/internal/template/annotation-context/annotation/styles.selectors.js +24 -24
  15. package/lib/internal/template/app-layout/drawer/index.d.ts +3 -21
  16. package/lib/internal/template/app-layout/drawer/index.d.ts.map +1 -1
  17. package/lib/internal/template/app-layout/drawer/index.js +25 -5
  18. package/lib/internal/template/app-layout/drawer/index.js.map +1 -1
  19. package/lib/internal/template/app-layout/drawer/interfaces.d.ts +84 -0
  20. package/lib/internal/template/app-layout/drawer/interfaces.d.ts.map +1 -0
  21. package/lib/internal/template/app-layout/drawer/interfaces.js +2 -0
  22. package/lib/internal/template/app-layout/drawer/interfaces.js.map +1 -0
  23. package/lib/internal/template/app-layout/drawer/resizable-drawer.d.ts +4 -0
  24. package/lib/internal/template/app-layout/drawer/resizable-drawer.d.ts.map +1 -0
  25. package/lib/internal/template/app-layout/drawer/resizable-drawer.js +51 -0
  26. package/lib/internal/template/app-layout/drawer/resizable-drawer.js.map +1 -0
  27. package/lib/internal/template/app-layout/drawer/styles.css.js +10 -5
  28. package/lib/internal/template/app-layout/drawer/styles.scoped.css +46 -10
  29. package/lib/internal/template/app-layout/drawer/styles.selectors.js +10 -5
  30. package/lib/internal/template/app-layout/index.d.ts.map +1 -1
  31. package/lib/internal/template/app-layout/index.js +142 -17
  32. package/lib/internal/template/app-layout/index.js.map +1 -1
  33. package/lib/internal/template/app-layout/mobile-toolbar/index.d.ts +10 -1
  34. package/lib/internal/template/app-layout/mobile-toolbar/index.d.ts.map +1 -1
  35. package/lib/internal/template/app-layout/mobile-toolbar/index.js +3 -2
  36. package/lib/internal/template/app-layout/mobile-toolbar/index.js.map +1 -1
  37. package/lib/internal/template/app-layout/mobile-toolbar/styles.css.js +5 -4
  38. package/lib/internal/template/app-layout/mobile-toolbar/styles.scoped.css +11 -7
  39. package/lib/internal/template/app-layout/mobile-toolbar/styles.selectors.js +5 -4
  40. package/lib/internal/template/app-layout/notifications/styles.css.js +3 -3
  41. package/lib/internal/template/app-layout/notifications/styles.scoped.css +7 -7
  42. package/lib/internal/template/app-layout/notifications/styles.selectors.js +3 -3
  43. package/lib/internal/template/app-layout/test-classes/styles.css.js +18 -13
  44. package/lib/internal/template/app-layout/test-classes/styles.scoped.css +33 -13
  45. package/lib/internal/template/app-layout/test-classes/styles.selectors.js +18 -13
  46. package/lib/internal/template/app-layout/toggles/index.d.ts.map +1 -1
  47. package/lib/internal/template/app-layout/toggles/index.js +2 -2
  48. package/lib/internal/template/app-layout/toggles/index.js.map +1 -1
  49. package/lib/internal/template/app-layout/toggles/interfaces.d.ts +3 -1
  50. package/lib/internal/template/app-layout/toggles/interfaces.d.ts.map +1 -1
  51. package/lib/internal/template/app-layout/toggles/interfaces.js.map +1 -1
  52. package/lib/internal/template/app-layout/utils/use-drawer-focus-control.d.ts +21 -0
  53. package/lib/internal/template/app-layout/utils/use-drawer-focus-control.d.ts.map +1 -0
  54. package/lib/internal/template/app-layout/utils/use-drawer-focus-control.js +65 -0
  55. package/lib/internal/template/app-layout/utils/use-drawer-focus-control.js.map +1 -0
  56. package/lib/internal/template/app-layout/visual-refresh/app-bar.d.ts.map +1 -1
  57. package/lib/internal/template/app-layout/visual-refresh/app-bar.js +8 -6
  58. package/lib/internal/template/app-layout/visual-refresh/app-bar.js.map +1 -1
  59. package/lib/internal/template/app-layout/visual-refresh/context.d.ts +13 -6
  60. package/lib/internal/template/app-layout/visual-refresh/context.d.ts.map +1 -1
  61. package/lib/internal/template/app-layout/visual-refresh/context.js +107 -52
  62. package/lib/internal/template/app-layout/visual-refresh/context.js.map +1 -1
  63. package/lib/internal/template/app-layout/visual-refresh/drawers.d.ts +47 -0
  64. package/lib/internal/template/app-layout/visual-refresh/drawers.d.ts.map +1 -0
  65. package/lib/internal/template/app-layout/visual-refresh/drawers.js +127 -0
  66. package/lib/internal/template/app-layout/visual-refresh/drawers.js.map +1 -0
  67. package/lib/internal/template/app-layout/visual-refresh/header.js +2 -2
  68. package/lib/internal/template/app-layout/visual-refresh/header.js.map +1 -1
  69. package/lib/internal/template/app-layout/visual-refresh/index.d.ts.map +1 -1
  70. package/lib/internal/template/app-layout/visual-refresh/index.js +3 -1
  71. package/lib/internal/template/app-layout/visual-refresh/index.js.map +1 -1
  72. package/lib/internal/template/app-layout/visual-refresh/layout.d.ts.map +1 -1
  73. package/lib/internal/template/app-layout/visual-refresh/layout.js +5 -42
  74. package/lib/internal/template/app-layout/visual-refresh/layout.js.map +1 -1
  75. package/lib/internal/template/app-layout/visual-refresh/main.d.ts.map +1 -1
  76. package/lib/internal/template/app-layout/visual-refresh/main.js +2 -3
  77. package/lib/internal/template/app-layout/visual-refresh/main.js.map +1 -1
  78. package/lib/internal/template/app-layout/visual-refresh/navigation.js +2 -2
  79. package/lib/internal/template/app-layout/visual-refresh/navigation.js.map +1 -1
  80. package/lib/internal/template/app-layout/visual-refresh/notifications.d.ts.map +1 -1
  81. package/lib/internal/template/app-layout/visual-refresh/notifications.js +2 -2
  82. package/lib/internal/template/app-layout/visual-refresh/notifications.js.map +1 -1
  83. package/lib/internal/template/app-layout/visual-refresh/split-panel.js +2 -2
  84. package/lib/internal/template/app-layout/visual-refresh/split-panel.js.map +1 -1
  85. package/lib/internal/template/app-layout/visual-refresh/styles.css.js +71 -61
  86. package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +437 -229
  87. package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +71 -61
  88. package/lib/internal/template/app-layout/visual-refresh/tools.d.ts.map +1 -1
  89. package/lib/internal/template/app-layout/visual-refresh/tools.js +7 -3
  90. package/lib/internal/template/app-layout/visual-refresh/tools.js.map +1 -1
  91. package/lib/internal/template/app-layout/visual-refresh/trigger-button.d.ts +4 -3
  92. package/lib/internal/template/app-layout/visual-refresh/trigger-button.d.ts.map +1 -1
  93. package/lib/internal/template/app-layout/visual-refresh/trigger-button.js +5 -4
  94. package/lib/internal/template/app-layout/visual-refresh/trigger-button.js.map +1 -1
  95. package/lib/internal/template/area-chart/internal.js +1 -1
  96. package/lib/internal/template/area-chart/internal.js.map +1 -1
  97. package/lib/internal/template/flashbar/styles.css.js +45 -45
  98. package/lib/internal/template/flashbar/styles.scoped.css +169 -169
  99. package/lib/internal/template/flashbar/styles.selectors.js +45 -45
  100. package/lib/internal/template/internal/base-component/styles.scoped.css +53 -0
  101. package/lib/internal/template/internal/context/app-layout-context.d.ts +0 -1
  102. package/lib/internal/template/internal/context/app-layout-context.d.ts.map +1 -1
  103. package/lib/internal/template/internal/context/app-layout-context.js.map +1 -1
  104. package/lib/internal/template/internal/context/dynamic-overlap-context.d.ts +3 -0
  105. package/lib/internal/template/internal/context/dynamic-overlap-context.d.ts.map +1 -0
  106. package/lib/internal/template/internal/context/dynamic-overlap-context.js +5 -0
  107. package/lib/internal/template/internal/context/dynamic-overlap-context.js.map +1 -0
  108. package/lib/internal/template/internal/environment.js +1 -1
  109. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  110. package/lib/internal/template/internal/generated/custom-css-properties/index.js +31 -30
  111. package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
  112. package/lib/internal/template/internal/generated/styles/tokens.d.ts +2 -0
  113. package/lib/internal/template/internal/generated/styles/tokens.js +2 -0
  114. package/lib/internal/template/internal/generated/theming/index.cjs +140 -0
  115. package/lib/internal/template/internal/generated/theming/index.js +140 -0
  116. package/lib/internal/template/internal/hooks/use-dynamic-overlap/index.js +7 -7
  117. package/lib/internal/template/internal/hooks/use-dynamic-overlap/index.js.map +1 -1
  118. package/lib/internal/template/mixed-line-bar-chart/internal.js +1 -1
  119. package/lib/internal/template/mixed-line-bar-chart/internal.js.map +1 -1
  120. package/lib/internal/template/pie-chart/index.js +1 -1
  121. package/lib/internal/template/pie-chart/index.js.map +1 -1
  122. package/lib/internal/template/space-between/internal.js +1 -1
  123. package/lib/internal/template/space-between/internal.js.map +1 -1
  124. package/lib/internal/template/space-between/styles.css.js +20 -28
  125. package/lib/internal/template/space-between/styles.scoped.css +37 -101
  126. package/lib/internal/template/space-between/styles.selectors.js +20 -28
  127. package/lib/internal/template/test-utils/dom/button/index.js +1 -6
  128. package/lib/internal/template/test-utils/dom/button/index.js.map +1 -1
  129. package/lib/internal/template/test-utils/dom/flashbar/index.d.ts +5 -1
  130. package/lib/internal/template/test-utils/dom/flashbar/index.js +7 -0
  131. package/lib/internal/template/test-utils/dom/flashbar/index.js.map +1 -1
  132. package/lib/internal/template/test-utils/selectors/flashbar/index.d.ts +5 -1
  133. package/lib/internal/template/test-utils/selectors/flashbar/index.js +7 -0
  134. package/lib/internal/template/test-utils/selectors/flashbar/index.js.map +1 -1
  135. package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
  136. package/lib/internal/template/wizard/interfaces.d.ts +4 -0
  137. package/lib/internal/template/wizard/interfaces.d.ts.map +1 -1
  138. package/lib/internal/template/wizard/interfaces.js.map +1 -1
  139. package/lib/internal/template/wizard/wizard-actions.d.ts +2 -1
  140. package/lib/internal/template/wizard/wizard-actions.d.ts.map +1 -1
  141. package/lib/internal/template/wizard/wizard-actions.js +2 -2
  142. package/lib/internal/template/wizard/wizard-actions.js.map +1 -1
  143. package/lib/internal/template/wizard/wizard-form.d.ts.map +1 -1
  144. package/lib/internal/template/wizard/wizard-form.js +1 -1
  145. package/lib/internal/template/wizard/wizard-form.js.map +1 -1
  146. package/package.json +1 -1
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "20210cee4f66d92a45cbc56cab80f6af7a2e48f3"
2
+ "commit": "f0bd2be938687dab156dfda205da408b9e8aa1d0"
3
3
  }
@@ -12,6 +12,11 @@ $toggle-padding-horizontal: 0.7 * styles.$base-size;
12
12
  $toggle-padding-vertical: awsui.$space-xxs;
13
13
  $toggle-padding: $toggle-padding-vertical $toggle-padding-horizontal;
14
14
 
15
+ // New styles for when there are drawers
16
+ $drawers-padding-horizontal: 0.6 * styles.$base-size;
17
+ $drawers-padding-vertical: awsui.$space-scaled-xs;
18
+ $drawers-padding: $drawers-padding-vertical $drawers-padding-horizontal;
19
+
15
20
  $sidebar-size-closed: 4 * styles.$base-size;
16
21
 
17
22
  $adaptive-content-widths: (
@@ -15,12 +15,15 @@ $drawer-z-index-mobile: 1001;
15
15
  padding: constants.$toggle-padding;
16
16
  }
17
17
 
18
+ .drawer-triggers {
19
+ box-sizing: border-box;
20
+ }
21
+
18
22
  .drawer {
19
23
  flex-shrink: 0;
20
24
  position: relative;
21
25
  word-wrap: break-word;
22
26
  box-shadow: awsui.$shadow-panel;
23
-
24
27
  &:not(.drawer-mobile) {
25
28
  z-index: $drawer-z-index;
26
29
  }
@@ -32,12 +35,10 @@ $drawer-z-index-mobile: 1001;
32
35
  }
33
36
  }
34
37
  }
35
-
36
38
  .drawer-content {
37
39
  position: fixed;
38
40
  overflow: auto;
39
41
  background-color: awsui.$color-background-layout-panel-content;
40
-
41
42
  .drawer-mobile > & {
42
43
  z-index: $drawer-z-index-mobile;
43
44
  top: 0;
@@ -45,15 +46,54 @@ $drawer-z-index-mobile: 1001;
45
46
  left: 0;
46
47
  right: 0;
47
48
  }
48
-
49
49
  .drawer-closed > & {
50
50
  width: constants.$sidebar-size-closed;
51
51
  &:hover {
52
52
  background: awsui.$color-background-layout-panel-hover;
53
53
  }
54
+ &.non-interactive {
55
+ &:hover {
56
+ background: awsui.$color-background-layout-panel-content;
57
+ cursor: default;
58
+ }
59
+ }
54
60
  }
55
-
56
61
  & > [aria-hidden='true'] {
57
62
  display: none;
58
63
  }
59
64
  }
65
+
66
+ .trigger {
67
+ .drawer-triggers > & {
68
+ padding: constants.$drawers-padding;
69
+ margin: 1px constants.$drawers-padding-horizontal;
70
+ border-radius: 0;
71
+ border: 0;
72
+
73
+ &:not(:last-child) {
74
+ box-shadow: 0px 1px awsui.$color-shadow-layout-panel-trigger;
75
+ }
76
+ &-drawer {
77
+ &:hover:not(.selected) {
78
+ color: awsui.$color-text-layout-panel-trigger-hover;
79
+ &:not(:last-child) {
80
+ box-shadow: 0px 1px awsui.$color-shadow-layout-panel-trigger;
81
+ }
82
+ }
83
+ }
84
+
85
+ &.selected {
86
+ padding: constants.$drawers-padding-vertical awsui.$space-s;
87
+ margin: 0;
88
+ border-top: 1px solid awsui.$color-background-layout-panel-trigger-active;
89
+ border-bottom: 1px solid awsui.$color-background-layout-panel-trigger-active;
90
+
91
+ background-color: awsui.$color-background-layout-panel-trigger-active;
92
+ color: awsui.$color-text-layout-panel-trigger-active;
93
+ box-shadow: none;
94
+ &:hover {
95
+ cursor: default;
96
+ }
97
+ }
98
+ }
99
+ }
@@ -44,7 +44,12 @@
44
44
  &:last-child {
45
45
  border-left: 1px solid awsui.$color-border-layout;
46
46
  }
47
- &:hover {
47
+ &:hover:not(.mobile-toggle-with-drawers) {
48
48
  background: awsui.$color-background-layout-panel-hover;
49
49
  }
50
+
51
+ &-with-drawers {
52
+ display: flex;
53
+ width: auto;
54
+ }
50
55
  }
@@ -42,3 +42,18 @@
42
42
  .disable-body-scroll-root {
43
43
  /* used in tests */
44
44
  }
45
+ .drawers-desktop-triggers-container {
46
+ /* used in tests */
47
+ }
48
+ .drawers-mobile-triggers-container {
49
+ /* used in tests */
50
+ }
51
+ .drawers-trigger {
52
+ /* used in tests */
53
+ }
54
+ .active-drawer {
55
+ /* used in tests */
56
+ }
57
+ .active-drawer-close-button {
58
+ /* used in tests */
59
+ }
@@ -29,7 +29,8 @@ section.appbar {
29
29
  background-color: awsui.$color-background-layout-main;
30
30
  }
31
31
 
32
- > .appbar-tools {
32
+ > .appbar-tools,
33
+ > .drawers-mobile-triggers-container {
33
34
  grid-column: 3;
34
35
  margin-left: awsui.$space-m;
35
36
  }
@@ -53,7 +54,8 @@ section.appbar {
53
54
  }
54
55
 
55
56
  > .appbar-nav,
56
- > .appbar-tools {
57
+ > .appbar-tools,
58
+ > .drawers-mobile-triggers-container {
57
59
  display: none;
58
60
  }
59
61
 
@@ -127,7 +129,8 @@ section.appbar {
127
129
 
128
130
  // the Navigation and Tools buttons resume their grid column position
129
131
  > .appbar-nav,
130
- > .appbar-tools {
132
+ > .appbar-tools,
133
+ > .drawers-mobile-triggers-container {
131
134
  display: block;
132
135
  }
133
136
 
@@ -0,0 +1,151 @@
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/generated/custom-css-properties/index.scss' as custom-props;
7
+ @use '../../internal/styles' as styles;
8
+
9
+ .drawers-container {
10
+ background-color: transparent;
11
+ display: flex;
12
+ grid-column: 5;
13
+ grid-row: 1 / span 5;
14
+ height: var(#{custom-props.$contentHeight});
15
+ pointer-events: none;
16
+ position: sticky;
17
+ top: var(#{custom-props.$offsetTop});
18
+ z-index: 830;
19
+
20
+ &.has-open-drawer {
21
+ background-color: awsui.$color-background-container-content;
22
+ box-shadow: awsui.$shadow-panel;
23
+ }
24
+
25
+ @include styles.with-motion {
26
+ transition: background-color awsui.$motion-duration-refresh-only-fast;
27
+ }
28
+
29
+ @include styles.media-breakpoint-up(styles.$breakpoint-x-small) {
30
+ /* stylelint-disable scss/operator-no-newline-after */
31
+ max-width: calc(
32
+ var(#{custom-props.$layoutWidth}) - var(#{custom-props.$mainOffsetLeft}) -
33
+ var(#{custom-props.$defaultMinContentWidth}) - var(#{custom-props.$contentGapRight})
34
+ );
35
+ /* stylelint-enable scss/operator-no-newline-after */
36
+ }
37
+
38
+ @include styles.media-breakpoint-down(styles.$breakpoint-x-small) {
39
+ position: fixed;
40
+ right: 0;
41
+ top: var(#{custom-props.$offsetTop});
42
+ z-index: 1001;
43
+ }
44
+ }
45
+
46
+ .drawers-desktop-triggers-container {
47
+ @include styles.styles-reset;
48
+ background-color: transparent;
49
+ box-sizing: border-box;
50
+ height: 100%;
51
+ overflow-y: hidden;
52
+ overflow-x: hidden;
53
+ overscroll-behavior-y: contain;
54
+
55
+ &:not(.has-multiple-triggers).has-open-drawer {
56
+ width: 0;
57
+ }
58
+
59
+ &.has-multiple-triggers.has-open-drawer {
60
+ background-color: awsui.$color-background-container-content;
61
+
62
+ @include styles.with-motion {
63
+ transition: background-color awsui.$motion-duration-refresh-only-fast;
64
+ }
65
+ }
66
+
67
+ &:not(.has-multiple-triggers):not(.has-open-drawer) {
68
+ width: calc((awsui.$space-layout-toggle-padding * 2) + awsui.$space-layout-toggle-diameter);
69
+
70
+ @include styles.with-motion {
71
+ transition: width awsui.$motion-duration-refresh-only-fast;
72
+ }
73
+ }
74
+ }
75
+
76
+ .drawers-trigger-content {
77
+ align-items: center;
78
+ display: flex;
79
+ flex-direction: column;
80
+ gap: awsui.$space-xs;
81
+ padding-top: awsui.$space-scaled-s;
82
+ width: calc((awsui.$space-layout-toggle-padding * 2) + awsui.$space-layout-toggle-diameter);
83
+
84
+ &:not(.has-multiple-triggers).has-open-drawer {
85
+ opacity: 0;
86
+ }
87
+
88
+ &:not(.has-multiple-triggers):not(.has-open-drawer) {
89
+ opacity: 1;
90
+
91
+ @include styles.with-motion {
92
+ transition: opacity awsui.$motion-duration-refresh-only-medium;
93
+ transition-delay: calc(awsui.$motion-duration-refresh-only-fast / 1.5);
94
+ }
95
+ }
96
+ }
97
+
98
+ .drawer {
99
+ #{custom-props.$activeDrawerWidth}: 290px;
100
+ background-color: awsui.$color-background-container-content;
101
+ border-color: transparent;
102
+ display: grid;
103
+ flex-shrink: 0;
104
+ grid-template-columns: 1fr auto awsui.$space-m;
105
+ grid-template-rows: awsui.$size-vertical-panel-icon-offset auto 1fr;
106
+ height: 100%;
107
+ overflow-y: auto;
108
+ overflow-x: hidden;
109
+ overscroll-behavior-y: contain;
110
+ pointer-events: auto;
111
+ word-wrap: break-word;
112
+
113
+ > .drawer-close-button {
114
+ grid-column: 2;
115
+ grid-row: 2;
116
+ }
117
+
118
+ > .drawer-content {
119
+ grid-column: 1 / span 3;
120
+ grid-row: 1 / span 3;
121
+ width: var(#{custom-props.$activeDrawerWidth});
122
+ }
123
+
124
+ &:not(.is-drawer-open) {
125
+ opacity: 0;
126
+ width: 0;
127
+ }
128
+
129
+ &.is-drawer-open {
130
+ border-right: awsui.$border-divider-section-width solid awsui.$color-border-divider-default;
131
+ opacity: 1;
132
+ width: var(#{custom-props.$activeDrawerWidth});
133
+ }
134
+
135
+ @include styles.with-motion {
136
+ transition: awsui.$motion-duration-refresh-only-fast;
137
+ transition-property: border-color, opacity, width;
138
+ }
139
+
140
+ @include styles.media-breakpoint-up(styles.$breakpoint-xx-large) {
141
+ &.is-drawer-open {
142
+ #{custom-props.$activeDrawerWidth}: 320px;
143
+ }
144
+ }
145
+
146
+ @include styles.media-breakpoint-down(styles.$breakpoint-x-small) {
147
+ &.is-drawer-open {
148
+ #{custom-props.$activeDrawerWidth}: 100vw;
149
+ }
150
+ }
151
+ }
@@ -52,7 +52,7 @@ section.split-panel-bottom {
52
52
  grid-column-start: 2;
53
53
  }
54
54
 
55
- &.is-tools-open.position-bottom {
55
+ &.has-open-drawer.position-bottom {
56
56
  grid-column-end: 5;
57
57
  }
58
58
 
@@ -5,6 +5,7 @@
5
5
 
6
6
  @use './app-bar.scss';
7
7
  @use './background.scss';
8
+ @use './drawers.scss';
8
9
  @use './header.scss';
9
10
  @use './layout.scss';
10
11
  @use './main.scss';
@@ -1,32 +1,33 @@
1
1
 
2
- $offsetTop: --awsui-offset-top-lgrg0d;
3
- $offsetTopWithNotifications: --awsui-offset-top-with-notifications-lgrg0d;
4
- $contentGapLeft: --awsui-content-gap-left-lgrg0d;
5
- $contentGapRight: --awsui-content-gap-right-lgrg0d;
6
- $contentHeight: --awsui-content-height-lgrg0d;
7
- $defaultMaxContentWidth: --awsui-default-max-content-width-lgrg0d;
8
- $defaultMinContentWidth: --awsui-default-min-content-width-lgrg0d;
9
- $footerHeight: --awsui-footer-height-lgrg0d;
10
- $headerHeight: --awsui-header-height-lgrg0d;
11
- $layoutWidth: --awsui-layout-width-lgrg0d;
12
- $mainOffsetLeft: --awsui-main-offset-left-lgrg0d;
13
- $maxContentWidth: --awsui-max-content-width-lgrg0d;
14
- $minContentWidth: --awsui-min-content-width-lgrg0d;
15
- $notificationsHeight: --awsui-notifications-height-lgrg0d;
16
- $overlapHeight: --awsui-overlap-height-lgrg0d;
17
- $navigationWidth: --awsui-navigation-width-lgrg0d;
18
- $splitPanelReportedHeaderSize: --awsui-split-panel-reported-header-size-lgrg0d;
19
- $splitPanelReportedSize: --awsui-split-panel-reported-size-lgrg0d;
20
- $splitPanelHeight: --awsui-split-panel-height-lgrg0d;
21
- $splitPanelMinWidth: --awsui-split-panel-min-width-lgrg0d;
22
- $splitPanelMaxWidth: --awsui-split-panel-max-width-lgrg0d;
23
- $toolsMaxWidth: --awsui-tools-max-width-lgrg0d;
24
- $toolsWidth: --awsui-tools-width-lgrg0d;
25
- $toolsAnimationStartingOpacity: --awsui-tools-animation-starting-opacity-lgrg0d;
26
- $contentScrollMargin: --awsui-content-scroll-margin-lgrg0d;
27
- $flashbarStackDepth: --awsui-flashbar-stack-depth-lgrg0d;
28
- $flashbarStackIndex: --awsui-flashbar-stack-index-lgrg0d;
29
- $flashbarStickyBottomMargin: --awsui-flashbar-sticky-bottom-margin-lgrg0d;
30
- $stackedNotificationsBottomMargin: --awsui-stacked-notifications-bottom-margin-lgrg0d;
31
- $stackedNotificationsDefaultBottomMargin: --awsui-stacked-notifications-default-bottom-margin-lgrg0d;
2
+ $activeDrawerWidth: --awsui-active-drawer-width-3j0evk;
3
+ $offsetTop: --awsui-offset-top-3j0evk;
4
+ $offsetTopWithNotifications: --awsui-offset-top-with-notifications-3j0evk;
5
+ $contentGapLeft: --awsui-content-gap-left-3j0evk;
6
+ $contentGapRight: --awsui-content-gap-right-3j0evk;
7
+ $contentHeight: --awsui-content-height-3j0evk;
8
+ $defaultMaxContentWidth: --awsui-default-max-content-width-3j0evk;
9
+ $defaultMinContentWidth: --awsui-default-min-content-width-3j0evk;
10
+ $footerHeight: --awsui-footer-height-3j0evk;
11
+ $headerHeight: --awsui-header-height-3j0evk;
12
+ $layoutWidth: --awsui-layout-width-3j0evk;
13
+ $mainOffsetLeft: --awsui-main-offset-left-3j0evk;
14
+ $maxContentWidth: --awsui-max-content-width-3j0evk;
15
+ $minContentWidth: --awsui-min-content-width-3j0evk;
16
+ $notificationsHeight: --awsui-notifications-height-3j0evk;
17
+ $overlapHeight: --awsui-overlap-height-3j0evk;
18
+ $navigationWidth: --awsui-navigation-width-3j0evk;
19
+ $splitPanelReportedHeaderSize: --awsui-split-panel-reported-header-size-3j0evk;
20
+ $splitPanelReportedSize: --awsui-split-panel-reported-size-3j0evk;
21
+ $splitPanelHeight: --awsui-split-panel-height-3j0evk;
22
+ $splitPanelMinWidth: --awsui-split-panel-min-width-3j0evk;
23
+ $splitPanelMaxWidth: --awsui-split-panel-max-width-3j0evk;
24
+ $toolsMaxWidth: --awsui-tools-max-width-3j0evk;
25
+ $toolsWidth: --awsui-tools-width-3j0evk;
26
+ $toolsAnimationStartingOpacity: --awsui-tools-animation-starting-opacity-3j0evk;
27
+ $contentScrollMargin: --awsui-content-scroll-margin-3j0evk;
28
+ $flashbarStackDepth: --awsui-flashbar-stack-depth-3j0evk;
29
+ $flashbarStackIndex: --awsui-flashbar-stack-index-3j0evk;
30
+ $flashbarStickyBottomMargin: --awsui-flashbar-sticky-bottom-margin-3j0evk;
31
+ $stackedNotificationsBottomMargin: --awsui-stacked-notifications-bottom-margin-3j0evk;
32
+ $stackedNotificationsDefaultBottomMargin: --awsui-stacked-notifications-default-bottom-margin-3j0evk;
32
33
 
@@ -50,33 +50,21 @@ $sizes-vertical: (
50
50
 
51
51
  @each $name, $size in $sizes-horizontal {
52
52
  &-#{$name} {
53
- // This cancels out the margins of the children in the first row / in the first column.
54
- margin-left: calc(-1 * #{$size});
55
- margin-bottom: calc(-1 * #{$size});
53
+ gap: $size;
56
54
  }
57
55
  }
58
56
  }
59
57
 
60
- @each $name, $size in $sizes-horizontal {
61
- .child-horizontal-#{$name} {
62
- margin-left: $size;
63
- margin-bottom: $size;
64
-
65
- // This is a fix for IE11. It prevents the content from overflowing.
66
- min-width: 1px;
67
- }
68
- }
69
-
70
58
  /*
71
59
  * Vertical variant
72
60
  */
73
61
 
74
62
  .vertical {
75
63
  flex-direction: column;
76
- }
77
64
 
78
- @each $name, $size in $sizes-vertical {
79
- .child-vertical-#{$name}:not(:last-child) {
80
- margin-bottom: $size;
65
+ @each $name, $size in $sizes-vertical {
66
+ &-#{$name} {
67
+ row-gap: $size;
68
+ }
81
69
  }
82
70
  }
@@ -1,29 +1,29 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "arrow": "awsui_arrow_1hpp3_1t5h4_93",
5
- "arrow-outer": "awsui_arrow-outer_1hpp3_1t5h4_97",
6
- "arrow-inner": "awsui_arrow-inner_1hpp3_1t5h4_97",
7
- "arrow-position-right-top": "awsui_arrow-position-right-top_1hpp3_1t5h4_128",
8
- "arrow-position-right-bottom": "awsui_arrow-position-right-bottom_1hpp3_1t5h4_128",
9
- "arrow-position-left-top": "awsui_arrow-position-left-top_1hpp3_1t5h4_131",
10
- "arrow-position-left-bottom": "awsui_arrow-position-left-bottom_1hpp3_1t5h4_131",
11
- "arrow-position-top-center": "awsui_arrow-position-top-center_1hpp3_1t5h4_134",
12
- "arrow-position-top-responsive": "awsui_arrow-position-top-responsive_1hpp3_1t5h4_134",
13
- "arrow-position-bottom-center": "awsui_arrow-position-bottom-center_1hpp3_1t5h4_137",
14
- "arrow-position-bottom-responsive": "awsui_arrow-position-bottom-responsive_1hpp3_1t5h4_137",
15
- "annotation": "awsui_annotation_1hpp3_1t5h4_145",
16
- "next-button": "awsui_next-button_1hpp3_1t5h4_146",
17
- "previous-button": "awsui_previous-button_1hpp3_1t5h4_147",
18
- "finish-button": "awsui_finish-button_1hpp3_1t5h4_148",
19
- "header": "awsui_header_1hpp3_1t5h4_149",
20
- "step-counter-content": "awsui_step-counter-content_1hpp3_1t5h4_150",
21
- "content": "awsui_content_1hpp3_1t5h4_151",
22
- "description": "awsui_description_1hpp3_1t5h4_155",
23
- "actionBar": "awsui_actionBar_1hpp3_1t5h4_160",
24
- "stepCounter": "awsui_stepCounter_1hpp3_1t5h4_167",
25
- "divider": "awsui_divider_1hpp3_1t5h4_171",
26
- "hotspot": "awsui_hotspot_1hpp3_1t5h4_175",
27
- "icon": "awsui_icon_1hpp3_1t5h4_215"
4
+ "arrow": "awsui_arrow_1hpp3_1umef_93",
5
+ "arrow-outer": "awsui_arrow-outer_1hpp3_1umef_97",
6
+ "arrow-inner": "awsui_arrow-inner_1hpp3_1umef_97",
7
+ "arrow-position-right-top": "awsui_arrow-position-right-top_1hpp3_1umef_128",
8
+ "arrow-position-right-bottom": "awsui_arrow-position-right-bottom_1hpp3_1umef_128",
9
+ "arrow-position-left-top": "awsui_arrow-position-left-top_1hpp3_1umef_131",
10
+ "arrow-position-left-bottom": "awsui_arrow-position-left-bottom_1hpp3_1umef_131",
11
+ "arrow-position-top-center": "awsui_arrow-position-top-center_1hpp3_1umef_134",
12
+ "arrow-position-top-responsive": "awsui_arrow-position-top-responsive_1hpp3_1umef_134",
13
+ "arrow-position-bottom-center": "awsui_arrow-position-bottom-center_1hpp3_1umef_137",
14
+ "arrow-position-bottom-responsive": "awsui_arrow-position-bottom-responsive_1hpp3_1umef_137",
15
+ "annotation": "awsui_annotation_1hpp3_1umef_145",
16
+ "next-button": "awsui_next-button_1hpp3_1umef_146",
17
+ "previous-button": "awsui_previous-button_1hpp3_1umef_147",
18
+ "finish-button": "awsui_finish-button_1hpp3_1umef_148",
19
+ "header": "awsui_header_1hpp3_1umef_149",
20
+ "step-counter-content": "awsui_step-counter-content_1hpp3_1umef_150",
21
+ "content": "awsui_content_1hpp3_1umef_151",
22
+ "description": "awsui_description_1hpp3_1umef_155",
23
+ "actionBar": "awsui_actionBar_1hpp3_1umef_160",
24
+ "stepCounter": "awsui_stepCounter_1hpp3_1umef_167",
25
+ "divider": "awsui_divider_1hpp3_1umef_171",
26
+ "hotspot": "awsui_hotspot_1hpp3_1umef_175",
27
+ "icon": "awsui_icon_1hpp3_1umef_215"
28
28
  };
29
29
 
@@ -90,11 +90,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_arrow_1hpp3_1t5h4_93:not(#\9) {
93
+ .awsui_arrow_1hpp3_1umef_93:not(#\9) {
94
94
  width: 20px;
95
95
  height: 10px;
96
96
  }
97
- .awsui_arrow-outer_1hpp3_1t5h4_97:not(#\9), .awsui_arrow-inner_1hpp3_1t5h4_97:not(#\9) {
97
+ .awsui_arrow-outer_1hpp3_1umef_97:not(#\9), .awsui_arrow-inner_1hpp3_1umef_97:not(#\9) {
98
98
  position: absolute;
99
99
  overflow: hidden;
100
100
  width: 20px;
@@ -102,7 +102,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
102
102
  top: 0;
103
103
  left: 0;
104
104
  }
105
- .awsui_arrow-outer_1hpp3_1t5h4_97:not(#\9)::after, .awsui_arrow-inner_1hpp3_1t5h4_97:not(#\9)::after {
105
+ .awsui_arrow-outer_1hpp3_1umef_97:not(#\9)::after, .awsui_arrow-inner_1hpp3_1umef_97:not(#\9)::after {
106
106
  content: "";
107
107
  box-sizing: border-box;
108
108
  display: inline-block;
@@ -115,26 +115,26 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
115
115
  transform: rotate(45deg);
116
116
  transform-origin: 0 100%;
117
117
  }
118
- .awsui_arrow-outer_1hpp3_1t5h4_97:not(#\9)::after {
118
+ .awsui_arrow-outer_1hpp3_1umef_97:not(#\9)::after {
119
119
  background-color: var(--color-border-status-info-0iedcr, #0073bb);
120
120
  }
121
- .awsui_arrow-inner_1hpp3_1t5h4_97:not(#\9) {
121
+ .awsui_arrow-inner_1hpp3_1umef_97:not(#\9) {
122
122
  top: 2px;
123
123
  }
124
- .awsui_arrow-inner_1hpp3_1t5h4_97:not(#\9)::after {
124
+ .awsui_arrow-inner_1hpp3_1umef_97:not(#\9)::after {
125
125
  border-radius: 1px 0 0 0;
126
126
  background-color: var(--color-background-status-info-yq3r41, #f1faff);
127
127
  }
128
- .awsui_arrow-position-right-top_1hpp3_1t5h4_128 > .awsui_arrow-outer_1hpp3_1t5h4_97:not(#\9)::after, .awsui_arrow-position-right-bottom_1hpp3_1t5h4_128 > .awsui_arrow-outer_1hpp3_1t5h4_97:not(#\9)::after {
128
+ .awsui_arrow-position-right-top_1hpp3_1umef_128 > .awsui_arrow-outer_1hpp3_1umef_97:not(#\9)::after, .awsui_arrow-position-right-bottom_1hpp3_1umef_128 > .awsui_arrow-outer_1hpp3_1umef_97:not(#\9)::after {
129
129
  box-shadow: -0.71px 0.71px 4px -2px var(--color-shadow-default-94w2kz, rgba(0, 28, 36, 0.5));
130
130
  }
131
- .awsui_arrow-position-left-top_1hpp3_1t5h4_131 > .awsui_arrow-outer_1hpp3_1t5h4_97:not(#\9)::after, .awsui_arrow-position-left-bottom_1hpp3_1t5h4_131 > .awsui_arrow-outer_1hpp3_1t5h4_97:not(#\9)::after {
131
+ .awsui_arrow-position-left-top_1hpp3_1umef_131 > .awsui_arrow-outer_1hpp3_1umef_97:not(#\9)::after, .awsui_arrow-position-left-bottom_1hpp3_1umef_131 > .awsui_arrow-outer_1hpp3_1umef_97:not(#\9)::after {
132
132
  box-shadow: 0.71px -0.71px 4px -2px var(--color-shadow-default-94w2kz, rgba(0, 28, 36, 0.5));
133
133
  }
134
- .awsui_arrow-position-top-center_1hpp3_1t5h4_134 > .awsui_arrow-outer_1hpp3_1t5h4_97:not(#\9)::after, .awsui_arrow-position-top-responsive_1hpp3_1t5h4_134 > .awsui_arrow-outer_1hpp3_1t5h4_97:not(#\9)::after {
134
+ .awsui_arrow-position-top-center_1hpp3_1umef_134 > .awsui_arrow-outer_1hpp3_1umef_97:not(#\9)::after, .awsui_arrow-position-top-responsive_1hpp3_1umef_134 > .awsui_arrow-outer_1hpp3_1umef_97:not(#\9)::after {
135
135
  box-shadow: -0.71px -0.71px 4px -2px var(--color-shadow-default-94w2kz, rgba(0, 28, 36, 0.5));
136
136
  }
137
- .awsui_arrow-position-bottom-center_1hpp3_1t5h4_137 > .awsui_arrow-outer_1hpp3_1t5h4_97:not(#\9)::after, .awsui_arrow-position-bottom-responsive_1hpp3_1t5h4_137 > .awsui_arrow-outer_1hpp3_1t5h4_97:not(#\9)::after {
137
+ .awsui_arrow-position-bottom-center_1hpp3_1umef_137 > .awsui_arrow-outer_1hpp3_1umef_97:not(#\9)::after, .awsui_arrow-position-bottom-responsive_1hpp3_1umef_137 > .awsui_arrow-outer_1hpp3_1umef_97:not(#\9)::after {
138
138
  box-shadow: 0.71px 0.71px 4px -2px var(--color-shadow-default-94w2kz, rgba(0, 28, 36, 0.5));
139
139
  }
140
140
 
@@ -142,37 +142,37 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
142
142
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
143
143
  SPDX-License-Identifier: Apache-2.0
144
144
  */
145
- .awsui_annotation_1hpp3_1t5h4_145:not(#\9),
146
- .awsui_next-button_1hpp3_1t5h4_146:not(#\9),
147
- .awsui_previous-button_1hpp3_1t5h4_147:not(#\9),
148
- .awsui_finish-button_1hpp3_1t5h4_148:not(#\9),
149
- .awsui_header_1hpp3_1t5h4_149:not(#\9),
150
- .awsui_step-counter-content_1hpp3_1t5h4_150:not(#\9),
151
- .awsui_content_1hpp3_1t5h4_151:not(#\9) {
145
+ .awsui_annotation_1hpp3_1umef_145:not(#\9),
146
+ .awsui_next-button_1hpp3_1umef_146:not(#\9),
147
+ .awsui_previous-button_1hpp3_1umef_147:not(#\9),
148
+ .awsui_finish-button_1hpp3_1umef_148:not(#\9),
149
+ .awsui_header_1hpp3_1umef_149:not(#\9),
150
+ .awsui_step-counter-content_1hpp3_1umef_150:not(#\9),
151
+ .awsui_content_1hpp3_1umef_151:not(#\9) {
152
152
  /* used in test-utils */
153
153
  }
154
154
 
155
- .awsui_description_1hpp3_1t5h4_155:not(#\9) {
155
+ .awsui_description_1hpp3_1umef_155:not(#\9) {
156
156
  overflow: hidden;
157
157
  margin-top: var(--space-xxs-ynfts5, 4px);
158
158
  }
159
159
 
160
- .awsui_actionBar_1hpp3_1t5h4_160:not(#\9) {
160
+ .awsui_actionBar_1hpp3_1umef_160:not(#\9) {
161
161
  display: flex;
162
162
  justify-content: space-between;
163
163
  align-items: center;
164
164
  position: relative;
165
165
  }
166
166
 
167
- .awsui_stepCounter_1hpp3_1t5h4_167:not(#\9) {
167
+ .awsui_stepCounter_1hpp3_1umef_167:not(#\9) {
168
168
  margin-right: 20px;
169
169
  }
170
170
 
171
- .awsui_divider_1hpp3_1t5h4_171:not(#\9) {
171
+ .awsui_divider_1hpp3_1umef_171:not(#\9) {
172
172
  border-bottom: var(--border-divider-section-width-5a4cv1, 1px) solid var(--color-border-divider-default-k96bks, #eaeded);
173
173
  }
174
174
 
175
- .awsui_hotspot_1hpp3_1t5h4_175:not(#\9) {
175
+ .awsui_hotspot_1hpp3_1umef_175:not(#\9) {
176
176
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
177
177
  border-collapse: separate;
178
178
  border-spacing: 0;
@@ -213,21 +213,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
213
213
  border: none;
214
214
  padding: 0;
215
215
  cursor: pointer;
216
- scroll-margin: var(--awsui-content-scroll-margin-lgrg0d, 40px 0 0 0);
216
+ scroll-margin: var(--awsui-content-scroll-margin-3j0evk, 40px 0 0 0);
217
217
  width: 16px;
218
218
  height: 16px;
219
219
  }
220
- .awsui_hotspot_1hpp3_1t5h4_175:not(#\9):focus {
220
+ .awsui_hotspot_1hpp3_1umef_175:not(#\9):focus {
221
221
  outline: none;
222
222
  }
223
- body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_1t5h4_175:not(#\9):focus {
223
+ body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_1umef_175:not(#\9):focus {
224
224
  position: relative;
225
225
  }
226
- body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_1t5h4_175:not(#\9):focus {
226
+ body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_1umef_175:not(#\9):focus {
227
227
  outline: 2px dotted transparent;
228
228
  outline-offset: calc(2px - 1px);
229
229
  }
230
- body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_1t5h4_175:not(#\9):focus::before {
230
+ body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_1umef_175:not(#\9):focus::before {
231
231
  content: " ";
232
232
  display: block;
233
233
  position: absolute;
@@ -238,13 +238,13 @@ body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_1t5h4_175:not(#\9):focu
238
238
  border-radius: var(--border-radius-control-circular-focus-ring-l88ib6, 50%);
239
239
  box-shadow: 0 0 0 2px var(--color-border-item-focused-n5kd8g, #0073bb);
240
240
  }
241
- .awsui_hotspot_1hpp3_1t5h4_175 > .awsui_icon_1hpp3_1t5h4_215:not(#\9) {
241
+ .awsui_hotspot_1hpp3_1umef_175 > .awsui_icon_1hpp3_1umef_215:not(#\9) {
242
242
  position: relative;
243
243
  stroke: var(--color-text-link-default-753y4e, #0073bb);
244
244
  }
245
- .awsui_hotspot_1hpp3_1t5h4_175:not(#\9):hover > .awsui_icon_1hpp3_1t5h4_215 {
245
+ .awsui_hotspot_1hpp3_1umef_175:not(#\9):hover > .awsui_icon_1hpp3_1umef_215 {
246
246
  stroke: var(--color-text-link-hover-ok01xk, #0073bb);
247
247
  }
248
- .awsui_hotspot_1hpp3_1t5h4_175:not(#\9):active > .awsui_icon_1hpp3_1t5h4_215 {
248
+ .awsui_hotspot_1hpp3_1umef_175:not(#\9):active > .awsui_icon_1hpp3_1umef_215 {
249
249
  stroke: var(--color-text-link-default-753y4e, #0073bb);
250
250
  }