@cloudscape-design/components 3.0.866 → 3.0.868

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/app-layout/drawer/resizable-drawer.d.ts.map +1 -1
  2. package/app-layout/drawer/resizable-drawer.js +3 -2
  3. package/app-layout/drawer/resizable-drawer.js.map +1 -1
  4. package/app-layout/utils/use-focus-control.d.ts +2 -1
  5. package/app-layout/utils/use-focus-control.d.ts.map +1 -1
  6. package/app-layout/utils/use-focus-control.js +2 -0
  7. package/app-layout/utils/use-focus-control.js.map +1 -1
  8. package/app-layout/utils/use-resize.d.ts.map +1 -1
  9. package/app-layout/utils/use-resize.js +3 -2
  10. package/app-layout/utils/use-resize.js.map +1 -1
  11. package/app-layout/utils/use-split-panel-focus-control.d.ts +2 -1
  12. package/app-layout/utils/use-split-panel-focus-control.d.ts.map +1 -1
  13. package/app-layout/utils/use-split-panel-focus-control.js +1 -0
  14. package/app-layout/utils/use-split-panel-focus-control.js.map +1 -1
  15. package/app-layout/visual-refresh-toolbar/drawer/global-drawer.d.ts.map +1 -1
  16. package/app-layout/visual-refresh-toolbar/drawer/global-drawer.js +3 -2
  17. package/app-layout/visual-refresh-toolbar/drawer/global-drawer.js.map +1 -1
  18. package/app-layout/visual-refresh-toolbar/drawer/local-drawer.d.ts.map +1 -1
  19. package/app-layout/visual-refresh-toolbar/drawer/local-drawer.js +3 -2
  20. package/app-layout/visual-refresh-toolbar/drawer/local-drawer.js.map +1 -1
  21. package/attribute-editor/interfaces.d.ts +7 -0
  22. package/attribute-editor/interfaces.d.ts.map +1 -1
  23. package/attribute-editor/interfaces.js.map +1 -1
  24. package/attribute-editor/internal.d.ts.map +1 -1
  25. package/attribute-editor/internal.js +2 -2
  26. package/attribute-editor/internal.js.map +1 -1
  27. package/collection-preferences/content-display/content-display-option.d.ts.map +1 -1
  28. package/collection-preferences/content-display/content-display-option.js +2 -1
  29. package/collection-preferences/content-display/content-display-option.js.map +1 -1
  30. package/collection-preferences/content-display/styles.css.js +11 -10
  31. package/collection-preferences/content-display/styles.scoped.css +14 -10
  32. package/collection-preferences/content-display/styles.selectors.js +11 -10
  33. package/collection-preferences/index.d.ts.map +1 -1
  34. package/collection-preferences/index.js +1 -1
  35. package/collection-preferences/index.js.map +1 -1
  36. package/collection-preferences/styles.css.js +38 -37
  37. package/collection-preferences/styles.scoped.css +42 -38
  38. package/collection-preferences/styles.selectors.js +38 -37
  39. package/internal/components/drag-handle/index.d.ts +4 -8
  40. package/internal/components/drag-handle/index.d.ts.map +1 -1
  41. package/internal/components/drag-handle/index.js +23 -5
  42. package/internal/components/drag-handle/index.js.map +1 -1
  43. package/internal/components/drag-handle/interfaces.d.ts +25 -0
  44. package/internal/components/drag-handle/interfaces.d.ts.map +1 -0
  45. package/internal/components/drag-handle/interfaces.js +4 -0
  46. package/internal/components/drag-handle/interfaces.js.map +1 -0
  47. package/internal/components/drag-handle/resize-icon.d.ts +7 -0
  48. package/internal/components/drag-handle/resize-icon.d.ts.map +1 -0
  49. package/internal/components/{panel-resize-handle/icon.js → drag-handle/resize-icon.js} +5 -3
  50. package/internal/components/drag-handle/resize-icon.js.map +1 -0
  51. package/internal/components/drag-handle/styles.css.js +12 -3
  52. package/internal/components/drag-handle/styles.scoped.css +51 -20
  53. package/internal/components/drag-handle/styles.selectors.js +12 -3
  54. package/internal/components/options-list/index.js +1 -1
  55. package/internal/components/options-list/index.js.map +1 -1
  56. package/internal/components/panel-resize-handle/index.d.ts +4 -2
  57. package/internal/components/panel-resize-handle/index.d.ts.map +1 -1
  58. package/internal/components/panel-resize-handle/index.js +8 -5
  59. package/internal/components/panel-resize-handle/index.js.map +1 -1
  60. package/internal/components/panel-resize-handle/styles.css.js +2 -5
  61. package/internal/components/panel-resize-handle/styles.scoped.css +3 -191
  62. package/internal/components/panel-resize-handle/styles.selectors.js +2 -5
  63. package/internal/components/portal/index.d.ts.map +1 -1
  64. package/internal/components/portal/index.js.map +1 -1
  65. package/internal/environment.js +1 -1
  66. package/internal/environment.json +1 -1
  67. package/internal/events/index.d.ts +1 -1
  68. package/internal/events/index.d.ts.map +1 -1
  69. package/internal/events/index.js.map +1 -1
  70. package/internal/manifest.json +1 -1
  71. package/package.json +1 -1
  72. package/popover/internal.js +5 -4
  73. package/popover/internal.js.map +1 -1
  74. package/prompt-input/internal.d.ts.map +1 -1
  75. package/prompt-input/internal.js +1 -3
  76. package/prompt-input/internal.js.map +1 -1
  77. package/split-panel/implementation.d.ts.map +1 -1
  78. package/split-panel/implementation.js +7 -6
  79. package/split-panel/implementation.js.map +1 -1
  80. package/tabs/styles.css.js +28 -28
  81. package/tabs/styles.scoped.css +50 -49
  82. package/tabs/styles.selectors.js +28 -28
  83. package/internal/components/panel-resize-handle/icon.d.ts +0 -5
  84. package/internal/components/panel-resize-handle/icon.d.ts.map +0 -1
  85. 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;QAEnC,+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 <DragHandle {...dragHandleProps} />\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
+ {"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-toggle_1f3h0_1r7a5_289",
5
- "content-display-option-content": "awsui_content-display-option-content_1f3h0_1r7a5_293",
6
- "content-display-option": "awsui_content-display-option_1f3h0_1r7a5_289",
7
- "content-display-option-label": "awsui_content-display-option-label_1f3h0_1r7a5_341",
8
- "content-display": "awsui_content-display_1f3h0_1r7a5_289",
9
- "content-display-text-filter": "awsui_content-display-text-filter_1f3h0_1r7a5_349",
10
- "content-display-no-match": "awsui_content-display-no-match_1f3h0_1r7a5_350",
11
- "content-display-title": "awsui_content-display-title_1f3h0_1r7a5_354",
12
- "content-display-description": "awsui_content-display-description_1f3h0_1r7a5_363",
13
- "content-display-option-list": "awsui_content-display-option-list_1f3h0_1r7a5_371"
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-toggle_1f3h0_1r7a5_289:not(#\9) {
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-content_1f3h0_1r7a5_293:not(#\9) {
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-option_1f3h0_1r7a5_289:not(#\9) {
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-label_1f3h0_1r7a5_341:not(#\9) {
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
- .awsui_content-display_1f3h0_1r7a5_289:not(#\9),
350
- .awsui_content-display-text-filter_1f3h0_1r7a5_349:not(#\9),
351
- .awsui_content-display-no-match_1f3h0_1r7a5_350:not(#\9) {
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-title_1f3h0_1r7a5_354:not(#\9) {
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-description_1f3h0_1r7a5_363:not(#\9) {
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-list_1f3h0_1r7a5_371:not(#\9) {
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-toggle_1f3h0_1r7a5_289",
6
- "content-display-option-content": "awsui_content-display-option-content_1f3h0_1r7a5_293",
7
- "content-display-option": "awsui_content-display-option_1f3h0_1r7a5_289",
8
- "content-display-option-label": "awsui_content-display-option-label_1f3h0_1r7a5_341",
9
- "content-display": "awsui_content-display_1f3h0_1r7a5_289",
10
- "content-display-text-filter": "awsui_content-display-text-filter_1f3h0_1r7a5_349",
11
- "content-display-no-match": "awsui_content-display-no-match_1f3h0_1r7a5_350",
12
- "content-display-title": "awsui_content-display-title_1f3h0_1r7a5_354",
13
- "content-display-description": "awsui_content-display-description_1f3h0_1r7a5_363",
14
- "content-display-option-list": "awsui_content-display-option-list_1f3h0_1r7a5_371"
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,eAoM5B"}
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-preferences');
@@ -1 +1 @@
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,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,6DAA6D,CAAC;AAC5G,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,eAAe,MAAM,oCAAoC,CAAC;AACjE,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,wBAAwB,MA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,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 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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AAC,EAAE,cAAc,EAAE,CAAC,IACxD,CACH;wBACA,uBAAuB,IAAI,CAC1B,oBAAC,uBAAuB,kBACtB,KAAK,EAAE,oBAAoB,CAAC,aAAa,IACrC,uBAAuB,IAC3B,QAAQ,EAAE,aAAa,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,aAAa,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-content_tc96w_mcyrz_289",
5
- "visible-content-toggle": "awsui_visible-content-toggle_tc96w_mcyrz_290",
6
- "visible-content-groups": "awsui_visible-content-groups_tc96w_mcyrz_291",
7
- "visible-content-group": "awsui_visible-content-group_tc96w_mcyrz_291",
8
- "visible-content-title": "awsui_visible-content-title_tc96w_mcyrz_296",
9
- "visible-content-group-label": "awsui_visible-content-group-label_tc96w_mcyrz_306",
10
- "visible-content-option": "awsui_visible-content-option_tc96w_mcyrz_312",
11
- "visible-content-option-label": "awsui_visible-content-option-label_tc96w_mcyrz_325",
12
- "content-display-option-toggle": "awsui_content-display-option-toggle_tc96w_mcyrz_620",
13
- "content-display-option-content": "awsui_content-display-option-content_tc96w_mcyrz_624",
14
- "content-display-option": "awsui_content-display-option_tc96w_mcyrz_620",
15
- "content-display-option-label": "awsui_content-display-option-label_tc96w_mcyrz_672",
16
- "content-display": "awsui_content-display_tc96w_mcyrz_620",
17
- "content-display-text-filter": "awsui_content-display-text-filter_tc96w_mcyrz_680",
18
- "content-display-no-match": "awsui_content-display-no-match_tc96w_mcyrz_681",
19
- "content-display-title": "awsui_content-display-title_tc96w_mcyrz_685",
20
- "content-display-description": "awsui_content-display-description_tc96w_mcyrz_694",
21
- "content-display-option-list": "awsui_content-display-option-list_tc96w_mcyrz_702",
22
- "root": "awsui_root_tc96w_mcyrz_709",
23
- "modal-root": "awsui_modal-root_tc96w_mcyrz_710",
24
- "trigger-button": "awsui_trigger-button_tc96w_mcyrz_711",
25
- "cancel-button": "awsui_cancel-button_tc96w_mcyrz_712",
26
- "confirm-button": "awsui_confirm-button_tc96w_mcyrz_713",
27
- "custom": "awsui_custom_tc96w_mcyrz_714",
28
- "content-before": "awsui_content-before_tc96w_mcyrz_715",
29
- "second-column-small": "awsui_second-column-small_tc96w_mcyrz_719",
30
- "wrap-lines": "awsui_wrap-lines_tc96w_mcyrz_723",
31
- "striped-rows": "awsui_striped-rows_tc96w_mcyrz_724",
32
- "content-density": "awsui_content-density_tc96w_mcyrz_725",
33
- "page-size": "awsui_page-size_tc96w_mcyrz_726",
34
- "page-size-form-field": "awsui_page-size-form-field_tc96w_mcyrz_727",
35
- "page-size-radio-group": "awsui_page-size-radio-group_tc96w_mcyrz_728",
36
- "sticky-columns": "awsui_sticky-columns_tc96w_mcyrz_729",
37
- "sticky-columns-form-field": "awsui_sticky-columns-form-field_tc96w_mcyrz_730",
38
- "sticky-columns-radio-group": "awsui_sticky-columns-radio-group_tc96w_mcyrz_731",
39
- "sticky-columns-first": "awsui_sticky-columns-first_tc96w_mcyrz_732",
40
- "sticky-columns-last": "awsui_sticky-columns-last_tc96w_mcyrz_733"
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-content_tc96w_mcyrz_289:not(#\9),
290
- .awsui_visible-content-toggle_tc96w_mcyrz_290:not(#\9),
291
- .awsui_visible-content-groups_tc96w_mcyrz_291:not(#\9),
292
- .awsui_visible-content-group_tc96w_mcyrz_291:not(#\9) {
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-title_tc96w_mcyrz_296:not(#\9) {
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-label_tc96w_mcyrz_306:not(#\9) {
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-option_tc96w_mcyrz_312:not(#\9) {
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-option_tc96w_mcyrz_312:not(#\9):last-child {
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-label_tc96w_mcyrz_325:not(#\9) {
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-toggle_tc96w_mcyrz_620:not(#\9) {
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-content_tc96w_mcyrz_624:not(#\9) {
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-option_tc96w_mcyrz_620:not(#\9) {
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-label_tc96w_mcyrz_672:not(#\9) {
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
- .awsui_content-display_tc96w_mcyrz_620:not(#\9),
681
- .awsui_content-display-text-filter_tc96w_mcyrz_680:not(#\9),
682
- .awsui_content-display-no-match_tc96w_mcyrz_681:not(#\9) {
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-title_tc96w_mcyrz_685:not(#\9) {
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-description_tc96w_mcyrz_694:not(#\9) {
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-list_tc96w_mcyrz_702:not(#\9) {
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
- .awsui_root_tc96w_mcyrz_709:not(#\9),
711
- .awsui_modal-root_tc96w_mcyrz_710:not(#\9),
712
- .awsui_trigger-button_tc96w_mcyrz_711:not(#\9),
713
- .awsui_cancel-button_tc96w_mcyrz_712:not(#\9),
714
- .awsui_confirm-button_tc96w_mcyrz_713:not(#\9),
715
- .awsui_custom_tc96w_mcyrz_714:not(#\9),
716
- .awsui_content-before_tc96w_mcyrz_715:not(#\9) {
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-small_tc96w_mcyrz_719:not(#\9) {
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-lines_tc96w_mcyrz_723:not(#\9),
725
- .awsui_striped-rows_tc96w_mcyrz_724:not(#\9),
726
- .awsui_content-density_tc96w_mcyrz_725:not(#\9),
727
- .awsui_page-size_tc96w_mcyrz_726:not(#\9),
728
- .awsui_page-size-form-field_tc96w_mcyrz_727:not(#\9),
729
- .awsui_page-size-radio-group_tc96w_mcyrz_728:not(#\9),
730
- .awsui_sticky-columns_tc96w_mcyrz_729:not(#\9),
731
- .awsui_sticky-columns-form-field_tc96w_mcyrz_730:not(#\9),
732
- .awsui_sticky-columns-radio-group_tc96w_mcyrz_731:not(#\9),
733
- .awsui_sticky-columns-first_tc96w_mcyrz_732:not(#\9),
734
- .awsui_sticky-columns-last_tc96w_mcyrz_733:not(#\9) {
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-content_tc96w_mcyrz_289",
6
- "visible-content-toggle": "awsui_visible-content-toggle_tc96w_mcyrz_290",
7
- "visible-content-groups": "awsui_visible-content-groups_tc96w_mcyrz_291",
8
- "visible-content-group": "awsui_visible-content-group_tc96w_mcyrz_291",
9
- "visible-content-title": "awsui_visible-content-title_tc96w_mcyrz_296",
10
- "visible-content-group-label": "awsui_visible-content-group-label_tc96w_mcyrz_306",
11
- "visible-content-option": "awsui_visible-content-option_tc96w_mcyrz_312",
12
- "visible-content-option-label": "awsui_visible-content-option-label_tc96w_mcyrz_325",
13
- "content-display-option-toggle": "awsui_content-display-option-toggle_tc96w_mcyrz_620",
14
- "content-display-option-content": "awsui_content-display-option-content_tc96w_mcyrz_624",
15
- "content-display-option": "awsui_content-display-option_tc96w_mcyrz_620",
16
- "content-display-option-label": "awsui_content-display-option-label_tc96w_mcyrz_672",
17
- "content-display": "awsui_content-display_tc96w_mcyrz_620",
18
- "content-display-text-filter": "awsui_content-display-text-filter_tc96w_mcyrz_680",
19
- "content-display-no-match": "awsui_content-display-no-match_tc96w_mcyrz_681",
20
- "content-display-title": "awsui_content-display-title_tc96w_mcyrz_685",
21
- "content-display-description": "awsui_content-display-description_tc96w_mcyrz_694",
22
- "content-display-option-list": "awsui_content-display-option-list_tc96w_mcyrz_702",
23
- "root": "awsui_root_tc96w_mcyrz_709",
24
- "modal-root": "awsui_modal-root_tc96w_mcyrz_710",
25
- "trigger-button": "awsui_trigger-button_tc96w_mcyrz_711",
26
- "cancel-button": "awsui_cancel-button_tc96w_mcyrz_712",
27
- "confirm-button": "awsui_confirm-button_tc96w_mcyrz_713",
28
- "custom": "awsui_custom_tc96w_mcyrz_714",
29
- "content-before": "awsui_content-before_tc96w_mcyrz_715",
30
- "second-column-small": "awsui_second-column-small_tc96w_mcyrz_719",
31
- "wrap-lines": "awsui_wrap-lines_tc96w_mcyrz_723",
32
- "striped-rows": "awsui_striped-rows_tc96w_mcyrz_724",
33
- "content-density": "awsui_content-density_tc96w_mcyrz_725",
34
- "page-size": "awsui_page-size_tc96w_mcyrz_726",
35
- "page-size-form-field": "awsui_page-size-form-field_tc96w_mcyrz_727",
36
- "page-size-radio-group": "awsui_page-size-radio-group_tc96w_mcyrz_728",
37
- "sticky-columns": "awsui_sticky-columns_tc96w_mcyrz_729",
38
- "sticky-columns-form-field": "awsui_sticky-columns-form-field_tc96w_mcyrz_730",
39
- "sticky-columns-radio-group": "awsui_sticky-columns-radio-group_tc96w_mcyrz_731",
40
- "sticky-columns-first": "awsui_sticky-columns-first_tc96w_mcyrz_732",
41
- "sticky-columns-last": "awsui_sticky-columns-last_tc96w_mcyrz_733"
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
- export interface DragHandleProps {
3
- ariaLabel: string;
4
- ariaDescribedby?: string;
5
- disabled?: boolean;
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,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC;IAC1C,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC;CACxC;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,SAAS,EACT,eAAe,EACf,QAAQ,EACR,aAAa,EACb,SAAS,GACV,EAAE,eAAe,eAoBjB"}
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"}