@okta/odyssey-react-mui 1.50.1 → 1.52.0

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 (503) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/{assets/axeRun-B-LchFqf.js → cjs/ConditionalWrapper.cjs} +22 -3
  3. package/dist/cjs/ConditionalWrapper.cjs.map +1 -0
  4. package/dist/cjs/DataTable/DataTable.cjs +1 -2
  5. package/dist/cjs/DataTable/DataTable.cjs.map +1 -1
  6. package/dist/cjs/Dialog.cjs +9 -1
  7. package/dist/cjs/Dialog.cjs.map +1 -1
  8. package/dist/cjs/Drawer.cjs +1 -0
  9. package/dist/cjs/Drawer.cjs.map +1 -1
  10. package/dist/cjs/FullScreenOverlay.cjs +4 -1
  11. package/dist/cjs/FullScreenOverlay.cjs.map +1 -1
  12. package/dist/cjs/FullScreenOverlayContext.cjs +10 -3
  13. package/dist/cjs/FullScreenOverlayContext.cjs.map +1 -1
  14. package/dist/cjs/HintLink.cjs +1 -1
  15. package/dist/cjs/HintLink.cjs.map +1 -1
  16. package/dist/cjs/OdysseyProvider.cjs +33 -22
  17. package/dist/cjs/OdysseyProvider.cjs.map +1 -1
  18. package/dist/cjs/Select.cjs +5 -0
  19. package/dist/cjs/Select.cjs.map +1 -1
  20. package/dist/cjs/__internal.cjs +11 -0
  21. package/dist/cjs/__internal.cjs.map +1 -1
  22. package/dist/cjs/createUniqueId.cjs +4 -1
  23. package/dist/cjs/createUniqueId.cjs.map +1 -1
  24. package/dist/cjs/labs/index.cjs +12 -0
  25. package/dist/cjs/labs/index.cjs.map +1 -1
  26. package/dist/cjs/theme/components.cjs +5 -2
  27. package/dist/cjs/theme/components.cjs.map +1 -1
  28. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +6 -10
  29. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs.map +1 -1
  30. package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs +2 -2
  31. package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs.map +1 -1
  32. package/dist/cjs/ui-shell/SideNav/types.cjs.map +1 -1
  33. package/dist/cjs/ui-shell/UiShell.cjs +5 -1
  34. package/dist/cjs/ui-shell/UiShell.cjs.map +1 -1
  35. package/dist/cjs/ui-shell/{SideNav/SideNavLogo.cjs → UiShellLogo.cjs} +6 -6
  36. package/dist/cjs/ui-shell/UiShellLogo.cjs.map +1 -0
  37. package/dist/cjs/ui-shell/index.cjs +12 -0
  38. package/dist/cjs/ui-shell/index.cjs.map +1 -1
  39. package/dist/cjs/ui-shell/uiShellContentTypes.cjs.map +1 -1
  40. package/dist/cjs/useContrastMode.cjs +1 -1
  41. package/dist/cjs/useContrastMode.cjs.map +1 -1
  42. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
  43. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
  44. package/dist/{assets/pxToRem-BrMhKUxS.js → esm/ConditionalWrapper.js} +15 -1
  45. package/dist/esm/ConditionalWrapper.js.map +1 -0
  46. package/dist/esm/DataTable/DataTable.js +1 -2
  47. package/dist/esm/DataTable/DataTable.js.map +1 -1
  48. package/dist/esm/Dialog.js +10 -2
  49. package/dist/esm/Dialog.js.map +1 -1
  50. package/dist/esm/Drawer.js +1 -0
  51. package/dist/esm/Drawer.js.map +1 -1
  52. package/dist/esm/FullScreenOverlay.js +4 -1
  53. package/dist/esm/FullScreenOverlay.js.map +1 -1
  54. package/dist/esm/FullScreenOverlayContext.js +9 -2
  55. package/dist/esm/FullScreenOverlayContext.js.map +1 -1
  56. package/dist/esm/HintLink.js +1 -1
  57. package/dist/esm/HintLink.js.map +1 -1
  58. package/dist/esm/OdysseyProvider.js +34 -23
  59. package/dist/esm/OdysseyProvider.js.map +1 -1
  60. package/dist/esm/Select.js +5 -0
  61. package/dist/esm/Select.js.map +1 -1
  62. package/dist/esm/__internal.js +1 -0
  63. package/dist/esm/__internal.js.map +1 -1
  64. package/dist/esm/createUniqueId.js +4 -1
  65. package/dist/esm/createUniqueId.js.map +1 -1
  66. package/dist/esm/labs/index.js +1 -0
  67. package/dist/esm/labs/index.js.map +1 -1
  68. package/dist/esm/theme/components.js +5 -2
  69. package/dist/esm/theme/components.js.map +1 -1
  70. package/dist/esm/ui-shell/NarrowUiShellContent.js +6 -10
  71. package/dist/esm/ui-shell/NarrowUiShellContent.js.map +1 -1
  72. package/dist/esm/ui-shell/SideNav/SideNavHeader.js +2 -2
  73. package/dist/esm/ui-shell/SideNav/SideNavHeader.js.map +1 -1
  74. package/dist/esm/ui-shell/SideNav/types.js.map +1 -1
  75. package/dist/esm/ui-shell/UiShell.js +5 -1
  76. package/dist/esm/ui-shell/UiShell.js.map +1 -1
  77. package/dist/esm/ui-shell/{SideNav/SideNavLogo.js → UiShellLogo.js} +6 -6
  78. package/dist/esm/ui-shell/UiShellLogo.js.map +1 -0
  79. package/dist/esm/ui-shell/index.js +1 -0
  80. package/dist/esm/ui-shell/index.js.map +1 -1
  81. package/dist/esm/ui-shell/uiShellContentTypes.js.map +1 -1
  82. package/dist/esm/useContrastMode.js +1 -1
  83. package/dist/esm/useContrastMode.js.map +1 -1
  84. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
  85. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
  86. package/dist/index.d.ts +21 -232
  87. package/dist/index.es.js.map +1 -1
  88. package/dist/index.iife.js.map +1 -1
  89. package/dist/index.umd.cjs.map +1 -1
  90. package/dist/tsconfig.production.tsbuildinfo +1 -1
  91. package/dist/tsconfig.tsbuildinfo +1 -1
  92. package/dist/{assets/uiShellSharedConstants-CvCey4L_.js → types/ConditionalWrapper.d.ts} +10 -1
  93. package/dist/types/ConditionalWrapper.d.ts.map +1 -0
  94. package/dist/types/DataTable/DataTable.d.ts.map +1 -1
  95. package/dist/types/Dialog.d.ts +5 -1
  96. package/dist/types/Dialog.d.ts.map +1 -1
  97. package/dist/types/Drawer.d.ts.map +1 -1
  98. package/dist/types/FullScreenOverlay.d.ts +3 -2
  99. package/dist/types/FullScreenOverlay.d.ts.map +1 -1
  100. package/dist/types/FullScreenOverlayContext.d.ts +12 -1
  101. package/dist/types/FullScreenOverlayContext.d.ts.map +1 -1
  102. package/dist/types/OdysseyProvider.d.ts +7 -1
  103. package/dist/types/OdysseyProvider.d.ts.map +1 -1
  104. package/dist/types/Select.d.ts.map +1 -1
  105. package/dist/types/__internal.d.ts +1 -0
  106. package/dist/types/__internal.d.ts.map +1 -1
  107. package/dist/types/createUniqueId.d.ts.map +1 -1
  108. package/dist/types/labs/index.d.ts +4 -0
  109. package/dist/types/labs/index.d.ts.map +1 -1
  110. package/dist/types/theme/components.d.ts.map +1 -1
  111. package/dist/types/tsconfig.tsbuildinfo +1 -1
  112. package/dist/types/ui-shell/NarrowUiShellContent.d.ts +2 -2
  113. package/dist/types/ui-shell/NarrowUiShellContent.d.ts.map +1 -1
  114. package/dist/types/ui-shell/SideNav/SideNavHeader.d.ts +6 -2
  115. package/dist/types/ui-shell/SideNav/SideNavHeader.d.ts.map +1 -1
  116. package/dist/types/ui-shell/SideNav/types.d.ts +4 -44
  117. package/dist/types/ui-shell/SideNav/types.d.ts.map +1 -1
  118. package/dist/types/ui-shell/UiShell.d.ts.map +1 -1
  119. package/dist/types/ui-shell/UiShellLogo.d.ts +55 -0
  120. package/dist/types/ui-shell/UiShellLogo.d.ts.map +1 -0
  121. package/dist/types/ui-shell/index.d.ts +1 -0
  122. package/dist/types/ui-shell/index.d.ts.map +1 -1
  123. package/dist/types/ui-shell/uiShellContentTypes.d.ts +7 -0
  124. package/dist/types/ui-shell/uiShellContentTypes.d.ts.map +1 -1
  125. package/dist/types/useContrastMode.d.ts +1 -1
  126. package/dist/types/useContrastMode.d.ts.map +1 -1
  127. package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
  128. package/package.json +8 -8
  129. package/dist/appswitcher/admin-app-default.svg +0 -6
  130. package/dist/appswitcher/admin-app-selected.svg +0 -6
  131. package/dist/appswitcher/aerial-default.svg +0 -7
  132. package/dist/appswitcher/aerial-selected.svg +0 -7
  133. package/dist/appswitcher/okta-dashboard-default.svg +0 -7
  134. package/dist/appswitcher/okta-dashboard-selected.svg +0 -7
  135. package/dist/appswitcher/privileged-access-default.svg +0 -4
  136. package/dist/appswitcher/privileged-access-selected.svg +0 -4
  137. package/dist/appswitcher/workflows-default.svg +0 -5
  138. package/dist/appswitcher/workflows-selected.svg +0 -5
  139. package/dist/assets/Accordion-TL4V06gN.js +0 -1
  140. package/dist/assets/Accordion.stories-_etHHM8e.js +0 -85
  141. package/dist/assets/AccordionSummary-D9iUNt-k.js +0 -1
  142. package/dist/assets/AlertTitle-C5NflvC5.js +0 -1
  143. package/dist/assets/AppSwitcher-QbTtJQaq.js +0 -21
  144. package/dist/assets/AppSwitcher.stories-DHBG5rOr.js +0 -100
  145. package/dist/assets/AppTile _labs_.stories-C-dzZ7Qn.js +0 -136
  146. package/dist/assets/ArrowDropDown-DddCYTEO.js +0 -1
  147. package/dist/assets/ArrowRight-BCdbWzwG.js +0 -1
  148. package/dist/assets/Autocomplete-BMfy4j72.js +0 -1
  149. package/dist/assets/Autocomplete-DVDZYzDH.js +0 -1
  150. package/dist/assets/Autocomplete.stories-B8RiFnpA.js +0 -316
  151. package/dist/assets/Badge-DGWMi2ON.js +0 -11
  152. package/dist/assets/Banner-DCJxRKN5.js +0 -1
  153. package/dist/assets/Banner.stories-Bsazp99i.js +0 -96
  154. package/dist/assets/BaseButton-C1Nzi3yl.js +0 -11
  155. package/dist/assets/BaseMenuButton-DPFgAU1j.js +0 -1
  156. package/dist/assets/Box-BK5oZBIO.js +0 -1
  157. package/dist/assets/Box-CTjIz0-2.js +0 -1
  158. package/dist/assets/Box-Csk9IBP6.js +0 -11
  159. package/dist/assets/Box.stories-CtReuS8W.js +0 -38
  160. package/dist/assets/Breadcrumbs-DnkzpkPy.js +0 -6
  161. package/dist/assets/Breadcrumbs.stories-C7zVt3mr.js +0 -79
  162. package/dist/assets/Bug-CxccEZAh.js +0 -1
  163. package/dist/assets/Button-CbJri63v.js +0 -1
  164. package/dist/assets/Button-DuM2NeMY.js +0 -11
  165. package/dist/assets/Button.stories-CRV-c8gG.js +0 -271
  166. package/dist/assets/ButtonBase-Lbe0_84r.js +0 -74
  167. package/dist/assets/Calendar-DXL71nUA.js +0 -1
  168. package/dist/assets/Callout-DY2rv89C.js +0 -1
  169. package/dist/assets/Callout.stories--Eo8BRU5.js +0 -128
  170. package/dist/assets/Card-BBklAYRu.js +0 -8
  171. package/dist/assets/Card-z7130zaB.js +0 -1
  172. package/dist/assets/Card.stories-fvpTzjYC.js +0 -56
  173. package/dist/assets/CardActionArea-B7i8fBJO.js +0 -1
  174. package/dist/assets/CardActions-C8G3mEo5.js +0 -1
  175. package/dist/assets/Checkbox-BlSNHylx.js +0 -1
  176. package/dist/assets/Checkbox-CMDOP82Q.js +0 -1
  177. package/dist/assets/Checkbox.stories-DP2aUvGZ.js +0 -96
  178. package/dist/assets/CheckboxGroup-CwIFFbkc.js +0 -1
  179. package/dist/assets/CheckboxGroup.stories-Bo4ON9ko.js +0 -92
  180. package/dist/assets/ChevronRight-SFKDVCjo.js +0 -1
  181. package/dist/assets/ChevronUp-DyYSBYAc.js +0 -1
  182. package/dist/assets/Chip-M3FRYspe.js +0 -1
  183. package/dist/assets/CircularProgress-K0vgt9-g.js +0 -28
  184. package/dist/assets/CircularProgress-iBaxEenq.js +0 -1
  185. package/dist/assets/CircularProgress.stories-B0Pf66JJ.js +0 -44
  186. package/dist/assets/Clock-B6hba9Vz.js +0 -1
  187. package/dist/assets/Close-DJA1l50S.js +0 -1
  188. package/dist/assets/Code Styling Guidelines-pHbGhTau.js +0 -14
  189. package/dist/assets/Collapse-DKQFr8Jv.js +0 -1
  190. package/dist/assets/Color-YHDXOIA2-CG5LwN35.js +0 -1
  191. package/dist/assets/CssBaseline-Bkt1iTa6.js +0 -191
  192. package/dist/assets/CssBaseline.stories-DJmHUmdE.js +0 -364
  193. package/dist/assets/Custom Theming-B72hK7oE.js +0 -135
  194. package/dist/assets/Custom Theming.stories-Cf2-ayRw.js +0 -95
  195. package/dist/assets/DataFilters _labs_-jIB_cIPS.js +0 -55
  196. package/dist/assets/DataFilters _labs_.stories-Bbrh7lix.js +0 -31
  197. package/dist/assets/DataFilters-DPi4_TMw.js +0 -1
  198. package/dist/assets/DataTable _labs_-UipdAC3j.js +0 -41
  199. package/dist/assets/DataTable _labs_.stories-o_LRnzmM.js +0 -21
  200. package/dist/assets/DataTable-8_tFkAz1.js +0 -404
  201. package/dist/assets/DataTable-Breh7Oua.js +0 -21
  202. package/dist/assets/DataTable.stories-D_xL1EQO.js +0 -438
  203. package/dist/assets/DataView _labs_-Uk1ng26p.js +0 -332
  204. package/dist/assets/DataView _labs_.stories-BIkujkH4.js +0 -438
  205. package/dist/assets/DataView-CBu_vDz5.js +0 -91
  206. package/dist/assets/DataView.stories-BZ_fLfnH.js +0 -954
  207. package/dist/assets/DatePicker-DcQC9osa.js +0 -1
  208. package/dist/assets/DatePicker-DrZNv0PG.js +0 -11
  209. package/dist/assets/DatePicker.stories-CdxHpQSt.js +0 -133
  210. package/dist/assets/DateTimePicker-Bc3ybPls.js +0 -1
  211. package/dist/assets/DateTimePicker.stories-EwHhkVLF.js +0 -158
  212. package/dist/assets/Design Tokens-rV9HMgkt.js +0 -4
  213. package/dist/assets/Dialog-DzHtD6Y8.js +0 -1
  214. package/dist/assets/Dialog.stories-Da8cQK7E.js +0 -201
  215. package/dist/assets/DialogContent-CfzX3t0u.js +0 -1
  216. package/dist/assets/DialogTitle-DWrKQeoP.js +0 -1
  217. package/dist/assets/Divider-bVF9wNUG.js +0 -1
  218. package/dist/assets/DocsRenderer-CFRXHY34-DjVgG9gc.js +0 -2
  219. package/dist/assets/Documentation-D-myRfum.js +0 -1
  220. package/dist/assets/Download-vZ2qKd4H.js +0 -1
  221. package/dist/assets/Drawer-D97GHbuL.js +0 -33
  222. package/dist/assets/Drawer.stories-BgDN3SBx.js +0 -95
  223. package/dist/assets/EmptyState-DqVcjLYd.js +0 -11
  224. package/dist/assets/EmptyState.stories-LlfICq7c.js +0 -11
  225. package/dist/assets/ExampleButton.stories-Dlu-0j3r.js +0 -320
  226. package/dist/assets/Extending Translations-yMUmArCq.js +0 -148
  227. package/dist/assets/ExternalLink-D3z7HWdx.js +0 -1
  228. package/dist/assets/Fade-fD56BVkE.js +0 -1
  229. package/dist/assets/Field-QbF6sK2K.js +0 -11
  230. package/dist/assets/FieldHint-Mz3OdL0I.js +0 -1
  231. package/dist/assets/Fieldset-Qg__SoCs.js +0 -11
  232. package/dist/assets/Fieldset.stories-CSgoy_R1.js +0 -15
  233. package/dist/assets/FileUploader.stories-CLC8ua1s.js +0 -58
  234. package/dist/assets/Filter-sXa3iWrm.js +0 -1
  235. package/dist/assets/Folder-DFjbrJpD.js +0 -1
  236. package/dist/assets/Form Field Accessibility-CeE-yHi9.js +0 -18
  237. package/dist/assets/Form--NGGwJcX.js +0 -11
  238. package/dist/assets/Form.stories-DpN6pnfW.js +0 -69
  239. package/dist/assets/FormControlLabel-DPa22EmK.js +0 -1
  240. package/dist/assets/FormGroup-CYHiKrU4.js +0 -1
  241. package/dist/assets/FormHelperText-DQoZ2-nD.js +0 -1
  242. package/dist/assets/FormLabel-CjrKvhME.js +0 -1
  243. package/dist/assets/FullScreenOverlay-B8rXO7lI.js +0 -11
  244. package/dist/assets/Generating Icons-4rsSwyQz.js +0 -16
  245. package/dist/assets/Globe-DER_Oel8.js +0 -1
  246. package/dist/assets/Grid-_Dwg3x03.js +0 -1
  247. package/dist/assets/Group-D87tnFnJ.js +0 -1
  248. package/dist/assets/GroupPicker _labs_.stories-Dkot8Gvy.js +0 -33
  249. package/dist/assets/Grow-D6A2VZqw.js +0 -1
  250. package/dist/assets/Hide-ovxLvICH.js +0 -1
  251. package/dist/assets/Hint-CkN2-6Wh.js +0 -11
  252. package/dist/assets/Home-Cn8YbOdj.js +0 -1
  253. package/dist/assets/Icon _icons_.stories-qnlVJ269.js +0 -16
  254. package/dist/assets/IconButton-CgM2Hv_L.js +0 -1
  255. package/dist/assets/IconWithTooltip _icons_.stories-Bdz-yaYX.js +0 -19
  256. package/dist/assets/InformationCircle-CG6-PCJh.js +0 -1
  257. package/dist/assets/InputAdornment-CVIbzdDI.js +0 -1
  258. package/dist/assets/InputBase-DSyP23zj.js +0 -2
  259. package/dist/assets/Installing odyssey-react-mui-CiYP6xN7.js +0 -216
  260. package/dist/assets/Introduction-CrzfC_TA.js +0 -36
  261. package/dist/assets/Layout-CLuC-soE.js +0 -11
  262. package/dist/assets/Layout.stories-CBxD-F_N.js +0 -285
  263. package/dist/assets/Legacy Migrations-ClnAFJAt.js +0 -86
  264. package/dist/assets/Link-BS9ZeF6K.js +0 -11
  265. package/dist/assets/Link-Ck99nJao.js +0 -1
  266. package/dist/assets/Link-D0sejjD3.js +0 -1
  267. package/dist/assets/Link-PjuOItUN.js +0 -1
  268. package/dist/assets/Link.stories--V5lBgMx.js +0 -43
  269. package/dist/assets/List-B7JH4gjK.js +0 -1
  270. package/dist/assets/List-BSidosAy.js +0 -1
  271. package/dist/assets/ListItem-DB9pwEx3.js +0 -1
  272. package/dist/assets/ListSubheader--G940pR4.js +0 -1
  273. package/dist/assets/Menu-C2dEwThV.js +0 -1
  274. package/dist/assets/MenuButton-Bh79TcKB.js +0 -9
  275. package/dist/assets/MenuButton-C-OmKt3g.js +0 -11
  276. package/dist/assets/MenuButton.stories-Ceqz4qjB.js +0 -246
  277. package/dist/assets/MenuContext-DKMyPMNY.js +0 -11
  278. package/dist/assets/MenuItem-C0i8WJAZ.js +0 -1
  279. package/dist/assets/MenuItem-D69h7bYZ.js +0 -1
  280. package/dist/assets/MenuItem.stories-D1nmz6cr.js +0 -29
  281. package/dist/assets/MenuList-BCZDiX8u.js +0 -1
  282. package/dist/assets/Modal-Ddv1e_fT.js +0 -1
  283. package/dist/assets/More-DLP5TTaz.js +0 -1
  284. package/dist/assets/MuiPropsContext-DhRylJZk.js +0 -11
  285. package/dist/assets/NativeSelect.stories-iwOAP2MY.js +0 -173
  286. package/dist/assets/Notification-DZN2A8i5.js +0 -1
  287. package/dist/assets/OdysseyProvider-oMWLr_-4.js +0 -66
  288. package/dist/assets/OdysseyStorybookThemeDecorator-DmBIIOGu.js +0 -1
  289. package/dist/assets/OdysseyThemeProvider-C4N_85M9.js +0 -189
  290. package/dist/assets/PageHeader.stories-CP7yWDvu.js +0 -57
  291. package/dist/assets/PageHeader.stories-o8T_qtyq.js +0 -364
  292. package/dist/assets/PageTemplate _labs_-D-ZpvSDn.js +0 -8
  293. package/dist/assets/PageTemplate _labs_.stories-CcKAPVlY.js +0 -306
  294. package/dist/assets/PageTemplate-DwiuZ2gD.js +0 -21
  295. package/dist/assets/PageTemplate.stories-BWAsJCDg.js +0 -205
  296. package/dist/assets/PaginatedTable _labs_.stories-eXIvKB_N.js +0 -65
  297. package/dist/assets/Pagination-CPZOkZUE.js +0 -11
  298. package/dist/assets/Pagination.stories-ZB73al5s.js +0 -17
  299. package/dist/assets/Paper-D4wDjY4F.js +0 -1
  300. package/dist/assets/PasswordField.stories-CFBj2mPt.js +0 -129
  301. package/dist/assets/Picker _labs_.stories-BSP2s_pC.js +0 -18
  302. package/dist/assets/PickerWithOptionAdornment _labs_.stories-CcdT2YZm.js +0 -70
  303. package/dist/assets/PlaceholderLogo-JfVvgA23.js +0 -11
  304. package/dist/assets/Popper-9pd1Yneu.js +0 -1
  305. package/dist/assets/Portal-DK2ELYoG.js +0 -1
  306. package/dist/assets/ProgressBar.stories-BNmDO6bH.js +0 -311
  307. package/dist/assets/Radio-B2zw408T.js +0 -1
  308. package/dist/assets/Radio-BRMnUBeG.js +0 -1
  309. package/dist/assets/Radio.stories-BiHez-Um.js +0 -63
  310. package/dist/assets/RadioGroup-3NM12Muw.js +0 -10
  311. package/dist/assets/RadioGroup-BM3_3HU2.js +0 -1
  312. package/dist/assets/RadioGroup-CZWIkl-b.js +0 -1
  313. package/dist/assets/RadioGroup.stories-cENtOlFv.js +0 -138
  314. package/dist/assets/Refresh-D3vISItP.js +0 -1
  315. package/dist/assets/ResourceAccessPolicyComponentsStorybookThemeDecorator-Di2iOJpx.js +0 -212
  316. package/dist/assets/Right-to-Left (RTL)-fcueNY4p.js +0 -62
  317. package/dist/assets/ScreenReaderText-6_RVPtH_.js +0 -15
  318. package/dist/assets/ScreenReaderText-DrkvjfUf.js +0 -1
  319. package/dist/assets/ScreenReaderText.stories-CO8LdK8F.js +0 -8
  320. package/dist/assets/Search-BH45H3v4.js +0 -1
  321. package/dist/assets/SearchDropdown _labs_.stories-Bmp81G56.js +0 -53
  322. package/dist/assets/SearchField-vEVEEXjl.js +0 -1
  323. package/dist/assets/SearchField.stories-C83bZsBy.js +0 -37
  324. package/dist/assets/Select-DGL00QcS.js +0 -15
  325. package/dist/assets/Select-Dg6qtAos.js +0 -1
  326. package/dist/assets/Select.stories-CZO06lSs.js +0 -293
  327. package/dist/assets/Server-3cieqme0.js +0 -1
  328. package/dist/assets/Settings-Bxzwc53G.js +0 -1
  329. package/dist/assets/Setup-wp_q8G1u.js +0 -7
  330. package/dist/assets/Shadow DOM-UCL9R1Bd.js +0 -64
  331. package/dist/assets/Show-D1oNDX9u.js +0 -1
  332. package/dist/assets/SideNav-CA5MPRIw.js +0 -85
  333. package/dist/assets/SideNav-DjaJNhvQ.js +0 -131
  334. package/dist/assets/SideNav.stories-DsqmEgxA.js +0 -207
  335. package/dist/assets/Skeleton-Bgl-rJ6W.js +0 -51
  336. package/dist/assets/Snackbar-hhmQPX8K.js +0 -1
  337. package/dist/assets/Stack-Dyzg8njm.js +0 -1
  338. package/dist/assets/Stack.stories-DoWxKo-o.js +0 -1
  339. package/dist/assets/StaticTable _labs_.stories-CwBlkxKe.js +0 -34
  340. package/dist/assets/Status-SY8R_HiF.js +0 -1
  341. package/dist/assets/Status.stories-DEyjfdZ8.js +0 -66
  342. package/dist/assets/Stepper.stories-C2_hEMjv.js +0 -564
  343. package/dist/assets/Surface-DBEECTVv.js +0 -1
  344. package/dist/assets/Switch.stories-CsPyggPf.js +0 -61
  345. package/dist/assets/SwitchBase-n4YlIRfi.js +0 -1
  346. package/dist/assets/Sync-MXQ8RKoq.js +0 -1
  347. package/dist/assets/Tabs-CKDb0WZw.js +0 -23
  348. package/dist/assets/Tabs-Yjnd4xiR.js +0 -1
  349. package/dist/assets/Tabs.stories-DYgpMtE6.js +0 -100
  350. package/dist/assets/Tag-DCZngwHs.js +0 -11
  351. package/dist/assets/Tag.stories-DjsZZZ5g.js +0 -96
  352. package/dist/assets/TagList-BvQLms1L.js +0 -1
  353. package/dist/assets/TextField-DUdvP48K.js +0 -1
  354. package/dist/assets/TextField.stories-CFIUIy2O.js +0 -149
  355. package/dist/assets/Toast.stories-DmPuslG7.js +0 -134
  356. package/dist/assets/ToastManager.stories-C0WSwoY-.js +0 -196
  357. package/dist/assets/Tooltip-DOwIJUHs.js +0 -1
  358. package/dist/assets/Tooltip-ciZ4e0Eb.js +0 -11
  359. package/dist/assets/Tooltip.stories-B4e1QEoX.js +0 -68
  360. package/dist/assets/TopNav-DjvdFijR.js +0 -11
  361. package/dist/assets/TopNav.stories-Ctwu_9N_.js +0 -13
  362. package/dist/assets/TransitionGroupContext-DAL84N7p.js +0 -1
  363. package/dist/assets/Typography-C4vClHaZ.js +0 -1
  364. package/dist/assets/Typography-DkvJJHkF.js +0 -1
  365. package/dist/assets/Typography-NdqIGwl5.js +0 -1
  366. package/dist/assets/Typography-c9CeGtmy.js +0 -9
  367. package/dist/assets/Typography.stories-C8KXE15q.js +0 -139
  368. package/dist/assets/Typography.stories-Di7tmDM_.js +0 -73
  369. package/dist/assets/UiShell.stories-CkplIEt6.js +0 -558
  370. package/dist/assets/UiShellProvider-Do3wWAnY.js +0 -31
  371. package/dist/assets/Upload-B99qcWTV.js +0 -1
  372. package/dist/assets/User-D5oZGOlm.js +0 -1
  373. package/dist/assets/UserProfile-DyDMmyrK.js +0 -11
  374. package/dist/assets/UserProfile.stories-W7GTlBN8.js +0 -14
  375. package/dist/assets/UserProfileMenuButton.stories-BLoHU0os.js +0 -30
  376. package/dist/assets/Video-t97PFROt.js +0 -1
  377. package/dist/assets/WorkflowsComponentsStorybookThemeDecorator-C42hLMDY.js +0 -197
  378. package/dist/assets/_commonjsHelpers-gnU0ypJ3.js +0 -1
  379. package/dist/assets/assertThisInitialized-B9jnkVVz.js +0 -1
  380. package/dist/assets/axe-4JP0vCEZ.js +0 -30
  381. package/dist/assets/chunk-XP5HYGXS-BpfKkqn7.js +0 -1
  382. package/dist/assets/client-ByW5HbEz.js +0 -1
  383. package/dist/assets/colorManipulator-BmBCr6qx.js +0 -1
  384. package/dist/assets/constants-CGUp4oSR.js +0 -11
  385. package/dist/assets/constants-CyailK6t.js +0 -11
  386. package/dist/assets/createBox-Cu6fLdzL.js +0 -1
  387. package/dist/assets/createChainedFunction-BO_9K8Jh.js +0 -1
  388. package/dist/assets/createStyled-CcazfAPj.js +0 -1
  389. package/dist/assets/createSvgIcon-V-Po-Ssl.js +0 -1
  390. package/dist/assets/createUniqueId-ByTaVY63.js +0 -1
  391. package/dist/assets/debounce-Be36O1Ab.js +0 -1
  392. package/dist/assets/dialogActionsClasses-p1SqDmrR.js +0 -1
  393. package/dist/assets/dom.esm-B9r8vBgQ.js +0 -65
  394. package/dist/assets/emotion-react-jsx-runtime.browser.esm-DIdX2qdc.js +0 -1
  395. package/dist/assets/entry-preview-CPHmgmI_.js +0 -2
  396. package/dist/assets/entry-preview-docs-BKXv92OK.js +0 -46
  397. package/dist/assets/fieldComponentPropsMetaData-BqbNLw6V.js +0 -11
  398. package/dist/assets/getReactElementRef-SdO7zWnC.js +0 -1
  399. package/dist/assets/getScrollbarSize-Bqq2hMjQ.js +0 -1
  400. package/dist/assets/i18next-7SyOfhCu.js +0 -1
  401. package/dist/assets/iconUtils-01jcyLGr.js +0 -11
  402. package/dist/assets/iframe-pzQvMjuK.js +0 -211
  403. package/dist/assets/index-B-lxVbXh.js +0 -1
  404. package/dist/assets/index-B5xazMy1.js +0 -1
  405. package/dist/assets/index-BJMTVygn.js +0 -240
  406. package/dist/assets/index-BJRwoad0.js +0 -1
  407. package/dist/assets/index-BJTM6NaI.js +0 -192
  408. package/dist/assets/index-BVtttuMv.js +0 -1
  409. package/dist/assets/index-BeeV6X6A.js +0 -1
  410. package/dist/assets/index-CXQShRbs.js +0 -8
  411. package/dist/assets/index-DDAqzdZr.js +0 -1
  412. package/dist/assets/index-DieBXP3Z.js +0 -24
  413. package/dist/assets/index-DrFu-skq.js +0 -6
  414. package/dist/assets/index-NdkWRN8K.js +0 -9
  415. package/dist/assets/index-c74KQyVj.js +0 -384
  416. package/dist/assets/index.esm-C8irYXeq.js +0 -1
  417. package/dist/assets/index.esm-Dv3Cs9mX.js +0 -138
  418. package/dist/assets/index.modern-CkASn_bb.js +0 -14
  419. package/dist/assets/inheritsLoose-S-YxUaHb.js +0 -1
  420. package/dist/assets/inputUtils-Dbi8XkA6.js +0 -11
  421. package/dist/assets/isHostComponent-DVu5iVWx.js +0 -1
  422. package/dist/assets/jsx-runtime-CnH95YSl.js +0 -9
  423. package/dist/assets/matchers-7Z3WT2CE-T3xScrR7.js +0 -14
  424. package/dist/assets/ownerDocument-DW-IO8s5.js +0 -1
  425. package/dist/assets/ownerWindow-HkKU3E4x.js +0 -1
  426. package/dist/assets/personData-BDz2-Bac.js +0 -11
  427. package/dist/assets/personData-TjBCCFSX.js +0 -1
  428. package/dist/assets/pickerComponentPropsMetadata-DyMkD2Aw.js +0 -21
  429. package/dist/assets/popper-ChLFknNm.js +0 -1
  430. package/dist/assets/preview-B8lJiyuQ.js +0 -34
  431. package/dist/assets/preview-BAx1BwgB.js +0 -1
  432. package/dist/assets/preview-BBWR9nbA.js +0 -1
  433. package/dist/assets/preview-BWzBA1C2.js +0 -396
  434. package/dist/assets/preview-BaoH-L4j.js +0 -1
  435. package/dist/assets/preview-CQqyhYi4.js +0 -2
  436. package/dist/assets/preview-CYp4EYYZ.js +0 -1
  437. package/dist/assets/preview-CvbIS5ZJ.js +0 -1
  438. package/dist/assets/preview-DGUiP6tS.js +0 -7
  439. package/dist/assets/preview-DHQbi4pV.js +0 -1
  440. package/dist/assets/preview-Db5KMipM.js +0 -2
  441. package/dist/assets/preview-MBifGIx_.js +0 -1
  442. package/dist/assets/queryOdysseySelector-_ueksTI2.js +0 -123
  443. package/dist/assets/react-18-u8niHpKc.js +0 -1
  444. package/dist/assets/renderUiShell.stories-DJOqBLkr.js +0 -872
  445. package/dist/assets/resolveComponentProps-D1ztx9lS.js +0 -1
  446. package/dist/assets/tableSortLabelClasses-BUdDGZ1b.js +0 -1
  447. package/dist/assets/test-utils-H9lH7T5D.js +0 -9
  448. package/dist/assets/useAutocomplete-B3_vLbIK.js +0 -11
  449. package/dist/assets/useControlled-NQulfz4l.js +0 -1
  450. package/dist/assets/useFormControl-BMISTZuX.js +0 -1
  451. package/dist/assets/useIsFocusVisible-DH0qxT5e.js +0 -1
  452. package/dist/assets/useMobilePicker-NPR54vgn.js +0 -6
  453. package/dist/assets/useMountLifecycleEffect-CjsUCFhB.js +0 -11
  454. package/dist/assets/useOdysseyDateFields-NlKc4Nvp.js +0 -61
  455. package/dist/assets/useScrollIndication-DY-bS9Bn.js +0 -31
  456. package/dist/assets/useSlot-D_uu6bU4.js +0 -1
  457. package/dist/assets/useThemeProps-BX3arxP9.js +0 -1
  458. package/dist/assets/useThemeProps-k7xle20R.js +0 -1
  459. package/dist/assets/useUniqueId-Bsgqe1tm.js +0 -11
  460. package/dist/assets/utilities.esm-DpQ0TZP_.js +0 -5
  461. package/dist/assets/utils-3Wr9v8NX.js +0 -1
  462. package/dist/assets/utils-iop7lDec.js +0 -1
  463. package/dist/assets/v4-CtRu48qb.js +0 -1
  464. package/dist/assets/visuallyHidden-Dan1xhjv.js +0 -1
  465. package/dist/cjs/ui-shell/SideNav/SideNavLogo.cjs.map +0 -1
  466. package/dist/esm/ui-shell/SideNav/SideNavLogo.js.map +0 -1
  467. package/dist/favicon.svg +0 -1
  468. package/dist/iframe.html +0 -748
  469. package/dist/index.cjs +0 -231
  470. package/dist/index.html +0 -203
  471. package/dist/index.json +0 -1
  472. package/dist/index.mjs +0 -229
  473. package/dist/index.scss +0 -549
  474. package/dist/nunito-sans-bold-italic.woff2 +0 -0
  475. package/dist/nunito-sans-bold.woff2 +0 -0
  476. package/dist/nunito-sans-italic.woff2 +0 -0
  477. package/dist/nunito-sans-regular.woff2 +0 -0
  478. package/dist/project.json +0 -1
  479. package/dist/sb-addons/a11y-3/manager-bundle.js +0 -220
  480. package/dist/sb-addons/docs-1/manager-bundle.js +0 -242
  481. package/dist/sb-addons/essentials-actions-5/manager-bundle.js +0 -3
  482. package/dist/sb-addons/essentials-backgrounds-6/manager-bundle.js +0 -12
  483. package/dist/sb-addons/essentials-controls-4/manager-bundle.js +0 -402
  484. package/dist/sb-addons/essentials-measure-9/manager-bundle.js +0 -3
  485. package/dist/sb-addons/essentials-outline-10/manager-bundle.js +0 -3
  486. package/dist/sb-addons/essentials-toolbars-8/manager-bundle.js +0 -3
  487. package/dist/sb-addons/essentials-viewport-7/manager-bundle.js +0 -3
  488. package/dist/sb-addons/interactions-11/manager-bundle.js +0 -222
  489. package/dist/sb-addons/links-2/manager-bundle.js +0 -3
  490. package/dist/sb-addons/rtl-12/manager-bundle.js +0 -3
  491. package/dist/sb-addons/storybook-13/manager-bundle.js +0 -3
  492. package/dist/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
  493. package/dist/sb-common-assets/favicon.svg +0 -1
  494. package/dist/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  495. package/dist/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  496. package/dist/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  497. package/dist/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  498. package/dist/sb-manager/globals-module-info.js +0 -1052
  499. package/dist/sb-manager/globals-runtime.js +0 -42127
  500. package/dist/sb-manager/globals.js +0 -48
  501. package/dist/sb-manager/runtime.js +0 -12048
  502. package/dist/types/ui-shell/SideNav/SideNavLogo.d.ts +0 -15
  503. package/dist/types/ui-shell/SideNav/SideNavLogo.d.ts.map +0 -1
@@ -1,62 +0,0 @@
1
- import{j as e}from"./jsx-runtime-CnH95YSl.js";import{useMDXComponents as i}from"./index-BeeV6X6A.js";import{M as s}from"./index-c74KQyVj.js";import"./index-NdkWRN8K.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./iframe-pzQvMjuK.js";import"./index-BJTM6NaI.js";import"./index-B5xazMy1.js";import"./index-DieBXP3Z.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";function n(r){const d={code:"code",h1:"h1",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",ul:"ul",...i(),...r.components};return e.jsxs(e.Fragment,{children:[e.jsx(s,{}),`
2
- `,e.jsx(d.h1,{id:"right-to-left-rtl-language-support",children:"Right-to-Left (RTL) language support"}),`
3
- `,e.jsxs(d.p,{children:["This document outlines the process and constraints of moving from physical CSS properties (",e.jsx(d.code,{children:"margin-left"}),") to logical CSS properties (",e.jsx(d.code,{children:"margin-inline-start"}),") as an effort to provide RTL support. Folks may recognize this syntax from CSS Grid or Flexbox."]}),`
4
- `,e.jsxs(d.p,{children:["These property variants key off of the ",e.jsx(d.code,{children:'dir="rtl|ltr"'})," attribute on ",e.jsx(d.code,{children:"html"}),". This allows for a single declaration to provide LTR and RTL support."]}),`
5
- `,e.jsx(d.h2,{id:"property-and-value-translations",children:"Property and value translations"}),`
6
- `,e.jsx(d.p,{children:"This table documents the related equivalents in physical and logical CSS, their linter support, and any relevant notes."}),`
7
- `,e.jsxs(d.p,{children:["For a quick visualization of how these properties are related, see ",e.jsx("a",{href:"https://codepen.io/aardrian/full/bGGxrvM",children:"this CodePen"}),"."]}),`
8
- `,e.jsx("div",{children:e.jsxs("table",{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("td",{scope:"column",children:"Type"}),e.jsx("td",{scope:"column",children:"Physical CSS"}),e.jsx("td",{scope:"column",children:"Logical CSS"}),e.jsx("td",{scope:"column",children:"Lint status"}),e.jsx("td",{scope:"column",children:"Notes"})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("td",{scope:"row",rowSpan:"7",children:e.jsx(d.p,{children:"Margin"})}),e.jsx("td",{children:e.jsx("code",{children:"margin"})}),e.jsx("td",{}),e.jsx("td",{children:"no auto-fix"}),e.jsx("td",{children:e.jsxs(d.p,{children:["See ",e.jsx("a",{href:"#linting-notes",children:"Linting notes"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"margin-top"})}),e.jsx("td",{children:e.jsx("code",{children:"margin-block-start"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{children:e.jsxs(d.p,{children:["See ",e.jsx("a",{href:"#linting-notes",children:"Linting notes"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"margin-bottom"})}),e.jsx("td",{children:e.jsx("code",{children:"margin-block-end"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{children:e.jsxs(d.p,{children:["See ",e.jsx("a",{href:"#linting-notes",children:"Linting notes"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"margin-left"})}),e.jsx("td",{children:e.jsx("code",{children:"margin-inline-start"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{children:e.jsxs(d.p,{children:["See ",e.jsx("a",{href:"#linting-notes",children:"Linting notes"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"margin-right"})}),e.jsx("td",{children:e.jsx("code",{children:"margin-inline-end"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{children:e.jsxs(d.p,{children:["See ",e.jsx("a",{href:"#linting-notes",children:"Linting notes"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("code",{children:"margin-block"})}),e.jsx("td",{}),e.jsx("td",{children:"Sets both block margins"})]}),e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("code",{children:"margin-inline"})}),e.jsx("td",{}),e.jsx("td",{children:"Sets both inline margins"})]}),e.jsxs("tr",{children:[e.jsx("td",{scope:"row",rowSpan:"7",children:e.jsx(d.p,{children:"Padding"})}),e.jsx("td",{children:e.jsx("code",{children:"padding"})}),e.jsx("td",{}),e.jsx("td",{children:"no auto-fix"}),e.jsx("td",{children:e.jsxs(d.p,{children:["See ",e.jsx("a",{href:"#linting-notes",children:"Linting notes"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"padding-top"})}),e.jsx("td",{children:e.jsx("code",{children:"padding-block-start"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{children:e.jsxs(d.p,{children:["See ",e.jsx("a",{href:"#linting-notes",children:"Linting notes"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"padding-bottom"})}),e.jsx("td",{children:e.jsx("code",{children:"padding-block-end"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{children:e.jsxs(d.p,{children:["See ",e.jsx("a",{href:"#linting-notes",children:"Linting notes"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"padding-left"})}),e.jsx("td",{children:e.jsx("code",{children:"padding-inline-start"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{children:e.jsxs(d.p,{children:["See ",e.jsx("a",{href:"#linting-notes",children:"Linting notes"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"padding-right"})}),e.jsx("td",{children:e.jsx("code",{children:"padding-inline-end"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{children:e.jsxs(d.p,{children:["See ",e.jsx("a",{href:"#linting-notes",children:"Linting notes"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("code",{children:"padding-block"})}),e.jsx("td",{}),e.jsx("td",{children:"Sets both block paddings"})]}),e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("code",{children:"padding-inline"})}),e.jsx("td",{}),e.jsx("td",{children:"Sets both inline paddings"})]}),e.jsxs("tr",{children:[e.jsx("td",{scope:"row",rowSpan:"11",children:e.jsx(d.p,{children:"Borders"})}),e.jsx("td",{children:e.jsx("code",{children:"border-top"})}),e.jsx("td",{children:e.jsx("code",{children:"border-block-start"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{children:e.jsxs(d.p,{children:["Also applies to ",e.jsx("code",{children:"*-size|style|color"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"border-bottom"})}),e.jsx("td",{children:e.jsx("code",{children:"border-block-end"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{children:e.jsxs(d.p,{children:["Also applies to ",e.jsx("code",{children:"*-size|style|color"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"border-left"})}),e.jsx("td",{children:e.jsx("code",{children:"border-inline-start"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{children:e.jsxs(d.p,{children:["Also applies to ",e.jsx("code",{children:"*-size|style|color"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"border-right"})}),e.jsx("td",{children:e.jsx("code",{children:"border-inline-end"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{children:e.jsxs(d.p,{children:["Also applies to ",e.jsx("code",{children:"*-size|style|color"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("code",{children:"border-block"})}),e.jsx("td",{}),e.jsx("td",{children:"Sets both block borders"})]}),e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("code",{children:"border-inline"})}),e.jsx("td",{}),e.jsx("td",{children:"Sets both inline borders"})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"border-radius"})}),e.jsx("td",{}),e.jsx("td",{children:"no auto-fix"}),e.jsx("td",{children:e.jsxs(d.p,{children:["See ",e.jsx("a",{href:"#linting-notes",children:"Linting notes"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"border-top-left-radius"})}),e.jsx("td",{children:e.jsx("code",{children:"border-start-start-radius"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"border-top-right-radius"})}),e.jsx("td",{children:e.jsx("code",{children:"border-start-end-radius"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"border-bottom-left-radius"})}),e.jsx("td",{children:e.jsx("code",{children:"border-end-start-radius"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"border-bottom-right-radius"})}),e.jsx("td",{children:e.jsx("code",{children:"border-end-end-radius"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsx("td",{scope:"row",rowSpan:"7",children:e.jsx(d.p,{children:"Position"})}),e.jsx("td",{children:e.jsx("code",{children:"top"})}),e.jsx("td",{children:e.jsx("code",{children:"inset-block-start"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"bottom"})}),e.jsx("td",{children:e.jsx("code",{children:"inset-block-end"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"left"})}),e.jsx("td",{children:e.jsx("code",{children:"inset-inline-start"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"right"})}),e.jsx("td",{children:e.jsx("code",{children:"inset-inline-end"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("code",{children:"inset"})}),e.jsx("td",{}),e.jsx("td",{children:"Sets all inset values"})]}),e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("code",{children:"inset-block"})}),e.jsx("td",{}),e.jsx("td",{children:"Sets block inset values"})]}),e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("code",{children:"inset-inline"})}),e.jsx("td",{}),e.jsx("td",{children:"Sets inline inset values"})]}),e.jsxs("tr",{children:[e.jsx("td",{scope:"row",rowSpan:"6",children:e.jsx(d.p,{children:"Layout"})}),e.jsx("td",{children:e.jsx("code",{children:"text-align: left"})}),e.jsx("td",{children:e.jsx("code",{children:"text-align: start"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"text-align: right"})}),e.jsx("td",{children:e.jsx("code",{children:"text-align: end"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"float: left"})}),e.jsx("td",{children:e.jsx("code",{children:"float: inline-start"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{children:"Prefer Grid or Flex instead"})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"float: right"})}),e.jsx("td",{children:e.jsx("code",{children:"float: inline-end"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{children:"Prefer Grid or Flex instead"})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"clear: left"})}),e.jsx("td",{children:e.jsx("code",{children:"clear: inline-start"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{children:"Prefer Grid or Flex instead"})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"clear: right"})}),e.jsx("td",{children:e.jsx("code",{children:"clear: inline-end"})}),e.jsx("td",{children:"auto-fixed"}),e.jsx("td",{children:"Prefer Grid or Flex instead"})]})]})]})}),`
9
- `,e.jsx(d.h3,{id:"linting-notes",children:"Linting notes"}),`
10
- `,e.jsxs(d.p,{children:["Browsers have not settled on a standard RTL syntax for 4-value shorthands. Currently, using standard 4-value shorthands (",e.jsx(d.code,{children:"margin: 4px 3px 2px 1px"}),") will be parsed as physical CSS by the browser. Stylelint's auto-fix behavior in this regard has a few gaps:"]}),`
11
- `,e.jsxs(d.ul,{children:[`
12
- `,e.jsxs(d.li,{children:["When four properties are present, ",e.jsx(d.code,{children:"margin"})," and ",e.jsx(d.code,{children:"padding"})," are collapsed into two forms of shorthand:",`
13
- `,e.jsxs(d.ul,{children:[`
14
- `,e.jsxs(d.li,{children:["When all values are the same: ",e.jsx(d.code,{children:"margin: x"})]}),`
15
- `,e.jsxs(d.li,{children:["When all values are different: ",e.jsx(d.code,{children:"margin: logical p q x y"}),"."]}),`
16
- `]}),`
17
- `]}),`
18
- `,e.jsxs(d.li,{children:["The ",e.jsx(d.code,{children:"logical"})," flag is aligned with the proposed syntax, but it is not supported in most browsers."]}),`
19
- `,e.jsxs(d.li,{children:[e.jsx(d.code,{children:"border-radius"})," itself goes undetected, as there is no RTL syntax for shorthand. This is safe when the values are the same, but unsafe if they are ever different."]}),`
20
- `]}),`
21
- `,e.jsxs(d.p,{children:["For the above reasons, the use of ",e.jsx(d.code,{children:"margin"}),", ",e.jsx(d.code,{children:"padding"}),", and ",e.jsx(d.code,{children:"border-radius"})," shorthands are disallowed in our current config. Please use the associated RTL properties or the ",e.jsx(d.code,{children:"border-radius"})," mixin for broad support."]}),`
22
- `,e.jsx(d.h3,{id:"unsupported-properties",children:"Unsupported properties"}),`
23
- `,e.jsxs(d.p,{children:["Of note, ",e.jsx(d.code,{children:"transform"}),", ",e.jsx(d.code,{children:"box-shadow"}),", and ",e.jsx(d.code,{children:"background"})," properties do not have logical equivalents."]}),`
24
- `,e.jsxs(d.p,{children:["Currently, these properties are always treated as physical. Since the ",e.jsx(d.code,{children:":rtl"})," selector doesn’t have broad support, the recommended solution is to add RTL styles via ",e.jsx(d.code,{children:"[dirl=’rtl’] &"}),"."]}),`
25
- `,e.jsx(d.pre,{children:e.jsx(d.code,{className:"language-css",children:`.foo {
26
- transformation: translateX(50%);
27
-
28
- [dir="rtl"] & {
29
- transformation: translateX(-50%);
30
- }
31
- }
32
- `})}),`
33
- `,e.jsx(d.h3,{id:"browser-support",children:"Browser support"}),`
34
- `,e.jsx(d.p,{children:"Firefox and Chrome both have full support for the new properties and values."}),`
35
- `,e.jsx(d.p,{children:"Safari is currently missing support for logical border-radius properties; however, full support is available in the Safari 15 preview."}),`
36
- `,e.jsx(d.h3,{id:"unused-logical-properties-and-values",children:"Unused logical properties and values"}),`
37
- `,e.jsx(d.p,{children:`Our current implementation focuses on providing "automatic" RTL support with the least amount of overhead. For this reason, we haven't implemented properties related to vertical reading/writing. For completeness, the remaining Logical CSS properties are inventoried here:`}),`
38
- `,e.jsx("div",{children:e.jsxs("table",{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("td",{scope:"column",children:"Type"}),e.jsx("td",{scope:"column",children:"Physical CSS"}),e.jsx("td",{scope:"column",children:"Logical CSS"}),e.jsx("td",{scope:"column",children:"Lint status"})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("td",{scope:"row",rowSpan:"6",children:e.jsx(d.p,{children:"Box"})}),e.jsx("td",{children:e.jsx("code",{children:"width"})}),e.jsx("td",{children:e.jsx("code",{children:"inline-size"})}),e.jsx("td",{children:"auto-fix available"})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"min-width"})}),e.jsx("td",{children:e.jsx("code",{children:"min-inline-size"})}),e.jsx("td",{children:"auto-fix available"})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"max-width"})}),e.jsx("td",{children:e.jsx("code",{children:"max-inline-size"})}),e.jsx("td",{children:"auto-fix available"})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"height"})}),e.jsx("td",{children:e.jsx("code",{children:"block-size"})}),e.jsx("td",{children:"auto-fix available"})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"min-height"})}),e.jsx("td",{children:e.jsx("code",{children:"min-block-size"})}),e.jsx("td",{children:"auto-fix available"})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"max-height"})}),e.jsx("td",{children:e.jsx("code",{children:"max-block-size"})}),e.jsx("td",{children:"auto-fix available"})]}),e.jsxs("tr",{children:[e.jsx("td",{scope:"row",rowSpan:"6",children:e.jsx(d.p,{children:"Overflow"})}),e.jsx("td",{children:e.jsx("code",{children:"overflow-y"})}),e.jsx("td",{children:e.jsx("code",{children:"overflow-block"})}),e.jsx("td",{children:"undetected"})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"overflow-x"})}),e.jsx("td",{children:e.jsx("code",{children:"overflow-inline"})}),e.jsx("td",{children:"undetected"})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"overscroll-behavior-y"})}),e.jsx("td",{children:e.jsx("code",{children:"overscroll-behavior-block"})}),e.jsx("td",{children:"undetected"})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"overscroll-behavior-x"})}),e.jsx("td",{children:e.jsx("code",{children:"overscroll-behavior-inline"})}),e.jsx("td",{children:"undetected"})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"resize: horizontal"})}),e.jsx("td",{children:e.jsx("code",{children:"resize: inline"})}),e.jsx("td",{children:"undetected"})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("code",{children:"resize: vertical"})}),e.jsx("td",{children:e.jsx("code",{children:"resize: block"})}),e.jsx("td",{children:"undetected"})]})]})]})}),`
39
- `,e.jsx(d.p,{children:`There are limited caveats to utilizing these properties today. However, they are
40
- not required for RTL support.`}),`
41
- `,e.jsx(d.p,{children:"Browser support is as above."}),`
42
- `,e.jsx(d.p,{children:"Box properties are correctly detected and auto-fixed by stylelint-use-logical, but Overflow properties are not."}),`
43
- `,e.jsx(d.p,{children:"PostCSS supports detection and fallback generation for all of these properties."}),`
44
- `,e.jsx(d.h2,{id:"non-logical-rtl-typography-concerns",children:"Non-logical, RTL typography concerns"}),`
45
- `,e.jsxs(d.ul,{children:[`
46
- `,e.jsxs(d.li,{children:[e.jsx(d.code,{children:"letter-spacing"})," is now set to 0 to ensure non-English scripts are properly ligatured"]}),`
47
- `,e.jsxs(d.li,{children:[e.jsx(d.code,{children:"text-decoration-skip-ink"})," is now set to ",e.jsx(d.code,{children:"all"})," for maximum non-English script support"]}),`
48
- `,e.jsx(d.li,{children:"Odyssey does not currently utilize or support transparency in text, as it causes legibility issues in non-English scripts"}),`
49
- `,e.jsxs(d.li,{children:[e.jsx(d.code,{children:"word-break"})," is disallowed since not all languages support intra-word breakage"]}),`
50
- `,e.jsx(d.li,{children:"Tables do not swap layout or ordering of numerical data"}),`
51
- `,e.jsx(d.li,{children:"Noto Sans Arabic is our preferred Arabic font family"}),`
52
- `,e.jsx(d.li,{children:"Addresses, email addresses, and phone numbers should not swap their display"}),`
53
- `]}),`
54
- `,e.jsx(d.h2,{id:"guidance-and-documentation-changes",children:"Guidance and documentation changes"}),`
55
- `,e.jsx(d.h3,{id:"naming",children:"Naming"}),`
56
- `,e.jsx(d.p,{children:"In both documentation and code, we have replaced and will strive to continue using logical, RTL-friendly names in place of physical ones."}),`
57
- `,e.jsxs(d.p,{children:["For classes, this means preferring ",e.jsx(d.code,{children:".is-tooltip-start"})," to ",e.jsx(d.code,{children:".is-tooltip-left"}),`. In documentation, we'll refer to the "upper, ending corner" instead of the "upper, right-hand corner".`]}),`
58
- `,e.jsx(d.h2,{id:"known-rtl-work-remaining",children:"Known RTL work remaining"}),`
59
- `,e.jsxs(d.ul,{children:[`
60
- `,e.jsxs(d.li,{children:["All unsupported cases (",e.jsx(d.code,{children:"transform"}),", ",e.jsx(d.code,{children:"background"}),", and ",e.jsx(d.code,{children:"shadow"}),") need linting to ensure appropriate RTL declarations."]}),`
61
- `,e.jsx(d.li,{children:"Icons require bi-directional support"}),`
62
- `]})]})}function f(r={}){const{wrapper:d}={...i(),...r.components};return d?e.jsx(d,{...r,children:e.jsx(n,{...r})}):n(r)}export{f as default};
@@ -1,15 +0,0 @@
1
- import{j as e}from"./jsx-runtime-CnH95YSl.js";import{useMDXComponents as r}from"./index-BeeV6X6A.js";import{M as i,C as s,c}from"./index-c74KQyVj.js";import{Default as a}from"./ScreenReaderText.stories-CO8LdK8F.js";import"./index-NdkWRN8K.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./iframe-pzQvMjuK.js";import"./index-BJTM6NaI.js";import"./index-B5xazMy1.js";import"./index-DieBXP3Z.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";import"./OdysseyStorybookThemeDecorator-DmBIIOGu.js";import"./OdysseyThemeProvider-C4N_85M9.js";import"./OdysseyProvider-oMWLr_-4.js";import"./ScreenReaderText-DrkvjfUf.js";import"./Box-CTjIz0-2.js";import"./createBox-Cu6fLdzL.js";import"./visuallyHidden-Dan1xhjv.js";function o(n){const t={code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",...r(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{anchor:!0}),`
2
- `,e.jsx(t.h1,{id:"screenreadertext",children:"ScreenReaderText"}),`
3
- `,e.jsx(t.p,{children:"The ScreenReaderText component is designed to enhance accessibility by providing text that can be read by screen readers but is not visible to a sighted user."}),`
4
- `,e.jsx(s,{of:a}),`
5
- `,e.jsx(t.h2,{id:"usage",children:"Usage"}),`
6
- `,e.jsx(t.p,{children:"The ScreenReaderText component should be used in conjunction with other visible UI elements to ensure that all users have access to the same information. It is typically used for labeling and providing additional context for form fields, buttons, and other interactive elements on the page."}),`
7
- `,e.jsx(t.h3,{id:"component-composition",children:"Component composition"}),`
8
- `,e.jsx(t.p,{children:"ScreenReaderText may be used to provide accessibility when composing custom components."}),`
9
- `,e.jsxs(t.p,{children:["For example, when communicating the ",e.jsx(t.code,{children:"severity"})," of an Alert:"]}),`
10
- `,e.jsx(c,{code:`
11
- <Alert role={role} severity={severity} variant="banner">
12
- <ScreenReaderText>{severity}:</ScreenReaderText>
13
- {text}
14
- </Alert>
15
- `})]})}function D(n={}){const{wrapper:t}={...r(),...n.components};return t?e.jsx(t,{...n,children:e.jsx(o,{...n})}):o(n)}export{D as default};
@@ -1 +0,0 @@
1
- import{r as s}from"./index-NdkWRN8K.js";import{j as a}from"./jsx-runtime-CnH95YSl.js";import{B as m}from"./Box-CTjIz0-2.js";import{v as n}from"./visuallyHidden-Dan1xhjv.js";const i={...n},d=({ariaHidden:e,children:r,id:o,translate:t})=>a.jsx(m,{"aria-hidden":e,component:"span",id:o,sx:i,translate:t,children:r}),p=s.memo(d);p.displayName="ScreenReaderText";export{p as M};
@@ -1,8 +0,0 @@
1
- import{j as r}from"./jsx-runtime-CnH95YSl.js";import{O as a}from"./OdysseyStorybookThemeDecorator-DmBIIOGu.js";import{M as n}from"./ScreenReaderText-DrkvjfUf.js";import"./index-NdkWRN8K.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./OdysseyThemeProvider-C4N_85M9.js";import"./index-BJTM6NaI.js";import"./OdysseyProvider-oMWLr_-4.js";import"./Box-CTjIz0-2.js";import"./createBox-Cu6fLdzL.js";import"./visuallyHidden-Dan1xhjv.js";const S={component:n,decorators:[a],argTypes:{children:{control:"text"}},args:{children:"This text is visually hidden."}},e={render:function(i){return r.jsxs(r.Fragment,{children:["The following text is visually hidden:",r.jsx(n,{...i})]})}};var o,t,s;e.parameters={...e.parameters,docs:{...(o=e.parameters)==null?void 0:o.docs,source:{originalSource:`{
2
- render: function C(args) {
3
- return <>
4
- The following text is visually hidden:
5
- <ScreenReaderText {...args}></ScreenReaderText>
6
- </>;
7
- }
8
- }`,...(s=(t=e.parameters)==null?void 0:t.docs)==null?void 0:s.source}}};const j=["Default"];export{e as Default,j as __namedExportsOrder,S as default};
@@ -1 +0,0 @@
1
- import{r as e}from"./index-NdkWRN8K.js";import{j as r}from"./jsx-runtime-CnH95YSl.js";import{S as t}from"./OdysseyThemeProvider-C4N_85M9.js";const a=e.forwardRef((o,n)=>r.jsx(t,{fill:"none",ref:n,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...o,children:r.jsx(r.Fragment,{children:r.jsx("path",{clipRule:"evenodd",d:"M10.667 6.667a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-.754 4.231a5.333 5.333 0 1 1 .948-.938l3.61 3.611-.942.943-3.616-3.616Z",fill:"currentColor",fillRule:"evenodd"})})})),l=e.memo(a);l.displayName="SearchIcon";export{l as M};
@@ -1,53 +0,0 @@
1
- import{j as e}from"./jsx-runtime-CnH95YSl.js";import{f as V,w as et,u as O,s as k,e as c}from"./index-BJMTVygn.js";import{O as nt}from"./OdysseyStorybookThemeDecorator-DmBIIOGu.js";import{f as M}from"./fieldComponentPropsMetaData-BqbNLw6V.js";import{a as it,O as at,b as rt,c as st,d as lt,e as z,p as pt}from"./pickerComponentPropsMetadata-DyMkD2Aw.js";import{u as ct,h as S}from"./OdysseyThemeProvider-C4N_85M9.js";import{r as u}from"./index-NdkWRN8K.js";import{j as mt}from"./Typography-C4vClHaZ.js";import{M as v}from"./Settings-Bxzwc53G.js";import{M as dt}from"./Folder-DFjbrJpD.js";import{M as I}from"./Video-t97PFROt.js";import"./index-BJTM6NaI.js";import"./OdysseyProvider-oMWLr_-4.js";import"./useAutocomplete-B3_vLbIK.js";import"./index.esm-C8irYXeq.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-S-YxUaHb.js";import"./Field-QbF6sK2K.js";import"./Box-BK5oZBIO.js";import"./Box-CTjIz0-2.js";import"./createBox-Cu6fLdzL.js";import"./List-BSidosAy.js";import"./ListItem-DB9pwEx3.js";import"./utils-iop7lDec.js";import"./useFormControl-BMISTZuX.js";import"./FormLabel-CjrKvhME.js";import"./useIsFocusVisible-DH0qxT5e.js";import"./isHostComponent-DVu5iVWx.js";import"./ButtonBase-Lbe0_84r.js";import"./TransitionGroupContext-DAL84N7p.js";import"./ScreenReaderText-DrkvjfUf.js";import"./visuallyHidden-Dan1xhjv.js";import"./FormHelperText-DQoZ2-nD.js";import"./FieldHint-Mz3OdL0I.js";import"./useUniqueId-Bsgqe1tm.js";import"./createUniqueId-ByTaVY63.js";import"./inputUtils-Dbi8XkA6.js";import"./InputBase-DSyP23zj.js";import"./ownerWindow-HkKU3E4x.js";import"./ownerDocument-DW-IO8s5.js";import"./debounce-Be36O1Ab.js";import"./Autocomplete-BMfy4j72.js";import"./ArrowDropDown-DddCYTEO.js";import"./createSvgIcon-V-Po-Ssl.js";import"./Close-DJA1l50S.js";import"./Paper-D4wDjY4F.js";import"./Popper-9pd1Yneu.js";import"./popper-ChLFknNm.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./Portal-DK2ELYoG.js";import"./index-B5xazMy1.js";import"./index-DieBXP3Z.js";import"./getReactElementRef-SdO7zWnC.js";import"./resolveComponentProps-D1ztx9lS.js";import"./useControlled-NQulfz4l.js";import"./Chip-M3FRYspe.js";import"./IconButton-CgM2Hv_L.js";import"./ListSubheader--G940pR4.js";import"./Typography-NdqIGwl5.js";/*!
2
- * Copyright (c) 2023-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
- */const E=S("div",{shouldForwardProp:o=>o!=="odysseyDesignTokens"&&o!=="adornmentSize"&&o!=="isTagContainer"})(({adornmentSize:o="small",isTagContainer:n=!1,odysseyDesignTokens:t,position:i="left"})=>({position:"relative",bottom:"1px",alignSelf:"flex-start",width:t.Spacing5,height:t.Spacing5,overflow:"hidden",...i==="left"&&{marginInlineEnd:t.Spacing3},...i==="right"&&{marginInlineStart:t.Spacing3},svg:{width:"100%",height:"auto"},img:{position:"absolute",top:"50%",left:"50%",width:"100%",transform:"translate(-50%, -50%)"},...o==="large"&&!n&&{bottom:0,width:t.Spacing8,height:t.Spacing8},...n&&{bottom:0,alignSelf:"center",width:t.Spacing4,height:"auto",maxHeight:t.Spacing4,marginInlineEnd:t.Spacing2,svg:{display:"flex",width:"100%",height:"auto"}}})),xt=S("div",{shouldForwardProp:o=>o!=="odysseyDesignTokens"})(()=>({display:"flex",justifyContent:"space-between",width:"100%"})),ut=S("div",{shouldForwardProp:o=>o!=="odysseyDesignTokens"})(()=>({display:"flex"})),gt=({adornment:o,adornmentSize:n,odysseyDesignTokens:t})=>typeof o=="string"?e.jsx(E,{adornmentSize:n,odysseyDesignTokens:t,children:e.jsx("img",{alt:"",role:"presentation",src:o})}):e.jsx(E,{adornmentSize:n,odysseyDesignTokens:t,children:o}),Ct=({content:o,size:n,odysseyDesignTokens:t,onClick:i})=>{const r=u.useCallback(a=>{a.stopPropagation(),i()},[i]);return e.jsx(E,{adornmentSize:n,odysseyDesignTokens:t,onClick:r,children:o})},ht=({adornmentSize:o,muiProps:n,odysseyDesignTokens:t,option:i})=>{const{adornment:r,description:a,label:x,metaData:g,extra:l,onClick:p,isInteractive:s=!0}=i,C=u.useCallback(h=>{if(!s){h.preventDefault();return}h.stopPropagation(),p==null||p()},[p,s]),y=u.useMemo(()=>({...n,onClick:s?C:void 0,"aria-disabled":s?void 0:"true",role:"option"}),[n,s,C]);return e.jsx(at,{hasAdornment:!0,muiProps:y,children:e.jsxs(xt,{odysseyDesignTokens:t,children:[e.jsxs(ut,{odysseyDesignTokens:t,children:[e.jsx(gt,{adornment:r,adornmentSize:o,odysseyDesignTokens:t}),e.jsxs("div",{children:[e.jsxs(rt,{odysseyDesignTokens:t,children:[e.jsx(mt,{component:"p",children:x}),e.jsx(st,{description:a,odysseyDesignTokens:t})]}),g&&e.jsx(lt,{metaData:g,odysseyDesignTokens:t})]})]}),l&&e.jsx(Ct,{content:l.content,odysseyDesignTokens:t,onClick:l.onClick,size:l.size||o})]})})},kt=({adornmentSize:o="small",ariaDescribedBy:n,defaultValue:t,errorMessage:i,errorMessageList:r,getIsOptionEqualToValue:a,groupOptionsBy:x,id:g,inputValue:l,isCustomValueAllowed:p,isDisabled:s,isFullWidth:C=!1,isLoading:y,isOptional:h=!1,isReadOnly:F,isVirtualized:R=!1,hint:U,HintLinkComponent:_,label:q,name:N,onBlur:G,onChange:J,onInputChange:K,onFocus:Q,options:X,value:Y,testId:Z,translate:$})=>{const j=ct(),tt=u.useCallback((ot,B)=>e.jsx(ht,{adornmentSize:o,muiProps:ot,odysseyDesignTokens:j,option:B},B.value),[o,j]);return e.jsx(it,{ariaDescribedBy:n,defaultValue:t,errorMessage:i,errorMessageList:r,getIsOptionEqualToValue:a,groupOptionsBy:x,hint:U,HintLinkComponent:_,id:g,inputValue:l,isCustomValueAllowed:p,isDisabled:s,isFullWidth:C,isLoading:y,isOptional:h,isReadOnly:F,isVirtualized:R,label:q,name:N,onBlur:G,onChange:J,onFocus:Q,onInputChange:K,options:X,renderOption:tt,testId:Z,translate:$,value:Y})},W=u.memo(kt);W.displayName="MemoizedSearchDropdown";const m=V(),d=V(),w=[{value:"an",label:"An Option label",adornment:e.jsx(dt,{}),extra:{content:e.jsx(v,{"data-testid":"option1-extra"}),onClick:d},onClick:m},{value:"another",label:"Another Option label",description:"Some optional descriptive text",adornment:e.jsx(v,{}),extra:{content:e.jsx(I,{}),onClick:d},onClick:m},{value:"unselectable",label:"Unselectable Option",description:"Some optional descriptive text",isInteractive:!1,adornment:e.jsx(v,{"data-testid":"unselectable-extra"}),extra:{content:e.jsx(I,{}),onClick:d},onClick:m}],So={component:W,decorators:[nt],tags:["autodocs"],argTypes:{...pt,adornmentSize:{control:"radio",options:z,description:"Choose the size for the leading adornment. 'small' or 'large'",table:{type:{summary:z.join(" | ")}}},hint:M.hint,HintLinkComponent:M.HintLinkComponent},args:{label:"Picker with option adornment label",hint:"Optional hint text for picker",options:w}},b={args:{options:w},play:async({canvasElement:o,step:n})=>{const i=et(o).getByRole("combobox"),r=()=>{m.mockClear(),d.mockClear()};await n("Click on option triggers option onClick",async()=>{r(),await O.click(i);const a=k.getByText("An Option label");await O.click(a),c(m).toBeCalled(),c(d).not.toBeCalled()}),await n("Click on option extra triggers option.extra onClick",async()=>{r();const a=k.getByTestId("option1-extra");await O.click(a),c(m).not.toBeCalled(),c(d).toBeCalled()}),await n("Click on unselectable option not trigger onClick",()=>{r();const a=k.getByText("Unselectable Option");c(a).toHaveStyle("pointer-events: none");const x=k.getByTestId("unselectable-extra");c(x).toHaveStyle("pointer-events: none")})}},f={args:{adornmentSize:"large",options:w}};var A,T,D;b.parameters={...b.parameters,docs:{...(A=b.parameters)==null?void 0:A.docs,source:{originalSource:`{
12
- args: {
13
- options: optionsWithExtra
14
- },
15
- play: async ({
16
- canvasElement,
17
- step
18
- }) => {
19
- const canvas = within(canvasElement);
20
- const comboBoxElement = canvas.getByRole<HTMLInputElement>("combobox");
21
- const clearMocks = () => {
22
- optionOnClick.mockClear();
23
- optionExtraOnClick.mockClear();
24
- };
25
- await step("Click on option triggers option onClick", async () => {
26
- clearMocks();
27
- await userEvent.click(comboBoxElement);
28
- const option = screen.getByText("An Option label");
29
- await userEvent.click(option);
30
- expect(optionOnClick).toBeCalled();
31
- expect(optionExtraOnClick).not.toBeCalled();
32
- });
33
- await step("Click on option extra triggers option.extra onClick", async () => {
34
- clearMocks();
35
- const optionExtra = screen.getByTestId("option1-extra");
36
- await userEvent.click(optionExtra);
37
- expect(optionOnClick).not.toBeCalled();
38
- expect(optionExtraOnClick).toBeCalled();
39
- });
40
- await step("Click on unselectable option not trigger onClick", () => {
41
- clearMocks();
42
- const unselectableOption = screen.getByText("Unselectable Option");
43
- expect(unselectableOption).toHaveStyle("pointer-events: none");
44
- const optionExtra = screen.getByTestId("unselectable-extra");
45
- expect(optionExtra).toHaveStyle("pointer-events: none");
46
- });
47
- }
48
- }`,...(D=(T=b.parameters)==null?void 0:T.docs)==null?void 0:D.source}}};var P,H,L;f.parameters={...f.parameters,docs:{...(P=f.parameters)==null?void 0:P.docs,source:{originalSource:`{
49
- args: {
50
- adornmentSize: "large",
51
- options: optionsWithExtra
52
- }
53
- }`,...(L=(H=f.parameters)==null?void 0:H.docs)==null?void 0:L.source}}};const wo=["SmallAdornmentWithExtra","LargeAdornmentWithExtra"];export{f as LargeAdornmentWithExtra,b as SmallAdornmentWithExtra,wo as __namedExportsOrder,So as default};
@@ -1 +0,0 @@
1
- import{K as B,L as E,h as V,O as w}from"./OdysseyThemeProvider-C4N_85M9.js";import{r as t}from"./index-NdkWRN8K.js";import{M as L}from"./Field-QbF6sK2K.js";import{g as O,u as W}from"./inputUtils-Dbi8XkA6.js";import{j as e}from"./jsx-runtime-CnH95YSl.js";import{I as g}from"./InputBase-DSyP23zj.js";import{I as z}from"./InputAdornment-CVIbzdDI.js";import{M as D}from"./Search-BH45H3v4.js";import{I as K}from"./IconButton-CgM2Hv_L.js";const P=["outline","filled"],N=V("div")({width:"100%"}),q=t.forwardRef(({ariaDescribedBy:C,autoCompleteType:l,defaultValue:d,hasInitialFocus:n,id:k,isDisabled:r=!1,isFullWidth:R=!1,label:T,name:c,onChange:o,onFocus:m,onBlur:u,onClear:a,placeholder:f,tabIndex:h,testId:x,translate:p,value:j,variant:b="outline"},y)=>{const{t:F}=B(),M=t.useCallback(i=>{o==null||o(i)},[o]),S=t.useCallback(()=>{a==null||a()},[a]),v=t.useRef(O({controlledValue:j,uncontrolledValue:d})),s=W({defaultValue:d,value:j,controlState:v.current}),A=t.useCallback(({ariaDescribedBy:i,id:I})=>e.jsx(g,{...s,"aria-describedby":i,autoComplete:l,autoFocus:n,"data-ods-type":"search","data-ods-variant":b,"data-se":x,endAdornment:((s==null?void 0:s.defaultValue)||(s==null?void 0:s.value))&&e.jsx(z,{position:"end",children:e.jsx(K,{"aria-label":F("clear.text"),disabled:r,onClick:S,size:"small",children:e.jsx(E,{})})}),id:I,inputProps:{tabIndex:h},name:c??I,onBlur:u,onChange:M,onFocus:m,placeholder:f,ref:y,startAdornment:e.jsx(z,{position:"start",children:e.jsx(D,{})}),translate:p,type:"search"}),[l,n,s,r,c,u,M,S,m,f,y,F,h,x,p,b]);return e.jsx(N,{children:e.jsx(w,{children:e.jsx(L,{ariaDescribedBy:C,fieldType:"single",hasVisibleLabel:!1,id:k,isDisabled:r,isFullWidth:R,isOptional:!0,label:T,renderFieldComponent:A})})})}),G=t.memo(q);G.displayName="SearchField";export{G as M,P as s};
@@ -1,37 +0,0 @@
1
- import{j as E}from"./jsx-runtime-CnH95YSl.js";import{r as s}from"./index-NdkWRN8K.js";import{O as M}from"./OdysseyStorybookThemeDecorator-DmBIIOGu.js";import{f as e}from"./fieldComponentPropsMetaData-BqbNLw6V.js";import{s as i,M as T}from"./SearchField-vEVEEXjl.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./OdysseyThemeProvider-C4N_85M9.js";import"./index-BJTM6NaI.js";import"./OdysseyProvider-oMWLr_-4.js";import"./Field-QbF6sK2K.js";import"./Box-BK5oZBIO.js";import"./Box-CTjIz0-2.js";import"./createBox-Cu6fLdzL.js";import"./List-BSidosAy.js";import"./ListItem-DB9pwEx3.js";import"./utils-iop7lDec.js";import"./useFormControl-BMISTZuX.js";import"./FormLabel-CjrKvhME.js";import"./useIsFocusVisible-DH0qxT5e.js";import"./isHostComponent-DVu5iVWx.js";import"./ButtonBase-Lbe0_84r.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-S-YxUaHb.js";import"./TransitionGroupContext-DAL84N7p.js";import"./ScreenReaderText-DrkvjfUf.js";import"./visuallyHidden-Dan1xhjv.js";import"./FormHelperText-DQoZ2-nD.js";import"./FieldHint-Mz3OdL0I.js";import"./Typography-C4vClHaZ.js";import"./Typography-NdqIGwl5.js";import"./useUniqueId-Bsgqe1tm.js";import"./createUniqueId-ByTaVY63.js";import"./inputUtils-Dbi8XkA6.js";import"./InputBase-DSyP23zj.js";import"./ownerWindow-HkKU3E4x.js";import"./ownerDocument-DW-IO8s5.js";import"./debounce-Be36O1Ab.js";import"./InputAdornment-CVIbzdDI.js";import"./Search-BH45H3v4.js";import"./IconButton-CgM2Hv_L.js";const Ce={component:T,decorators:[M],tags:["autodocs"],argTypes:{autoCompleteType:{control:"text",description:"This prop helps users to fill forms faster, especially on mobile devices. The name can be confusing, as it's more like an autofill. You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill)",table:{type:{summary:"string"},defaultValue:{summary:void 0}}},defaultValue:{control:"text",description:"The value of the `input` element. Use when the component is not controlled",table:{type:{summary:"string"},defaultValue:{summary:void 0}}},hasInitialFocus:{control:"boolean",description:"If `true`, the component will receive focus automatically",table:{type:{summary:"boolean"}}},isDisabled:e.isDisabled,isFullWidth:e.isFullWidth,id:e.id,label:{control:"text",description:"This label won't show up visually, but it's required for accessibility",table:{type:{summary:"string"}},type:{required:!0,name:"string"}},name:e.name,onBlur:{description:"Callback fired when the `input` element loses focus",table:{type:{summary:"function"}}},onClear:{description:"Callback fired when the clear button is pressed",table:{type:{summary:"function"}}},onChange:{description:"Callback fired when the value is changed",table:{type:{summary:"function"}}},onFocus:{description:"Callback fired when the `input` element gets focus",table:{type:{summary:"function"}}},placeholder:{control:"text",description:"The short hint displayed in the `input` before the user enters a value",table:{type:{summary:"string"}}},value:{control:"text",description:"The value of the `input` element. Use when the component is controlled",table:{type:{summary:"string"},defaultValue:{summary:void 0}}},variant:{options:i,control:{type:"radio"},description:"The color and style of the button",table:{type:{summary:i.join(" | ")},defaultValue:{summary:"outline"}},type:{required:!0,name:"other",value:"radio"}}},args:{label:"Search",placeholder:"Search planets"}},t={args:{defaultValue:""}},o={args:{defaultValue:"",variant:"filled"}},r={args:{isDisabled:!0}},a={args:{isFullWidth:!0}},n={parameters:{docs:{description:{story:"When the component is controlled, the parent component is responsible for managing the state of `SearchField`. `onChange` should be used to listen for component changes and to update the values in the `value` prop."}}},args:{defaultValue:void 0},render:function(w){const[x,l]=s.useState("Jupiter"),k=s.useCallback(W=>l(W.target.value),[]),D=s.useCallback(()=>{l("")},[]);return E.jsx(T,{...w,onChange:k,onClear:D,value:x})}};var u,p,m;t.parameters={...t.parameters,docs:{...(u=t.parameters)==null?void 0:u.docs,source:{originalSource:`{
2
- args: {
3
- defaultValue: ""
4
- }
5
- }`,...(m=(p=t.parameters)==null?void 0:p.docs)==null?void 0:m.source}}};var c,d,h;o.parameters={...o.parameters,docs:{...(c=o.parameters)==null?void 0:c.docs,source:{originalSource:`{
6
- args: {
7
- defaultValue: "",
8
- variant: "filled"
9
- }
10
- }`,...(h=(d=o.parameters)==null?void 0:d.docs)==null?void 0:h.source}}};var f,g,b;r.parameters={...r.parameters,docs:{...(f=r.parameters)==null?void 0:f.docs,source:{originalSource:`{
11
- args: {
12
- isDisabled: true
13
- }
14
- }`,...(b=(g=r.parameters)==null?void 0:g.docs)==null?void 0:b.source}}};var y,C,v;a.parameters={...a.parameters,docs:{...(y=a.parameters)==null?void 0:y.docs,source:{originalSource:`{
15
- args: {
16
- isFullWidth: true
17
- }
18
- }`,...(v=(C=a.parameters)==null?void 0:C.docs)==null?void 0:v.source}}};var V,S,F;n.parameters={...n.parameters,docs:{...(V=n.parameters)==null?void 0:V.docs,source:{originalSource:`{
19
- parameters: {
20
- docs: {
21
- description: {
22
- story: "When the component is controlled, the parent component is responsible for managing the state of \`SearchField\`. \`onChange\` should be used to listen for component changes and to update the values in the \`value\` prop."
23
- }
24
- }
25
- },
26
- args: {
27
- defaultValue: undefined
28
- },
29
- render: function C(props) {
30
- const [constrolledValue, setControlledValue] = useState("Jupiter");
31
- const onChange = useCallback((event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => setControlledValue(event.target.value), []);
32
- const onClear = useCallback(() => {
33
- setControlledValue("");
34
- }, []);
35
- return <SearchField {...props} onChange={onChange} onClear={onClear} value={constrolledValue} />;
36
- }
37
- }`,...(F=(S=n.parameters)==null?void 0:S.docs)==null?void 0:F.source}}};const ve=["Default","FilledVariant","Disabled","FullWidth","ControlledSearch"];export{n as ControlledSearch,t as Default,r as Disabled,o as FilledVariant,a as FullWidth,ve as __namedExportsOrder,Ce as default};
@@ -1,15 +0,0 @@
1
- import{u as X,h as C,L as H,M as Y}from"./OdysseyThemeProvider-C4N_85M9.js";import{r}from"./index-NdkWRN8K.js";import{M as Z}from"./Field-QbF6sK2K.js";import{g as _,u as ee,C as ne}from"./inputUtils-Dbi8XkA6.js";import{j as t}from"./jsx-runtime-CnH95YSl.js";import{C as te}from"./Chip-M3FRYspe.js";import{L as se}from"./ListSubheader--G940pR4.js";import{M as re}from"./MenuItem-D69h7bYZ.js";import{C as ae}from"./Checkbox-BlSNHylx.js";import{L as le}from"./ListItem-DB9pwEx3.js";import{S as ie}from"./Select-Dg6qtAos.js";import{B as oe}from"./Box-CTjIz0-2.js";/*!
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
- */const ce=(...s)=>{const c="-";return s.join(c).replace(/\W+/g,c).toLowerCase()},ue=C.div`
12
- position: relative;
13
- width: 100%;
14
- display: flex;
15
- `,de=C("div",{shouldForwardProp:s=>s!=="odysseyDesignTokens"})(({odysseyDesignTokens:s})=>({alignItems:"center",display:"flex",insetBlockEnd:0,insetBlockStart:0,insetInlineEnd:"25px",insetInlineStart:"4px",marginInlineStart:s.BorderWidthMain,opacity:1,pointerEvents:"none",position:"absolute"})),me=C(H,{shouldForwardProp:s=>s!=="odysseyDesignTokens"})(({odysseyDesignTokens:s})=>({fontSize:"1em",marginBlockEnd:"-1px",marginInlineEnd:`-${s.Spacing1}`,marginInlineStart:s.Spacing2})),pe=C(oe,{shouldForwardProp:s=>s!=="odysseyDesignTokens"&&s!=="isInteractive"&&s!=="isReadOnly"})(({isInteractive:s,isReadOnly:c,odysseyDesignTokens:p})=>({display:"flex",flexWrap:"wrap",gap:p.Spacing1,marginBlock:`-${p.Spacing2}`,marginInlineEnd:p.Spacing1,minHeight:p.Spacing6,opacity:s||c?1:0,pointerEvents:"none"})),{CONTROLLED:x}=ne,fe=({ariaDescribedBy:s,defaultValue:c,errorMessage:p,errorMessageList:N,hasMultipleChoices:I,hint:W,HintLinkComponent:P,id:$,inputRef:K,isDisabled:j=!1,isFullWidth:q=!1,isMultiSelect:M,isOptional:G=!1,isReadOnly:u=!1,label:J,name:b,onBlur:k,onChange:h,onFocus:E,options:L,testId:w,translate:z,value:f})=>{const Q=r.useRef(null),a=r.useMemo(()=>I===void 0?M:I,[I,M]),d=r.useRef(_({controlledValue:f,uncontrolledValue:c})),[l,F]=r.useState(d.current===x?f:c),v=r.useRef(null),g=X();r.useImperativeHandle(K,()=>({focus:()=>{var e;(e=v.current)==null||e.focus()}}),[]),r.useEffect(()=>{d.current===x&&F(f)},[f]);const A=ee({defaultValue:c,value:f,controlState:d.current}),y=r.useCallback((e,o)=>{if(u)e.preventDefault();else{const{target:{value:n}}=e;d.current!==x&&F(typeof n=="string"&&a?n.split(","):n),h==null||h(e,o)}},[a,h,u]),[B,D]=r.useMemo(()=>{const e=L.map(n=>{if(typeof n=="object"){const m=(n==null?void 0:n.value)===""?n.value:n.value||n.text;return{text:n.text,value:m,type:n.type==="heading"?"heading":"option",lang:n.language}}return{text:n,value:n,type:"option"}}),o=new Map(e.map(n=>[n.value,n]));return[e,o]},[L]),V=r.useCallback(e=>{if(Array.isArray(l)){const n={target:{value:l.filter(m=>m!==e)}};y(n,null)}},[l,y]),S=r.useCallback(({isInteractive:e,isReadOnly:o})=>{const n=i=>i.stopPropagation(),m=!e&&!o&&d.current===x&&a;return Array.isArray(l)&&t.jsx(pe,{isInteractive:e,isReadOnly:o,odysseyDesignTokens:g,children:l.map(i=>{var O;return(i==null?void 0:i.length)>0&&t.jsx(te,{deleteIcon:t.jsx(H,{onMouseDown:n,sx:{pointerEvents:"auto"}}),label:t.jsxs(t.Fragment,{children:[(O=D.get(i))==null?void 0:O.text,m&&t.jsx(me,{odysseyDesignTokens:g})]}),onDelete:e&&d.current===x?()=>V(i):void 0,tabIndex:-1},i)})})},[d,a,l,g,V,D]),R=r.useMemo(()=>B.map((e,o)=>{if(e.type==="heading")return t.jsxs(se,{children:[" ",e.text," "]},e.text);const n=a?l==null?void 0:l.includes(e.value):l===e.value;return t.jsxs(re,{"data-empty":!e.text,lang:e.lang,selected:n,value:e.value,children:[a&&t.jsx(ae,{checked:n}),e.text,!a&&l===e.value&&t.jsx(le,{children:t.jsx(Y,{})})]},ce(e.text,o.toString()))}),[a,B,l]),T=r.useCallback(e=>Array.isArray(e)&&t.jsx(S,{isInteractive:!1}),[S]),U=r.useCallback(({ariaDescribedBy:e,errorMessageElementId:o,id:n,labelElementId:m})=>t.jsxs(ue,{children:[t.jsx(ie,{...A,"aria-describedby":e,"aria-errormessage":o,displayEmpty:!0,id:n,inputProps:{"data-se":w,"aria-disabled":j||u,readOnly:u},inputRef:i=>{v.current!==i&&(v.current=i),Q.current=i},labelId:m,MenuProps:{sx:{".MuiPaper-root":{maxHeight:"50vh"}}},multiple:a,name:b??n,onBlur:k,onChange:y,onFocus:E,renderValue:a?T:void 0,translate:z,children:R}),a&&t.jsx(t.Fragment,{children:t.jsx(de,{odysseyDesignTokens:g,children:t.jsx(S,{isInteractive:!u,isReadOnly:u})})})]}),[S,A,a,j,u,b,g,k,y,E,R,T,w,z]);return t.jsx(Z,{ariaDescribedBy:s,errorMessage:p,errorMessageList:N,fieldType:"single",hasVisibleLabel:!0,hint:W,HintLinkComponent:P,id:$,isDisabled:j,isFullWidth:q,isOptional:G,label:J,renderFieldComponent:U})},ge=r.memo(fe);ge.displayName="Select";export{ge as M};
@@ -1 +0,0 @@
1
- import{c as se,_ as W,b as s,a9 as pe,s as h,f as q,r as _,W as We,V as Ee,d as ce,e as le,Q as ot,A as nt,aG as rt}from"./OdysseyThemeProvider-C4N_85M9.js";import{r as p}from"./index-NdkWRN8K.js";import{M as st}from"./Menu-C2dEwThV.js";import{j as c}from"./jsx-runtime-CnH95YSl.js";import{i as lt}from"./utils-iop7lDec.js";import{u as we}from"./useControlled-NQulfz4l.js";import{u as Le}from"./useIsFocusVisible-DH0qxT5e.js";import{o as it}from"./ownerDocument-DW-IO8s5.js";import{u as je,f as Ue}from"./useFormControl-BMISTZuX.js";import{g as at,f as U,a as dt,i as K,b as ut,o as M,A as pt}from"./ArrowDropDown-DddCYTEO.js";import{g as ct}from"./getReactElementRef-SdO7zWnC.js";import{I as fe,a as be,r as me,b as ve,i as ge}from"./InputBase-DSyP23zj.js";const ft=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],bt=e=>{const{classes:t,disableUnderline:o}=e,l=q({root:["root",!o&&"underline"],input:["input"]},at,t);return s({},t,l)},mt=h(be,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...me(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var o;const r=e.palette.mode==="light",l=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",d=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return s({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:d,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${U.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${U.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(o=(e.vars||e).palette[t.color||"primary"])==null?void 0:o.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${U.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${U.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:l}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${U.disabled}, .${U.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${U.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&s({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),vt=h(ve,{name:"MuiFilledInput",slot:"Input",overridesResolver:ge})(({theme:e,ownerState:t})=>s({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),_e=p.forwardRef(function(t,o){var r,l,a,d;const i=se({props:t,name:"MuiFilledInput"}),{components:C={},componentsProps:I,fullWidth:v=!1,inputComponent:$="input",multiline:b=!1,slotProps:y,slots:R={},type:P="text"}=i,F=W(i,ft),S=s({},i,{fullWidth:v,inputComponent:$,multiline:b,type:P}),x=bt(i),O={root:{ownerState:S},input:{ownerState:S}},f=y??I?pe(O,y??I):O,w=(r=(l=R.root)!=null?l:C.Root)!=null?r:mt,k=(a=(d=R.input)!=null?d:C.Input)!=null?a:vt;return c.jsx(fe,s({slots:{root:w,input:k},componentsProps:f,fullWidth:v,inputComponent:$,multiline:b,ref:o,type:P},F,{classes:x}))});_e.muiName="Input";const gt=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],ht=e=>{const{classes:t,disableUnderline:o}=e,l=q({root:["root",!o&&"underline"],input:["input"]},dt,t);return s({},t,l)},Ct=h(be,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...me(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),s({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${K.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${K.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${K.disabled}, .${K.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${K.disabled}:before`]:{borderBottomStyle:"dotted"}})}),xt=h(ve,{name:"MuiInput",slot:"Input",overridesResolver:ge})({}),Ae=p.forwardRef(function(t,o){var r,l,a,d;const i=se({props:t,name:"MuiInput"}),{disableUnderline:C,components:I={},componentsProps:v,fullWidth:$=!1,inputComponent:b="input",multiline:y=!1,slotProps:R,slots:P={},type:F="text"}=i,S=W(i,gt),x=ht(i),f={root:{ownerState:{disableUnderline:C}}},w=R??v?pe(R??v,f):f,k=(r=(l=P.root)!=null?l:I.Root)!=null?r:Ct,B=(a=(d=P.input)!=null?d:I.Input)!=null?a:xt;return c.jsx(fe,s({slots:{root:k,input:B},slotProps:w,fullWidth:$,inputComponent:b,multiline:y,ref:o,type:F},S,{classes:x}))});Ae.muiName="Input";function It(e){return Ee("MuiNativeSelect",e)}const he=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),yt=["className","disabled","error","IconComponent","inputRef","variant"],Rt=e=>{const{classes:t,variant:o,disabled:r,multiple:l,open:a,error:d}=e,i={select:["select",o,r&&"disabled",l&&"multiple",d&&"error"],icon:["icon",`icon${le(o)}`,a&&"iconOpen",r&&"disabled"]};return q(i,It,t)},De=({ownerState:e,theme:t})=>s({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":s({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${he.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),St=h("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:_,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.select,t[o.variant],o.error&&t.error,{[`&.${he.multiple}`]:t.multiple}]}})(De),Te=({ownerState:e,theme:t})=>s({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${he.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),$t=h("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${le(o.variant)}`],o.open&&t.iconOpen]}})(Te),Ot=p.forwardRef(function(t,o){const{className:r,disabled:l,error:a,IconComponent:d,inputRef:i,variant:C="standard"}=t,I=W(t,yt),v=s({},t,{disabled:l,variant:C,error:a}),$=Rt(v);return c.jsxs(p.Fragment,{children:[c.jsx(St,s({ownerState:v,className:ce($.select,r),disabled:l,ref:i||o},I)),t.multiple?null:c.jsx($t,{as:d,ownerState:v,className:$.icon})]})});var Ne;const Pt=["children","classes","className","label","notched"],kt=h("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:_})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Ft=h("legend",{name:"MuiNotchedOutlined",shouldForwardProp:_})(({ownerState:e,theme:t})=>s({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&s({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function wt(e){const{className:t,label:o,notched:r}=e,l=W(e,Pt),a=o!=null&&o!=="",d=s({},e,{notched:r,withLabel:a});return c.jsx(kt,s({"aria-hidden":!0,className:t,ownerState:d},l,{children:c.jsx(Ft,{ownerState:d,children:a?c.jsx("span",{children:o}):Ne||(Ne=c.jsx("span",{className:"notranslate",children:"​"}))})}))}const Nt=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Bt=e=>{const{classes:t}=e,r=q({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ut,t);return s({},t,r)},Mt=h(be,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:me})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return s({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${M.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${M.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}},[`&.${M.focused} .${M.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${M.error} .${M.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${M.disabled} .${M.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&s({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Wt=h(wt,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Et=h(ve,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ge})(({theme:e,ownerState:t})=>s({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),ze=p.forwardRef(function(t,o){var r,l,a,d,i;const C=se({props:t,name:"MuiOutlinedInput"}),{components:I={},fullWidth:v=!1,inputComponent:$="input",label:b,multiline:y=!1,notched:R,slots:P={},type:F="text"}=C,S=W(C,Nt),x=Bt(C),O=je(),f=Ue({props:C,muiFormControl:O,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w=s({},C,{color:f.color||"primary",disabled:f.disabled,error:f.error,focused:f.focused,formControl:O,fullWidth:v,hiddenLabel:f.hiddenLabel,multiline:y,size:f.size,type:F}),k=(r=(l=P.root)!=null?l:I.Root)!=null?r:Mt,B=(a=(d=P.input)!=null?d:I.Input)!=null?a:Et;return c.jsx(fe,s({slots:{root:k,input:B},renderSuffix:E=>c.jsx(Wt,{ownerState:w,className:x.notchedOutline,label:b!=null&&b!==""&&f.required?i||(i=c.jsxs(p.Fragment,{children:[b," ","*"]})):b,notched:typeof R<"u"?R:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:v,inputComponent:$,multiline:y,ref:o,type:F},S,{classes:s({},x,{notchedOutline:null})}))});ze.muiName="Input";function Lt(e){return Ee("MuiSelect",e)}const X=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Be;const jt=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Ut=h("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`&.${X.select}`]:t.select},{[`&.${X.select}`]:t[o.variant]},{[`&.${X.error}`]:t.error},{[`&.${X.multiple}`]:t.multiple}]}})(De,{[`&.${X.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),_t=h("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${le(o.variant)}`],o.open&&t.iconOpen]}})(Te),At=h("input",{shouldForwardProp:e=>rt(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Me(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Dt(e){return e==null||typeof e=="string"&&!e.trim()}const Tt=e=>{const{classes:t,variant:o,disabled:r,multiple:l,open:a,error:d}=e,i={select:["select",o,r&&"disabled",l&&"multiple",d&&"error"],icon:["icon",`icon${le(o)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return q(i,Lt,t)},zt=p.forwardRef(function(t,o){var r;const{"aria-describedby":l,"aria-label":a,autoFocus:d,autoWidth:i,children:C,className:I,defaultOpen:v,defaultValue:$,disabled:b,displayEmpty:y,error:R=!1,IconComponent:P,inputRef:F,labelId:S,MenuProps:x={},multiple:O,name:f,onBlur:w,onChange:k,onClose:B,onFocus:E,onOpen:H,open:G,readOnly:Q,renderValue:V,SelectDisplayProps:N={},tabIndex:L,value:J,variant:Y="standard"}=t,A=W(t,jt),[m,xe]=we({controlled:J,default:$,name:"Select"}),[Ie,Ve]=we({controlled:G,default:v,name:"Select"}),ye=p.useRef(null),j=p.useRef(null),[D,Ke]=p.useState(null),{current:ie}=p.useRef(G!=null),[Xe,Re]=p.useState(),qe=Le(o,F),He=p.useCallback(n=>{j.current=n,n&&Ke(n)},[]),Z=D==null?void 0:D.parentNode;p.useImperativeHandle(qe,()=>({focus:()=>{j.current.focus()},node:ye.current,value:m}),[m]),p.useEffect(()=>{v&&Ie&&D&&!ie&&(Re(i?null:Z.clientWidth),j.current.focus())},[D,i]),p.useEffect(()=>{d&&j.current.focus()},[d]),p.useEffect(()=>{if(!S)return;const n=it(j.current).getElementById(S);if(n){const u=()=>{getSelection().isCollapsed&&j.current.focus()};return n.addEventListener("click",u),()=>{n.removeEventListener("click",u)}}},[S]);const ee=(n,u)=>{n?H&&H(u):B&&B(u),ie||(Re(i?null:Z.clientWidth),Ve(n))},Ge=n=>{n.button===0&&(n.preventDefault(),j.current.focus(),ee(!0,n))},Qe=n=>{ee(!1,n)},Se=p.Children.toArray(C),Je=n=>{const u=Se.find(g=>g.props.value===n.target.value);u!==void 0&&(xe(u.props.value),k&&k(n,u))},Ye=n=>u=>{let g;if(u.currentTarget.hasAttribute("tabindex")){if(O){g=Array.isArray(m)?m.slice():[];const z=m.indexOf(n.props.value);z===-1?g.push(n.props.value):g.splice(z,1)}else g=n.props.value;if(n.props.onClick&&n.props.onClick(u),m!==g&&(xe(g),k)){const z=u.nativeEvent||u,Fe=new z.constructor(z.type,z);Object.defineProperty(Fe,"target",{writable:!0,value:{value:g,name:f}}),k(Fe,n)}O||ee(!1,u)}},Ze=n=>{Q||[" ","ArrowUp","ArrowDown","Enter"].indexOf(n.key)!==-1&&(n.preventDefault(),ee(!0,n))},te=D!==null&&Ie,et=n=>{!te&&w&&(Object.defineProperty(n,"target",{writable:!0,value:{value:m,name:f}}),w(n))};delete A["aria-invalid"];let T,$e;const oe=[];let ne=!1;(lt({value:m})||y)&&(V?T=V(m):ne=!0);const tt=Se.map(n=>{if(!p.isValidElement(n))return null;let u;if(O){if(!Array.isArray(m))throw new Error(ot(2));u=m.some(g=>Me(g,n.props.value)),u&&ne&&oe.push(n.props.children)}else u=Me(m,n.props.value),u&&ne&&($e=n.props.children);return p.cloneElement(n,{"aria-selected":u?"true":"false",onClick:Ye(n),onKeyUp:g=>{g.key===" "&&g.preventDefault(),n.props.onKeyUp&&n.props.onKeyUp(g)},role:"option",selected:u,value:void 0,"data-value":n.props.value})});ne&&(O?oe.length===0?T=null:T=oe.reduce((n,u,g)=>(n.push(u),g<oe.length-1&&n.push(", "),n),[]):T=$e);let Oe=Xe;!i&&ie&&D&&(Oe=Z.clientWidth);let ae;typeof L<"u"?ae=L:ae=b?null:0;const Pe=N.id||(f?`mui-component-select-${f}`:void 0),re=s({},t,{variant:Y,value:m,open:te,error:R}),de=Tt(re),ue=s({},x.PaperProps,(r=x.slotProps)==null?void 0:r.paper),ke=nt();return c.jsxs(p.Fragment,{children:[c.jsx(Ut,s({ref:He,tabIndex:ae,role:"combobox","aria-controls":ke,"aria-disabled":b?"true":void 0,"aria-expanded":te?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[S,Pe].filter(Boolean).join(" ")||void 0,"aria-describedby":l,onKeyDown:Ze,onMouseDown:b||Q?null:Ge,onBlur:et,onFocus:E},N,{ownerState:re,className:ce(N.className,de.select,I),id:Pe,children:Dt(T)?Be||(Be=c.jsx("span",{className:"notranslate",children:"​"})):T})),c.jsx(At,s({"aria-invalid":R,value:Array.isArray(m)?m.join(","):m,name:f,ref:ye,"aria-hidden":!0,onChange:Je,tabIndex:-1,disabled:b,className:de.nativeInput,autoFocus:d,ownerState:re},A)),c.jsx(_t,{as:P,className:de.icon,ownerState:re}),c.jsx(st,s({id:`menu-${f||""}`,anchorEl:Z,open:te,onClose:Qe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},x,{MenuListProps:s({"aria-labelledby":S,role:"listbox","aria-multiselectable":O?"true":void 0,disableListWrap:!0,id:ke},x.MenuListProps),slotProps:s({},x.slotProps,{paper:s({},ue,{style:s({minWidth:Oe},ue!=null?ue.style:null)})}),children:tt}))]})}),Vt=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Kt=["root"],Xt=e=>{const{classes:t}=e;return t},Ce={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>_(e)&&e!=="variant",slot:"Root"},qt=h(Ae,Ce)(""),Ht=h(ze,Ce)(""),Gt=h(_e,Ce)(""),Qt=p.forwardRef(function(t,o){const r=se({name:"MuiSelect",props:t}),{autoWidth:l=!1,children:a,classes:d={},className:i,defaultOpen:C=!1,displayEmpty:I=!1,IconComponent:v=pt,id:$,input:b,inputProps:y,label:R,labelId:P,MenuProps:F,multiple:S=!1,native:x=!1,onClose:O,onOpen:f,open:w,renderValue:k,SelectDisplayProps:B,variant:E="outlined"}=r,H=W(r,Vt),G=x?Ot:zt,Q=je(),V=Ue({props:r,muiFormControl:Q,states:["variant","error"]}),N=V.variant||E,L=s({},r,{variant:N,classes:d}),J=Xt(L),Y=W(J,Kt),A=b||{standard:c.jsx(qt,{ownerState:L}),outlined:c.jsx(Ht,{label:R,ownerState:L}),filled:c.jsx(Gt,{ownerState:L})}[N],m=Le(o,ct(A));return c.jsx(p.Fragment,{children:p.cloneElement(A,s({inputComponent:G,inputProps:s({children:a,error:V.error,IconComponent:v,variant:N,type:void 0,multiple:S},x?{id:$}:{autoWidth:l,defaultOpen:C,displayEmpty:I,labelId:P,MenuProps:F,onClose:O,onOpen:f,open:w,renderValue:k,SelectDisplayProps:s({id:$},B)},y,{classes:y?pe(Y,y.classes):Y},b?b.props.inputProps:{})},(S&&x||I)&&N==="outlined"?{notched:!0}:{},{ref:m,className:ce(A.props.className,i,J.root)},!b&&{variant:N},H))})});Qt.muiName="Select";export{_e as F,Ae as I,ze as O,Qt as S};