@cloudscape-design/components 3.0.173 → 3.0.175

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 (54) hide show
  1. package/app-layout/content-wrapper/index.d.ts +2 -0
  2. package/app-layout/content-wrapper/index.d.ts.map +1 -1
  3. package/app-layout/content-wrapper/index.js +2 -2
  4. package/app-layout/content-wrapper/index.js.map +1 -1
  5. package/app-layout/content-wrapper/styles.css.js +3 -2
  6. package/app-layout/content-wrapper/styles.scoped.css +26 -2
  7. package/app-layout/content-wrapper/styles.selectors.js +3 -2
  8. package/app-layout/defaults.d.ts.map +1 -1
  9. package/app-layout/defaults.js +1 -0
  10. package/app-layout/defaults.js.map +1 -1
  11. package/app-layout/drawer.d.ts +0 -1
  12. package/app-layout/drawer.d.ts.map +1 -1
  13. package/app-layout/drawer.js.map +1 -1
  14. package/app-layout/index.d.ts.map +1 -1
  15. package/app-layout/index.js +24 -17
  16. package/app-layout/index.js.map +1 -1
  17. package/app-layout/interfaces.d.ts +1 -1
  18. package/app-layout/interfaces.d.ts.map +1 -1
  19. package/app-layout/interfaces.js.map +1 -1
  20. package/app-layout/tools-and-split-panel.d.ts.map +1 -1
  21. package/app-layout/tools-and-split-panel.js +1 -1
  22. package/app-layout/tools-and-split-panel.js.map +1 -1
  23. package/app-layout/visual-refresh/context.d.ts +4 -0
  24. package/app-layout/visual-refresh/context.d.ts.map +1 -1
  25. package/app-layout/visual-refresh/context.js +13 -8
  26. package/app-layout/visual-refresh/context.js.map +1 -1
  27. package/app-layout/visual-refresh/layout.js +8 -8
  28. package/app-layout/visual-refresh/layout.js.map +1 -1
  29. package/app-layout/visual-refresh/main.js +2 -2
  30. package/app-layout/visual-refresh/main.js.map +1 -1
  31. package/app-layout/visual-refresh/split-panel.d.ts.map +1 -1
  32. package/app-layout/visual-refresh/split-panel.js +3 -5
  33. package/app-layout/visual-refresh/split-panel.js.map +1 -1
  34. package/app-layout/visual-refresh/styles.css.js +60 -60
  35. package/app-layout/visual-refresh/styles.scoped.css +164 -160
  36. package/app-layout/visual-refresh/styles.selectors.js +60 -60
  37. package/app-layout/visual-refresh/tools.d.ts.map +1 -1
  38. package/app-layout/visual-refresh/tools.js +5 -7
  39. package/app-layout/visual-refresh/tools.js.map +1 -1
  40. package/input/internal.js +1 -1
  41. package/input/internal.js.map +1 -1
  42. package/internal/context/split-panel-context.d.ts +5 -2
  43. package/internal/context/split-panel-context.d.ts.map +1 -1
  44. package/internal/context/split-panel-context.js.map +1 -1
  45. package/internal/environment.js +1 -1
  46. package/internal/manifest.json +1 -1
  47. package/package.json +1 -1
  48. package/split-panel/index.d.ts +1 -1
  49. package/split-panel/index.d.ts.map +1 -1
  50. package/split-panel/index.js +11 -8
  51. package/split-panel/index.js.map +1 -1
  52. package/split-panel/interfaces.d.ts +4 -0
  53. package/split-panel/interfaces.d.ts.map +1 -1
  54. package/split-panel/interfaces.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/split-panel/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface SplitPanelProps extends BaseComponentProps {\n /**\n * Header of the split panel.\n */\n header: string;\n children: React.ReactNode;\n /**\n * When set to `true`, the preferences button is not displayed.\n */\n hidePreferencesButton?: boolean;\n /**\n * An object containing all the necessary localized strings required by the component.\n * - `closeButtonAriaLabel` - The text of the panel close button aria label.\n * - `openButtonAriaLabel` - The text of the panel open button aria label.\n * - `preferencesTitle` - The text of the preferences modal header.\n * - `preferencesPositionLabel` - The text of the position preference label.\n * - `preferencesPositionDescription` - The text of the position preference description.\n * - `preferencesPositionSide` - The text of the side position preference label.\n * - `preferencesPositionBottom` - The text of the bottom position preference label.\n * - `preferencesConfirm` - The text of the preference modal confirm button.\n * - `preferencesCancel` - The text of the preference modal cancel button.\n * - `resizeHandleAriaLabel` - The label of the resize handle aria label.\n */\n i18nStrings: SplitPanelProps.I18nStrings;\n}\n\nexport namespace SplitPanelProps {\n export interface I18nStrings {\n closeButtonAriaLabel: string;\n openButtonAriaLabel: string;\n preferencesTitle: string;\n preferencesPositionLabel: string;\n preferencesPositionDescription: string;\n preferencesPositionSide: string;\n preferencesPositionBottom: string;\n preferencesConfirm: string;\n preferencesCancel: string;\n resizeHandleAriaLabel: string;\n }\n}\n\nexport interface SizeControlProps {\n position: 'side' | 'bottom';\n splitPanelRef?: React.RefObject<HTMLDivElement>;\n handleRef?: React.RefObject<HTMLDivElement>;\n setSidePanelWidth: (width: number) => void;\n setBottomPanelHeight: (height: number) => void;\n}\n\nexport interface SplitPanelContentProps {\n baseProps: BaseComponentProps;\n isOpen?: boolean;\n splitPanelRef?: React.Ref<any>;\n cappedSize: number;\n panelHeaderId: string;\n resizeHandle: React.ReactNode;\n header: React.ReactNode;\n children: React.ReactNode;\n onToggle: () => void;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/split-panel/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface SplitPanelProps extends BaseComponentProps {\n /**\n * Header of the split panel.\n */\n header: string;\n children: React.ReactNode;\n /**\n * Determines whether the split panel collapses or hides completely when closed.\n */\n closeBehavior?: 'collapse' | 'hide';\n /**\n * When set to `true`, the preferences button is not displayed.\n */\n hidePreferencesButton?: boolean;\n /**\n * An object containing all the necessary localized strings required by the component.\n * - `closeButtonAriaLabel` - The text of the panel close button aria label.\n * - `openButtonAriaLabel` - The text of the panel open button aria label.\n * - `preferencesTitle` - The text of the preferences modal header.\n * - `preferencesPositionLabel` - The text of the position preference label.\n * - `preferencesPositionDescription` - The text of the position preference description.\n * - `preferencesPositionSide` - The text of the side position preference label.\n * - `preferencesPositionBottom` - The text of the bottom position preference label.\n * - `preferencesConfirm` - The text of the preference modal confirm button.\n * - `preferencesCancel` - The text of the preference modal cancel button.\n * - `resizeHandleAriaLabel` - The label of the resize handle aria label.\n */\n i18nStrings: SplitPanelProps.I18nStrings;\n}\n\nexport namespace SplitPanelProps {\n export interface I18nStrings {\n closeButtonAriaLabel: string;\n openButtonAriaLabel: string;\n preferencesTitle: string;\n preferencesPositionLabel: string;\n preferencesPositionDescription: string;\n preferencesPositionSide: string;\n preferencesPositionBottom: string;\n preferencesConfirm: string;\n preferencesCancel: string;\n resizeHandleAriaLabel: string;\n }\n}\n\nexport interface SizeControlProps {\n position: 'side' | 'bottom';\n splitPanelRef?: React.RefObject<HTMLDivElement>;\n handleRef?: React.RefObject<HTMLDivElement>;\n setSidePanelWidth: (width: number) => void;\n setBottomPanelHeight: (height: number) => void;\n}\n\nexport interface SplitPanelContentProps {\n baseProps: BaseComponentProps;\n isOpen?: boolean;\n splitPanelRef?: React.Ref<any>;\n cappedSize: number;\n panelHeaderId: string;\n resizeHandle: React.ReactNode;\n header: React.ReactNode;\n children: React.ReactNode;\n onToggle: () => void;\n}\n"]}