@cloudscape-design/components 3.0.866 → 3.0.867
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/app-layout/drawer/resizable-drawer.d.ts.map +1 -1
- package/app-layout/drawer/resizable-drawer.js +3 -2
- package/app-layout/drawer/resizable-drawer.js.map +1 -1
- package/app-layout/utils/use-focus-control.d.ts +2 -1
- package/app-layout/utils/use-focus-control.d.ts.map +1 -1
- package/app-layout/utils/use-focus-control.js +2 -0
- package/app-layout/utils/use-focus-control.js.map +1 -1
- package/app-layout/utils/use-resize.d.ts.map +1 -1
- package/app-layout/utils/use-resize.js +3 -2
- package/app-layout/utils/use-resize.js.map +1 -1
- package/app-layout/utils/use-split-panel-focus-control.d.ts +2 -1
- package/app-layout/utils/use-split-panel-focus-control.d.ts.map +1 -1
- package/app-layout/utils/use-split-panel-focus-control.js +1 -0
- package/app-layout/utils/use-split-panel-focus-control.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/drawer/global-drawer.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/drawer/global-drawer.js +3 -2
- package/app-layout/visual-refresh-toolbar/drawer/global-drawer.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/drawer/local-drawer.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/drawer/local-drawer.js +3 -2
- package/app-layout/visual-refresh-toolbar/drawer/local-drawer.js.map +1 -1
- package/attribute-editor/interfaces.d.ts +7 -0
- package/attribute-editor/interfaces.d.ts.map +1 -1
- package/attribute-editor/interfaces.js.map +1 -1
- package/attribute-editor/internal.d.ts.map +1 -1
- package/attribute-editor/internal.js +2 -2
- package/attribute-editor/internal.js.map +1 -1
- package/collection-preferences/content-display/content-display-option.d.ts.map +1 -1
- package/collection-preferences/content-display/content-display-option.js +2 -1
- package/collection-preferences/content-display/content-display-option.js.map +1 -1
- package/collection-preferences/content-display/styles.css.js +11 -10
- package/collection-preferences/content-display/styles.scoped.css +14 -10
- package/collection-preferences/content-display/styles.selectors.js +11 -10
- package/collection-preferences/index.d.ts.map +1 -1
- package/collection-preferences/index.js +1 -1
- package/collection-preferences/index.js.map +1 -1
- package/collection-preferences/styles.css.js +38 -37
- package/collection-preferences/styles.scoped.css +42 -38
- package/collection-preferences/styles.selectors.js +38 -37
- package/internal/components/drag-handle/index.d.ts +4 -8
- package/internal/components/drag-handle/index.d.ts.map +1 -1
- package/internal/components/drag-handle/index.js +23 -5
- package/internal/components/drag-handle/index.js.map +1 -1
- package/internal/components/drag-handle/interfaces.d.ts +25 -0
- package/internal/components/drag-handle/interfaces.d.ts.map +1 -0
- package/internal/components/drag-handle/interfaces.js +4 -0
- package/internal/components/drag-handle/interfaces.js.map +1 -0
- package/internal/components/drag-handle/resize-icon.d.ts +7 -0
- package/internal/components/drag-handle/resize-icon.d.ts.map +1 -0
- package/internal/components/{panel-resize-handle/icon.js → drag-handle/resize-icon.js} +5 -3
- package/internal/components/drag-handle/resize-icon.js.map +1 -0
- package/internal/components/drag-handle/styles.css.js +12 -3
- package/internal/components/drag-handle/styles.scoped.css +51 -20
- package/internal/components/drag-handle/styles.selectors.js +12 -3
- package/internal/components/options-list/index.js +1 -1
- package/internal/components/options-list/index.js.map +1 -1
- package/internal/components/panel-resize-handle/index.d.ts +4 -2
- package/internal/components/panel-resize-handle/index.d.ts.map +1 -1
- package/internal/components/panel-resize-handle/index.js +8 -5
- package/internal/components/panel-resize-handle/index.js.map +1 -1
- package/internal/components/panel-resize-handle/styles.css.js +2 -5
- package/internal/components/panel-resize-handle/styles.scoped.css +3 -191
- package/internal/components/panel-resize-handle/styles.selectors.js +2 -5
- package/internal/components/portal/index.d.ts.map +1 -1
- package/internal/components/portal/index.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/events/index.d.ts +1 -1
- package/internal/events/index.d.ts.map +1 -1
- package/internal/events/index.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/popover/internal.js +5 -4
- package/popover/internal.js.map +1 -1
- package/prompt-input/internal.d.ts.map +1 -1
- package/prompt-input/internal.js +1 -3
- package/prompt-input/internal.js.map +1 -1
- package/split-panel/implementation.d.ts.map +1 -1
- package/split-panel/implementation.js +7 -6
- package/split-panel/implementation.js.map +1 -1
- package/tabs/styles.css.js +28 -28
- package/tabs/styles.scoped.css +50 -49
- package/tabs/styles.selectors.js +28 -28
- package/internal/components/panel-resize-handle/icon.d.ts +0 -5
- package/internal/components/panel-resize-handle/icon.d.ts.map +0 -1
- package/internal/components/panel-resize-handle/icon.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-display-option.js","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/content-display-option.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAgB,UAAU,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,UAA+B,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,cAAc,MAAM,uBAAuB,CAAC;AAGnD,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAEtC,MAAM,eAAe,GAAG,wBAAwB,CAAC;AACjD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAe,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAQ7G,MAAM,oBAAoB,GAAG,UAAU,CACrC,CAAC,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,EAA6B,EAAE,GAAiC,EAAE,EAAE;IACtG,MAAM,QAAQ,GAAG,WAAW,CAAC,eAAe,CAAC,CAAC;IAC9C,MAAM,SAAS,GAAG,GAAG,QAAQ,YAAY,MAAM,CAAC,EAAE,EAAE,CAAC;IACrD,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC;QAC/C,oBAAC,UAAU,oBAAK,eAAe,EAAI;
|
|
1
|
+
{"version":3,"file":"content-display-option.js","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/content-display-option.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAgB,UAAU,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,UAA+B,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,cAAc,MAAM,uBAAuB,CAAC;AAGnD,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAEtC,MAAM,eAAe,GAAG,wBAAwB,CAAC;AACjD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAe,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAQ7G,MAAM,oBAAoB,GAAG,UAAU,CACrC,CAAC,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,EAA6B,EAAE,GAAiC,EAAE,EAAE;IACtG,MAAM,QAAQ,GAAG,WAAW,CAAC,eAAe,CAAC,CAAC;IAC9C,MAAM,SAAS,GAAG,GAAG,QAAQ,YAAY,MAAM,CAAC,EAAE,EAAE,CAAC;IACrD,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC;QAC/C,6BAAK,SAAS,EAAE,MAAM,CAAC,qBAAqB,CAAC;YAC3C,oBAAC,UAAU,oBAAK,eAAe,EAAI,CAC/B;QAEN,+BAAO,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,SAAS,IACxD,MAAM,CAAC,KAAK,CACP;QACR,6BAAK,SAAS,EAAE,YAAY,CAAC,QAAQ,CAAC;YACpC,oBAAC,cAAc,IACb,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,EACzB,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,MAAM,CAAC,EAC5C,QAAQ,EAAE,MAAM,CAAC,aAAa,KAAK,IAAI,EACvC,SAAS,EAAE,SAAS,GACpB,CACE,CACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,oBAAoB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { ForwardedRef, forwardRef } from 'react';\n\nimport DragHandle, { DragHandleProps } from '../../internal/components/drag-handle';\nimport { useUniqueId } from '../../internal/hooks/use-unique-id';\nimport InternalToggle from '../../toggle/internal';\nimport { OptionWithVisibility } from './utils';\n\nimport styles from '../styles.css.js';\n\nconst componentPrefix = 'content-display-option';\nexport const getClassName = (suffix?: string) => styles[[componentPrefix, suffix].filter(Boolean).join('-')];\n\ninterface ContentDisplayOptionProps {\n dragHandleProps: DragHandleProps;\n onToggle?: (option: OptionWithVisibility) => void;\n option: OptionWithVisibility;\n}\n\nconst ContentDisplayOption = forwardRef(\n ({ dragHandleProps, onToggle, option }: ContentDisplayOptionProps, ref: ForwardedRef<HTMLDivElement>) => {\n const idPrefix = useUniqueId(componentPrefix);\n const controlId = `${idPrefix}-control-${option.id}`;\n return (\n <div ref={ref} className={getClassName('content')}>\n <div className={styles['drag-handle-wrapper']}>\n <DragHandle {...dragHandleProps} />\n </div>\n\n <label className={getClassName('label')} htmlFor={controlId}>\n {option.label}\n </label>\n <div className={getClassName('toggle')}>\n <InternalToggle\n checked={!!option.visible}\n onChange={() => onToggle && onToggle(option)}\n disabled={option.alwaysVisible === true}\n controlId={controlId}\n />\n </div>\n </div>\n );\n }\n);\n\nexport default ContentDisplayOption;\n"]}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"content-display-option-toggle": "awsui_content-display-option-
|
|
5
|
-
"content-display-option-content": "awsui_content-display-option-
|
|
6
|
-
"content-display-option": "awsui_content-display-
|
|
7
|
-
"content-display-option-label": "awsui_content-display-option-
|
|
8
|
-
"
|
|
9
|
-
"content-display
|
|
10
|
-
"content-display-
|
|
11
|
-
"content-display-
|
|
12
|
-
"content-display-
|
|
13
|
-
"content-display-
|
|
4
|
+
"content-display-option-toggle": "awsui_content-display-option-toggle_1f3h0_1aj8k_289",
|
|
5
|
+
"content-display-option-content": "awsui_content-display-option-content_1f3h0_1aj8k_293",
|
|
6
|
+
"content-display-option": "awsui_content-display-option_1f3h0_1aj8k_289",
|
|
7
|
+
"content-display-option-label": "awsui_content-display-option-label_1f3h0_1aj8k_341",
|
|
8
|
+
"drag-handle-wrapper": "awsui_drag-handle-wrapper_1f3h0_1aj8k_348",
|
|
9
|
+
"content-display": "awsui_content-display_1f3h0_1aj8k_289",
|
|
10
|
+
"content-display-text-filter": "awsui_content-display-text-filter_1f3h0_1aj8k_353",
|
|
11
|
+
"content-display-no-match": "awsui_content-display-no-match_1f3h0_1aj8k_354",
|
|
12
|
+
"content-display-title": "awsui_content-display-title_1f3h0_1aj8k_358",
|
|
13
|
+
"content-display-description": "awsui_content-display-description_1f3h0_1aj8k_367",
|
|
14
|
+
"content-display-option-list": "awsui_content-display-option-list_1f3h0_1aj8k_375"
|
|
14
15
|
};
|
|
15
16
|
|
|
@@ -286,11 +286,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
286
286
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
287
287
|
SPDX-License-Identifier: Apache-2.0
|
|
288
288
|
*/
|
|
289
|
-
.awsui_content-display-option-
|
|
289
|
+
.awsui_content-display-option-toggle_1f3h0_1aj8k_289:not(#\9) {
|
|
290
290
|
/* used in test-utils */
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
.awsui_content-display-option-
|
|
293
|
+
.awsui_content-display-option-content_1f3h0_1aj8k_293:not(#\9) {
|
|
294
294
|
border-collapse: separate;
|
|
295
295
|
border-spacing: 0;
|
|
296
296
|
box-sizing: border-box;
|
|
@@ -333,26 +333,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
333
333
|
border-end-end-radius: var(--border-radius-item-05df9h, 8px);
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
.awsui_content-display-
|
|
336
|
+
.awsui_content-display-option_1f3h0_1aj8k_289:not(#\9) {
|
|
337
337
|
list-style: none;
|
|
338
338
|
position: relative;
|
|
339
339
|
border-block-start: var(--border-divider-list-width-27y3k5, 1px) solid var(--color-border-divider-secondary-alwp8z, #ebebf0);
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
-
.awsui_content-display-option-
|
|
342
|
+
.awsui_content-display-option-label_1f3h0_1aj8k_341:not(#\9) {
|
|
343
343
|
flex-grow: 1;
|
|
344
344
|
min-inline-size: 0;
|
|
345
345
|
word-break: break-word;
|
|
346
346
|
padding-inline-end: var(--space-l-t419sm, 20px);
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
-
.
|
|
350
|
-
|
|
351
|
-
|
|
349
|
+
.awsui_drag-handle-wrapper_1f3h0_1aj8k_348:not(#\9) {
|
|
350
|
+
margin-inline: var(--space-scaled-xxs-7597g1, 4px);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.awsui_content-display_1f3h0_1aj8k_289:not(#\9),
|
|
354
|
+
.awsui_content-display-text-filter_1f3h0_1aj8k_353:not(#\9),
|
|
355
|
+
.awsui_content-display-no-match_1f3h0_1aj8k_354:not(#\9) {
|
|
352
356
|
/* used in test-utils */
|
|
353
357
|
}
|
|
354
358
|
|
|
355
|
-
.awsui_content-display-
|
|
359
|
+
.awsui_content-display-title_1f3h0_1aj8k_358:not(#\9) {
|
|
356
360
|
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
357
361
|
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
358
362
|
font-weight: var(--font-display-label-weight-815ja9, 700);
|
|
@@ -361,7 +365,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
361
365
|
margin-inline: 0;
|
|
362
366
|
}
|
|
363
367
|
|
|
364
|
-
.awsui_content-display-
|
|
368
|
+
.awsui_content-display-description_1f3h0_1aj8k_367:not(#\9) {
|
|
365
369
|
color: var(--color-text-form-secondary-54emib, #656871);
|
|
366
370
|
font-size: var(--font-size-body-s-asqx2i, 12px);
|
|
367
371
|
line-height: var(--line-height-body-s-7zv1j5, 16px);
|
|
@@ -369,7 +373,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
369
373
|
margin-block-start: var(--space-scaled-xxxs-27y4hv, 2px);
|
|
370
374
|
}
|
|
371
375
|
|
|
372
|
-
.awsui_content-display-option-
|
|
376
|
+
.awsui_content-display-option-list_1f3h0_1aj8k_375:not(#\9) {
|
|
373
377
|
position: relative;
|
|
374
378
|
list-style: none;
|
|
375
379
|
padding-block: 0;
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"content-display-option-toggle": "awsui_content-display-option-
|
|
6
|
-
"content-display-option-content": "awsui_content-display-option-
|
|
7
|
-
"content-display-option": "awsui_content-display-
|
|
8
|
-
"content-display-option-label": "awsui_content-display-option-
|
|
9
|
-
"
|
|
10
|
-
"content-display
|
|
11
|
-
"content-display-
|
|
12
|
-
"content-display-
|
|
13
|
-
"content-display-
|
|
14
|
-
"content-display-
|
|
5
|
+
"content-display-option-toggle": "awsui_content-display-option-toggle_1f3h0_1aj8k_289",
|
|
6
|
+
"content-display-option-content": "awsui_content-display-option-content_1f3h0_1aj8k_293",
|
|
7
|
+
"content-display-option": "awsui_content-display-option_1f3h0_1aj8k_289",
|
|
8
|
+
"content-display-option-label": "awsui_content-display-option-label_1f3h0_1aj8k_341",
|
|
9
|
+
"drag-handle-wrapper": "awsui_drag-handle-wrapper_1f3h0_1aj8k_348",
|
|
10
|
+
"content-display": "awsui_content-display_1f3h0_1aj8k_289",
|
|
11
|
+
"content-display-text-filter": "awsui_content-display-text-filter_1f3h0_1aj8k_353",
|
|
12
|
+
"content-display-no-match": "awsui_content-display-no-match_1f3h0_1aj8k_354",
|
|
13
|
+
"content-display-title": "awsui_content-display-title_1f3h0_1aj8k_358",
|
|
14
|
+
"content-display-description": "awsui_content-display-description_1f3h0_1aj8k_367",
|
|
15
|
+
"content-display-option-list": "awsui_content-display-option-list_1f3h0_1aj8k_375"
|
|
15
16
|
};
|
|
16
17
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/collection-preferences/index.tsx"],"names":[],"mappings":";AAuBA,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAiB1D,OAAO,EAAE,0BAA0B,EAAE,CAAC;AAItC,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,KAAK,EACL,YAAY,EACZ,WAAW,EACX,QAAgB,EAChB,SAAS,EACT,QAAQ,EACR,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,GAAG,IAAI,EACR,EAAE,0BAA0B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/collection-preferences/index.tsx"],"names":[],"mappings":";AAuBA,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAiB1D,OAAO,EAAE,0BAA0B,EAAE,CAAC;AAItC,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,KAAK,EACL,YAAY,EACZ,WAAW,EACX,QAAgB,EAChB,SAAS,EACT,QAAQ,EACR,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,GAAG,IAAI,EACR,EAAE,0BAA0B,eAqM5B"}
|
|
@@ -30,7 +30,7 @@ export default function CollectionPreferences(_a) {
|
|
|
30
30
|
const parentMetadata = useContext(CollectionPreferencesMetadata);
|
|
31
31
|
const { __internalRootRef } = useBaseComponent('CollectionPreferences', {
|
|
32
32
|
props: {},
|
|
33
|
-
metadata: Object.assign(Object.assign({}, parentMetadata), { hasStripedRowsPreference: !!stripedRowsPreference, hasVisibleContentPreference: !!visibleContentPreference, hasContentDisplayPreference: !!contentDisplayPreference, hasContentDensityPreference: !!contentDensityPreference, hasStickyColumnsPreference: !!stickyColumnsPreference, visibleContentOptionsCount: (_b = visibleContentPreference === null || visibleContentPreference === void 0 ? void 0 : visibleContentPreference.options) === null || _b === void 0 ? void 0 : _b.length }),
|
|
33
|
+
metadata: Object.assign(Object.assign({}, parentMetadata), { hasStripedRowsPreference: !!stripedRowsPreference, hasVisibleContentPreference: !!visibleContentPreference, hasContentDisplayPreference: !!contentDisplayPreference, hasContentDensityPreference: !!contentDensityPreference, hasStickyColumnsPreference: !!stickyColumnsPreference, hasContentDisplayColumnFiltering: !!(contentDisplayPreference === null || contentDisplayPreference === void 0 ? void 0 : contentDisplayPreference.enableColumnFiltering), visibleContentOptionsCount: (_b = visibleContentPreference === null || visibleContentPreference === void 0 ? void 0 : visibleContentPreference.options) === null || _b === void 0 ? void 0 : _b.length }),
|
|
34
34
|
});
|
|
35
35
|
checkControlled('CollectionPreferences', 'preferences', preferences, 'onConfirm', onConfirm);
|
|
36
36
|
const i18n = useInternalI18n('collection-pre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right Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useContext, useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalBox from '../box/internal';\nimport { ButtonProps } from '../button/interfaces';\nimport { InternalButton } from '../button/internal';\nimport { useInternalI18n } from '../i18n/context';\nimport { getBaseProps } from '../internal/base-component';\nimport { CollectionPreferencesMetadata } from '../internal/context/collection-preferences-metadata-context';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport checkControlled from '../internal/hooks/check-controlled';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport InternalModal from '../modal/internal';\nimport InternalSpaceBetween from '../space-between/internal';\nimport { getComponentAnalyticsMetadata } from './analytics-metadata/utils';\nimport ContentDisplayPreference from './content-display';\nimport { CollectionPreferencesProps } from './interfaces';\nimport {\n ContentDensityPreference,\n copyPreferences,\n CustomPreference,\n mergePreferences,\n ModalContentLayout,\n PageSizePreference,\n StickyColumnsPreference,\n StripedRowsPreference,\n WrapLinesPreference,\n} from './utils';\nimport VisibleContentPreference from './visible-content';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\n\nexport { CollectionPreferencesProps };\n\nconst componentName = 'CollectionPreferences';\n\nexport default function CollectionPreferences({\n title,\n confirmLabel,\n cancelLabel,\n disabled = false,\n onConfirm,\n onCancel,\n visibleContentPreference,\n contentDisplayPreference,\n pageSizePreference,\n wrapLinesPreference,\n stripedRowsPreference,\n contentDensityPreference,\n stickyColumnsPreference,\n preferences,\n customPreference,\n getModalRoot,\n removeModalRoot,\n contentBefore,\n ...rest\n}: CollectionPreferencesProps) {\n const parentMetadata = useContext(CollectionPreferencesMetadata);\n const { __internalRootRef } = useBaseComponent('CollectionPreferences', {\n props: {},\n metadata: {\n ...parentMetadata,\n hasStripedRowsPreference: !!stripedRowsPreference,\n hasVisibleContentPreference: !!visibleContentPreference,\n hasContentDisplayPreference: !!contentDisplayPreference,\n hasContentDensityPreference: !!contentDensityPreference,\n hasStickyColumnsPreference: !!stickyColumnsPreference,\n visibleContentOptionsCount: visibleContentPreference?.options?.length,\n },\n });\n checkControlled('CollectionPreferences', 'preferences', preferences, 'onConfirm', onConfirm);\n\n const i18n = useInternalI18n('collection-preferences');\n const baseProps = getBaseProps(rest);\n const [modalVisible, setModalVisible] = useState(false);\n const [temporaryPreferences, setTemporaryPreferences] = useState(copyPreferences(preferences || {}));\n const triggerRef = useRef<ButtonProps.Ref>(null);\n const dialogPreviouslyOpen = useRef(false);\n\n useEffect(() => {\n if (!modalVisible) {\n dialogPreviouslyOpen.current && triggerRef.current && triggerRef.current.focus();\n } else {\n dialogPreviouslyOpen.current = true;\n }\n }, [modalVisible]);\n\n const onConfirmListener = () => {\n setModalVisible(false);\n fireNonCancelableEvent(onConfirm, temporaryPreferences);\n };\n\n const onCancelListener = () => {\n fireNonCancelableEvent(onCancel, {});\n setModalVisible(false);\n setTemporaryPreferences(copyPreferences(preferences || {}));\n };\n\n const hasContentOnTheLeft = !!(\n pageSizePreference ||\n wrapLinesPreference ||\n stripedRowsPreference ||\n contentDensityPreference ||\n stickyColumnsPreference ||\n customPreference\n );\n const hasContentOnTheRight = !!(visibleContentPreference || contentDisplayPreference);\n\n const onChange = (changedPreferences: CollectionPreferencesProps.Preferences) =>\n setTemporaryPreferences(mergePreferences(changedPreferences, temporaryPreferences));\n\n if (visibleContentPreference && contentDisplayPreference) {\n warnOnce(\n componentName,\n 'You provided both `visibleContentPreference` and `contentDisplayPreference` props. `visibleContentPreference` will be ignored and only `contentDisplayPreference` will be rendered.'\n );\n }\n\n const referrerId = useUniqueId();\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles.root)} ref={__internalRootRef}>\n <div\n id={referrerId}\n {...getAnalyticsMetadataAttribute({ component: getComponentAnalyticsMetadata(disabled, preferences) })}\n >\n <InternalButton\n ref={triggerRef}\n className={clsx(styles['trigger-button'], analyticsSelectors['trigger-button'])}\n disabled={disabled}\n ariaLabel={i18n('title', title)}\n onClick={() => {\n setTemporaryPreferences(copyPreferences(preferences || {}));\n setModalVisible(true);\n }}\n variant=\"icon\"\n iconName=\"settings\"\n formAction=\"none\"\n analyticsAction=\"open\"\n />\n {!disabled && modalVisible && (\n <InternalModal\n className={styles['modal-root']}\n visible={true}\n getModalRoot={getModalRoot}\n removeModalRoot={removeModalRoot}\n header={i18n('title', title)}\n referrerId={referrerId}\n footer={\n <InternalBox float=\"right\">\n <InternalSpaceBetween direction=\"horizontal\" size=\"xs\">\n <InternalButton\n className={styles['cancel-button']}\n variant=\"link\"\n formAction=\"none\"\n onClick={onCancelListener}\n analyticsAction=\"cancel\"\n >\n {i18n('cancelLabel', cancelLabel)}\n </InternalButton>\n <InternalButton\n className={styles['confirm-button']}\n variant=\"primary\"\n formAction=\"none\"\n onClick={onConfirmListener}\n analyticsAction=\"confirm\"\n >\n {i18n('confirmLabel', confirmLabel)}\n </InternalButton>\n </InternalSpaceBetween>\n </InternalBox>\n }\n closeAriaLabel={cancelLabel}\n size={hasContentOnTheLeft && hasContentOnTheRight ? 'large' : 'medium'}\n onDismiss={onCancelListener}\n >\n {/* Content before */}\n <div className={styles['content-before']}>{contentBefore}</div>\n\n {/* Preferences content */}\n <ModalContentLayout\n left={\n hasContentOnTheLeft && (\n <InternalSpaceBetween size=\"l\">\n {pageSizePreference && (\n <PageSizePreference\n value={temporaryPreferences.pageSize}\n {...pageSizePreference}\n onChange={pageSize => onChange({ pageSize })}\n />\n )}\n {wrapLinesPreference && (\n <WrapLinesPreference\n value={temporaryPreferences.wrapLines}\n {...wrapLinesPreference}\n onChange={wrapLines => onChange({ wrapLines })}\n />\n )}\n {stripedRowsPreference && (\n <StripedRowsPreference\n value={temporaryPreferences.stripedRows}\n {...stripedRowsPreference}\n onChange={stripedRows => onChange({ stripedRows })}\n />\n )}\n {contentDensityPreference && (\n <ContentDensityPreference\n value={temporaryPreferences.contentDensity}\n {...contentDensityPreference}\n onChange={contentDensity => onChange({ contentDensity })}\n />\n )}\n {stickyColumnsPreference && (\n <StickyColumnsPreference\n value={temporaryPreferences.stickyColumns}\n {...stickyColumnsPreference}\n onChange={stickyColumns => onChange({ stickyColumns })}\n />\n )}\n {customPreference && (\n <CustomPreference\n value={temporaryPreferences.custom}\n customPreference={customPreference}\n onChange={custom => onChange({ custom })}\n />\n )}\n </InternalSpaceBetween>\n )\n }\n right={\n contentDisplayPreference ? (\n <ContentDisplayPreference\n {...contentDisplayPreference}\n value={temporaryPreferences.contentDisplay}\n onChange={contentDisplay => onChange({ contentDisplay })}\n />\n ) : (\n visibleContentPreference && (\n <VisibleContentPreference\n value={temporaryPreferences.visibleContent}\n {...visibleContentPreference}\n onChange={visibleItems => onChange({ visibleContent: visibleItems })}\n />\n )\n )\n }\n />\n </InternalModal>\n )}\n </div>\n </div>\n );\n}\n\napplyDisplayName(CollectionPreferences, componentName);\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/collection-preferences/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,YAAY,EAA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,EAAE,CAAC,IACtD,CACH;wBACA,gBAAgB,IAAI,CACnB,oBAAC,gBAAgB,IACf,KAAK,EAAE,oBAAoB,CAAC,MAAM,EAClC,gBAAgB,EAAE,gBAAgB,EAClC,QAAQ,EAAE,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC,GACxC,CACH,CACoB,CACxB,EAEH,KAAK,EACH,wBAAwB,CAAC,CAAC,CAAC,CACzB,oBAAC,wBAAwB,oBACnB,wBAAwB,IAC5B,KAAK,EAAE,oBAAoB,CAAC,cAAc,EAC1C,QAAQ,EAAE,cAAc,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC,IACxD,CACH,CAAC,CAAC,CAAC,CACF,wBAAwB,IAAI,CAC1B,oBAAC,wBAAwB,kBACvB,KAAK,EAAE,oBAAoB,CAAC,cAAc,IACtC,wBAAwB,IAC5B,QAAQ,EAAE,YAAY,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC,IACpE,CACH,CACF,GAEH,CACY,CACjB,CACG,CACF,CACP,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,qBAAqB,EAAE,aAAa,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useContext, useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalBox from '../box/internal';\nimport { ButtonProps } from '../button/interfaces';\nimport { InternalButton } from '../button/internal';\nimport { useInternalI18n } from '../i18n/context';\nimport { getBaseProps } from '../internal/base-component';\nimport { CollectionPreferencesMetadata } from '../internal/context/collection-preferences-metadata-context';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport checkControlled from '../internal/hooks/check-controlled';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport InternalModal from '../modal/internal';\nimport InternalSpaceBetween from '../space-between/internal';\nimport { getComponentAnalyticsMetadata } from './analytics-metadata/utils';\nimport ContentDisplayPreference from './content-display';\nimport { CollectionPreferencesProps } from './interfaces';\nimport {\n ContentDensityPreference,\n copyPreferences,\n CustomPreference,\n mergePreferences,\n ModalContentLayout,\n PageSizePreference,\n StickyColumnsPreference,\n StripedRowsPreference,\n WrapLinesPreference,\n} from './utils';\nimport VisibleContentPreference from './visible-content';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\n\nexport { CollectionPreferencesProps };\n\nconst componentName = 'CollectionPreferences';\n\nexport default function CollectionPreferences({\n title,\n confirmLabel,\n cancelLabel,\n disabled = false,\n onConfirm,\n onCancel,\n visibleContentPreference,\n contentDisplayPreference,\n pageSizePreference,\n wrapLinesPreference,\n stripedRowsPreference,\n contentDensityPreference,\n stickyColumnsPreference,\n preferences,\n customPreference,\n getModalRoot,\n removeModalRoot,\n contentBefore,\n ...rest\n}: CollectionPreferencesProps) {\n const parentMetadata = useContext(CollectionPreferencesMetadata);\n const { __internalRootRef } = useBaseComponent('CollectionPreferences', {\n props: {},\n metadata: {\n ...parentMetadata,\n hasStripedRowsPreference: !!stripedRowsPreference,\n hasVisibleContentPreference: !!visibleContentPreference,\n hasContentDisplayPreference: !!contentDisplayPreference,\n hasContentDensityPreference: !!contentDensityPreference,\n hasStickyColumnsPreference: !!stickyColumnsPreference,\n hasContentDisplayColumnFiltering: !!contentDisplayPreference?.enableColumnFiltering,\n visibleContentOptionsCount: visibleContentPreference?.options?.length,\n },\n });\n checkControlled('CollectionPreferences', 'preferences', preferences, 'onConfirm', onConfirm);\n\n const i18n = useInternalI18n('collection-preferences');\n const baseProps = getBaseProps(rest);\n const [modalVisible, setModalVisible] = useState(false);\n const [temporaryPreferences, setTemporaryPreferences] = useState(copyPreferences(preferences || {}));\n const triggerRef = useRef<ButtonProps.Ref>(null);\n const dialogPreviouslyOpen = useRef(false);\n\n useEffect(() => {\n if (!modalVisible) {\n dialogPreviouslyOpen.current && triggerRef.current && triggerRef.current.focus();\n } else {\n dialogPreviouslyOpen.current = true;\n }\n }, [modalVisible]);\n\n const onConfirmListener = () => {\n setModalVisible(false);\n fireNonCancelableEvent(onConfirm, temporaryPreferences);\n };\n\n const onCancelListener = () => {\n fireNonCancelableEvent(onCancel, {});\n setModalVisible(false);\n setTemporaryPreferences(copyPreferences(preferences || {}));\n };\n\n const hasContentOnTheLeft = !!(\n pageSizePreference ||\n wrapLinesPreference ||\n stripedRowsPreference ||\n contentDensityPreference ||\n stickyColumnsPreference ||\n customPreference\n );\n const hasContentOnTheRight = !!(visibleContentPreference || contentDisplayPreference);\n\n const onChange = (changedPreferences: CollectionPreferencesProps.Preferences) =>\n setTemporaryPreferences(mergePreferences(changedPreferences, temporaryPreferences));\n\n if (visibleContentPreference && contentDisplayPreference) {\n warnOnce(\n componentName,\n 'You provided both `visibleContentPreference` and `contentDisplayPreference` props. `visibleContentPreference` will be ignored and only `contentDisplayPreference` will be rendered.'\n );\n }\n\n const referrerId = useUniqueId();\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles.root)} ref={__internalRootRef}>\n <div\n id={referrerId}\n {...getAnalyticsMetadataAttribute({ component: getComponentAnalyticsMetadata(disabled, preferences) })}\n >\n <InternalButton\n ref={triggerRef}\n className={clsx(styles['trigger-button'], analyticsSelectors['trigger-button'])}\n disabled={disabled}\n ariaLabel={i18n('title', title)}\n onClick={() => {\n setTemporaryPreferences(copyPreferences(preferences || {}));\n setModalVisible(true);\n }}\n variant=\"icon\"\n iconName=\"settings\"\n formAction=\"none\"\n analyticsAction=\"open\"\n />\n {!disabled && modalVisible && (\n <InternalModal\n className={styles['modal-root']}\n visible={true}\n getModalRoot={getModalRoot}\n removeModalRoot={removeModalRoot}\n header={i18n('title', title)}\n referrerId={referrerId}\n footer={\n <InternalBox float=\"right\">\n <InternalSpaceBetween direction=\"horizontal\" size=\"xs\">\n <InternalButton\n className={styles['cancel-button']}\n variant=\"link\"\n formAction=\"none\"\n onClick={onCancelListener}\n analyticsAction=\"cancel\"\n >\n {i18n('cancelLabel', cancelLabel)}\n </InternalButton>\n <InternalButton\n className={styles['confirm-button']}\n variant=\"primary\"\n formAction=\"none\"\n onClick={onConfirmListener}\n analyticsAction=\"confirm\"\n >\n {i18n('confirmLabel', confirmLabel)}\n </InternalButton>\n </InternalSpaceBetween>\n </InternalBox>\n }\n closeAriaLabel={cancelLabel}\n size={hasContentOnTheLeft && hasContentOnTheRight ? 'large' : 'medium'}\n onDismiss={onCancelListener}\n >\n {/* Content before */}\n <div className={styles['content-before']}>{contentBefore}</div>\n\n {/* Preferences content */}\n <ModalContentLayout\n left={\n hasContentOnTheLeft && (\n <InternalSpaceBetween size=\"l\">\n {pageSizePreference && (\n <PageSizePreference\n value={temporaryPreferences.pageSize}\n {...pageSizePreference}\n onChange={pageSize => onChange({ pageSize })}\n />\n )}\n {wrapLinesPreference && (\n <WrapLinesPreference\n value={temporaryPreferences.wrapLines}\n {...wrapLinesPreference}\n onChange={wrapLines => onChange({ wrapLines })}\n />\n )}\n {stripedRowsPreference && (\n <StripedRowsPreference\n value={temporaryPreferences.stripedRows}\n {...stripedRowsPreference}\n onChange={stripedRows => onChange({ stripedRows })}\n />\n )}\n {contentDensityPreference && (\n <ContentDensityPreference\n value={temporaryPreferences.contentDensity}\n {...contentDensityPreference}\n onChange={contentDensity => onChange({ contentDensity })}\n />\n )}\n {stickyColumnsPreference && (\n <StickyColumnsPreference\n value={temporaryPreferences.stickyColumns}\n {...stickyColumnsPreference}\n onChange={stickyColumns => onChange({ stickyColumns })}\n />\n )}\n {customPreference && (\n <CustomPreference\n value={temporaryPreferences.custom}\n customPreference={customPreference}\n onChange={custom => onChange({ custom })}\n />\n )}\n </InternalSpaceBetween>\n )\n }\n right={\n contentDisplayPreference ? (\n <ContentDisplayPreference\n {...contentDisplayPreference}\n value={temporaryPreferences.contentDisplay}\n onChange={contentDisplay => onChange({ contentDisplay })}\n />\n ) : (\n visibleContentPreference && (\n <VisibleContentPreference\n value={temporaryPreferences.visibleContent}\n {...visibleContentPreference}\n onChange={visibleItems => onChange({ visibleContent: visibleItems })}\n />\n )\n )\n }\n />\n </InternalModal>\n )}\n </div>\n </div>\n );\n}\n\napplyDisplayName(CollectionPreferences, componentName);\n"]}
|
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"visible-content": "awsui_visible-
|
|
5
|
-
"visible-content-toggle": "awsui_visible-content-
|
|
6
|
-
"visible-content-groups": "awsui_visible-content-
|
|
7
|
-
"visible-content-group": "awsui_visible-content-
|
|
8
|
-
"visible-content-title": "awsui_visible-content-
|
|
9
|
-
"visible-content-group-label": "awsui_visible-content-group-
|
|
10
|
-
"visible-content-option": "awsui_visible-content-
|
|
11
|
-
"visible-content-option-label": "awsui_visible-content-option-
|
|
12
|
-
"content-display-option-toggle": "awsui_content-display-option-
|
|
13
|
-
"content-display-option-content": "awsui_content-display-option-
|
|
14
|
-
"content-display-option": "awsui_content-display-
|
|
15
|
-
"content-display-option-label": "awsui_content-display-option-
|
|
16
|
-
"
|
|
17
|
-
"content-display
|
|
18
|
-
"content-display-
|
|
19
|
-
"content-display-
|
|
20
|
-
"content-display-
|
|
21
|
-
"content-display-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"page-size
|
|
35
|
-
"page-size-
|
|
36
|
-
"
|
|
37
|
-
"sticky-columns
|
|
38
|
-
"sticky-columns-
|
|
39
|
-
"sticky-columns-
|
|
40
|
-
"sticky-columns-
|
|
4
|
+
"visible-content": "awsui_visible-content_tc96w_dqnby_289",
|
|
5
|
+
"visible-content-toggle": "awsui_visible-content-toggle_tc96w_dqnby_290",
|
|
6
|
+
"visible-content-groups": "awsui_visible-content-groups_tc96w_dqnby_291",
|
|
7
|
+
"visible-content-group": "awsui_visible-content-group_tc96w_dqnby_291",
|
|
8
|
+
"visible-content-title": "awsui_visible-content-title_tc96w_dqnby_296",
|
|
9
|
+
"visible-content-group-label": "awsui_visible-content-group-label_tc96w_dqnby_306",
|
|
10
|
+
"visible-content-option": "awsui_visible-content-option_tc96w_dqnby_312",
|
|
11
|
+
"visible-content-option-label": "awsui_visible-content-option-label_tc96w_dqnby_325",
|
|
12
|
+
"content-display-option-toggle": "awsui_content-display-option-toggle_tc96w_dqnby_620",
|
|
13
|
+
"content-display-option-content": "awsui_content-display-option-content_tc96w_dqnby_624",
|
|
14
|
+
"content-display-option": "awsui_content-display-option_tc96w_dqnby_620",
|
|
15
|
+
"content-display-option-label": "awsui_content-display-option-label_tc96w_dqnby_672",
|
|
16
|
+
"drag-handle-wrapper": "awsui_drag-handle-wrapper_tc96w_dqnby_679",
|
|
17
|
+
"content-display": "awsui_content-display_tc96w_dqnby_620",
|
|
18
|
+
"content-display-text-filter": "awsui_content-display-text-filter_tc96w_dqnby_684",
|
|
19
|
+
"content-display-no-match": "awsui_content-display-no-match_tc96w_dqnby_685",
|
|
20
|
+
"content-display-title": "awsui_content-display-title_tc96w_dqnby_689",
|
|
21
|
+
"content-display-description": "awsui_content-display-description_tc96w_dqnby_698",
|
|
22
|
+
"content-display-option-list": "awsui_content-display-option-list_tc96w_dqnby_706",
|
|
23
|
+
"root": "awsui_root_tc96w_dqnby_713",
|
|
24
|
+
"modal-root": "awsui_modal-root_tc96w_dqnby_714",
|
|
25
|
+
"trigger-button": "awsui_trigger-button_tc96w_dqnby_715",
|
|
26
|
+
"cancel-button": "awsui_cancel-button_tc96w_dqnby_716",
|
|
27
|
+
"confirm-button": "awsui_confirm-button_tc96w_dqnby_717",
|
|
28
|
+
"custom": "awsui_custom_tc96w_dqnby_718",
|
|
29
|
+
"content-before": "awsui_content-before_tc96w_dqnby_719",
|
|
30
|
+
"second-column-small": "awsui_second-column-small_tc96w_dqnby_723",
|
|
31
|
+
"wrap-lines": "awsui_wrap-lines_tc96w_dqnby_727",
|
|
32
|
+
"striped-rows": "awsui_striped-rows_tc96w_dqnby_728",
|
|
33
|
+
"content-density": "awsui_content-density_tc96w_dqnby_729",
|
|
34
|
+
"page-size": "awsui_page-size_tc96w_dqnby_730",
|
|
35
|
+
"page-size-form-field": "awsui_page-size-form-field_tc96w_dqnby_731",
|
|
36
|
+
"page-size-radio-group": "awsui_page-size-radio-group_tc96w_dqnby_732",
|
|
37
|
+
"sticky-columns": "awsui_sticky-columns_tc96w_dqnby_733",
|
|
38
|
+
"sticky-columns-form-field": "awsui_sticky-columns-form-field_tc96w_dqnby_734",
|
|
39
|
+
"sticky-columns-radio-group": "awsui_sticky-columns-radio-group_tc96w_dqnby_735",
|
|
40
|
+
"sticky-columns-first": "awsui_sticky-columns-first_tc96w_dqnby_736",
|
|
41
|
+
"sticky-columns-last": "awsui_sticky-columns-last_tc96w_dqnby_737"
|
|
41
42
|
};
|
|
42
43
|
|
|
@@ -286,14 +286,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
286
286
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
287
287
|
SPDX-License-Identifier: Apache-2.0
|
|
288
288
|
*/
|
|
289
|
-
.awsui_visible-
|
|
290
|
-
.awsui_visible-content-
|
|
291
|
-
.awsui_visible-content-
|
|
292
|
-
.awsui_visible-content-
|
|
289
|
+
.awsui_visible-content_tc96w_dqnby_289:not(#\9),
|
|
290
|
+
.awsui_visible-content-toggle_tc96w_dqnby_290:not(#\9),
|
|
291
|
+
.awsui_visible-content-groups_tc96w_dqnby_291:not(#\9),
|
|
292
|
+
.awsui_visible-content-group_tc96w_dqnby_291:not(#\9) {
|
|
293
293
|
/* used in test-utils */
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
-
.awsui_visible-content-
|
|
296
|
+
.awsui_visible-content-title_tc96w_dqnby_296:not(#\9) {
|
|
297
297
|
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
298
298
|
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
299
299
|
font-weight: var(--font-display-label-weight-815ja9, 700);
|
|
@@ -303,13 +303,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
303
303
|
margin-inline: 0;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
.awsui_visible-content-group-
|
|
306
|
+
.awsui_visible-content-group-label_tc96w_dqnby_306:not(#\9) {
|
|
307
307
|
color: var(--color-text-group-label-8pk3es, #424650);
|
|
308
308
|
padding-block-end: var(--space-xs-zb16t3, 8px);
|
|
309
309
|
border-block-end: var(--border-divider-list-width-27y3k5, 1px) solid var(--color-border-divider-secondary-alwp8z, #ebebf0);
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
.awsui_visible-content-
|
|
312
|
+
.awsui_visible-content-option_tc96w_dqnby_312:not(#\9) {
|
|
313
313
|
display: flex;
|
|
314
314
|
flex-wrap: nowrap;
|
|
315
315
|
justify-content: space-between;
|
|
@@ -318,11 +318,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
318
318
|
padding-inline-end: 0px;
|
|
319
319
|
border-block-end: var(--border-divider-list-width-27y3k5, 1px) solid var(--color-border-divider-secondary-alwp8z, #ebebf0);
|
|
320
320
|
}
|
|
321
|
-
.awsui_visible-content-
|
|
321
|
+
.awsui_visible-content-option_tc96w_dqnby_312:not(#\9):last-child {
|
|
322
322
|
border-block-end: none;
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
-
.awsui_visible-content-option-
|
|
325
|
+
.awsui_visible-content-option-label_tc96w_dqnby_325:not(#\9) {
|
|
326
326
|
overflow: hidden;
|
|
327
327
|
text-overflow: ellipsis;
|
|
328
328
|
padding-inline-end: var(--space-l-t419sm, 20px);
|
|
@@ -617,11 +617,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
617
617
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
618
618
|
SPDX-License-Identifier: Apache-2.0
|
|
619
619
|
*/
|
|
620
|
-
.awsui_content-display-option-
|
|
620
|
+
.awsui_content-display-option-toggle_tc96w_dqnby_620:not(#\9) {
|
|
621
621
|
/* used in test-utils */
|
|
622
622
|
}
|
|
623
623
|
|
|
624
|
-
.awsui_content-display-option-
|
|
624
|
+
.awsui_content-display-option-content_tc96w_dqnby_624:not(#\9) {
|
|
625
625
|
border-collapse: separate;
|
|
626
626
|
border-spacing: 0;
|
|
627
627
|
box-sizing: border-box;
|
|
@@ -664,26 +664,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
664
664
|
border-end-end-radius: var(--border-radius-item-05df9h, 8px);
|
|
665
665
|
}
|
|
666
666
|
|
|
667
|
-
.awsui_content-display-
|
|
667
|
+
.awsui_content-display-option_tc96w_dqnby_620:not(#\9) {
|
|
668
668
|
list-style: none;
|
|
669
669
|
position: relative;
|
|
670
670
|
border-block-start: var(--border-divider-list-width-27y3k5, 1px) solid var(--color-border-divider-secondary-alwp8z, #ebebf0);
|
|
671
671
|
}
|
|
672
672
|
|
|
673
|
-
.awsui_content-display-option-
|
|
673
|
+
.awsui_content-display-option-label_tc96w_dqnby_672:not(#\9) {
|
|
674
674
|
flex-grow: 1;
|
|
675
675
|
min-inline-size: 0;
|
|
676
676
|
word-break: break-word;
|
|
677
677
|
padding-inline-end: var(--space-l-t419sm, 20px);
|
|
678
678
|
}
|
|
679
679
|
|
|
680
|
-
.
|
|
681
|
-
|
|
682
|
-
|
|
680
|
+
.awsui_drag-handle-wrapper_tc96w_dqnby_679:not(#\9) {
|
|
681
|
+
margin-inline: var(--space-scaled-xxs-7597g1, 4px);
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.awsui_content-display_tc96w_dqnby_620:not(#\9),
|
|
685
|
+
.awsui_content-display-text-filter_tc96w_dqnby_684:not(#\9),
|
|
686
|
+
.awsui_content-display-no-match_tc96w_dqnby_685:not(#\9) {
|
|
683
687
|
/* used in test-utils */
|
|
684
688
|
}
|
|
685
689
|
|
|
686
|
-
.awsui_content-display-
|
|
690
|
+
.awsui_content-display-title_tc96w_dqnby_689:not(#\9) {
|
|
687
691
|
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
688
692
|
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
689
693
|
font-weight: var(--font-display-label-weight-815ja9, 700);
|
|
@@ -692,7 +696,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
692
696
|
margin-inline: 0;
|
|
693
697
|
}
|
|
694
698
|
|
|
695
|
-
.awsui_content-display-
|
|
699
|
+
.awsui_content-display-description_tc96w_dqnby_698:not(#\9) {
|
|
696
700
|
color: var(--color-text-form-secondary-54emib, #656871);
|
|
697
701
|
font-size: var(--font-size-body-s-asqx2i, 12px);
|
|
698
702
|
line-height: var(--line-height-body-s-7zv1j5, 16px);
|
|
@@ -700,37 +704,37 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
700
704
|
margin-block-start: var(--space-scaled-xxxs-27y4hv, 2px);
|
|
701
705
|
}
|
|
702
706
|
|
|
703
|
-
.awsui_content-display-option-
|
|
707
|
+
.awsui_content-display-option-list_tc96w_dqnby_706:not(#\9) {
|
|
704
708
|
position: relative;
|
|
705
709
|
list-style: none;
|
|
706
710
|
padding-block: 0;
|
|
707
711
|
padding-inline: 0;
|
|
708
712
|
}
|
|
709
713
|
|
|
710
|
-
.
|
|
711
|
-
.awsui_modal-
|
|
712
|
-
.awsui_trigger-
|
|
713
|
-
.awsui_cancel-
|
|
714
|
-
.awsui_confirm-
|
|
715
|
-
.
|
|
716
|
-
.awsui_content-
|
|
714
|
+
.awsui_root_tc96w_dqnby_713:not(#\9),
|
|
715
|
+
.awsui_modal-root_tc96w_dqnby_714:not(#\9),
|
|
716
|
+
.awsui_trigger-button_tc96w_dqnby_715:not(#\9),
|
|
717
|
+
.awsui_cancel-button_tc96w_dqnby_716:not(#\9),
|
|
718
|
+
.awsui_confirm-button_tc96w_dqnby_717:not(#\9),
|
|
719
|
+
.awsui_custom_tc96w_dqnby_718:not(#\9),
|
|
720
|
+
.awsui_content-before_tc96w_dqnby_719:not(#\9) {
|
|
717
721
|
/* used in test-utils */
|
|
718
722
|
}
|
|
719
723
|
|
|
720
|
-
.awsui_second-column-
|
|
724
|
+
.awsui_second-column-small_tc96w_dqnby_723:not(#\9) {
|
|
721
725
|
padding-block-start: calc(2 * var(--space-scaled-l-0hpmd7, 20px));
|
|
722
726
|
}
|
|
723
727
|
|
|
724
|
-
.awsui_wrap-
|
|
725
|
-
.awsui_striped-
|
|
726
|
-
.awsui_content-
|
|
727
|
-
.awsui_page-
|
|
728
|
-
.awsui_page-size-form-
|
|
729
|
-
.awsui_page-size-radio-
|
|
730
|
-
.awsui_sticky-
|
|
731
|
-
.awsui_sticky-columns-form-
|
|
732
|
-
.awsui_sticky-columns-radio-
|
|
733
|
-
.awsui_sticky-columns-
|
|
734
|
-
.awsui_sticky-columns-
|
|
728
|
+
.awsui_wrap-lines_tc96w_dqnby_727:not(#\9),
|
|
729
|
+
.awsui_striped-rows_tc96w_dqnby_728:not(#\9),
|
|
730
|
+
.awsui_content-density_tc96w_dqnby_729:not(#\9),
|
|
731
|
+
.awsui_page-size_tc96w_dqnby_730:not(#\9),
|
|
732
|
+
.awsui_page-size-form-field_tc96w_dqnby_731:not(#\9),
|
|
733
|
+
.awsui_page-size-radio-group_tc96w_dqnby_732:not(#\9),
|
|
734
|
+
.awsui_sticky-columns_tc96w_dqnby_733:not(#\9),
|
|
735
|
+
.awsui_sticky-columns-form-field_tc96w_dqnby_734:not(#\9),
|
|
736
|
+
.awsui_sticky-columns-radio-group_tc96w_dqnby_735:not(#\9),
|
|
737
|
+
.awsui_sticky-columns-first_tc96w_dqnby_736:not(#\9),
|
|
738
|
+
.awsui_sticky-columns-last_tc96w_dqnby_737:not(#\9) {
|
|
735
739
|
/* used in test-utils */
|
|
736
740
|
}
|
|
@@ -2,42 +2,43 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"visible-content": "awsui_visible-
|
|
6
|
-
"visible-content-toggle": "awsui_visible-content-
|
|
7
|
-
"visible-content-groups": "awsui_visible-content-
|
|
8
|
-
"visible-content-group": "awsui_visible-content-
|
|
9
|
-
"visible-content-title": "awsui_visible-content-
|
|
10
|
-
"visible-content-group-label": "awsui_visible-content-group-
|
|
11
|
-
"visible-content-option": "awsui_visible-content-
|
|
12
|
-
"visible-content-option-label": "awsui_visible-content-option-
|
|
13
|
-
"content-display-option-toggle": "awsui_content-display-option-
|
|
14
|
-
"content-display-option-content": "awsui_content-display-option-
|
|
15
|
-
"content-display-option": "awsui_content-display-
|
|
16
|
-
"content-display-option-label": "awsui_content-display-option-
|
|
17
|
-
"
|
|
18
|
-
"content-display
|
|
19
|
-
"content-display-
|
|
20
|
-
"content-display-
|
|
21
|
-
"content-display-
|
|
22
|
-
"content-display-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"page-size
|
|
36
|
-
"page-size-
|
|
37
|
-
"
|
|
38
|
-
"sticky-columns
|
|
39
|
-
"sticky-columns-
|
|
40
|
-
"sticky-columns-
|
|
41
|
-
"sticky-columns-
|
|
5
|
+
"visible-content": "awsui_visible-content_tc96w_dqnby_289",
|
|
6
|
+
"visible-content-toggle": "awsui_visible-content-toggle_tc96w_dqnby_290",
|
|
7
|
+
"visible-content-groups": "awsui_visible-content-groups_tc96w_dqnby_291",
|
|
8
|
+
"visible-content-group": "awsui_visible-content-group_tc96w_dqnby_291",
|
|
9
|
+
"visible-content-title": "awsui_visible-content-title_tc96w_dqnby_296",
|
|
10
|
+
"visible-content-group-label": "awsui_visible-content-group-label_tc96w_dqnby_306",
|
|
11
|
+
"visible-content-option": "awsui_visible-content-option_tc96w_dqnby_312",
|
|
12
|
+
"visible-content-option-label": "awsui_visible-content-option-label_tc96w_dqnby_325",
|
|
13
|
+
"content-display-option-toggle": "awsui_content-display-option-toggle_tc96w_dqnby_620",
|
|
14
|
+
"content-display-option-content": "awsui_content-display-option-content_tc96w_dqnby_624",
|
|
15
|
+
"content-display-option": "awsui_content-display-option_tc96w_dqnby_620",
|
|
16
|
+
"content-display-option-label": "awsui_content-display-option-label_tc96w_dqnby_672",
|
|
17
|
+
"drag-handle-wrapper": "awsui_drag-handle-wrapper_tc96w_dqnby_679",
|
|
18
|
+
"content-display": "awsui_content-display_tc96w_dqnby_620",
|
|
19
|
+
"content-display-text-filter": "awsui_content-display-text-filter_tc96w_dqnby_684",
|
|
20
|
+
"content-display-no-match": "awsui_content-display-no-match_tc96w_dqnby_685",
|
|
21
|
+
"content-display-title": "awsui_content-display-title_tc96w_dqnby_689",
|
|
22
|
+
"content-display-description": "awsui_content-display-description_tc96w_dqnby_698",
|
|
23
|
+
"content-display-option-list": "awsui_content-display-option-list_tc96w_dqnby_706",
|
|
24
|
+
"root": "awsui_root_tc96w_dqnby_713",
|
|
25
|
+
"modal-root": "awsui_modal-root_tc96w_dqnby_714",
|
|
26
|
+
"trigger-button": "awsui_trigger-button_tc96w_dqnby_715",
|
|
27
|
+
"cancel-button": "awsui_cancel-button_tc96w_dqnby_716",
|
|
28
|
+
"confirm-button": "awsui_confirm-button_tc96w_dqnby_717",
|
|
29
|
+
"custom": "awsui_custom_tc96w_dqnby_718",
|
|
30
|
+
"content-before": "awsui_content-before_tc96w_dqnby_719",
|
|
31
|
+
"second-column-small": "awsui_second-column-small_tc96w_dqnby_723",
|
|
32
|
+
"wrap-lines": "awsui_wrap-lines_tc96w_dqnby_727",
|
|
33
|
+
"striped-rows": "awsui_striped-rows_tc96w_dqnby_728",
|
|
34
|
+
"content-density": "awsui_content-density_tc96w_dqnby_729",
|
|
35
|
+
"page-size": "awsui_page-size_tc96w_dqnby_730",
|
|
36
|
+
"page-size-form-field": "awsui_page-size-form-field_tc96w_dqnby_731",
|
|
37
|
+
"page-size-radio-group": "awsui_page-size-radio-group_tc96w_dqnby_732",
|
|
38
|
+
"sticky-columns": "awsui_sticky-columns_tc96w_dqnby_733",
|
|
39
|
+
"sticky-columns-form-field": "awsui_sticky-columns-form-field_tc96w_dqnby_734",
|
|
40
|
+
"sticky-columns-radio-group": "awsui_sticky-columns-radio-group_tc96w_dqnby_735",
|
|
41
|
+
"sticky-columns-first": "awsui_sticky-columns-first_tc96w_dqnby_736",
|
|
42
|
+
"sticky-columns-last": "awsui_sticky-columns-last_tc96w_dqnby_737"
|
|
42
43
|
};
|
|
43
44
|
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
onPointerDown?: React.PointerEventHandler;
|
|
7
|
-
onKeyDown?: React.KeyboardEventHandler;
|
|
8
|
-
}
|
|
9
|
-
export default function DragHandle({ ariaLabel, ariaDescribedby, disabled, onPointerDown, onKeyDown, }: DragHandleProps): JSX.Element;
|
|
2
|
+
import { DragHandleProps } from './interfaces';
|
|
3
|
+
export { DragHandleProps };
|
|
4
|
+
declare const DragHandle: React.ForwardRefExoticComponent<DragHandleProps & React.RefAttributes<DragHandleProps.Ref>>;
|
|
5
|
+
export default DragHandle;
|
|
10
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/drag-handle/index.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/drag-handle/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAMlD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAK/C,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,QAAA,MAAM,UAAU,6FA+Df,CAAC;AAEF,eAAe,UAAU,CAAC"}
|