@cloudscape-design/components 3.0.523 → 3.0.525

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 (64) hide show
  1. package/app-layout/defaults.d.ts +2 -2
  2. package/app-layout/defaults.d.ts.map +1 -1
  3. package/app-layout/defaults.js.map +1 -1
  4. package/app-layout/drawer/interfaces.d.ts +2 -3
  5. package/app-layout/drawer/interfaces.d.ts.map +1 -1
  6. package/app-layout/drawer/interfaces.js.map +1 -1
  7. package/app-layout/drawer/resizable-drawer.d.ts +1 -1
  8. package/app-layout/drawer/resizable-drawer.d.ts.map +1 -1
  9. package/app-layout/drawer/resizable-drawer.js +9 -18
  10. package/app-layout/drawer/resizable-drawer.js.map +1 -1
  11. package/app-layout/index.d.ts.map +1 -1
  12. package/app-layout/index.js +26 -78
  13. package/app-layout/index.js.map +1 -1
  14. package/app-layout/split-panel/constants.d.ts +3 -0
  15. package/app-layout/split-panel/constants.d.ts.map +1 -0
  16. package/app-layout/split-panel/constants.js +5 -0
  17. package/app-layout/split-panel/constants.js.map +1 -0
  18. package/app-layout/split-panel/index.d.ts +1 -0
  19. package/app-layout/split-panel/index.d.ts.map +1 -1
  20. package/app-layout/split-panel/index.js +1 -0
  21. package/app-layout/split-panel/index.js.map +1 -1
  22. package/app-layout/split-panel/provider.d.ts +2 -2
  23. package/app-layout/split-panel/provider.d.ts.map +1 -1
  24. package/app-layout/split-panel/provider.js +18 -16
  25. package/app-layout/split-panel/provider.js.map +1 -1
  26. package/app-layout/utils/use-app-layout-rect.d.ts +8 -0
  27. package/app-layout/utils/use-app-layout-rect.d.ts.map +1 -0
  28. package/app-layout/utils/{use-content-width.js → use-app-layout-rect.js} +6 -5
  29. package/app-layout/utils/use-app-layout-rect.js.map +1 -0
  30. package/app-layout/visual-refresh/split-panel.js +1 -1
  31. package/app-layout/visual-refresh/split-panel.js.map +1 -1
  32. package/button-dropdown/styles.css.js +15 -15
  33. package/button-dropdown/styles.scoped.css +23 -23
  34. package/button-dropdown/styles.selectors.js +15 -15
  35. package/calendar/grid/index.d.ts +3 -3
  36. package/calendar/grid/index.js +10 -10
  37. package/calendar/grid/index.js.map +1 -1
  38. package/calendar/header/header-button.js +2 -2
  39. package/calendar/header/header-button.js.map +1 -1
  40. package/calendar/styles.css.js +18 -18
  41. package/calendar/styles.scoped.css +40 -40
  42. package/calendar/styles.selectors.js +18 -18
  43. package/date-range-picker/calendar/grids/styles.css.js +25 -25
  44. package/date-range-picker/calendar/grids/styles.scoped.css +44 -44
  45. package/date-range-picker/calendar/grids/styles.selectors.js +25 -25
  46. package/internal/base-component/styles.scoped.css +10 -15
  47. package/internal/environment.js +1 -1
  48. package/internal/environment.json +1 -1
  49. package/internal/generated/theming/index.cjs +30 -61
  50. package/internal/generated/theming/index.js +30 -61
  51. package/internal/manifest.json +1 -1
  52. package/package.json +1 -1
  53. package/test-utils/dom/calendar/index.js +4 -4
  54. package/test-utils/dom/calendar/index.js.map +1 -1
  55. package/test-utils/selectors/calendar/index.js +4 -4
  56. package/test-utils/selectors/calendar/index.js.map +1 -1
  57. package/test-utils/tsconfig.tsbuildinfo +1 -1
  58. package/app-layout/utils/use-content-width.d.ts +0 -5
  59. package/app-layout/utils/use-content-width.d.ts.map +0 -1
  60. package/app-layout/utils/use-content-width.js.map +0 -1
  61. package/app-layout/utils/use-window-width.d.ts +0 -2
  62. package/app-layout/utils/use-window-width.d.ts.map +0 -1
  63. package/app-layout/utils/use-window-width.js +0 -13
  64. package/app-layout/utils/use-window-width.js.map +0 -1
@@ -1,13 +0,0 @@
1
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
- // SPDX-License-Identifier: Apache-2.0
3
- import { useEffect, useState } from 'react';
4
- export default function useWindowWidth() {
5
- const [width, setWidth] = useState(() => (typeof window !== 'undefined' ? window.innerWidth : 0));
6
- useEffect(() => {
7
- const handler = () => setWidth(window.innerWidth);
8
- window.addEventListener('resize', handler);
9
- return () => window.removeEventListener('resize', handler);
10
- }, []);
11
- return width;
12
- }
13
- //# sourceMappingURL=use-window-width.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-window-width.js","sourceRoot":"lib/default/","sources":["app-layout/utils/use-window-width.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,CAAC,OAAO,UAAU,cAAc;IACpC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAClG,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useEffect, useState } from 'react';\n\nexport default function useWindowWidth() {\n const [width, setWidth] = useState(() => (typeof window !== 'undefined' ? window.innerWidth : 0));\n useEffect(() => {\n const handler = () => setWidth(window.innerWidth);\n window.addEventListener('resize', handler);\n return () => window.removeEventListener('resize', handler);\n }, []);\n return width;\n}\n"]}