@cloudscape-design/components 3.0.1014 → 3.0.1016
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/collection-preferences/content-display/content-display-option.d.ts +0 -2
- package/collection-preferences/content-display/content-display-option.d.ts.map +1 -1
- package/collection-preferences/content-display/content-display-option.js +1 -4
- package/collection-preferences/content-display/content-display-option.js.map +1 -1
- package/collection-preferences/content-display/index.d.ts.map +1 -1
- package/collection-preferences/content-display/index.js +17 -24
- package/collection-preferences/content-display/index.js.map +1 -1
- package/collection-preferences/interfaces.d.ts +2 -7
- package/collection-preferences/interfaces.d.ts.map +1 -1
- package/collection-preferences/interfaces.js.map +1 -1
- package/collection-preferences/styles.css.js +36 -38
- package/collection-preferences/styles.scoped.css +39 -51
- package/collection-preferences/styles.selectors.js +36 -38
- package/i18n/messages/all.all.js +1 -1
- package/i18n/messages/all.all.json +1 -1
- package/i18n/messages/all.ar.js +1 -1
- package/i18n/messages/all.ar.json +1 -1
- package/i18n/messages/all.de.js +1 -1
- package/i18n/messages/all.de.json +1 -1
- package/i18n/messages/all.en-GB.js +1 -1
- package/i18n/messages/all.en-GB.json +1 -1
- package/i18n/messages/all.en.js +1 -1
- package/i18n/messages/all.en.json +1 -1
- package/i18n/messages/all.es.js +1 -1
- package/i18n/messages/all.es.json +1 -1
- package/i18n/messages/all.fr.js +1 -1
- package/i18n/messages/all.fr.json +1 -1
- package/i18n/messages/all.id.js +1 -1
- package/i18n/messages/all.id.json +1 -1
- package/i18n/messages/all.it.js +1 -1
- package/i18n/messages/all.it.json +1 -1
- package/i18n/messages/all.ja.js +1 -1
- package/i18n/messages/all.ja.json +1 -1
- package/i18n/messages/all.ko.js +1 -1
- package/i18n/messages/all.ko.json +1 -1
- package/i18n/messages/all.pt-BR.js +1 -1
- package/i18n/messages/all.pt-BR.json +1 -1
- package/i18n/messages/all.th.js +1 -1
- package/i18n/messages/all.th.json +1 -1
- package/i18n/messages/all.tr.js +1 -1
- package/i18n/messages/all.tr.json +1 -1
- package/i18n/messages/all.zh-CN.js +1 -1
- package/i18n/messages/all.zh-CN.json +1 -1
- package/i18n/messages/all.zh-TW.js +1 -1
- package/i18n/messages/all.zh-TW.json +1 -1
- package/i18n/messages-types.d.ts +20 -0
- package/i18n/messages-types.d.ts.map +1 -1
- package/i18n/messages-types.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/components/drag-handle/button.d.ts.map +1 -1
- package/internal/components/drag-handle/button.js +2 -2
- package/internal/components/drag-handle/button.js.map +1 -1
- package/internal/components/drag-handle/index.d.ts.map +1 -1
- package/internal/components/drag-handle/index.js +2 -2
- package/internal/components/drag-handle/index.js.map +1 -1
- package/internal/components/drag-handle/interfaces.d.ts +1 -0
- package/internal/components/drag-handle/interfaces.d.ts.map +1 -1
- package/internal/components/drag-handle/interfaces.js.map +1 -1
- package/internal/components/drag-handle/styles.css.js +13 -12
- package/internal/components/drag-handle/styles.scoped.css +18 -21
- package/internal/components/drag-handle/styles.selectors.js +13 -12
- package/internal/components/sortable-area/index.d.ts.map +1 -1
- package/internal/components/sortable-area/index.js +5 -1
- package/internal/components/sortable-area/index.js.map +1 -1
- package/internal/components/sortable-area/interfaces.d.ts +1 -0
- package/internal/components/sortable-area/interfaces.d.ts.map +1 -1
- package/internal/components/sortable-area/interfaces.js.map +1 -1
- package/internal/components/sortable-area/styles.css.js +8 -8
- package/internal/components/sortable-area/styles.scoped.css +18 -17
- package/internal/components/sortable-area/styles.selectors.js +8 -8
- package/internal/components/sortable-area/use-live-announcements.d.ts +5 -0
- package/internal/components/sortable-area/use-live-announcements.d.ts.map +1 -1
- package/internal/components/sortable-area/use-live-announcements.js +8 -0
- package/internal/components/sortable-area/use-live-announcements.js.map +1 -1
- package/internal/components/structured-item/index.d.ts +10 -0
- package/internal/components/structured-item/index.d.ts.map +1 -0
- package/internal/components/structured-item/index.js +16 -0
- package/internal/components/structured-item/index.js.map +1 -0
- package/internal/components/structured-item/interfaces.d.ts +8 -0
- package/internal/components/structured-item/interfaces.d.ts.map +1 -0
- package/internal/components/structured-item/interfaces.js +4 -0
- package/internal/components/structured-item/interfaces.js.map +1 -0
- package/internal/components/structured-item/styles.css.js +11 -0
- package/internal/components/structured-item/styles.scoped.css +212 -0
- package/internal/components/structured-item/styles.selectors.js +12 -0
- package/internal/components/structured-item/test-classes/styles.css.js +9 -0
- package/internal/components/structured-item/test-classes/styles.scoped.css +10 -0
- package/internal/components/structured-item/test-classes/styles.selectors.js +10 -0
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/manifest.json +1 -1
- package/list/index.d.ts +4 -0
- package/list/index.d.ts.map +1 -0
- package/list/index.js +12 -0
- package/list/index.js.map +1 -0
- package/list/interfaces.d.ts +82 -0
- package/list/interfaces.d.ts.map +1 -0
- package/list/interfaces.js +4 -0
- package/list/interfaces.js.map +1 -0
- package/list/internal.d.ts +21 -0
- package/list/internal.d.ts.map +1 -0
- package/list/internal.js +62 -0
- package/list/internal.js.map +1 -0
- package/list/styles.css.js +10 -0
- package/list/styles.scoped.css +202 -0
- package/list/styles.selectors.js +11 -0
- package/list/test-classes/styles.css.js +7 -0
- package/list/test-classes/styles.scoped.css +8 -0
- package/list/test-classes/styles.selectors.js +8 -0
- package/package.json +2 -1
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +2 -2
- package/table/internal.js.map +1 -1
- package/test-utils/dom/collection-preferences/content-display-preference.d.ts +2 -0
- package/test-utils/dom/collection-preferences/content-display-preference.js +17 -6
- package/test-utils/dom/collection-preferences/content-display-preference.js.map +1 -1
- package/test-utils/dom/index.d.ts +20 -0
- package/test-utils/dom/index.js +13 -2
- package/test-utils/dom/index.js.map +1 -1
- package/test-utils/dom/internal/structured-item.d.ts +8 -0
- package/test-utils/dom/internal/structured-item.js +23 -0
- package/test-utils/dom/internal/structured-item.js.map +1 -0
- package/test-utils/dom/list/index.d.ts +23 -0
- package/test-utils/dom/list/index.js +41 -0
- package/test-utils/dom/list/index.js.map +1 -0
- package/test-utils/selectors/collection-preferences/content-display-preference.d.ts +2 -0
- package/test-utils/selectors/collection-preferences/content-display-preference.js +13 -6
- package/test-utils/selectors/collection-preferences/content-display-preference.js.map +1 -1
- package/test-utils/selectors/index.d.ts +18 -0
- package/test-utils/selectors/index.js +13 -2
- package/test-utils/selectors/index.js.map +1 -1
- package/test-utils/selectors/internal/structured-item.d.ts +8 -0
- package/test-utils/selectors/internal/structured-item.js +23 -0
- package/test-utils/selectors/internal/structured-item.js.map +1 -0
- package/test-utils/selectors/list/index.d.ts +23 -0
- package/test-utils/selectors/list/index.js +41 -0
- package/test-utils/selectors/list/index.js.map +1 -0
|
@@ -142,23 +142,24 @@
|
|
|
142
142
|
*/
|
|
143
143
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
144
144
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
145
|
-
.awsui_drag-
|
|
145
|
+
.awsui_drag-overlay_1ksmw_ajj2q_145:not(#\9) {
|
|
146
146
|
box-shadow: var(--shadow-container-active-ypjjoc, 0px 1px 1px 1px #e9ebed, 0px 6px 36px rgba(0, 7, 22, 0.1019607843));
|
|
147
|
+
background-color: var(--color-background-container-content-6u8rvp, #ffffff);
|
|
147
148
|
}
|
|
148
|
-
.awsui_drag-overlay-
|
|
149
|
+
.awsui_drag-overlay-item_1ksmw_ajj2q_149:not(#\9) {
|
|
149
150
|
border-start-start-radius: var(--border-radius-item-iwaia5, 8px);
|
|
150
151
|
border-start-end-radius: var(--border-radius-item-iwaia5, 8px);
|
|
151
152
|
border-end-start-radius: var(--border-radius-item-iwaia5, 8px);
|
|
152
153
|
border-end-end-radius: var(--border-radius-item-iwaia5, 8px);
|
|
153
154
|
}
|
|
154
|
-
body[data-awsui-focus-visible=true] .awsui_drag-overlay-
|
|
155
|
+
body[data-awsui-focus-visible=true] .awsui_drag-overlay-item_1ksmw_ajj2q_149:not(#\9) {
|
|
155
156
|
position: relative;
|
|
156
157
|
}
|
|
157
|
-
body[data-awsui-focus-visible=true] .awsui_drag-overlay-
|
|
158
|
+
body[data-awsui-focus-visible=true] .awsui_drag-overlay-item_1ksmw_ajj2q_149:not(#\9) {
|
|
158
159
|
outline: 2px dotted transparent;
|
|
159
160
|
outline-offset: calc(0px - 1px);
|
|
160
161
|
}
|
|
161
|
-
body[data-awsui-focus-visible=true] .awsui_drag-overlay-
|
|
162
|
+
body[data-awsui-focus-visible=true] .awsui_drag-overlay-item_1ksmw_ajj2q_149:not(#\9)::before {
|
|
162
163
|
content: " ";
|
|
163
164
|
display: block;
|
|
164
165
|
position: absolute;
|
|
@@ -172,20 +173,20 @@ body[data-awsui-focus-visible=true] .awsui_drag-overlay-item_1ksmw_1bdlu_148:not
|
|
|
172
173
|
border-end-end-radius: var(--border-radius-item-iwaia5, 8px);
|
|
173
174
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
|
|
174
175
|
}
|
|
175
|
-
.awsui_drag-overlay-
|
|
176
|
+
.awsui_drag-overlay-container_1ksmw_ajj2q_176:not(#\9) {
|
|
176
177
|
border-start-start-radius: var(--border-radius-container-nsfwmm, 16px);
|
|
177
178
|
border-start-end-radius: var(--border-radius-container-nsfwmm, 16px);
|
|
178
179
|
border-end-start-radius: var(--border-radius-container-nsfwmm, 16px);
|
|
179
180
|
border-end-end-radius: var(--border-radius-container-nsfwmm, 16px);
|
|
180
181
|
}
|
|
181
|
-
body[data-awsui-focus-visible=true] .awsui_drag-overlay-
|
|
182
|
+
body[data-awsui-focus-visible=true] .awsui_drag-overlay-container_1ksmw_ajj2q_176:not(#\9) {
|
|
182
183
|
position: relative;
|
|
183
184
|
}
|
|
184
|
-
body[data-awsui-focus-visible=true] .awsui_drag-overlay-
|
|
185
|
+
body[data-awsui-focus-visible=true] .awsui_drag-overlay-container_1ksmw_ajj2q_176:not(#\9) {
|
|
185
186
|
outline: 2px dotted transparent;
|
|
186
187
|
outline-offset: calc(0px - 1px);
|
|
187
188
|
}
|
|
188
|
-
body[data-awsui-focus-visible=true] .awsui_drag-overlay-
|
|
189
|
+
body[data-awsui-focus-visible=true] .awsui_drag-overlay-container_1ksmw_ajj2q_176:not(#\9)::before {
|
|
189
190
|
content: " ";
|
|
190
191
|
display: block;
|
|
191
192
|
position: absolute;
|
|
@@ -200,7 +201,7 @@ body[data-awsui-focus-visible=true] .awsui_drag-overlay-container_1ksmw_1bdlu_17
|
|
|
200
201
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
|
|
201
202
|
}
|
|
202
203
|
|
|
203
|
-
.
|
|
204
|
+
.awsui_active_1ksmw_ajj2q_204:not(#\9) {
|
|
204
205
|
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
205
206
|
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
206
207
|
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
@@ -210,38 +211,38 @@ body[data-awsui-focus-visible=true] .awsui_drag-overlay-container_1ksmw_1bdlu_17
|
|
|
210
211
|
-moz-osx-font-smoothing: auto;
|
|
211
212
|
}
|
|
212
213
|
|
|
213
|
-
.
|
|
214
|
+
.awsui_placeholder_1ksmw_ajj2q_214:not(#\9) {
|
|
214
215
|
position: relative;
|
|
215
216
|
}
|
|
216
|
-
.
|
|
217
|
+
.awsui_placeholder_1ksmw_ajj2q_214:not(#\9):after {
|
|
217
218
|
content: " ";
|
|
218
219
|
position: absolute;
|
|
219
220
|
inset: 0;
|
|
220
221
|
background: var(--color-drag-placeholder-hover-qwadna, #d1f1ff);
|
|
221
222
|
}
|
|
222
|
-
.awsui_placeholder-
|
|
223
|
+
.awsui_placeholder-item_1ksmw_ajj2q_223:not(#\9):after {
|
|
223
224
|
border-start-start-radius: var(--border-radius-item-iwaia5, 8px);
|
|
224
225
|
border-start-end-radius: var(--border-radius-item-iwaia5, 8px);
|
|
225
226
|
border-end-start-radius: var(--border-radius-item-iwaia5, 8px);
|
|
226
227
|
border-end-end-radius: var(--border-radius-item-iwaia5, 8px);
|
|
227
228
|
}
|
|
228
|
-
.awsui_placeholder-
|
|
229
|
+
.awsui_placeholder-container_1ksmw_ajj2q_229:not(#\9):after {
|
|
229
230
|
border-start-start-radius: var(--border-radius-container-nsfwmm, 16px);
|
|
230
231
|
border-start-end-radius: var(--border-radius-container-nsfwmm, 16px);
|
|
231
232
|
border-end-start-radius: var(--border-radius-container-nsfwmm, 16px);
|
|
232
233
|
border-end-end-radius: var(--border-radius-container-nsfwmm, 16px);
|
|
233
234
|
}
|
|
234
235
|
|
|
235
|
-
.
|
|
236
|
+
.awsui_sorting_1ksmw_ajj2q_236:not(#\9) {
|
|
236
237
|
transition: transform var(--motion-duration-transition-quick-mcm2y0, 90ms) var(--motion-easing-transition-quick-qxak3i, linear);
|
|
237
238
|
}
|
|
238
239
|
@media (prefers-reduced-motion: reduce) {
|
|
239
|
-
.
|
|
240
|
+
.awsui_sorting_1ksmw_ajj2q_236:not(#\9) {
|
|
240
241
|
animation: none;
|
|
241
242
|
transition: none;
|
|
242
243
|
}
|
|
243
244
|
}
|
|
244
|
-
.awsui-motion-disabled .
|
|
245
|
+
.awsui-motion-disabled .awsui_sorting_1ksmw_ajj2q_236:not(#\9), .awsui-mode-entering .awsui_sorting_1ksmw_ajj2q_236:not(#\9) {
|
|
245
246
|
animation: none;
|
|
246
247
|
transition: none;
|
|
247
248
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"drag-overlay": "awsui_drag-
|
|
6
|
-
"drag-overlay-item": "awsui_drag-overlay-
|
|
7
|
-
"drag-overlay-container": "awsui_drag-overlay-
|
|
8
|
-
"active": "
|
|
9
|
-
"placeholder": "
|
|
10
|
-
"placeholder-item": "awsui_placeholder-
|
|
11
|
-
"placeholder-container": "awsui_placeholder-
|
|
12
|
-
"sorting": "
|
|
5
|
+
"drag-overlay": "awsui_drag-overlay_1ksmw_ajj2q_145",
|
|
6
|
+
"drag-overlay-item": "awsui_drag-overlay-item_1ksmw_ajj2q_149",
|
|
7
|
+
"drag-overlay-container": "awsui_drag-overlay-container_1ksmw_ajj2q_176",
|
|
8
|
+
"active": "awsui_active_1ksmw_ajj2q_204",
|
|
9
|
+
"placeholder": "awsui_placeholder_1ksmw_ajj2q_214",
|
|
10
|
+
"placeholder-item": "awsui_placeholder-item_1ksmw_ajj2q_223",
|
|
11
|
+
"placeholder-container": "awsui_placeholder-container_1ksmw_ajj2q_229",
|
|
12
|
+
"sorting": "awsui_sorting_1ksmw_ajj2q_236"
|
|
13
13
|
};
|
|
14
14
|
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { DragEndEvent, DragOverEvent, DragStartEvent } from '@dnd-kit/core';
|
|
2
|
+
import { CustomHandler } from '../../../i18n/context';
|
|
3
|
+
import { I18nFormatArgTypes } from '../../../i18n/messages-types';
|
|
2
4
|
import { SortableAreaProps } from './interfaces';
|
|
5
|
+
export declare const formatDndStarted: CustomHandler<SortableAreaProps.DndAreaI18nStrings['liveAnnouncementDndStarted'], I18nFormatArgTypes['list']['liveAnnouncementDndStarted']>;
|
|
6
|
+
export declare const formatDndItemReordered: CustomHandler<SortableAreaProps.DndAreaI18nStrings['liveAnnouncementDndItemReordered'], I18nFormatArgTypes['list']['liveAnnouncementDndItemReordered']>;
|
|
7
|
+
export declare const formatDndItemCommitted: CustomHandler<SortableAreaProps.DndAreaI18nStrings['liveAnnouncementDndItemCommitted'], I18nFormatArgTypes['list']['liveAnnouncementDndItemCommitted']>;
|
|
3
8
|
export default function useLiveAnnouncements<Item>({
|
|
4
9
|
items,
|
|
5
10
|
itemDefinition,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-live-announcements.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/sortable-area/use-live-announcements.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,IAAI,EAAE,EACjD,KAAK,EACL,cAAc,EACd,UAAU,EACV,0BAA0B,EAC1B,gCAAgC,EAChC,gCAAgC,EAChC,4BAA4B,GAC7B,EAAE;IACD,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IACvB,cAAc,EAAE,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IACvD,UAAU,EAAE,OAAO,CAAC;CACrB,GAAG,iBAAiB,CAAC,kBAAkB;4BAOZ,cAAc;iCAMT,aAAa;gCAcd,YAAY;;EAW3C"}
|
|
1
|
+
{"version":3,"file":"use-live-announcements.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/sortable-area/use-live-announcements.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE5E,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAC1C,iBAAiB,CAAC,kBAAkB,CAAC,4BAA4B,CAAC,EAClE,kBAAkB,CAAC,MAAM,CAAC,CAAC,4BAA4B,CAAC,CACI,CAAC;AAC/D,eAAO,MAAM,sBAAsB,EAAE,aAAa,CAChD,iBAAiB,CAAC,kBAAkB,CAAC,kCAAkC,CAAC,EACxE,kBAAkB,CAAC,MAAM,CAAC,CAAC,kCAAkC,CAAC,CAEiC,CAAC;AAClG,eAAO,MAAM,sBAAsB,EAAE,aAAa,CAChD,iBAAiB,CAAC,kBAAkB,CAAC,kCAAkC,CAAC,EACxE,kBAAkB,CAAC,MAAM,CAAC,CAAC,kCAAkC,CAAC,CAO5D,CAAC;AAEL,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,IAAI,EAAE,EACjD,KAAK,EACL,cAAc,EACd,UAAU,EACV,0BAA0B,EAC1B,gCAAgC,EAChC,gCAAgC,EAChC,4BAA4B,GAC7B,EAAE;IACD,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IACvB,cAAc,EAAE,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IACvD,UAAU,EAAE,OAAO,CAAC;CACrB,GAAG,iBAAiB,CAAC,kBAAkB;4BAOZ,cAAc;iCAMT,aAAa;gCAcd,YAAY;;EAW3C"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { useRef } from 'react';
|
|
4
|
+
export const formatDndStarted = format => (position, total) => format({ position, total });
|
|
5
|
+
export const formatDndItemReordered = format => (initialPosition, currentPosition, total) => format({ currentPosition, total, isInitialPosition: `${initialPosition === currentPosition}` });
|
|
6
|
+
export const formatDndItemCommitted = format => (initialPosition, finalPosition, total) => format({
|
|
7
|
+
initialPosition,
|
|
8
|
+
finalPosition,
|
|
9
|
+
total,
|
|
10
|
+
isInitialPosition: `${initialPosition === finalPosition}`,
|
|
11
|
+
});
|
|
4
12
|
export default function useLiveAnnouncements({ items, itemDefinition, isDragging, liveAnnouncementDndStarted, liveAnnouncementDndItemReordered, liveAnnouncementDndItemCommitted, liveAnnouncementDndDiscarded, }) {
|
|
5
13
|
const isFirstAnnouncement = useRef(true);
|
|
6
14
|
if (!isDragging) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-live-announcements.js","sourceRoot":"","sources":["../../../../../src/internal/components/sortable-area/use-live-announcements.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"use-live-announcements.js","sourceRoot":"","sources":["../../../../../src/internal/components/sortable-area/use-live-announcements.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useRef } from 'react';\nimport { DragEndEvent, DragOverEvent, DragStartEvent } from '@dnd-kit/core';\n\nimport { CustomHandler } from '../../../i18n/context';\nimport { I18nFormatArgTypes } from '../../../i18n/messages-types';\nimport { SortableAreaProps } from './interfaces';\n\nexport const formatDndStarted: CustomHandler<\n SortableAreaProps.DndAreaI18nStrings['liveAnnouncementDndStarted'],\n I18nFormatArgTypes['list']['liveAnnouncementDndStarted']\n> = format => (position, total) => format({ position, total });\nexport const formatDndItemReordered: CustomHandler<\n SortableAreaProps.DndAreaI18nStrings['liveAnnouncementDndItemReordered'],\n I18nFormatArgTypes['list']['liveAnnouncementDndItemReordered']\n> = format => (initialPosition, currentPosition, total) =>\n format({ currentPosition, total, isInitialPosition: `${initialPosition === currentPosition}` });\nexport const formatDndItemCommitted: CustomHandler<\n SortableAreaProps.DndAreaI18nStrings['liveAnnouncementDndItemCommitted'],\n I18nFormatArgTypes['list']['liveAnnouncementDndItemCommitted']\n> = format => (initialPosition, finalPosition, total) =>\n format({\n initialPosition,\n finalPosition,\n total,\n isInitialPosition: `${initialPosition === finalPosition}`,\n });\n\nexport default function useLiveAnnouncements<Item>({\n items,\n itemDefinition,\n isDragging,\n liveAnnouncementDndStarted,\n liveAnnouncementDndItemReordered,\n liveAnnouncementDndItemCommitted,\n liveAnnouncementDndDiscarded,\n}: {\n items: readonly Item[];\n itemDefinition: SortableAreaProps.ItemDefinition<Item>;\n isDragging: boolean;\n} & SortableAreaProps.DndAreaI18nStrings) {\n const isFirstAnnouncement = useRef(true);\n if (!isDragging) {\n isFirstAnnouncement.current = true;\n }\n\n return {\n onDragStart({ active }: DragStartEvent) {\n if (active && liveAnnouncementDndStarted) {\n const index = items.findIndex(item => itemDefinition.id(item) === active.id);\n return liveAnnouncementDndStarted(index + 1, items.length);\n }\n },\n onDragOver({ active, over }: DragOverEvent) {\n if (liveAnnouncementDndItemReordered) {\n // Don't announce on the first dragOver because it's redundant with onDragStart.\n if (isFirstAnnouncement.current) {\n isFirstAnnouncement.current = false;\n if (!over || over.id === active.id) {\n return;\n }\n }\n const initialIndex = items.findIndex(item => itemDefinition.id(item) === active.id);\n const currentIdex = over ? items.findIndex(item => itemDefinition.id(item) === over.id) : initialIndex;\n return liveAnnouncementDndItemReordered(initialIndex + 1, currentIdex + 1, items.length);\n }\n },\n onDragEnd({ active, over }: DragEndEvent) {\n if (liveAnnouncementDndItemCommitted) {\n const initialIndex = items.findIndex(item => itemDefinition.id(item) === active.id);\n const finalIndex = over ? items.findIndex(item => itemDefinition.id(item) === over.id) : initialIndex;\n return liveAnnouncementDndItemCommitted(initialIndex + 1, finalIndex + 1, items.length);\n }\n },\n onDragCancel() {\n return liveAnnouncementDndDiscarded;\n },\n };\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StructuredItemProps } from './interfaces';
|
|
3
|
+
export { StructuredItemProps };
|
|
4
|
+
export default function InternalStructuredItem({
|
|
5
|
+
content,
|
|
6
|
+
icon,
|
|
7
|
+
actions,
|
|
8
|
+
secondaryContent,
|
|
9
|
+
disablePaddings
|
|
10
|
+
}: StructuredItemProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/structured-item/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAKnD,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAE/B,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,OAAO,EACP,IAAI,EACJ,OAAO,EACP,gBAAgB,EAChB,eAAe,GAChB,EAAE,mBAAmB,eAarB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import styles from './styles.css.js';
|
|
6
|
+
import testClasses from './test-classes/styles.css.js';
|
|
7
|
+
export default function InternalStructuredItem({ content, icon, actions, secondaryContent, disablePaddings, }) {
|
|
8
|
+
return (React.createElement("div", { className: clsx(styles.root, testClasses.root, disablePaddings && styles['disable-paddings']) },
|
|
9
|
+
icon && React.createElement("div", { className: clsx(styles.icon, testClasses.icon) }, icon),
|
|
10
|
+
React.createElement("div", { className: clsx(styles.main) },
|
|
11
|
+
React.createElement("div", { className: styles['content-wrap'] },
|
|
12
|
+
React.createElement("div", { className: clsx(styles.content, testClasses.content) }, content),
|
|
13
|
+
actions && React.createElement("div", { className: clsx(styles.actions, testClasses.actions) }, actions)),
|
|
14
|
+
secondaryContent && React.createElement("div", { className: clsx(styles.secondary, testClasses.secondary) }, secondaryContent))));
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/structured-item/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAIxB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,WAAW,MAAM,8BAA8B,CAAC;AAIvD,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,OAAO,EACP,IAAI,EACJ,OAAO,EACP,gBAAgB,EAChB,eAAe,GACK;IACpB,OAAO,CACL,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,EAAE,eAAe,IAAI,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAC/F,IAAI,IAAI,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,IAAG,IAAI,CAAO;QAC1E,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;YAC/B,6BAAK,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC;gBACpC,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,IAAG,OAAO,CAAO;gBACzE,OAAO,IAAI,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,IAAG,OAAO,CAAO,CAClF;YACL,gBAAgB,IAAI,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,CAAC,SAAS,CAAC,IAAG,gBAAgB,CAAO,CACxG,CACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { StructuredItemProps } from './interfaces';\n\nimport styles from './styles.css.js';\nimport testClasses from './test-classes/styles.css.js';\n\nexport { StructuredItemProps };\n\nexport default function InternalStructuredItem({\n content,\n icon,\n actions,\n secondaryContent,\n disablePaddings,\n}: StructuredItemProps) {\n return (\n <div className={clsx(styles.root, testClasses.root, disablePaddings && styles['disable-paddings'])}>\n {icon && <div className={clsx(styles.icon, testClasses.icon)}>{icon}</div>}\n <div className={clsx(styles.main)}>\n <div className={styles['content-wrap']}>\n <div className={clsx(styles.content, testClasses.content)}>{content}</div>\n {actions && <div className={clsx(styles.actions, testClasses.actions)}>{actions}</div>}\n </div>\n {secondaryContent && <div className={clsx(styles.secondary, testClasses.secondary)}>{secondaryContent}</div>}\n </div>\n </div>\n );\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/structured-item/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,SAAS,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/structured-item/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { ReactNode } from 'react';\n\nexport interface StructuredItemProps {\n content: ReactNode;\n icon?: ReactNode;\n actions?: ReactNode;\n secondaryContent?: ReactNode;\n disablePaddings?: boolean;\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
import './styles.scoped.css';
|
|
3
|
+
export default {
|
|
4
|
+
"root": "awsui_root_1ifko_grau8_145",
|
|
5
|
+
"disable-paddings": "awsui_disable-paddings_1ifko_grau8_183",
|
|
6
|
+
"main": "awsui_main_1ifko_grau8_187",
|
|
7
|
+
"content-wrap": "awsui_content-wrap_1ifko_grau8_193",
|
|
8
|
+
"content": "awsui_content_1ifko_grau8_193",
|
|
9
|
+
"actions": "awsui_actions_1ifko_grau8_209"
|
|
10
|
+
};
|
|
11
|
+
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
/*
|
|
6
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
7
|
+
SPDX-License-Identifier: Apache-2.0
|
|
8
|
+
*/
|
|
9
|
+
/*
|
|
10
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
11
|
+
SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
*/
|
|
13
|
+
/*
|
|
14
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
15
|
+
SPDX-License-Identifier: Apache-2.0
|
|
16
|
+
*/
|
|
17
|
+
/*
|
|
18
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
19
|
+
SPDX-License-Identifier: Apache-2.0
|
|
20
|
+
*/
|
|
21
|
+
/*
|
|
22
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
23
|
+
SPDX-License-Identifier: Apache-2.0
|
|
24
|
+
*/
|
|
25
|
+
/*
|
|
26
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
27
|
+
SPDX-License-Identifier: Apache-2.0
|
|
28
|
+
*/
|
|
29
|
+
/*
|
|
30
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
31
|
+
SPDX-License-Identifier: Apache-2.0
|
|
32
|
+
*/
|
|
33
|
+
/*
|
|
34
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
35
|
+
SPDX-License-Identifier: Apache-2.0
|
|
36
|
+
*/
|
|
37
|
+
/*
|
|
38
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
39
|
+
SPDX-License-Identifier: Apache-2.0
|
|
40
|
+
*/
|
|
41
|
+
/*
|
|
42
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
43
|
+
SPDX-License-Identifier: Apache-2.0
|
|
44
|
+
*/
|
|
45
|
+
/*
|
|
46
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
47
|
+
SPDX-License-Identifier: Apache-2.0
|
|
48
|
+
*/
|
|
49
|
+
/*
|
|
50
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
51
|
+
SPDX-License-Identifier: Apache-2.0
|
|
52
|
+
*/
|
|
53
|
+
/*
|
|
54
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
55
|
+
SPDX-License-Identifier: Apache-2.0
|
|
56
|
+
*/
|
|
57
|
+
/*
|
|
58
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
59
|
+
SPDX-License-Identifier: Apache-2.0
|
|
60
|
+
*/
|
|
61
|
+
/*
|
|
62
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
63
|
+
SPDX-License-Identifier: Apache-2.0
|
|
64
|
+
*/
|
|
65
|
+
/*
|
|
66
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
67
|
+
SPDX-License-Identifier: Apache-2.0
|
|
68
|
+
*/
|
|
69
|
+
/*
|
|
70
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
71
|
+
SPDX-License-Identifier: Apache-2.0
|
|
72
|
+
*/
|
|
73
|
+
/*
|
|
74
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
75
|
+
SPDX-License-Identifier: Apache-2.0
|
|
76
|
+
*/
|
|
77
|
+
/*
|
|
78
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
79
|
+
SPDX-License-Identifier: Apache-2.0
|
|
80
|
+
*/
|
|
81
|
+
/*
|
|
82
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
83
|
+
SPDX-License-Identifier: Apache-2.0
|
|
84
|
+
*/
|
|
85
|
+
/*
|
|
86
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
87
|
+
SPDX-License-Identifier: Apache-2.0
|
|
88
|
+
*/
|
|
89
|
+
/*
|
|
90
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
|
+
SPDX-License-Identifier: Apache-2.0
|
|
92
|
+
*/
|
|
93
|
+
/*
|
|
94
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
95
|
+
SPDX-License-Identifier: Apache-2.0
|
|
96
|
+
*/
|
|
97
|
+
/*
|
|
98
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
99
|
+
SPDX-License-Identifier: Apache-2.0
|
|
100
|
+
*/
|
|
101
|
+
/*
|
|
102
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
103
|
+
SPDX-License-Identifier: Apache-2.0
|
|
104
|
+
*/
|
|
105
|
+
/*
|
|
106
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
107
|
+
SPDX-License-Identifier: Apache-2.0
|
|
108
|
+
*/
|
|
109
|
+
/*
|
|
110
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
111
|
+
SPDX-License-Identifier: Apache-2.0
|
|
112
|
+
*/
|
|
113
|
+
/* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
114
|
+
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
115
|
+
/*
|
|
116
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
117
|
+
SPDX-License-Identifier: Apache-2.0
|
|
118
|
+
*/
|
|
119
|
+
/*
|
|
120
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
121
|
+
SPDX-License-Identifier: Apache-2.0
|
|
122
|
+
*/
|
|
123
|
+
/*
|
|
124
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
125
|
+
SPDX-License-Identifier: Apache-2.0
|
|
126
|
+
*/
|
|
127
|
+
/*
|
|
128
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
129
|
+
SPDX-License-Identifier: Apache-2.0
|
|
130
|
+
*/
|
|
131
|
+
/*
|
|
132
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
133
|
+
SPDX-License-Identifier: Apache-2.0
|
|
134
|
+
*/
|
|
135
|
+
/*
|
|
136
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
137
|
+
SPDX-License-Identifier: Apache-2.0
|
|
138
|
+
*/
|
|
139
|
+
/*
|
|
140
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
141
|
+
SPDX-License-Identifier: Apache-2.0
|
|
142
|
+
*/
|
|
143
|
+
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
144
|
+
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
145
|
+
.awsui_root_1ifko_grau8_145:not(#\9) {
|
|
146
|
+
border-collapse: separate;
|
|
147
|
+
border-spacing: 0;
|
|
148
|
+
box-sizing: border-box;
|
|
149
|
+
caption-side: top;
|
|
150
|
+
cursor: auto;
|
|
151
|
+
direction: inherit;
|
|
152
|
+
empty-cells: show;
|
|
153
|
+
font-family: serif;
|
|
154
|
+
font-style: normal;
|
|
155
|
+
font-variant: normal;
|
|
156
|
+
font-stretch: normal;
|
|
157
|
+
hyphens: none;
|
|
158
|
+
letter-spacing: normal;
|
|
159
|
+
list-style: disc outside none;
|
|
160
|
+
tab-size: 8;
|
|
161
|
+
text-align: start;
|
|
162
|
+
text-indent: 0;
|
|
163
|
+
text-shadow: none;
|
|
164
|
+
text-transform: none;
|
|
165
|
+
visibility: visible;
|
|
166
|
+
white-space: normal;
|
|
167
|
+
word-spacing: normal;
|
|
168
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
169
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
170
|
+
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
171
|
+
font-weight: 400;
|
|
172
|
+
font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
173
|
+
-webkit-font-smoothing: auto;
|
|
174
|
+
-moz-osx-font-smoothing: auto;
|
|
175
|
+
min-inline-size: 0;
|
|
176
|
+
word-break: break-word;
|
|
177
|
+
display: flex;
|
|
178
|
+
flex: 1;
|
|
179
|
+
flex-direction: row;
|
|
180
|
+
align-items: baseline;
|
|
181
|
+
column-gap: var(--space-xs-ymlm0b, 8px);
|
|
182
|
+
}
|
|
183
|
+
.awsui_root_1ifko_grau8_145.awsui_disable-paddings_1ifko_grau8_183:not(#\9) {
|
|
184
|
+
column-gap: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.awsui_main_1ifko_grau8_187:not(#\9) {
|
|
188
|
+
flex-grow: 1;
|
|
189
|
+
display: flex;
|
|
190
|
+
flex-direction: column;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.awsui_content-wrap_1ifko_grau8_193:not(#\9) {
|
|
194
|
+
flex-grow: 1;
|
|
195
|
+
display: flex;
|
|
196
|
+
align-items: baseline;
|
|
197
|
+
flex-direction: row;
|
|
198
|
+
flex-wrap: wrap;
|
|
199
|
+
column-gap: var(--space-xs-ymlm0b, 8px);
|
|
200
|
+
}
|
|
201
|
+
.awsui_disable-paddings_1ifko_grau8_183 > .awsui_main_1ifko_grau8_187 > .awsui_content-wrap_1ifko_grau8_193:not(#\9) {
|
|
202
|
+
column-gap: 0;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.awsui_content_1ifko_grau8_193:not(#\9) {
|
|
206
|
+
flex-grow: 1;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.awsui_actions_1ifko_grau8_209:not(#\9) {
|
|
210
|
+
flex-shrink: 0;
|
|
211
|
+
margin-inline-start: auto;
|
|
212
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
// es-module interop with Babel and Typescript
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
module.exports.default = {
|
|
5
|
+
"root": "awsui_root_1ifko_grau8_145",
|
|
6
|
+
"disable-paddings": "awsui_disable-paddings_1ifko_grau8_183",
|
|
7
|
+
"main": "awsui_main_1ifko_grau8_187",
|
|
8
|
+
"content-wrap": "awsui_content-wrap_1ifko_grau8_193",
|
|
9
|
+
"content": "awsui_content_1ifko_grau8_193",
|
|
10
|
+
"actions": "awsui_actions_1ifko_grau8_209"
|
|
11
|
+
};
|
|
12
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
.awsui_content_x6dl3_7yzrg_5:not(#\9),
|
|
6
|
+
.awsui_icon_x6dl3_7yzrg_6:not(#\9),
|
|
7
|
+
.awsui_actions_x6dl3_7yzrg_7:not(#\9),
|
|
8
|
+
.awsui_secondary_x6dl3_7yzrg_8:not(#\9) {
|
|
9
|
+
/* used in test-utils */
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
// es-module interop with Babel and Typescript
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
module.exports.default = {
|
|
5
|
+
"content": "awsui_content_x6dl3_7yzrg_5",
|
|
6
|
+
"icon": "awsui_icon_x6dl3_7yzrg_6",
|
|
7
|
+
"actions": "awsui_actions_x6dl3_7yzrg_7",
|
|
8
|
+
"secondary": "awsui_secondary_x6dl3_7yzrg_8"
|
|
9
|
+
};
|
|
10
|
+
|
package/internal/environment.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export var PACKAGE_SOURCE = "components";
|
|
2
|
-
export var PACKAGE_VERSION = "3.0.0 (
|
|
3
|
-
export var GIT_SHA = "
|
|
2
|
+
export var PACKAGE_VERSION = "3.0.0 (c3faf5cc)";
|
|
3
|
+
export var GIT_SHA = "c3faf5cc";
|
|
4
4
|
export var THEME = "open-source-visual-refresh";
|
|
5
5
|
export var ALWAYS_VISUAL_REFRESH = true;
|
package/internal/manifest.json
CHANGED
package/list/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/list/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,eAGxD"}
|
package/list/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import useBaseComponent from '../internal/hooks/use-base-component';
|
|
5
|
+
import { applyDisplayName } from '../internal/utils/apply-display-name';
|
|
6
|
+
import InternalList from './internal';
|
|
7
|
+
export default function List(props) {
|
|
8
|
+
const baseComponentProps = useBaseComponent('List');
|
|
9
|
+
return React.createElement(InternalList, Object.assign({}, baseComponentProps, props));
|
|
10
|
+
}
|
|
11
|
+
applyDisplayName(List, 'List');
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/list/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,YAAY,MAAM,YAAY,CAAC;AAItC,MAAM,CAAC,OAAO,UAAU,IAAI,CAAU,KAAmB;IACvD,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACpD,OAAO,oBAAC,YAAY,oBAAK,kBAAkB,EAAM,KAAK,EAAI,CAAC;AAC7D,CAAC;AAED,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { ListProps } from './interfaces';\nimport InternalList from './internal';\n\nexport { ListProps };\n\nexport default function List<T = any>(props: ListProps<T>) {\n const baseComponentProps = useBaseComponent('List');\n return <InternalList {...baseComponentProps} {...props} />;\n}\n\napplyDisplayName(List, 'List');\n"]}
|