@cloudscape-design/components-themeable 3.0.983 → 3.0.985
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/test-classes/styles.scss +2 -1
- package/lib/internal/scss/app-layout/visual-refresh-toolbar/drawer/styles.scss +147 -1
- package/lib/internal/scss/app-layout/visual-refresh-toolbar/skeleton/styles.scss +21 -0
- package/lib/internal/scss/drawer/styles.scss +22 -6
- package/lib/internal/scss/internal/components/chart-popover/test-classes/styles.scss +1 -1
- package/lib/internal/scss/internal/components/panel-resize-handle/styles.scss +2 -1
- package/lib/internal/template/LICENSE +175 -0
- package/lib/internal/template/NOTICE +1 -0
- package/lib/internal/template/README.md +47 -0
- package/lib/internal/template/app-layout/test-classes/styles.css.js +24 -23
- package/lib/internal/template/app-layout/test-classes/styles.scoped.css +24 -23
- package/lib/internal/template/app-layout/test-classes/styles.selectors.js +24 -23
- package/lib/internal/template/app-layout/utils/use-drawers.d.ts +2 -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 +6 -0
- package/lib/internal/template/app-layout/utils/use-drawers.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-drawer.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-drawer.js +27 -15
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-drawer.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-drawers.js +2 -2
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-drawers.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +17 -10
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +145 -11
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +17 -10
- package/lib/internal/template/app-layout/visual-refresh-toolbar/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/index.js +10 -2
- package/lib/internal/template/app-layout/visual-refresh-toolbar/index.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.d.ts +6 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/multi-layout.d.ts +2 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/multi-layout.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/multi-layout.js +4 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/multi-layout.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/index.d.ts +2 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/index.js +6 -5
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/index.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +21 -19
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +45 -35
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +21 -19
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts +3 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js +33 -6
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.d.ts +2 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js +12 -3
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
- package/lib/internal/template/drawer/implementation.d.ts.map +1 -1
- package/lib/internal/template/drawer/implementation.js +4 -1
- package/lib/internal/template/drawer/implementation.js.map +1 -1
- package/lib/internal/template/drawer/styles.css.js +8 -6
- package/lib/internal/template/drawer/styles.scoped.css +32 -17
- package/lib/internal/template/drawer/styles.selectors.js +8 -6
- package/lib/internal/template/icon/generated/icons.js +1 -1
- package/lib/internal/template/icon/generated/icons.js.map +1 -1
- package/lib/internal/template/index.d.ts +0 -1
- package/lib/internal/template/index.d.ts.map +1 -1
- package/lib/internal/template/index.js +0 -1
- package/lib/internal/template/index.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +11 -0
- package/lib/internal/template/internal/components/drag-handle/resize-icon.d.ts.map +1 -1
- package/lib/internal/template/internal/components/drag-handle/resize-icon.js +1 -2
- package/lib/internal/template/internal/components/drag-handle/resize-icon.js.map +1 -1
- package/lib/internal/template/internal/components/panel-resize-handle/styles.css.js +2 -2
- package/lib/internal/template/internal/components/panel-resize-handle/styles.scoped.css +8 -7
- package/lib/internal/template/internal/components/panel-resize-handle/styles.selectors.js +2 -2
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/environment.json +1 -1
- package/lib/internal/template/internal/generated/styles/tokens.d.ts +1 -0
- package/lib/internal/template/internal/generated/styles/tokens.js +1 -0
- package/lib/internal/template/internal/generated/theming/index.cjs +31 -0
- package/lib/internal/template/internal/generated/theming/index.js +31 -0
- package/lib/internal/template/internal/plugins/controllers/drawers.d.ts +2 -0
- package/lib/internal/template/internal/plugins/controllers/drawers.d.ts.map +1 -1
- package/lib/internal/template/internal/plugins/controllers/drawers.js.map +1 -1
- package/lib/internal/template/package.json +0 -1
- package/lib/internal/template/test-utils/dom/index.d.ts +0 -20
- package/lib/internal/template/test-utils/dom/index.js +1 -12
- package/lib/internal/template/test-utils/dom/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/index.d.ts +0 -18
- package/lib/internal/template/test-utils/selectors/index.js +1 -12
- package/lib/internal/template/test-utils/selectors/index.js.map +1 -1
- package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/lib/internal/scss/tree-view/test-classes/styles.scss +0 -8
- package/lib/internal/template/test-utils/dom/tree-view/index.d.ts +0 -4
- package/lib/internal/template/test-utils/dom/tree-view/index.js +0 -11
- package/lib/internal/template/test-utils/dom/tree-view/index.js.map +0 -1
- package/lib/internal/template/test-utils/selectors/tree-view/index.d.ts +0 -4
- package/lib/internal/template/test-utils/selectors/tree-view/index.js +0 -11
- package/lib/internal/template/test-utils/selectors/tree-view/index.js.map +0 -1
- package/lib/internal/template/tree-view/index.d.ts +0 -8
- package/lib/internal/template/tree-view/index.d.ts.map +0 -1
- package/lib/internal/template/tree-view/index.js +0 -22
- package/lib/internal/template/tree-view/index.js.map +0 -1
- package/lib/internal/template/tree-view/interfaces.d.ts +0 -6
- package/lib/internal/template/tree-view/interfaces.d.ts.map +0 -1
- package/lib/internal/template/tree-view/interfaces.js +0 -4
- package/lib/internal/template/tree-view/interfaces.js.map +0 -1
- package/lib/internal/template/tree-view/test-classes/styles.css.js +0 -6
- package/lib/internal/template/tree-view/test-classes/styles.scoped.css +0 -7
- package/lib/internal/template/tree-view/test-classes/styles.selectors.js +0 -7
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
$global-drawer-gap-size: 8px;
|
|
23
|
+
$global-drawer-expanded-mode-motion: #{awsui.$motion-duration-refresh-only-slow} #{awsui.$motion-easing-refresh-only-a};
|
|
24
|
+
$drawer-resize-handle-size: awsui.$space-m;
|
|
25
|
+
|
|
22
26
|
.drawer {
|
|
23
27
|
position: sticky;
|
|
24
28
|
z-index: constants.$drawer-z-index;
|
|
@@ -34,6 +38,14 @@
|
|
|
34
38
|
pointer-events: auto;
|
|
35
39
|
word-wrap: break-word;
|
|
36
40
|
|
|
41
|
+
&.with-expanded-motion {
|
|
42
|
+
@include styles.with-motion {
|
|
43
|
+
transition:
|
|
44
|
+
inline-size #{$global-drawer-expanded-mode-motion},
|
|
45
|
+
min-inline-size #{$global-drawer-expanded-mode-motion};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
37
49
|
@include desktop-only {
|
|
38
50
|
&:not(.legacy) {
|
|
39
51
|
border-inline-start: awsui.$border-divider-section-width solid awsui.$color-border-layout;
|
|
@@ -48,8 +60,14 @@
|
|
|
48
60
|
}
|
|
49
61
|
|
|
50
62
|
&.drawer-global {
|
|
63
|
+
display: block;
|
|
64
|
+
|
|
65
|
+
@include desktop-only {
|
|
66
|
+
inline-size: var(#{custom-props.$drawerSize});
|
|
67
|
+
}
|
|
68
|
+
|
|
51
69
|
@include mobile-only {
|
|
52
|
-
&:not(.last-opened) {
|
|
70
|
+
&:not(.last-opened):not(.drawer-expanded) {
|
|
53
71
|
display: none;
|
|
54
72
|
}
|
|
55
73
|
}
|
|
@@ -59,6 +77,47 @@
|
|
|
59
77
|
display: none;
|
|
60
78
|
}
|
|
61
79
|
|
|
80
|
+
&.drawer-expanded {
|
|
81
|
+
inline-size: 100%;
|
|
82
|
+
|
|
83
|
+
@include desktop-only {
|
|
84
|
+
border-inline-start: none;
|
|
85
|
+
|
|
86
|
+
&.has-next-siblings {
|
|
87
|
+
> .global-drawer-wrapper {
|
|
88
|
+
&:after {
|
|
89
|
+
content: '';
|
|
90
|
+
position: absolute;
|
|
91
|
+
block-size: 100%;
|
|
92
|
+
inline-size: $global-drawer-gap-size;
|
|
93
|
+
inset-inline-end: 0;
|
|
94
|
+
background: awsui.$color-gap-global-drawer;
|
|
95
|
+
border-inline-start: awsui.$border-divider-section-width solid awsui.$color-border-layout;
|
|
96
|
+
box-sizing: border-box;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
> .global-drawer-wrapper {
|
|
102
|
+
inline-size: 100%;
|
|
103
|
+
grid-template-columns: $global-drawer-gap-size 1fr;
|
|
104
|
+
|
|
105
|
+
> .drawer-content-container {
|
|
106
|
+
grid-column: 2;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
> .drawer-gap {
|
|
110
|
+
grid-column: 1;
|
|
111
|
+
grid-row: 1;
|
|
112
|
+
block-size: 100%;
|
|
113
|
+
inline-size: $global-drawer-gap-size;
|
|
114
|
+
background: awsui.$color-gap-global-drawer;
|
|
115
|
+
border-inline-end: awsui.$border-divider-section-width solid awsui.$color-border-layout;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
62
121
|
> .drawer-content-container {
|
|
63
122
|
grid-column: 1 / span 2;
|
|
64
123
|
grid-row: 1;
|
|
@@ -66,6 +125,7 @@
|
|
|
66
125
|
grid-template-columns: awsui.$space-m 1fr auto awsui.$space-m;
|
|
67
126
|
grid-template-rows: constants.$toolbar-vertical-panel-icon-offset auto 1fr;
|
|
68
127
|
overflow-y: auto;
|
|
128
|
+
min-inline-size: var(#{custom-props.$drawerSize});
|
|
69
129
|
|
|
70
130
|
> .drawer-close-button {
|
|
71
131
|
grid-column: 3;
|
|
@@ -74,6 +134,15 @@
|
|
|
74
134
|
align-self: start;
|
|
75
135
|
}
|
|
76
136
|
|
|
137
|
+
> .drawer-expanded-mode-button {
|
|
138
|
+
grid-column: 2;
|
|
139
|
+
grid-row: 2;
|
|
140
|
+
z-index: 1;
|
|
141
|
+
align-self: start;
|
|
142
|
+
display: flex;
|
|
143
|
+
justify-content: end;
|
|
144
|
+
}
|
|
145
|
+
|
|
77
146
|
> .drawer-content {
|
|
78
147
|
grid-column: 1 / span 4;
|
|
79
148
|
grid-row: 1 / span 2;
|
|
@@ -90,4 +159,81 @@
|
|
|
90
159
|
display: flex;
|
|
91
160
|
align-items: center;
|
|
92
161
|
}
|
|
162
|
+
|
|
163
|
+
> .global-drawer-wrapper {
|
|
164
|
+
display: grid;
|
|
165
|
+
min-inline-size: var(#{custom-props.$drawerSize});
|
|
166
|
+
grid-template-columns: $global-drawer-gap-size $drawer-resize-handle-size 1fr;
|
|
167
|
+
overflow: hidden;
|
|
168
|
+
|
|
169
|
+
@include mobile-only {
|
|
170
|
+
grid-template-columns: 1fr;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
> .drawer-gap {
|
|
174
|
+
grid-column: 1;
|
|
175
|
+
grid-row: 1;
|
|
176
|
+
block-size: 100%;
|
|
177
|
+
inline-size: $global-drawer-gap-size;
|
|
178
|
+
background: awsui.$color-gap-global-drawer;
|
|
179
|
+
border-inline-end: awsui.$border-divider-section-width solid awsui.$color-border-layout;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
> .drawer-slider {
|
|
183
|
+
grid-column: 2;
|
|
184
|
+
grid-row: 1;
|
|
185
|
+
display: flex;
|
|
186
|
+
align-items: center;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
> .drawer-content-container {
|
|
190
|
+
grid-row: 1;
|
|
191
|
+
display: grid;
|
|
192
|
+
grid-template-columns: $drawer-resize-handle-size 1fr auto $drawer-resize-handle-size;
|
|
193
|
+
grid-template-rows: constants.$toolbar-vertical-panel-icon-offset auto 1fr;
|
|
194
|
+
overflow-y: auto;
|
|
195
|
+
|
|
196
|
+
@include desktop-only {
|
|
197
|
+
grid-column: 2 / span 2;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@include mobile-only {
|
|
201
|
+
grid-column: 1 / span 2;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
> .drawer-actions {
|
|
205
|
+
position: absolute;
|
|
206
|
+
display: flex;
|
|
207
|
+
align-self: flex-start;
|
|
208
|
+
justify-self: flex-end;
|
|
209
|
+
padding-inline-end: awsui.$space-m;
|
|
210
|
+
padding-block-start: constants.$toolbar-vertical-panel-icon-offset;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
> .drawer-close-button {
|
|
214
|
+
grid-column: 3;
|
|
215
|
+
grid-row: 2;
|
|
216
|
+
z-index: 1;
|
|
217
|
+
align-self: start;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
> .drawer-expanded-mode-button {
|
|
221
|
+
grid-column: 2;
|
|
222
|
+
grid-row: 2;
|
|
223
|
+
z-index: 1;
|
|
224
|
+
align-self: start;
|
|
225
|
+
display: flex;
|
|
226
|
+
justify-content: end;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
> .drawer-content {
|
|
230
|
+
grid-column: 1 / span 4;
|
|
231
|
+
grid-row: 1 / span 2;
|
|
232
|
+
|
|
233
|
+
&.drawer-content-hidden {
|
|
234
|
+
display: none;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
93
239
|
}
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
@mixin grid-column-full-content-width {
|
|
24
24
|
grid-column: 1 / -1;
|
|
25
|
+
|
|
25
26
|
@include desktop-only {
|
|
26
27
|
grid-column: 2 / 5;
|
|
27
28
|
}
|
|
@@ -72,6 +73,17 @@
|
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
75
|
}
|
|
76
|
+
|
|
77
|
+
&.drawer-expanded-mode {
|
|
78
|
+
grid-template-columns:
|
|
79
|
+
0
|
|
80
|
+
0
|
|
81
|
+
0
|
|
82
|
+
0
|
|
83
|
+
0
|
|
84
|
+
0
|
|
85
|
+
auto;
|
|
86
|
+
}
|
|
75
87
|
}
|
|
76
88
|
}
|
|
77
89
|
|
|
@@ -82,6 +94,7 @@
|
|
|
82
94
|
grid-column: 1 / -1;
|
|
83
95
|
background: awsui.$color-background-container-content;
|
|
84
96
|
opacity: 1;
|
|
97
|
+
|
|
85
98
|
@include mobile-only {
|
|
86
99
|
inline-size: 100%;
|
|
87
100
|
}
|
|
@@ -109,6 +122,7 @@
|
|
|
109
122
|
/* stylelint-disable plugin/no-unsupported-browser-features */
|
|
110
123
|
&:not(:has(> [data-testid])) {
|
|
111
124
|
inline-size: var(#{custom-props.$toolsWidth});
|
|
125
|
+
|
|
112
126
|
&.tools-open {
|
|
113
127
|
border-inline-start: awsui.$border-divider-section-width solid awsui.$color-border-layout;
|
|
114
128
|
}
|
|
@@ -120,6 +134,7 @@
|
|
|
120
134
|
@include desktop-only {
|
|
121
135
|
display: flex;
|
|
122
136
|
grid-area: global-tools;
|
|
137
|
+
justify-content: flex-end;
|
|
123
138
|
}
|
|
124
139
|
}
|
|
125
140
|
|
|
@@ -144,6 +159,7 @@
|
|
|
144
159
|
border-inline: none;
|
|
145
160
|
opacity: 0;
|
|
146
161
|
z-index: 0;
|
|
162
|
+
|
|
147
163
|
&.navigation,
|
|
148
164
|
&.tools,
|
|
149
165
|
&.global-tools {
|
|
@@ -176,6 +192,7 @@
|
|
|
176
192
|
grid-area: main;
|
|
177
193
|
margin-block-start: awsui.$space-scaled-s;
|
|
178
194
|
margin-block-end: awsui.$space-layout-content-bottom;
|
|
195
|
+
|
|
179
196
|
&-disable-paddings {
|
|
180
197
|
margin-block: 0;
|
|
181
198
|
@include grid-column-full-content-width;
|
|
@@ -196,3 +213,7 @@
|
|
|
196
213
|
visibility: hidden;
|
|
197
214
|
}
|
|
198
215
|
}
|
|
216
|
+
|
|
217
|
+
.hidden {
|
|
218
|
+
display: none;
|
|
219
|
+
}
|
|
@@ -5,6 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
@use '../internal/styles/tokens' as awsui;
|
|
7
7
|
@use '../internal/styles' as styles;
|
|
8
|
+
@use '../app-layout/constants.scss' as constants;
|
|
9
|
+
|
|
10
|
+
@mixin desktop-only {
|
|
11
|
+
@include styles.media-breakpoint-up(styles.$breakpoint-x-small) {
|
|
12
|
+
@content;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
8
15
|
|
|
9
16
|
.drawer {
|
|
10
17
|
@include styles.styles-reset;
|
|
@@ -17,10 +24,24 @@
|
|
|
17
24
|
justify-content: space-between;
|
|
18
25
|
color: awsui.$color-text-heading-default;
|
|
19
26
|
padding-block: awsui.$space-panel-header-vertical;
|
|
20
|
-
padding-inline: awsui.$space-panel-side-left calc(#{awsui.$space-
|
|
27
|
+
padding-inline: awsui.$space-panel-side-left calc(#{awsui.$space-l} + #{awsui.$space-scaled-xxl});
|
|
21
28
|
// padding to make sure the header doesn't overlap with the close icon
|
|
22
29
|
border-block-end: awsui.$border-divider-section-width solid awsui.$color-border-panel-header;
|
|
23
30
|
|
|
31
|
+
@include desktop-only {
|
|
32
|
+
&.with-additional-action {
|
|
33
|
+
/*
|
|
34
|
+
this padding is needed when the drawer renders inside a runtime drawer and the runtime drawer has an additional action
|
|
35
|
+
on the right (or left in rtl). in this case this padding ensures that the drawer's content does not overlap with runtime actions
|
|
36
|
+
*/
|
|
37
|
+
padding-inline: awsui.$space-panel-side-left calc(#{awsui.$space-xxxl} + #{awsui.$space-scaled-xxl});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.with-runtime-context {
|
|
42
|
+
padding-block: constants.$toolbar-vertical-panel-icon-offset;
|
|
43
|
+
}
|
|
44
|
+
|
|
24
45
|
.with-toolbar > & {
|
|
25
46
|
border-color: transparent;
|
|
26
47
|
margin-block-end: 0px;
|
|
@@ -43,11 +64,6 @@
|
|
|
43
64
|
display: inline-flex;
|
|
44
65
|
align-items: flex-start;
|
|
45
66
|
z-index: 1;
|
|
46
|
-
/*
|
|
47
|
-
Compensate for the difference between the runtime drawer's and the drawer component's heading
|
|
48
|
-
to ensure the header actions are vertically aligned
|
|
49
|
-
*/
|
|
50
|
-
margin-block-start: -6px;
|
|
51
67
|
}
|
|
52
68
|
|
|
53
69
|
.content-with-paddings:not(:empty) {
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
## React components for Cloudscape Design System
|
|
2
|
+
|
|
3
|
+
This package contains the source code of the React components for the [Cloudscape Design System](https://cloudscape.design/).
|
|
4
|
+
|
|
5
|
+
Cloudscape is an open source design system for building intuitive, engaging, and inclusive user experiences at scale. It consists of an extensive set of guidelines to create web applications, along with the design resources and front-end components to streamline implementation.
|
|
6
|
+
|
|
7
|
+
Cloudscape was built for and is used by [Amazon Web Services (AWS)](https://aws.amazon.com/) products and services. We created it in 2016 to improve the user experience across AWS web applications, and also to help teams implement those applications faster. Since then, we have continued enhancing the system based on customer feedback and research.
|
|
8
|
+
|
|
9
|
+
Components APIs and guidelines can be found in the [Components section of the Cloudscape website](https://cloudscape.design/components/).
|
|
10
|
+
|
|
11
|
+
## Getting started
|
|
12
|
+
For an in-depth guide on getting started with Cloudscape development, check out the [Cloudscape website](https://cloudscape.design/get-started/integration/using-cloudscape-components/).
|
|
13
|
+
|
|
14
|
+
### Installation
|
|
15
|
+
All Cloudscape packages are available on npm.
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npm install @cloudscape-design/components @cloudscape-design/global-styles
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Using Cloudscape components
|
|
22
|
+
Here is a basic example that renders a primary button:
|
|
23
|
+
|
|
24
|
+
```jsx
|
|
25
|
+
import Button from '@cloudscape-design/components/button';
|
|
26
|
+
import '@cloudscape-design/global-styles/index.css';
|
|
27
|
+
|
|
28
|
+
function App() {
|
|
29
|
+
return <Button variant="primary">Click me</Button>;
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
You can also play around with a small example on CodeSandbox:
|
|
34
|
+
|
|
35
|
+
[](https://codesandbox.io/s/cloudscape-design-system-react-javascript-ljs1t7)
|
|
36
|
+
|
|
37
|
+
## Getting help
|
|
38
|
+
|
|
39
|
+
You can [create bug reports or feature requests](https://github.com/cloudscape-design/components/issues/new/choose), or [start a discussion](https://github.com/cloudscape-design/components/discussions) to ask a question. To minimize duplicates, we recommend that you search for existing bug reports, feature requests, or discussions before initiating a new thread.
|
|
40
|
+
|
|
41
|
+
## Contributing
|
|
42
|
+
|
|
43
|
+
The [contribution guidelines](https://github.com/cloudscape-design/components/blob/main/CONTRIBUTING.md) contains information on how to contribute, as well as our support model and versioning strategy.
|
|
44
|
+
|
|
45
|
+
## License
|
|
46
|
+
|
|
47
|
+
This project is licensed under the [Apache 2.0 License](/LICENSE).
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"navigation": "
|
|
6
|
-
"navigation-toggle": "awsui_navigation-
|
|
7
|
-
"navigation-close": "awsui_navigation-
|
|
8
|
-
"content": "
|
|
9
|
-
"notifications": "
|
|
10
|
-
"breadcrumbs": "
|
|
11
|
-
"tools": "
|
|
12
|
-
"tools-close": "awsui_tools-
|
|
13
|
-
"tools-toggle": "awsui_tools-
|
|
14
|
-
"drawer-closed": "awsui_drawer-
|
|
15
|
-
"mobile-bar": "awsui_mobile-
|
|
16
|
-
"disable-body-scroll-root": "awsui_disable-body-scroll-
|
|
17
|
-
"drawers-trigger": "awsui_drawers-
|
|
18
|
-
"drawers-trigger-global": "awsui_drawers-trigger-
|
|
19
|
-
"drawers-trigger-with-badge": "awsui_drawers-trigger-with-
|
|
20
|
-
"active-drawer": "awsui_active-
|
|
21
|
-
"active-drawer-close-button": "awsui_active-drawer-close-
|
|
22
|
-
"overflow-menu": "awsui_overflow-
|
|
23
|
-
"drawers-slider": "awsui_drawers-
|
|
24
|
-
"toolbar": "
|
|
25
|
-
"trigger-wrapper-tooltip-visible": "awsui_trigger-wrapper-tooltip-
|
|
26
|
-
"trigger-tooltip": "awsui_trigger-
|
|
4
|
+
"root": "awsui_root_1fj9k_jfqbk_5",
|
|
5
|
+
"navigation": "awsui_navigation_1fj9k_jfqbk_6",
|
|
6
|
+
"navigation-toggle": "awsui_navigation-toggle_1fj9k_jfqbk_7",
|
|
7
|
+
"navigation-close": "awsui_navigation-close_1fj9k_jfqbk_8",
|
|
8
|
+
"content": "awsui_content_1fj9k_jfqbk_9",
|
|
9
|
+
"notifications": "awsui_notifications_1fj9k_jfqbk_10",
|
|
10
|
+
"breadcrumbs": "awsui_breadcrumbs_1fj9k_jfqbk_11",
|
|
11
|
+
"tools": "awsui_tools_1fj9k_jfqbk_12",
|
|
12
|
+
"tools-close": "awsui_tools-close_1fj9k_jfqbk_13",
|
|
13
|
+
"tools-toggle": "awsui_tools-toggle_1fj9k_jfqbk_14",
|
|
14
|
+
"drawer-closed": "awsui_drawer-closed_1fj9k_jfqbk_15",
|
|
15
|
+
"mobile-bar": "awsui_mobile-bar_1fj9k_jfqbk_16",
|
|
16
|
+
"disable-body-scroll-root": "awsui_disable-body-scroll-root_1fj9k_jfqbk_17",
|
|
17
|
+
"drawers-trigger": "awsui_drawers-trigger_1fj9k_jfqbk_18",
|
|
18
|
+
"drawers-trigger-global": "awsui_drawers-trigger-global_1fj9k_jfqbk_19",
|
|
19
|
+
"drawers-trigger-with-badge": "awsui_drawers-trigger-with-badge_1fj9k_jfqbk_20",
|
|
20
|
+
"active-drawer": "awsui_active-drawer_1fj9k_jfqbk_21",
|
|
21
|
+
"active-drawer-close-button": "awsui_active-drawer-close-button_1fj9k_jfqbk_22",
|
|
22
|
+
"overflow-menu": "awsui_overflow-menu_1fj9k_jfqbk_23",
|
|
23
|
+
"drawers-slider": "awsui_drawers-slider_1fj9k_jfqbk_24",
|
|
24
|
+
"toolbar": "awsui_toolbar_1fj9k_jfqbk_25",
|
|
25
|
+
"trigger-wrapper-tooltip-visible": "awsui_trigger-wrapper-tooltip-visible_1fj9k_jfqbk_26",
|
|
26
|
+
"trigger-tooltip": "awsui_trigger-tooltip_1fj9k_jfqbk_27",
|
|
27
|
+
"active-drawer-expanded-mode-button": "awsui_active-drawer-expanded-mode-button_1fj9k_jfqbk_28"
|
|
27
28
|
};
|
|
28
29
|
|