@okta/odyssey-react-mui 1.27.0 → 1.28.1

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 (221) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/{Button.js → Buttons/BaseButton.js} +11 -10
  3. package/dist/Buttons/BaseButton.js.map +1 -0
  4. package/dist/{MenuButton.js → Buttons/BaseMenuButton.js} +30 -10
  5. package/dist/Buttons/BaseMenuButton.js.map +1 -0
  6. package/dist/Buttons/Button.js +24 -0
  7. package/dist/Buttons/Button.js.map +1 -0
  8. package/dist/Buttons/ButtonContext.js.map +1 -0
  9. package/dist/Buttons/MenuButton.js +25 -0
  10. package/dist/Buttons/MenuButton.js.map +1 -0
  11. package/dist/Buttons/MenuContext.js.map +1 -0
  12. package/dist/Buttons/MenuItem.js.map +1 -0
  13. package/dist/Buttons/index.js +18 -0
  14. package/dist/Buttons/index.js.map +1 -0
  15. package/dist/Card.js +1 -2
  16. package/dist/Card.js.map +1 -1
  17. package/dist/DataTable/DataTable.js +1 -2
  18. package/dist/DataTable/DataTable.js.map +1 -1
  19. package/dist/DataTable/DataTableRowActions.js +1 -2
  20. package/dist/DataTable/DataTableRowActions.js.map +1 -1
  21. package/dist/DataTable/DataTableSettings.js +1 -2
  22. package/dist/DataTable/DataTableSettings.js.map +1 -1
  23. package/dist/Dialog.js +1 -1
  24. package/dist/Dialog.js.map +1 -1
  25. package/dist/Drawer.js +1 -1
  26. package/dist/Drawer.js.map +1 -1
  27. package/dist/FileUploader/FileUploader.js +1 -1
  28. package/dist/FileUploader/FileUploader.js.map +1 -1
  29. package/dist/Form.js.map +1 -1
  30. package/dist/Pagination/Pagination.js +1 -1
  31. package/dist/Pagination/Pagination.js.map +1 -1
  32. package/dist/Toast.js +1 -1
  33. package/dist/Toast.js.map +1 -1
  34. package/dist/index.js +1 -3
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.scss +1 -1
  37. package/dist/labs/AppSwitcher/AppSwitcher.js +76 -0
  38. package/dist/labs/AppSwitcher/AppSwitcher.js.map +1 -0
  39. package/dist/labs/AppSwitcher/AppSwitcherApp.js +112 -0
  40. package/dist/labs/AppSwitcher/AppSwitcherApp.js.map +1 -0
  41. package/dist/labs/{SideNav → AppSwitcher}/OktaAura.js +16 -3
  42. package/dist/labs/AppSwitcher/OktaAura.js.map +1 -0
  43. package/dist/labs/AppSwitcher/index.js +13 -0
  44. package/dist/labs/AppSwitcher/index.js.map +1 -0
  45. package/dist/labs/AppTile.js +102 -65
  46. package/dist/labs/AppTile.js.map +1 -1
  47. package/dist/labs/DataFilters.js +1 -1
  48. package/dist/labs/DataFilters.js.map +1 -1
  49. package/dist/labs/DataTable.js.map +1 -1
  50. package/dist/labs/DataTablePagination.js +1 -1
  51. package/dist/labs/DataTablePagination.js.map +1 -1
  52. package/dist/labs/DataView/BulkActionsMenu.js +1 -2
  53. package/dist/labs/DataView/BulkActionsMenu.js.map +1 -1
  54. package/dist/labs/DataView/DataCard.js +53 -42
  55. package/dist/labs/DataView/DataCard.js.map +1 -1
  56. package/dist/labs/DataView/DataView.js +1 -1
  57. package/dist/labs/DataView/DataView.js.map +1 -1
  58. package/dist/labs/DataView/LayoutSwitcher.js +1 -2
  59. package/dist/labs/DataView/LayoutSwitcher.js.map +1 -1
  60. package/dist/labs/DataView/RowActions.js +1 -1
  61. package/dist/labs/DataView/RowActions.js.map +1 -1
  62. package/dist/labs/DataView/TableLayoutContent.js +1 -2
  63. package/dist/labs/DataView/TableLayoutContent.js.map +1 -1
  64. package/dist/labs/DataView/TableSettings.js +1 -2
  65. package/dist/labs/DataView/TableSettings.js.map +1 -1
  66. package/dist/labs/DatePicker.js +1 -1
  67. package/dist/labs/DatePicker.js.map +1 -1
  68. package/dist/labs/SideNav/SideNav.js +5 -4
  69. package/dist/labs/SideNav/SideNav.js.map +1 -1
  70. package/dist/labs/TopNav/UserProfile.js +16 -3
  71. package/dist/labs/TopNav/UserProfile.js.map +1 -1
  72. package/dist/labs/TopNav/UserProfileMenuButton.js +41 -0
  73. package/dist/labs/TopNav/UserProfileMenuButton.js.map +1 -0
  74. package/dist/labs/TopNav/index.js +1 -0
  75. package/dist/labs/TopNav/index.js.map +1 -1
  76. package/dist/labs/UiShell/UiShell.js +6 -5
  77. package/dist/labs/UiShell/UiShell.js.map +1 -1
  78. package/dist/labs/UiShell/UiShellContent.js +53 -13
  79. package/dist/labs/UiShell/UiShellContent.js.map +1 -1
  80. package/dist/labs/UiShell/renderUiShell.js +4 -0
  81. package/dist/labs/UiShell/renderUiShell.js.map +1 -1
  82. package/dist/labs/index.js +1 -0
  83. package/dist/labs/index.js.map +1 -1
  84. package/dist/src/{Button.d.ts → Buttons/BaseButton.d.ts} +12 -34
  85. package/dist/src/Buttons/BaseButton.d.ts.map +1 -0
  86. package/dist/src/{MenuButton.d.ts → Buttons/BaseMenuButton.d.ts} +37 -14
  87. package/dist/src/Buttons/BaseMenuButton.d.ts.map +1 -0
  88. package/dist/src/Buttons/Button.d.ts +16 -0
  89. package/dist/src/Buttons/Button.d.ts.map +1 -0
  90. package/dist/src/Buttons/ButtonContext.d.ts.map +1 -0
  91. package/dist/src/Buttons/MenuButton.d.ts +17 -0
  92. package/dist/src/Buttons/MenuButton.d.ts.map +1 -0
  93. package/dist/src/Buttons/MenuContext.d.ts.map +1 -0
  94. package/dist/src/{MenuItem.d.ts → Buttons/MenuItem.d.ts} +1 -1
  95. package/dist/src/Buttons/MenuItem.d.ts.map +1 -0
  96. package/dist/src/Buttons/index.d.ts +18 -0
  97. package/dist/src/Buttons/index.d.ts.map +1 -0
  98. package/dist/src/Card.d.ts +1 -2
  99. package/dist/src/Card.d.ts.map +1 -1
  100. package/dist/src/DataTable/DataTable.d.ts +1 -1
  101. package/dist/src/DataTable/DataTable.d.ts.map +1 -1
  102. package/dist/src/DataTable/DataTableRowActions.d.ts +1 -2
  103. package/dist/src/DataTable/DataTableRowActions.d.ts.map +1 -1
  104. package/dist/src/DataTable/DataTableSettings.d.ts.map +1 -1
  105. package/dist/src/Dialog.d.ts +1 -1
  106. package/dist/src/Dialog.d.ts.map +1 -1
  107. package/dist/src/Drawer.d.ts +1 -1
  108. package/dist/src/Drawer.d.ts.map +1 -1
  109. package/dist/src/Form.d.ts +1 -1
  110. package/dist/src/Form.d.ts.map +1 -1
  111. package/dist/src/index.d.ts +1 -3
  112. package/dist/src/index.d.ts.map +1 -1
  113. package/dist/src/labs/AppSwitcher/AppSwitcher.d.ts +20 -0
  114. package/dist/src/labs/AppSwitcher/AppSwitcher.d.ts.map +1 -0
  115. package/dist/src/labs/AppSwitcher/AppSwitcherApp.d.ts +24 -0
  116. package/dist/src/labs/AppSwitcher/AppSwitcherApp.d.ts.map +1 -0
  117. package/dist/src/labs/AppSwitcher/OktaAura.d.ts.map +1 -0
  118. package/dist/src/labs/AppSwitcher/index.d.ts +13 -0
  119. package/dist/src/labs/AppSwitcher/index.d.ts.map +1 -0
  120. package/dist/src/labs/AppTile.d.ts +6 -4
  121. package/dist/src/labs/AppTile.d.ts.map +1 -1
  122. package/dist/src/labs/DataTable.d.ts +1 -1
  123. package/dist/src/labs/DataTable.d.ts.map +1 -1
  124. package/dist/src/labs/DataView/BulkActionsMenu.d.ts.map +1 -1
  125. package/dist/src/labs/DataView/DataCard.d.ts +1 -2
  126. package/dist/src/labs/DataView/DataCard.d.ts.map +1 -1
  127. package/dist/src/labs/DataView/LayoutSwitcher.d.ts.map +1 -1
  128. package/dist/src/labs/DataView/RowActions.d.ts +1 -2
  129. package/dist/src/labs/DataView/RowActions.d.ts.map +1 -1
  130. package/dist/src/labs/DataView/TableLayoutContent.d.ts.map +1 -1
  131. package/dist/src/labs/DataView/TableSettings.d.ts.map +1 -1
  132. package/dist/src/labs/SideNav/SideNav.d.ts.map +1 -1
  133. package/dist/src/labs/TopNav/UserProfile.d.ts +5 -1
  134. package/dist/src/labs/TopNav/UserProfile.d.ts.map +1 -1
  135. package/dist/src/labs/TopNav/UserProfileMenuButton.d.ts +17 -0
  136. package/dist/src/labs/TopNav/UserProfileMenuButton.d.ts.map +1 -0
  137. package/dist/src/labs/TopNav/index.d.ts +1 -0
  138. package/dist/src/labs/TopNav/index.d.ts.map +1 -1
  139. package/dist/src/labs/UiShell/UiShell.d.ts +2 -2
  140. package/dist/src/labs/UiShell/UiShell.d.ts.map +1 -1
  141. package/dist/src/labs/UiShell/UiShellContent.d.ts +19 -2
  142. package/dist/src/labs/UiShell/UiShellContent.d.ts.map +1 -1
  143. package/dist/src/labs/UiShell/renderUiShell.d.ts +2 -2
  144. package/dist/src/labs/UiShell/renderUiShell.d.ts.map +1 -1
  145. package/dist/src/labs/index.d.ts +1 -0
  146. package/dist/src/labs/index.d.ts.map +1 -1
  147. package/dist/src/theme/components.d.ts.map +1 -1
  148. package/dist/src/web-component/renderReactInWebComponent.d.ts +2 -2
  149. package/dist/src/web-component/renderReactInWebComponent.d.ts.map +1 -1
  150. package/dist/theme/components.js +25 -27
  151. package/dist/theme/components.js.map +1 -1
  152. package/dist/tsconfig.production.tsbuildinfo +1 -1
  153. package/dist/web-component/renderReactInWebComponent.js +6 -7
  154. package/dist/web-component/renderReactInWebComponent.js.map +1 -1
  155. package/package.json +3 -3
  156. package/src/{Button.tsx → Buttons/BaseButton.tsx} +48 -68
  157. package/src/{MenuButton.tsx → Buttons/BaseMenuButton.tsx} +94 -32
  158. package/src/Buttons/Button.tsx +30 -0
  159. package/src/Buttons/MenuButton.tsx +35 -0
  160. package/src/{MenuItem.tsx → Buttons/MenuItem.tsx} +1 -1
  161. package/src/Buttons/index.ts +22 -0
  162. package/src/Card.tsx +1 -3
  163. package/src/DataTable/DataTable.tsx +1 -2
  164. package/src/DataTable/DataTableRowActions.tsx +1 -3
  165. package/src/DataTable/DataTableSettings.tsx +1 -2
  166. package/src/Dialog.tsx +1 -1
  167. package/src/Drawer.tsx +1 -1
  168. package/src/FileUploader/FileUploader.tsx +1 -1
  169. package/src/Form.tsx +1 -1
  170. package/src/Pagination/Pagination.test.tsx +58 -36
  171. package/src/Pagination/Pagination.tsx +1 -1
  172. package/src/Toast.tsx +1 -1
  173. package/src/index.ts +1 -3
  174. package/src/labs/AppSwitcher/AppSwitcher.tsx +94 -0
  175. package/src/labs/AppSwitcher/AppSwitcherApp.tsx +146 -0
  176. package/src/labs/{SideNav → AppSwitcher}/OktaAura.tsx +19 -4
  177. package/src/labs/AppSwitcher/index.ts +13 -0
  178. package/src/labs/AppTile.tsx +171 -85
  179. package/src/labs/DataFilters.tsx +1 -1
  180. package/src/labs/DataTable.tsx +1 -1
  181. package/src/labs/DataTablePagination.tsx +1 -1
  182. package/src/labs/DataView/BulkActionsMenu.tsx +1 -2
  183. package/src/labs/DataView/DataCard.tsx +56 -31
  184. package/src/labs/DataView/DataView.tsx +1 -1
  185. package/src/labs/DataView/LayoutSwitcher.tsx +1 -2
  186. package/src/labs/DataView/RowActions.tsx +1 -3
  187. package/src/labs/DataView/TableLayoutContent.tsx +1 -2
  188. package/src/labs/DataView/TableSettings.tsx +1 -2
  189. package/src/labs/DatePicker.tsx +1 -1
  190. package/src/labs/SideNav/SideNav.tsx +10 -4
  191. package/src/labs/TopNav/UserProfile.tsx +26 -2
  192. package/src/labs/TopNav/UserProfileMenuButton.tsx +57 -0
  193. package/src/labs/TopNav/index.ts +1 -0
  194. package/src/labs/UiShell/UiShell.test.tsx +23 -38
  195. package/src/labs/UiShell/UiShell.tsx +14 -6
  196. package/src/labs/UiShell/UiShellContent.tsx +85 -16
  197. package/src/labs/UiShell/renderUiShell.test.tsx +21 -15
  198. package/src/labs/UiShell/renderUiShell.tsx +8 -1
  199. package/src/labs/index.ts +1 -0
  200. package/src/theme/components.tsx +25 -28
  201. package/src/web-component/renderReactInWebComponent.ts +10 -5
  202. package/dist/Button.js.map +0 -1
  203. package/dist/ButtonContext.js.map +0 -1
  204. package/dist/MenuButton.js.map +0 -1
  205. package/dist/MenuContext.js.map +0 -1
  206. package/dist/MenuItem.js.map +0 -1
  207. package/dist/labs/SideNav/OktaAura.js.map +0 -1
  208. package/dist/src/Button.d.ts.map +0 -1
  209. package/dist/src/ButtonContext.d.ts.map +0 -1
  210. package/dist/src/MenuButton.d.ts.map +0 -1
  211. package/dist/src/MenuContext.d.ts.map +0 -1
  212. package/dist/src/MenuItem.d.ts.map +0 -1
  213. package/dist/src/labs/SideNav/OktaAura.d.ts.map +0 -1
  214. /package/dist/{ButtonContext.js → Buttons/ButtonContext.js} +0 -0
  215. /package/dist/{MenuContext.js → Buttons/MenuContext.js} +0 -0
  216. /package/dist/{MenuItem.js → Buttons/MenuItem.js} +0 -0
  217. /package/dist/src/{ButtonContext.d.ts → Buttons/ButtonContext.d.ts} +0 -0
  218. /package/dist/src/{MenuContext.d.ts → Buttons/MenuContext.d.ts} +0 -0
  219. /package/dist/src/labs/{SideNav → AppSwitcher}/OktaAura.d.ts +0 -0
  220. /package/src/{ButtonContext.tsx → Buttons/ButtonContext.tsx} +0 -0
  221. /package/src/{MenuContext.ts → Buttons/MenuContext.ts} +0 -0
@@ -0,0 +1,17 @@
1
+ /*!
2
+ * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
4
+ *
5
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
6
+ * Unless required by applicable law or agreed to in writing, software
7
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
8
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
+ *
10
+ * See the License for the specific language governing permissions and limitations under the License.
11
+ */
12
+ import { UserProfileProps } from "./UserProfile";
13
+ import { AdditionalBaseMenuButtonProps, BaseMenuButtonProps } from "../../Buttons/BaseMenuButton";
14
+ export type UserProfileMenuButtonProps = Omit<BaseMenuButtonProps, "endIcon" | "variant"> & AdditionalBaseMenuButtonProps & UserProfileProps;
15
+ declare const MemoizedUserProfileMenuButton: import("react").MemoExoticComponent<(props: UserProfileMenuButtonProps) => import("react/jsx-runtime").JSX.Element>;
16
+ export { MemoizedUserProfileMenuButton as UserProfileMenuButton };
17
+ //# sourceMappingURL=UserProfileMenuButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserProfileMenuButton.d.ts","sourceRoot":"","sources":["../../../../src/labs/TopNav/UserProfileMenuButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAe,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE9D,OAAO,EACL,6BAA6B,EAE7B,mBAAmB,EACpB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAC3C,mBAAmB,EACnB,SAAS,GAAG,SAAS,CACtB,GACC,6BAA6B,GAC7B,gBAAgB,CAAC;AA2BnB,QAAA,MAAM,6BAA6B,8CAzBG,0BAA0B,6CAyBC,CAAC;AAGlE,OAAO,EAAE,6BAA6B,IAAI,qBAAqB,EAAE,CAAC"}
@@ -11,4 +11,5 @@
11
11
  */
12
12
  export * from "./TopNav";
13
13
  export * from "./UserProfile";
14
+ export * from "./UserProfileMenuButton";
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/labs/TopNav/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/labs/TopNav/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC"}
@@ -27,7 +27,7 @@ export type UiShellProps = {
27
27
  * The props coming in this callback go directly to a React state; therefore, it shares the same signature and provides a previous state.
28
28
  */
29
29
  subscribeToPropChanges: (subscriber: (componentProps: SetStateAction<UiShellNavComponentProps>) => void) => () => void;
30
- } & Pick<ReactRootElements, "appRootElement" | "stylesRootElement"> & Pick<UiShellContentProps, "appComponent" | "onError" | "optionalComponents">;
31
- declare const MemoizedUiShell: import("react").MemoExoticComponent<({ appComponent, appRootElement, onError, onSubscriptionCreated, optionalComponents, stylesRootElement, subscribeToPropChanges, }: UiShellProps) => import("react/jsx-runtime").JSX.Element>;
30
+ } & Pick<ReactRootElements, "appRootElement" | "stylesRootElement"> & Pick<UiShellContentProps, "appBackgroundContrastMode" | "appComponent" | "initialVisibleSections" | "onError" | "optionalComponents">;
31
+ declare const MemoizedUiShell: import("react").MemoExoticComponent<({ appBackgroundContrastMode, appComponent, appRootElement, initialVisibleSections, onError, onSubscriptionCreated, optionalComponents, stylesRootElement, subscribeToPropChanges, }: UiShellProps) => import("react/jsx-runtime").JSX.Element>;
32
32
  export { MemoizedUiShell as UiShell };
33
33
  //# sourceMappingURL=UiShell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UiShell.d.ts","sourceRoot":"","sources":["../../../../src/labs/UiShell/UiShell.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAKvE,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,eAAO,MAAM,qBAAqB,EAAE,wBAM1B,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG;IACzB;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC;;;;;OAKG;IACH,sBAAsB,EAAE,CACtB,UAAU,EAAE,CACV,cAAc,EAAE,cAAc,CAAC,wBAAwB,CAAC,KACrD,IAAI,KACN,MAAM,IAAI,CAAC;CACjB,GAAG,IAAI,CAAC,iBAAiB,EAAE,gBAAgB,GAAG,mBAAmB,CAAC,GACjE,IAAI,CAAC,mBAAmB,EAAE,cAAc,GAAG,SAAS,GAAG,oBAAoB,CAAC,CAAC;AAsD/E,QAAA,MAAM,eAAe,yKArClB,YAAY,6CAqCsB,CAAC;AAGtC,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"UiShell.d.ts","sourceRoot":"","sources":["../../../../src/labs/UiShell/UiShell.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAKvE,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,eAAO,MAAM,qBAAqB,EAAE,wBAG1B,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG;IACzB;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC;;;;;OAKG;IACH,sBAAsB,EAAE,CACtB,UAAU,EAAE,CACV,cAAc,EAAE,cAAc,CAAC,wBAAwB,CAAC,KACrD,IAAI,KACN,MAAM,IAAI,CAAC;CACjB,GAAG,IAAI,CAAC,iBAAiB,EAAE,gBAAgB,GAAG,mBAAmB,CAAC,GACjE,IAAI,CACF,mBAAmB,EACjB,2BAA2B,GAC3B,cAAc,GACd,wBAAwB,GACxB,SAAS,GACT,oBAAoB,CACvB,CAAC;AA0DJ,QAAA,MAAM,eAAe,4NAvClB,YAAY,6CAuCsB,CAAC;AAGtC,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,CAAC"}
@@ -11,9 +11,17 @@
11
11
  */
12
12
  import { type ReactElement, type ReactNode } from "react";
13
13
  import { ErrorBoundaryProps } from "react-error-boundary";
14
+ import { type AppSwitcherProps } from "../AppSwitcher";
14
15
  import { type SideNavProps } from "../SideNav";
15
16
  import { type TopNavProps } from "../TopNav";
17
+ import { ContrastMode } from "../../useContrastMode";
18
+ export declare const subComponentNames: readonly ["TopNav", "SideNav", "AppSwitcher"];
19
+ export type SubComponentName = (typeof subComponentNames)[number];
16
20
  export type UiShellNavComponentProps = {
21
+ /**
22
+ * Object that gets pass directly to the app switcher component.
23
+ */
24
+ appSwitcherProps?: AppSwitcherProps;
17
25
  /**
18
26
  * Object that gets pass directly to the side nav component.
19
27
  */
@@ -21,13 +29,22 @@ export type UiShellNavComponentProps = {
21
29
  /**
22
30
  * Object that gets pass directly to the top nav component.
23
31
  */
24
- topNavProps: Omit<TopNavProps, "leftSideComponent" | "rightSideComponent">;
32
+ topNavProps?: Omit<TopNavProps, "leftSideComponent" | "rightSideComponent">;
25
33
  };
26
34
  export type UiShellContentProps = {
35
+ /**
36
+ * Sets the background color for the app content area.
37
+ */
38
+ appBackgroundContrastMode?: ContrastMode;
27
39
  /**
28
40
  * React app component that renders as children in the correct location of the shell.
29
41
  */
30
42
  appComponent: ReactNode;
43
+ /**
44
+ * Which parts of the UI Shell should be visible initially? For example,
45
+ * if sideNavProps is undefined, should the space for the sidenav be initially visible?
46
+ */
47
+ initialVisibleSections?: SubComponentName[];
31
48
  /**
32
49
  * Notifies when a React rendering error occurs. This could be useful for logging, flagging "p0"s, and recovering UI Shell when errors occur.
33
50
  */
@@ -42,6 +59,6 @@ export type UiShellContentProps = {
42
59
  topNavRightSide?: TopNavProps["rightSideComponent"];
43
60
  };
44
61
  } & UiShellNavComponentProps;
45
- declare const MemoizedUiShellContent: import("react").MemoExoticComponent<({ appComponent, onError, optionalComponents, sideNavProps, topNavProps, }: UiShellContentProps) => import("react/jsx-runtime").JSX.Element>;
62
+ declare const MemoizedUiShellContent: import("react").MemoExoticComponent<({ appBackgroundContrastMode, appComponent, initialVisibleSections, onError, optionalComponents, appSwitcherProps, sideNavProps, topNavProps, }: UiShellContentProps) => import("react/jsx-runtime").JSX.Element>;
46
63
  export { MemoizedUiShellContent as UiShellContent };
47
64
  //# sourceMappingURL=UiShellContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UiShellContent.d.ts","sourceRoot":"","sources":["../../../../src/labs/UiShell/UiShellContent.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAQ,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAiB,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAEzE,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAkDrD,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC;IACrD;;OAEG;IACH,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,mBAAmB,GAAG,oBAAoB,CAAC,CAAC;CAC5E,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,YAAY,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,kBAAkB,CAAC,EAAE;QACnB,OAAO,CAAC,EAAE,YAAY,CAAC;QACvB,aAAa,CAAC,EAAE,YAAY,CAAC,iBAAiB,CAAC,CAAC;QAChD,cAAc,CAAC,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC;QAClD,eAAe,CAAC,EAAE,WAAW,CAAC,oBAAoB,CAAC,CAAC;KACrD,CAAC;CACH,GAAG,wBAAwB,CAAC;AAsE7B,QAAA,MAAM,sBAAsB,kHAvDzB,mBAAmB,6CAuD6B,CAAC;AAGpD,OAAO,EAAE,sBAAsB,IAAI,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"UiShellContent.d.ts","sourceRoot":"","sources":["../../../../src/labs/UiShell/UiShellContent.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAQ,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAiB,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAEzE,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAMrD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAyDrD,eAAO,MAAM,iBAAiB,+CAAgD,CAAC;AAC/E,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC;IACrD;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,mBAAmB,GAAG,oBAAoB,CAAC,CAAC;CAC7E,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,yBAAyB,CAAC,EAAE,YAAY,CAAC;IACzC;;OAEG;IACH,YAAY,EAAE,SAAS,CAAC;IACxB;;;OAGG;IACH,sBAAsB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC5C;;OAEG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,kBAAkB,CAAC,EAAE;QACnB,OAAO,CAAC,EAAE,YAAY,CAAC;QACvB,aAAa,CAAC,EAAE,YAAY,CAAC,iBAAiB,CAAC,CAAC;QAChD,cAAc,CAAC,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC;QAClD,eAAe,CAAC,EAAE,WAAW,CAAC,oBAAoB,CAAC,CAAC;KACrD,CAAC;CACH,GAAG,wBAAwB,CAAC;AA6G7B,QAAA,MAAM,sBAAsB,uLA3FzB,mBAAmB,6CA2F6B,CAAC;AAGpD,OAAO,EAAE,sBAAsB,IAAI,cAAc,EAAE,CAAC"}
@@ -23,7 +23,7 @@ export declare const optionalComponentSlotNames: Record<keyof Required<UiShellPr
23
23
  * It places your app's root element in a web component <slot> and ensures it remains rendered in the event of a UI Shell error.
24
24
  * It also provides you with other elements fitted to slots in the web component. **In React, you can portal to these components.**
25
25
  */
26
- export declare const renderUiShell: ({ appRootElement: explicitAppRootElement, onError, uiShellRootElement, }: {
26
+ export declare const renderUiShell: ({ appBackgroundContrastMode, appRootElement: explicitAppRootElement, initialVisibleSections, onError, uiShellRootElement, }: {
27
27
  /**
28
28
  * HTML element used as the root for a React app.
29
29
  */
@@ -36,7 +36,7 @@ export declare const renderUiShell: ({ appRootElement: explicitAppRootElement, o
36
36
  * HTML element used as the root for UI Shell.
37
37
  */
38
38
  uiShellRootElement: HTMLElement;
39
- }) => {
39
+ } & Pick<UiShellProps, "appBackgroundContrastMode" | "initialVisibleSections">) => {
40
40
  appRootElement: HTMLDivElement;
41
41
  setComponentProps: (value: SetStateAction<UiShellNavComponentProps>) => void;
42
42
  slottedElements: Record<"banners" | "sideNavFooter" | "topNavLeftSide" | "topNavRightSide", HTMLDivElement>;
@@ -1 +1 @@
1
- {"version":3,"file":"renderUiShell.d.ts","sourceRoot":"","sources":["../../../../src/labs/UiShell/renderUiShell.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,OAAO,EAAW,YAAY,EAAE,MAAM,WAAW,CAAC;AAElD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAEjE,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAE5D,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAC7C,MAAM,QAAQ,CAAC,YAAY,CAAC,CAAC,oBAAoB,CAAC,EAClD,MAAM,CAMP,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,6EAIvB;IACD;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,kBAAkB,EAAE,WAAW,CAAC;CACjC;;;;;CAwEA,CAAC"}
1
+ {"version":3,"file":"renderUiShell.d.ts","sourceRoot":"","sources":["../../../../src/labs/UiShell/renderUiShell.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,OAAO,EAAW,YAAY,EAAE,MAAM,WAAW,CAAC;AAElD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAEjE,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAE5D,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAC7C,MAAM,QAAQ,CAAC,YAAY,CAAC,CAAC,oBAAoB,CAAC,EAClD,MAAM,CAMP,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,gIAMvB;IACD;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,kBAAkB,EAAE,WAAW,CAAC;CACjC,GAAG,IAAI,CACN,YAAY,EACZ,2BAA2B,GAAG,wBAAwB,CACvD;;;;;CA0EA,CAAC"}
@@ -30,6 +30,7 @@ export * from "./PaginatedTable";
30
30
  export {
31
31
  /** @deprecated Will be removed in a future Odyssey version. Use `PickerWithOptionAdornment` */
32
32
  GroupPicker, type GroupPickerOptionType, type GroupPickerProps, } from "./GroupPicker";
33
+ export * from "./AppSwitcher";
33
34
  export * from "./SideNav/NavAccordion";
34
35
  export * from "./SideNav";
35
36
  export * from "./TopNav";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/labs/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,YAAY,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAGrE,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAElC,cAAc,YAAY,CAAC;AAE3B,yGAAyG;AACzG,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,2BAA2B,CAAC;AAC1C,mFAAmF;AACnF,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,mFAAmF;AACnF,cAAc,kBAAkB,CAAC;AAEjC,OAAO;AACL,+FAA+F;AAC/F,WAAW,EACX,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB,MAAM,eAAe,CAAC;AAEvB,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/labs/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,YAAY,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAGrE,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAElC,cAAc,YAAY,CAAC;AAE3B,yGAAyG;AACzG,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,2BAA2B,CAAC;AAC1C,mFAAmF;AACnF,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,mFAAmF;AACnF,cAAc,kBAAkB,CAAC;AAEjC,OAAO;AACL,+FAA+F;AAC/F,WAAW,EACX,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB,MAAM,eAAe,CAAC;AAEvB,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/theme/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAsC7C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAQlD,eAAO,MAAM,UAAU,0EAKpB;IACD,YAAY,EAAE,YAAY,CAAC;IAC3B,aAAa,EAAE,YAAY,CAAC;IAC5B,0CAA0C;IAC1C,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAC/B,iBAAiB,CAAC,EAAE,WAAW,CAAC;CACjC,KAAG,YAAY,CAAC,YAAY,CAmlG5B,CAAC"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/theme/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAsC7C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAQlD,eAAO,MAAM,UAAU,0EAKpB;IACD,YAAY,EAAE,YAAY,CAAC;IAC3B,aAAa,EAAE,YAAY,CAAC;IAC5B,0CAA0C;IAC1C,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAC/B,iBAAiB,CAAC,EAAE,WAAW,CAAC;CACjC,KAAG,YAAY,CAAC,YAAY,CAglG5B,CAAC"}
@@ -10,7 +10,7 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
  import { type ReactNode } from "react";
13
- import { type Root } from "react-dom/client";
13
+ import type { Root } from "react-dom/client";
14
14
  /**
15
15
  * Creates elements for a Shadow DOM that Odyssey will render into.
16
16
  * The Emotion root is for `<style>` tags and the app root is for an app to render into.
@@ -36,8 +36,8 @@ export declare const reactWebComponentElementName = "odyssey-react-web-component
36
36
  export type GetReactComponentInWebComponent = (reactRootElements: ReactRootElements) => ReactNode;
37
37
  export declare class ReactInWebComponentElement extends HTMLElement {
38
38
  getReactComponent: GetReactComponentInWebComponent;
39
- reactRoot: Root;
40
39
  reactRootElements: ReactRootElements;
40
+ reactRootPromise: Promise<Root>;
41
41
  constructor(getReactComponent: GetReactComponentInWebComponent);
42
42
  connectedCallback(): void;
43
43
  disconnectedCallback(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"renderReactInWebComponent.d.ts","sourceRoot":"","sources":["../../../src/web-component/renderReactInWebComponent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAc,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEzD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;IAYhC;;;;;OAKG;;IAEH;;;;OAIG;;CAGN,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,4BAA4B,gCAAgC,CAAC;AAE1E,MAAM,MAAM,+BAA+B,GAAG,CAC5C,iBAAiB,EAAE,iBAAiB,KACjC,SAAS,CAAC;AAEf,qBAAa,0BAA2B,SAAQ,WAAW;IACzD,iBAAiB,EAAE,+BAA+B,CAAC;IACnD,SAAS,EAAE,IAAI,CAAC;IAChB,iBAAiB,EAAE,iBAAiB,CAAC;gBAEzB,iBAAiB,EAAE,+BAA+B;IAyB9D,iBAAiB;IAIjB,oBAAoB;CAGrB;AASD,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;;;;;OAMG;IACH,iBAAiB,EAAE,+BAA+B,CAAC;IACnD;;;;;;;OAOG;IACH,oBAAoB,CAAC,EAAE,WAAW,GAAG,WAAW,EAAE,CAAC;IACnD;;;;OAIG;IACH,uBAAuB,EAAE,WAAW,CAAC;CACtC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,0EAInC,8BAA8B,+BAehC,CAAC"}
1
+ {"version":3,"file":"renderReactInWebComponent.d.ts","sourceRoot":"","sources":["../../../src/web-component/renderReactInWebComponent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;IAYhC;;;;;OAKG;;IAEH;;;;OAIG;;CAGN,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,4BAA4B,gCAAgC,CAAC;AAE1E,MAAM,MAAM,+BAA+B,GAAG,CAC5C,iBAAiB,EAAE,iBAAiB,KACjC,SAAS,CAAC;AAEf,qBAAa,0BAA2B,SAAQ,WAAW;IACzD,iBAAiB,EAAE,+BAA+B,CAAC;IACnD,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,gBAAgB,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;gBAEpB,iBAAiB,EAAE,+BAA+B;IA4B9D,iBAAiB;IAMjB,oBAAoB;CAGrB;AASD,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;;;;;OAMG;IACH,iBAAiB,EAAE,+BAA+B,CAAC;IACnD;;;;;;;OAOG;IACH,oBAAoB,CAAC,EAAE,WAAW,GAAG,WAAW,EAAE,CAAC;IACnD;;;;OAIG;IACH,uBAAuB,EAAE,WAAW,CAAC;CACtC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,0EAInC,8BAA8B,+BAehC,CAAC"}
@@ -579,7 +579,7 @@ export const components = ({
579
579
  "&:hover": {
580
580
  backgroundColor: odysseyTokens.PalettePrimaryDark
581
581
  },
582
- "&:active": {
582
+ "&:active, &[aria-expanded='true']": {
583
583
  backgroundColor: odysseyTokens.PalettePrimaryDarker
584
584
  },
585
585
  "&:disabled": {
@@ -592,24 +592,18 @@ export const components = ({
592
592
  borderColor: odysseyTokens.HueNeutral300,
593
593
  color: odysseyTokens.TypographyColorBody,
594
594
  "&:hover": {
595
- backgroundColor: odysseyTokens.HueNeutral100
595
+ backgroundColor: odysseyTokens.HueNeutral200,
596
+ borderColor: odysseyTokens.HueNeutral400
596
597
  },
597
- "&:active": {
598
+ "&:active, &[aria-expanded='true']": {
598
599
  backgroundColor: "transparent",
599
600
  borderColor: odysseyTokens.BorderColorPrimaryControl,
600
601
  color: odysseyTokens.TypographyColorAction
601
602
  },
602
603
  "&:disabled": {
603
- ...(contrastMode === "highContrast" && {
604
- backgroundColor: odysseyTokens.HueNeutral200,
605
- borderColor: "transparent",
606
- color: odysseyTokens.TypographyColorDisabled
607
- }),
608
- ...(contrastMode === "lowContrast" && {
609
- backgroundColor: odysseyTokens.HueNeutral100,
610
- borderColor: "transparent",
611
- color: odysseyTokens.TypographyColorDisabled
612
- })
604
+ backgroundColor: odysseyTokens.HueNeutral200,
605
+ borderColor: "transparent",
606
+ color: odysseyTokens.TypographyColorDisabled
613
607
  }
614
608
  }),
615
609
  ...(ownerState.variant === "danger" && {
@@ -621,7 +615,7 @@ export const components = ({
621
615
  "&:focus-visible": {
622
616
  boxShadow: `0 0 0 2px ${odysseyTokens.HueNeutralWhite}, 0 0 0 4px ${odysseyTokens.PaletteDangerMain}`
623
617
  },
624
- "&:active": {
618
+ "&:active, &[aria-expanded='true']": {
625
619
  backgroundColor: odysseyTokens.PaletteDangerDarker
626
620
  },
627
621
  "&:disabled": {
@@ -634,17 +628,18 @@ export const components = ({
634
628
  borderColor: odysseyTokens.HueNeutral300,
635
629
  color: odysseyTokens.PaletteDangerMain,
636
630
  "&:hover": {
637
- backgroundColor: odysseyTokens.HueNeutral100,
631
+ backgroundColor: odysseyTokens.HueNeutral200,
632
+ borderColor: odysseyTokens.HueNeutral400,
638
633
  color: odysseyTokens.PaletteDangerMain
639
634
  },
640
- "&:active": {
635
+ "&:active, &[aria-expanded='true']": {
641
636
  backgroundColor: "transparent",
642
637
  borderColor: odysseyTokens.PaletteDangerMain,
643
638
  color: odysseyTokens.PaletteDangerMain
644
639
  },
645
640
  "&:disabled": {
646
- backgroundColor: "transparent",
647
- borderColor: odysseyTokens.PaletteDangerLight,
641
+ backgroundColor: odysseyTokens.PaletteDangerHighlight,
642
+ borderColor: "transparent",
648
643
  color: odysseyTokens.PaletteDangerLight
649
644
  }
650
645
  }),
@@ -652,11 +647,13 @@ export const components = ({
652
647
  backgroundColor: "transparent",
653
648
  color: odysseyTokens.TypographyColorBody,
654
649
  "&:hover": {
655
- backgroundColor: odysseyTokens.HueNeutral100
656
- },
657
- "&:active": {
658
650
  backgroundColor: odysseyTokens.HueNeutral200
659
651
  },
652
+ "&:active, &[aria-expanded='true']": {
653
+ backgroundColor: "transparent",
654
+ color: odysseyTokens.HueBlue600,
655
+ borderColor: odysseyTokens.HueBlue600
656
+ },
660
657
  "&:disabled": {
661
658
  backgroundColor: "transparent",
662
659
  color: odysseyTokens.TypographyColorDisabled
@@ -666,11 +663,12 @@ export const components = ({
666
663
  backgroundColor: "transparent",
667
664
  color: odysseyTokens.TypographyColorAction,
668
665
  "&:hover": {
669
- backgroundColor: odysseyTokens.HueNeutral100
670
- },
671
- "&:active": {
672
666
  backgroundColor: odysseyTokens.HueNeutral200
673
667
  },
668
+ "&:active, &[aria-expanded='true']": {
669
+ backgroundColor: "transparent",
670
+ borderColor: odysseyTokens.HueBlue600
671
+ },
674
672
  "&:disabled": {
675
673
  backgroundColor: "transparent",
676
674
  color: odysseyTokens.TypographyColorDisabled
@@ -738,8 +736,8 @@ export const components = ({
738
736
  position: "relative",
739
737
  transition: `all ${odysseyTokens.TransitionDurationMain} ${odysseyTokens.TransitionTimingMain}`,
740
738
  "&.ods-card-compact": {
741
- marginBlockEnd: odysseyTokens.Spacing3,
742
- padding: odysseyTokens.Spacing3
739
+ marginBlockEnd: odysseyTokens.Spacing2,
740
+ padding: odysseyTokens.Spacing4
743
741
  },
744
742
  "& img": {
745
743
  maxHeight: "100%",
@@ -2397,7 +2395,7 @@ export const components = ({
2397
2395
  ownerState
2398
2396
  }) => ({
2399
2397
  display: "table",
2400
- width: "auto",
2398
+ width: "100%",
2401
2399
  borderCollapse: "separate",
2402
2400
  borderSpacing: 0,
2403
2401
  marginBlock: odysseyTokens.Spacing0,