@okta/odyssey-react-mui 1.20.0 → 1.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (383) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/dist/DataTable/DataTable.js +101 -63
  3. package/dist/DataTable/DataTable.js.map +1 -1
  4. package/dist/Pagination/Pagination.js +29 -20
  5. package/dist/Pagination/Pagination.js.map +1 -1
  6. package/dist/Pagination/usePagination.js +13 -22
  7. package/dist/Pagination/usePagination.js.map +1 -1
  8. package/dist/assertEnv.js +1 -1
  9. package/dist/index.scss +1 -1
  10. package/dist/labs/DataComponents/DataStack.js +6 -0
  11. package/dist/labs/DataComponents/DataStack.js.map +1 -1
  12. package/dist/labs/DataComponents/DataTable.js +6 -0
  13. package/dist/labs/DataComponents/DataTable.js.map +1 -1
  14. package/dist/labs/DataComponents/DataView.js +15 -1
  15. package/dist/labs/DataComponents/DataView.js.map +1 -1
  16. package/dist/labs/DataComponents/TableContent.js +49 -3
  17. package/dist/labs/DataComponents/TableContent.js.map +1 -1
  18. package/dist/labs/DataComponents/TableSettings.js +28 -38
  19. package/dist/labs/DataComponents/TableSettings.js.map +1 -1
  20. package/dist/labs/DataComponents/componentTypes.js.map +1 -1
  21. package/dist/labs/DataComponents/constants.js.map +1 -1
  22. package/dist/labs/DataComponents/tableConstants.js +0 -19
  23. package/dist/labs/DataComponents/tableConstants.js.map +1 -1
  24. package/dist/labs/DataComponents/useFilterConversion.js +8 -15
  25. package/dist/labs/DataComponents/useFilterConversion.js.map +1 -1
  26. package/dist/labs/DateField.js +97 -10
  27. package/dist/labs/DateField.js.map +1 -1
  28. package/dist/labs/DatePicker.js +113 -51
  29. package/dist/labs/DatePicker.js.map +1 -1
  30. package/dist/labs/TimeZonePicker.js +37 -0
  31. package/dist/labs/TimeZonePicker.js.map +1 -0
  32. package/dist/labs/TopNav.js +280 -0
  33. package/dist/labs/TopNav.js.map +1 -0
  34. package/dist/labs/datePickerTheme.js +8 -5
  35. package/dist/labs/datePickerTheme.js.map +1 -1
  36. package/dist/labs/index.js +1 -0
  37. package/dist/labs/index.js.map +1 -1
  38. package/dist/labs/{useDatePickerTranslations.js → useDateFieldsTranslations.js} +2 -2
  39. package/dist/labs/{useDatePickerTranslations.js.map → useDateFieldsTranslations.js.map} +1 -1
  40. package/dist/labs/useOdysseyDateFields.js +101 -0
  41. package/dist/labs/useOdysseyDateFields.js.map +1 -0
  42. package/dist/properties/ts/odyssey-react-mui.js +3 -0
  43. package/dist/properties/ts/odyssey-react-mui.js.map +1 -1
  44. package/dist/properties/ts/odyssey-react-mui_ok_PL.js +3 -1
  45. package/dist/properties/ts/odyssey-react-mui_ok_PL.js.map +1 -1
  46. package/dist/properties/ts/odyssey-react-mui_ok_SK.js +2 -0
  47. package/dist/properties/ts/odyssey-react-mui_ok_SK.js.map +1 -1
  48. package/dist/src/Autocomplete.d.ts +2 -1
  49. package/dist/src/Autocomplete.d.ts.map +1 -1
  50. package/dist/src/Badge.d.ts +0 -1
  51. package/dist/src/Badge.d.ts.map +1 -1
  52. package/dist/src/Banner.d.ts +0 -1
  53. package/dist/src/Banner.d.ts.map +1 -1
  54. package/dist/src/ButtonContext.d.ts +0 -1
  55. package/dist/src/ButtonContext.d.ts.map +1 -1
  56. package/dist/src/Checkbox.d.ts +0 -1
  57. package/dist/src/Checkbox.d.ts.map +1 -1
  58. package/dist/src/CircularProgress.d.ts +0 -1
  59. package/dist/src/CircularProgress.d.ts.map +1 -1
  60. package/dist/src/DataTable/DataTable.d.ts +14 -1
  61. package/dist/src/DataTable/DataTable.d.ts.map +1 -1
  62. package/dist/src/DataTable/useRowReordering.d.ts.map +1 -1
  63. package/dist/src/ErrorMessageList.d.ts +0 -1
  64. package/dist/src/ErrorMessageList.d.ts.map +1 -1
  65. package/dist/src/Field.d.ts.map +1 -1
  66. package/dist/src/FieldError.d.ts +0 -1
  67. package/dist/src/FieldError.d.ts.map +1 -1
  68. package/dist/src/FieldHint.d.ts +0 -1
  69. package/dist/src/FieldHint.d.ts.map +1 -1
  70. package/dist/src/FieldLabel.d.ts +0 -1
  71. package/dist/src/FieldLabel.d.ts.map +1 -1
  72. package/dist/src/FieldsetContext.d.ts +0 -1
  73. package/dist/src/FieldsetContext.d.ts.map +1 -1
  74. package/dist/src/HintLink.d.ts +0 -1
  75. package/dist/src/HintLink.d.ts.map +1 -1
  76. package/dist/src/MuiPropsContext.d.ts +0 -1
  77. package/dist/src/MuiPropsContext.d.ts.map +1 -1
  78. package/dist/src/NativeSelect.d.ts +4 -4
  79. package/dist/src/NativeSelect.d.ts.map +1 -1
  80. package/dist/src/OdysseyDesignTokensContext.d.ts +0 -1
  81. package/dist/src/OdysseyDesignTokensContext.d.ts.map +1 -1
  82. package/dist/src/OdysseyProvider.d.ts +2 -1
  83. package/dist/src/OdysseyProvider.d.ts.map +1 -1
  84. package/dist/src/OdysseyTranslationProvider.d.ts +1 -1
  85. package/dist/src/OdysseyTranslationProvider.d.ts.map +1 -1
  86. package/dist/src/Pagination/Pagination.d.ts +41 -26
  87. package/dist/src/Pagination/Pagination.d.ts.map +1 -1
  88. package/dist/src/Pagination/usePagination.d.ts +2 -1
  89. package/dist/src/Pagination/usePagination.d.ts.map +1 -1
  90. package/dist/src/PasswordField.d.ts +10 -10
  91. package/dist/src/PasswordField.d.ts.map +1 -1
  92. package/dist/src/Radio.d.ts +0 -1
  93. package/dist/src/Radio.d.ts.map +1 -1
  94. package/dist/src/SearchField.d.ts +11 -11
  95. package/dist/src/SearchField.d.ts.map +1 -1
  96. package/dist/src/Select.d.ts +0 -1
  97. package/dist/src/Select.d.ts.map +1 -1
  98. package/dist/src/Status.d.ts +0 -1
  99. package/dist/src/Status.d.ts.map +1 -1
  100. package/dist/src/Tabs.d.ts.map +1 -1
  101. package/dist/src/TagListContext.d.ts +0 -1
  102. package/dist/src/TagListContext.d.ts.map +1 -1
  103. package/dist/src/TextField.d.ts +12 -12
  104. package/dist/src/TextField.d.ts.map +1 -1
  105. package/dist/src/Toast.d.ts +0 -1
  106. package/dist/src/Toast.d.ts.map +1 -1
  107. package/dist/src/icons.generated/Add.d.ts +0 -1
  108. package/dist/src/icons.generated/Add.d.ts.map +1 -1
  109. package/dist/src/icons.generated/AddCircle.d.ts +0 -1
  110. package/dist/src/icons.generated/AddCircle.d.ts.map +1 -1
  111. package/dist/src/icons.generated/Apps.d.ts +0 -1
  112. package/dist/src/icons.generated/Apps.d.ts.map +1 -1
  113. package/dist/src/icons.generated/ArrowBottom.d.ts +0 -1
  114. package/dist/src/icons.generated/ArrowBottom.d.ts.map +1 -1
  115. package/dist/src/icons.generated/ArrowDown.d.ts +0 -1
  116. package/dist/src/icons.generated/ArrowDown.d.ts.map +1 -1
  117. package/dist/src/icons.generated/ArrowLeft.d.ts +0 -1
  118. package/dist/src/icons.generated/ArrowLeft.d.ts.map +1 -1
  119. package/dist/src/icons.generated/ArrowLowerLeft.d.ts +0 -1
  120. package/dist/src/icons.generated/ArrowLowerLeft.d.ts.map +1 -1
  121. package/dist/src/icons.generated/ArrowLowerRight.d.ts +0 -1
  122. package/dist/src/icons.generated/ArrowLowerRight.d.ts.map +1 -1
  123. package/dist/src/icons.generated/ArrowRight.d.ts +0 -1
  124. package/dist/src/icons.generated/ArrowRight.d.ts.map +1 -1
  125. package/dist/src/icons.generated/ArrowTop.d.ts +0 -1
  126. package/dist/src/icons.generated/ArrowTop.d.ts.map +1 -1
  127. package/dist/src/icons.generated/ArrowUnsorted.d.ts +0 -1
  128. package/dist/src/icons.generated/ArrowUnsorted.d.ts.map +1 -1
  129. package/dist/src/icons.generated/ArrowUp.d.ts +0 -1
  130. package/dist/src/icons.generated/ArrowUp.d.ts.map +1 -1
  131. package/dist/src/icons.generated/ArrowUpperLeft.d.ts +0 -1
  132. package/dist/src/icons.generated/ArrowUpperLeft.d.ts.map +1 -1
  133. package/dist/src/icons.generated/ArrowUpperRight.d.ts +0 -1
  134. package/dist/src/icons.generated/ArrowUpperRight.d.ts.map +1 -1
  135. package/dist/src/icons.generated/Bug.d.ts +0 -1
  136. package/dist/src/icons.generated/Bug.d.ts.map +1 -1
  137. package/dist/src/icons.generated/Calendar.d.ts +0 -1
  138. package/dist/src/icons.generated/Calendar.d.ts.map +1 -1
  139. package/dist/src/icons.generated/Call.d.ts +0 -1
  140. package/dist/src/icons.generated/Call.d.ts.map +1 -1
  141. package/dist/src/icons.generated/Chat.d.ts +0 -1
  142. package/dist/src/icons.generated/Chat.d.ts.map +1 -1
  143. package/dist/src/icons.generated/Check.d.ts +0 -1
  144. package/dist/src/icons.generated/Check.d.ts.map +1 -1
  145. package/dist/src/icons.generated/CheckCircleFilled.d.ts +0 -1
  146. package/dist/src/icons.generated/CheckCircleFilled.d.ts.map +1 -1
  147. package/dist/src/icons.generated/ChevronDown.d.ts +0 -1
  148. package/dist/src/icons.generated/ChevronDown.d.ts.map +1 -1
  149. package/dist/src/icons.generated/ChevronLeft.d.ts +0 -1
  150. package/dist/src/icons.generated/ChevronLeft.d.ts.map +1 -1
  151. package/dist/src/icons.generated/ChevronRight.d.ts +0 -1
  152. package/dist/src/icons.generated/ChevronRight.d.ts.map +1 -1
  153. package/dist/src/icons.generated/ChevronUp.d.ts +0 -1
  154. package/dist/src/icons.generated/ChevronUp.d.ts.map +1 -1
  155. package/dist/src/icons.generated/Clock.d.ts +0 -1
  156. package/dist/src/icons.generated/Clock.d.ts.map +1 -1
  157. package/dist/src/icons.generated/Close.d.ts +0 -1
  158. package/dist/src/icons.generated/Close.d.ts.map +1 -1
  159. package/dist/src/icons.generated/CloseCircleFilled.d.ts +0 -1
  160. package/dist/src/icons.generated/CloseCircleFilled.d.ts.map +1 -1
  161. package/dist/src/icons.generated/CollapseLeft.d.ts +0 -1
  162. package/dist/src/icons.generated/CollapseLeft.d.ts.map +1 -1
  163. package/dist/src/icons.generated/CollapseRight.d.ts +0 -1
  164. package/dist/src/icons.generated/CollapseRight.d.ts.map +1 -1
  165. package/dist/src/icons.generated/Copy.d.ts +0 -1
  166. package/dist/src/icons.generated/Copy.d.ts.map +1 -1
  167. package/dist/src/icons.generated/Custom.d.ts +0 -1
  168. package/dist/src/icons.generated/Custom.d.ts.map +1 -1
  169. package/dist/src/icons.generated/DangerDiamond.d.ts +0 -1
  170. package/dist/src/icons.generated/DangerDiamond.d.ts.map +1 -1
  171. package/dist/src/icons.generated/DangerDiamondFilled.d.ts +0 -1
  172. package/dist/src/icons.generated/DangerDiamondFilled.d.ts.map +1 -1
  173. package/dist/src/icons.generated/Delete.d.ts +0 -1
  174. package/dist/src/icons.generated/Delete.d.ts.map +1 -1
  175. package/dist/src/icons.generated/Deny.d.ts +0 -1
  176. package/dist/src/icons.generated/Deny.d.ts.map +1 -1
  177. package/dist/src/icons.generated/Devices.d.ts +0 -1
  178. package/dist/src/icons.generated/Devices.d.ts.map +1 -1
  179. package/dist/src/icons.generated/Directory.d.ts +0 -1
  180. package/dist/src/icons.generated/Directory.d.ts.map +1 -1
  181. package/dist/src/icons.generated/Documentation.d.ts +0 -1
  182. package/dist/src/icons.generated/Documentation.d.ts.map +1 -1
  183. package/dist/src/icons.generated/Download.d.ts +0 -1
  184. package/dist/src/icons.generated/Download.d.ts.map +1 -1
  185. package/dist/src/icons.generated/DragIndicator.d.ts +0 -1
  186. package/dist/src/icons.generated/DragIndicator.d.ts.map +1 -1
  187. package/dist/src/icons.generated/Duo.d.ts +0 -1
  188. package/dist/src/icons.generated/Duo.d.ts.map +1 -1
  189. package/dist/src/icons.generated/Edit.d.ts +0 -1
  190. package/dist/src/icons.generated/Edit.d.ts.map +1 -1
  191. package/dist/src/icons.generated/Email.d.ts +0 -1
  192. package/dist/src/icons.generated/Email.d.ts.map +1 -1
  193. package/dist/src/icons.generated/ExpandLeft.d.ts +0 -1
  194. package/dist/src/icons.generated/ExpandLeft.d.ts.map +1 -1
  195. package/dist/src/icons.generated/ExpandRight.d.ts +0 -1
  196. package/dist/src/icons.generated/ExpandRight.d.ts.map +1 -1
  197. package/dist/src/icons.generated/ExternalLink.d.ts +0 -1
  198. package/dist/src/icons.generated/ExternalLink.d.ts.map +1 -1
  199. package/dist/src/icons.generated/Fido2.d.ts +0 -1
  200. package/dist/src/icons.generated/Fido2.d.ts.map +1 -1
  201. package/dist/src/icons.generated/Filter.d.ts +0 -1
  202. package/dist/src/icons.generated/Filter.d.ts.map +1 -1
  203. package/dist/src/icons.generated/Folder.d.ts +0 -1
  204. package/dist/src/icons.generated/Folder.d.ts.map +1 -1
  205. package/dist/src/icons.generated/Globe.d.ts +0 -1
  206. package/dist/src/icons.generated/Globe.d.ts.map +1 -1
  207. package/dist/src/icons.generated/GoogleAuth.d.ts +0 -1
  208. package/dist/src/icons.generated/GoogleAuth.d.ts.map +1 -1
  209. package/dist/src/icons.generated/Grid.d.ts +0 -1
  210. package/dist/src/icons.generated/Grid.d.ts.map +1 -1
  211. package/dist/src/icons.generated/Group.d.ts +0 -1
  212. package/dist/src/icons.generated/Group.d.ts.map +1 -1
  213. package/dist/src/icons.generated/Hide.d.ts +0 -1
  214. package/dist/src/icons.generated/Hide.d.ts.map +1 -1
  215. package/dist/src/icons.generated/Home.d.ts +0 -1
  216. package/dist/src/icons.generated/Home.d.ts.map +1 -1
  217. package/dist/src/icons.generated/Idp.d.ts +0 -1
  218. package/dist/src/icons.generated/Idp.d.ts.map +1 -1
  219. package/dist/src/icons.generated/InformationCircle.d.ts +0 -1
  220. package/dist/src/icons.generated/InformationCircle.d.ts.map +1 -1
  221. package/dist/src/icons.generated/InformationCircleFilled.d.ts +0 -1
  222. package/dist/src/icons.generated/InformationCircleFilled.d.ts.map +1 -1
  223. package/dist/src/icons.generated/Link.d.ts +0 -1
  224. package/dist/src/icons.generated/Link.d.ts.map +1 -1
  225. package/dist/src/icons.generated/List.d.ts +0 -1
  226. package/dist/src/icons.generated/List.d.ts.map +1 -1
  227. package/dist/src/icons.generated/Lock.d.ts +0 -1
  228. package/dist/src/icons.generated/Lock.d.ts.map +1 -1
  229. package/dist/src/icons.generated/More.d.ts +0 -1
  230. package/dist/src/icons.generated/More.d.ts.map +1 -1
  231. package/dist/src/icons.generated/Notification.d.ts +0 -1
  232. package/dist/src/icons.generated/Notification.d.ts.map +1 -1
  233. package/dist/src/icons.generated/OktaVerify.d.ts +0 -1
  234. package/dist/src/icons.generated/OktaVerify.d.ts.map +1 -1
  235. package/dist/src/icons.generated/OnPremMfa.d.ts +0 -1
  236. package/dist/src/icons.generated/OnPremMfa.d.ts.map +1 -1
  237. package/dist/src/icons.generated/OneTimePassword.d.ts +0 -1
  238. package/dist/src/icons.generated/OneTimePassword.d.ts.map +1 -1
  239. package/dist/src/icons.generated/Password.d.ts +0 -1
  240. package/dist/src/icons.generated/Password.d.ts.map +1 -1
  241. package/dist/src/icons.generated/Pause.d.ts +0 -1
  242. package/dist/src/icons.generated/Pause.d.ts.map +1 -1
  243. package/dist/src/icons.generated/QuestionCircle.d.ts +0 -1
  244. package/dist/src/icons.generated/QuestionCircle.d.ts.map +1 -1
  245. package/dist/src/icons.generated/QuestionCircleFilled.d.ts +0 -1
  246. package/dist/src/icons.generated/QuestionCircleFilled.d.ts.map +1 -1
  247. package/dist/src/icons.generated/Refresh.d.ts +0 -1
  248. package/dist/src/icons.generated/Refresh.d.ts.map +1 -1
  249. package/dist/src/icons.generated/Reset.d.ts +0 -1
  250. package/dist/src/icons.generated/Reset.d.ts.map +1 -1
  251. package/dist/src/icons.generated/Resume.d.ts +0 -1
  252. package/dist/src/icons.generated/Resume.d.ts.map +1 -1
  253. package/dist/src/icons.generated/Search.d.ts +0 -1
  254. package/dist/src/icons.generated/Search.d.ts.map +1 -1
  255. package/dist/src/icons.generated/SecurityQuestion.d.ts +0 -1
  256. package/dist/src/icons.generated/SecurityQuestion.d.ts.map +1 -1
  257. package/dist/src/icons.generated/Server.d.ts +0 -1
  258. package/dist/src/icons.generated/Server.d.ts.map +1 -1
  259. package/dist/src/icons.generated/Settings.d.ts +0 -1
  260. package/dist/src/icons.generated/Settings.d.ts.map +1 -1
  261. package/dist/src/icons.generated/Show.d.ts +0 -1
  262. package/dist/src/icons.generated/Show.d.ts.map +1 -1
  263. package/dist/src/icons.generated/SmartCard.d.ts +0 -1
  264. package/dist/src/icons.generated/SmartCard.d.ts.map +1 -1
  265. package/dist/src/icons.generated/Sms.d.ts +0 -1
  266. package/dist/src/icons.generated/Sms.d.ts.map +1 -1
  267. package/dist/src/icons.generated/Subtract.d.ts +0 -1
  268. package/dist/src/icons.generated/Subtract.d.ts.map +1 -1
  269. package/dist/src/icons.generated/SymantecVip.d.ts +0 -1
  270. package/dist/src/icons.generated/SymantecVip.d.ts.map +1 -1
  271. package/dist/src/icons.generated/Sync.d.ts +0 -1
  272. package/dist/src/icons.generated/Sync.d.ts.map +1 -1
  273. package/dist/src/icons.generated/ThumbsDown.d.ts +0 -1
  274. package/dist/src/icons.generated/ThumbsDown.d.ts.map +1 -1
  275. package/dist/src/icons.generated/ThumbsUp.d.ts +0 -1
  276. package/dist/src/icons.generated/ThumbsUp.d.ts.map +1 -1
  277. package/dist/src/icons.generated/Unlock.d.ts +0 -1
  278. package/dist/src/icons.generated/Unlock.d.ts.map +1 -1
  279. package/dist/src/icons.generated/Upload.d.ts +0 -1
  280. package/dist/src/icons.generated/Upload.d.ts.map +1 -1
  281. package/dist/src/icons.generated/User.d.ts +0 -1
  282. package/dist/src/icons.generated/User.d.ts.map +1 -1
  283. package/dist/src/icons.generated/Video.d.ts +0 -1
  284. package/dist/src/icons.generated/Video.d.ts.map +1 -1
  285. package/dist/src/icons.generated/VoiceCall.d.ts +0 -1
  286. package/dist/src/icons.generated/VoiceCall.d.ts.map +1 -1
  287. package/dist/src/icons.generated/Warning.d.ts +0 -1
  288. package/dist/src/icons.generated/Warning.d.ts.map +1 -1
  289. package/dist/src/icons.generated/WarningFilled.d.ts +0 -1
  290. package/dist/src/icons.generated/WarningFilled.d.ts.map +1 -1
  291. package/dist/src/icons.generated/Yubikey.d.ts +0 -1
  292. package/dist/src/icons.generated/Yubikey.d.ts.map +1 -1
  293. package/dist/src/inputUtils.d.ts.map +1 -1
  294. package/dist/src/labs/DataComponents/DataStack.d.ts +1 -2
  295. package/dist/src/labs/DataComponents/DataStack.d.ts.map +1 -1
  296. package/dist/src/labs/DataComponents/DataTable.d.ts +1 -2
  297. package/dist/src/labs/DataComponents/DataTable.d.ts.map +1 -1
  298. package/dist/src/labs/DataComponents/DataView.d.ts +1 -2
  299. package/dist/src/labs/DataComponents/DataView.d.ts.map +1 -1
  300. package/dist/src/labs/DataComponents/DetailPanel.d.ts +0 -1
  301. package/dist/src/labs/DataComponents/DetailPanel.d.ts.map +1 -1
  302. package/dist/src/labs/DataComponents/TableContent.d.ts.map +1 -1
  303. package/dist/src/labs/DataComponents/TableSettings.d.ts.map +1 -1
  304. package/dist/src/labs/DataComponents/componentTypes.d.ts +5 -2
  305. package/dist/src/labs/DataComponents/componentTypes.d.ts.map +1 -1
  306. package/dist/src/labs/DataComponents/constants.d.ts +6 -4
  307. package/dist/src/labs/DataComponents/constants.d.ts.map +1 -1
  308. package/dist/src/labs/DataComponents/tableConstants.d.ts +6 -25
  309. package/dist/src/labs/DataComponents/tableConstants.d.ts.map +1 -1
  310. package/dist/src/labs/DataComponents/useFilterConversion.d.ts.map +1 -1
  311. package/dist/src/labs/DataTablePagination.d.ts +0 -1
  312. package/dist/src/labs/DataTablePagination.d.ts.map +1 -1
  313. package/dist/src/labs/DateField.d.ts +3 -6
  314. package/dist/src/labs/DateField.d.ts.map +1 -1
  315. package/dist/src/labs/DatePicker.d.ts +20 -19
  316. package/dist/src/labs/DatePicker.d.ts.map +1 -1
  317. package/dist/src/labs/FileUpload.d.ts +0 -1
  318. package/dist/src/labs/FileUpload.d.ts.map +1 -1
  319. package/dist/src/labs/FileUploadIllustration.d.ts +0 -1
  320. package/dist/src/labs/FileUploadIllustration.d.ts.map +1 -1
  321. package/dist/src/labs/FileUploadPreview.d.ts +0 -1
  322. package/dist/src/labs/FileUploadPreview.d.ts.map +1 -1
  323. package/dist/src/labs/GroupPicker.d.ts +2 -1
  324. package/dist/src/labs/GroupPicker.d.ts.map +1 -1
  325. package/dist/src/labs/PaginatedTable.d.ts +2 -1
  326. package/dist/src/labs/PaginatedTable.d.ts.map +1 -1
  327. package/dist/src/labs/StaticTable.d.ts +2 -1
  328. package/dist/src/labs/StaticTable.d.ts.map +1 -1
  329. package/dist/src/labs/Switch.d.ts +0 -1
  330. package/dist/src/labs/Switch.d.ts.map +1 -1
  331. package/dist/src/labs/TimeZonePicker.d.ts +22 -0
  332. package/dist/src/labs/TimeZonePicker.d.ts.map +1 -0
  333. package/dist/src/labs/TopNav.d.ts +77 -0
  334. package/dist/src/labs/TopNav.d.ts.map +1 -0
  335. package/dist/src/labs/datePickerTheme.d.ts.map +1 -1
  336. package/dist/src/labs/index.d.ts +1 -0
  337. package/dist/src/labs/index.d.ts.map +1 -1
  338. package/dist/src/labs/{useDatePickerTranslations.d.ts → useDateFieldsTranslations.d.ts} +3 -2
  339. package/dist/src/labs/useDateFieldsTranslations.d.ts.map +1 -0
  340. package/dist/src/labs/useOdysseyDateFields.d.ts +82 -0
  341. package/dist/src/labs/useOdysseyDateFields.d.ts.map +1 -0
  342. package/dist/src/properties/ts/odyssey-react-mui.d.ts +3 -0
  343. package/dist/src/properties/ts/odyssey-react-mui.d.ts.map +1 -1
  344. package/dist/src/properties/ts/odyssey-react-mui_ok_PL.d.ts +2 -0
  345. package/dist/src/properties/ts/odyssey-react-mui_ok_PL.d.ts.map +1 -1
  346. package/dist/src/properties/ts/odyssey-react-mui_ok_SK.d.ts +2 -0
  347. package/dist/src/properties/ts/odyssey-react-mui_ok_SK.d.ts.map +1 -1
  348. package/dist/src/test-selectors/querySelector.d.ts +2 -2
  349. package/dist/src/test-selectors/querySelector.d.ts.map +1 -1
  350. package/dist/src/theme/components.d.ts.map +1 -1
  351. package/dist/theme/components.js +44 -9
  352. package/dist/theme/components.js.map +1 -1
  353. package/dist/tsconfig.production.tsbuildinfo +1 -1
  354. package/dist/tsconfig.tsbuildinfo +1 -1
  355. package/package.json +3 -3
  356. package/src/DataTable/DataTable.tsx +118 -64
  357. package/src/Pagination/Pagination.tsx +82 -46
  358. package/src/Pagination/usePagination.ts +14 -18
  359. package/src/labs/DataComponents/DataStack.tsx +6 -0
  360. package/src/labs/DataComponents/DataTable.tsx +6 -0
  361. package/src/labs/DataComponents/DataView.tsx +16 -0
  362. package/src/labs/DataComponents/TableContent.tsx +66 -9
  363. package/src/labs/DataComponents/TableSettings.tsx +60 -60
  364. package/src/labs/DataComponents/componentTypes.ts +5 -6
  365. package/src/labs/DataComponents/constants.tsx +12 -4
  366. package/src/labs/DataComponents/tableConstants.tsx +0 -19
  367. package/src/labs/DataComponents/useFilterConversion.ts +14 -18
  368. package/src/labs/DateField.tsx +175 -26
  369. package/src/labs/DatePicker.tsx +155 -93
  370. package/src/labs/TimeZonePicker.tsx +55 -0
  371. package/src/labs/TopNav.tsx +394 -0
  372. package/src/labs/datePickerTheme.tsx +6 -4
  373. package/src/labs/index.ts +1 -0
  374. package/src/labs/{useDatePickerTranslations.ts → useDateFieldsTranslations.ts} +3 -1
  375. package/src/labs/useOdysseyDateFields.ts +201 -0
  376. package/src/properties/odyssey-react-mui.properties +3 -0
  377. package/src/properties/translations/odyssey-react-mui_ok_PL.properties +3 -1
  378. package/src/properties/translations/odyssey-react-mui_ok_SK.properties +2 -0
  379. package/src/properties/ts/odyssey-react-mui.ts +1 -1
  380. package/src/properties/ts/odyssey-react-mui_ok_PL.ts +1 -1
  381. package/src/properties/ts/odyssey-react-mui_ok_SK.ts +1 -1
  382. package/src/theme/components.tsx +50 -7
  383. package/dist/src/labs/useDatePickerTranslations.d.ts.map +0 -1
@@ -0,0 +1,280 @@
1
+ /*!
2
+ * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
4
+ *
5
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
6
+ * Unless required by applicable law or agreed to in writing, software
7
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
8
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
+ *
10
+ * See the License for the specific language governing permissions and limitations under the License.
11
+ */
12
+
13
+ import styled from "@emotion/styled";
14
+ import { memo, useMemo, useCallback } from "react";
15
+ import { QuestionCircleIcon, SettingsIcon } from "../icons.generated/index.js";
16
+ import { Link } from "../Link.js";
17
+ import { useOdysseyDesignTokens } from "../OdysseyDesignTokensContext.js";
18
+ import { Subordinate } from "../Typography.js";
19
+ import { jsx as _jsx } from "react/jsx-runtime";
20
+ import { jsxs as _jsxs } from "react/jsx-runtime";
21
+ import { createElement as _createElement } from "react";
22
+ const UserProfileContainer = styled("div", {
23
+ shouldForwardProp: prop => prop !== "odysseyDesignTokens"
24
+ })(({
25
+ odysseyDesignTokens
26
+ }) => ({
27
+ display: "flex",
28
+ alignItems: "center",
29
+ paddingRight: odysseyDesignTokens.Spacing4
30
+ }));
31
+ const UserProfileIconContainer = styled("div", {
32
+ shouldForwardProp: prop => prop !== "odysseyDesignTokens"
33
+ })(({
34
+ odysseyDesignTokens
35
+ }) => ({
36
+ display: "flex",
37
+ paddingRight: odysseyDesignTokens.Spacing2
38
+ }));
39
+ const UserProfileInfoContainer = styled("div")(() => ({
40
+ display: "flex",
41
+ flexDirection: "column"
42
+ }));
43
+ const UserProfile = ({
44
+ profileIcon,
45
+ userName,
46
+ orgName
47
+ }) => {
48
+ const odysseyDesignTokens = useOdysseyDesignTokens();
49
+ return _jsxs(UserProfileContainer, {
50
+ odysseyDesignTokens: odysseyDesignTokens,
51
+ children: [profileIcon && _jsx(UserProfileIconContainer, {
52
+ odysseyDesignTokens: odysseyDesignTokens,
53
+ children: profileIcon
54
+ }), _jsxs(UserProfileInfoContainer, {
55
+ children: [_jsx(Subordinate, {
56
+ color: "textPrimary",
57
+ children: userName
58
+ }), _jsx(Subordinate, {
59
+ color: "textSecondary",
60
+ children: orgName
61
+ })]
62
+ })]
63
+ });
64
+ };
65
+ const TopNavListContainer = styled("ul")(() => ({
66
+ padding: 0,
67
+ listStyle: "none",
68
+ listStyleType: "none",
69
+ display: "flex",
70
+ alignItems: "center"
71
+ }));
72
+ const TopNavItemLabelContainer = styled("div", {
73
+ shouldForwardProp: prop => prop !== "odysseyDesignTokens"
74
+ })(({
75
+ odysseyDesignTokens
76
+ }) => ({
77
+ display: "flex",
78
+ flexWrap: "wrap",
79
+ alignItems: "center",
80
+ fontSize: odysseyDesignTokens.TypographyScale0,
81
+ fontWeight: odysseyDesignTokens.TypographyWeightHeading
82
+ }));
83
+ const TopNavListItemContainer = styled("li", {
84
+ shouldForwardProp: prop => prop !== "odysseyDesignTokens" && prop !== "isDisabled"
85
+ })(({
86
+ odysseyDesignTokens,
87
+ isDisabled
88
+ }) => ({
89
+ display: "flex",
90
+ alignItems: "center",
91
+ cursor: isDisabled ? "default" : "pointer",
92
+ pointerEvents: isDisabled ? "none" : "auto",
93
+ color: `${isDisabled ? odysseyDesignTokens.TypographyColorDisabled : odysseyDesignTokens.TypographyColorHeading} !important`,
94
+ "& a": {
95
+ display: "flex",
96
+ alignItems: "center",
97
+ padding: `${odysseyDesignTokens.Spacing2} ${odysseyDesignTokens.Spacing4}`,
98
+ color: `${odysseyDesignTokens.TypographyColorHeading} !important`
99
+ },
100
+ "& a:hover": {
101
+ textDecoration: "none",
102
+ backgroundColor: !isDisabled ? odysseyDesignTokens.HueNeutral50 : "inherit"
103
+ },
104
+ "& div[role='button']:hover": {
105
+ backgroundColor: !isDisabled ? odysseyDesignTokens.HueNeutral50 : "inherit"
106
+ },
107
+ "& a:focus-visible": {
108
+ outlineOffset: 0,
109
+ borderRadius: 0,
110
+ outlineWidth: odysseyDesignTokens.FocusOutlineWidthMain,
111
+ backgroundColor: !isDisabled ? odysseyDesignTokens.HueNeutral50 : "inherit"
112
+ }
113
+ }));
114
+ const NavItemContentClickContainer = styled("div", {
115
+ shouldForwardProp: prop => prop !== "odysseyDesignTokens"
116
+ })(({
117
+ odysseyDesignTokens
118
+ }) => ({
119
+ display: "flex",
120
+ alignItems: "center",
121
+ width: "100%",
122
+ padding: `${odysseyDesignTokens.Spacing2} ${odysseyDesignTokens.Spacing4}`,
123
+ "&:focus-visible": {
124
+ borderRadius: 0,
125
+ outlineColor: odysseyDesignTokens.FocusOutlineColorPrimary,
126
+ outlineStyle: odysseyDesignTokens.FocusOutlineStyle,
127
+ outlineWidth: odysseyDesignTokens.FocusOutlineWidthMain,
128
+ backgroundColor: odysseyDesignTokens.HueNeutral50,
129
+ textDecoration: "none"
130
+ }
131
+ }));
132
+ const TopNavItemContent = ({
133
+ id,
134
+ label,
135
+ href,
136
+ target,
137
+ onClick,
138
+ isDisabled
139
+ }) => {
140
+ const odysseyDesignTokens = useOdysseyDesignTokens();
141
+ const topNavItemContentKeyHandler = useCallback(event => {
142
+ if (event?.key === "Enter") {
143
+ event.preventDefault();
144
+ event.stopPropagation();
145
+ onClick?.(event);
146
+ }
147
+ }, [onClick]);
148
+ return _jsx(TopNavListItemContainer, {
149
+ id: id,
150
+ "aria-disabled": isDisabled,
151
+ isDisabled: isDisabled,
152
+ odysseyDesignTokens: odysseyDesignTokens,
153
+ children: isDisabled ? _jsx(NavItemContentClickContainer, {
154
+ odysseyDesignTokens: odysseyDesignTokens,
155
+ children: _jsx(TopNavItemLabelContainer, {
156
+ odysseyDesignTokens: odysseyDesignTokens,
157
+ children: label
158
+ })
159
+ }) : !href ? _jsx(NavItemContentClickContainer, {
160
+ odysseyDesignTokens: odysseyDesignTokens,
161
+ role: "button",
162
+ tabIndex: 0,
163
+ onClick: onClick,
164
+ onKeyDown: topNavItemContentKeyHandler,
165
+ children: _jsx(TopNavItemLabelContainer, {
166
+ odysseyDesignTokens: odysseyDesignTokens,
167
+ children: label
168
+ })
169
+ }) : _jsx(Link, {
170
+ href: href,
171
+ target: target,
172
+ onClick: onClick,
173
+ children: _jsx(TopNavItemLabelContainer, {
174
+ odysseyDesignTokens: odysseyDesignTokens,
175
+ children: label
176
+ })
177
+ })
178
+ }, id);
179
+ };
180
+ const LinkAndProfileWrapper = styled("div")(() => ({
181
+ display: "flex",
182
+ alignItems: "center",
183
+ marginLeft: "auto"
184
+ }));
185
+ const AdditionalLinkContainerWithBorder = styled("div", {
186
+ shouldForwardProp: prop => prop !== "odysseyDesignTokens"
187
+ })(({
188
+ odysseyDesignTokens
189
+ }) => ({
190
+ display: "flex",
191
+ alignItems: "center",
192
+ marginRight: odysseyDesignTokens.Spacing3,
193
+ borderRight: `${odysseyDesignTokens.BorderWidthMain} solid ${odysseyDesignTokens.HueNeutral200}`
194
+ }));
195
+ const LinkContainer = styled("div", {
196
+ shouldForwardProp: prop => prop !== "odysseyDesignTokens"
197
+ })(({
198
+ odysseyDesignTokens
199
+ }) => ({
200
+ paddingRight: odysseyDesignTokens.Spacing3,
201
+ "& a": {
202
+ color: `${odysseyDesignTokens.TypographyColorHeading} !important`
203
+ }
204
+ }));
205
+ const TopNavContainer = styled("div", {
206
+ shouldForwardProp: prop => prop !== "odysseyDesignTokens"
207
+ })(({
208
+ odysseyDesignTokens
209
+ }) => ({
210
+ display: "flex",
211
+ alignItems: "center",
212
+ backgroundColor: odysseyDesignTokens.HueNeutralWhite,
213
+ height: odysseyDesignTokens.Spacing9
214
+ }));
215
+ const SearchFieldContainer = styled("div", {
216
+ shouldForwardProp: prop => prop !== "odysseyDesignTokens"
217
+ })(({
218
+ odysseyDesignTokens
219
+ }) => ({
220
+ width: "350px",
221
+ padding: `${odysseyDesignTokens.Spacing2} ${odysseyDesignTokens.Spacing3}`
222
+ }));
223
+ const AdditionalNavItemContainer = styled("div", {
224
+ shouldForwardProp: prop => prop !== "odysseyDesignTokens"
225
+ })(({
226
+ odysseyDesignTokens
227
+ }) => ({
228
+ padding: `0 ${odysseyDesignTokens.Spacing3}`
229
+ }));
230
+ const TopNav = ({
231
+ SearchFieldComponent,
232
+ topNavLinkItems,
233
+ AdditionalNavItemComponent,
234
+ settingsPageHref,
235
+ helpPageHref,
236
+ userProfile
237
+ }) => {
238
+ const odysseyDesignTokens = useOdysseyDesignTokens();
239
+ const processedNavItems = useMemo(() => topNavLinkItems.map(item => _createElement(TopNavItemContent, {
240
+ ...item,
241
+ key: item.id
242
+ })), [topNavLinkItems]);
243
+ return _jsxs(TopNavContainer, {
244
+ odysseyDesignTokens: odysseyDesignTokens,
245
+ children: [SearchFieldComponent && _jsx(SearchFieldContainer, {
246
+ odysseyDesignTokens: odysseyDesignTokens,
247
+ children: SearchFieldComponent
248
+ }), _jsx(TopNavListContainer, {
249
+ children: processedNavItems?.map(item => item)
250
+ }), _jsxs(LinkAndProfileWrapper, {
251
+ children: [(AdditionalNavItemComponent || settingsPageHref || helpPageHref) && _jsxs(AdditionalLinkContainerWithBorder, {
252
+ odysseyDesignTokens: odysseyDesignTokens,
253
+ children: [AdditionalNavItemComponent && _jsx(AdditionalNavItemContainer, {
254
+ odysseyDesignTokens: odysseyDesignTokens,
255
+ children: AdditionalNavItemComponent
256
+ }), settingsPageHref && _jsx(LinkContainer, {
257
+ odysseyDesignTokens: odysseyDesignTokens,
258
+ children: _jsx(Link, {
259
+ href: settingsPageHref,
260
+ ariaLabel: "settings page",
261
+ children: _jsx(SettingsIcon, {})
262
+ })
263
+ }), helpPageHref && _jsx(LinkContainer, {
264
+ odysseyDesignTokens: odysseyDesignTokens,
265
+ children: _jsx(Link, {
266
+ href: helpPageHref,
267
+ ariaLabel: "help page",
268
+ children: _jsx(QuestionCircleIcon, {})
269
+ })
270
+ })]
271
+ }), userProfile && _jsx(UserProfile, {
272
+ ...userProfile
273
+ })]
274
+ })]
275
+ });
276
+ };
277
+ const MemoizedTopNav = memo(TopNav);
278
+ MemoizedTopNav.displayName = "TopNav";
279
+ export { MemoizedTopNav as TopNav };
280
+ //# sourceMappingURL=TopNav.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopNav.js","names":["styled","memo","useMemo","useCallback","QuestionCircleIcon","SettingsIcon","Link","useOdysseyDesignTokens","Subordinate","jsx","_jsx","jsxs","_jsxs","createElement","_createElement","UserProfileContainer","shouldForwardProp","prop","odysseyDesignTokens","display","alignItems","paddingRight","Spacing4","UserProfileIconContainer","Spacing2","UserProfileInfoContainer","flexDirection","UserProfile","profileIcon","userName","orgName","children","color","TopNavListContainer","padding","listStyle","listStyleType","TopNavItemLabelContainer","flexWrap","fontSize","TypographyScale0","fontWeight","TypographyWeightHeading","TopNavListItemContainer","isDisabled","cursor","pointerEvents","TypographyColorDisabled","TypographyColorHeading","textDecoration","backgroundColor","HueNeutral50","outlineOffset","borderRadius","outlineWidth","FocusOutlineWidthMain","NavItemContentClickContainer","width","outlineColor","FocusOutlineColorPrimary","outlineStyle","FocusOutlineStyle","TopNavItemContent","id","label","href","target","onClick","topNavItemContentKeyHandler","event","key","preventDefault","stopPropagation","role","tabIndex","onKeyDown","LinkAndProfileWrapper","marginLeft","AdditionalLinkContainerWithBorder","marginRight","Spacing3","borderRight","BorderWidthMain","HueNeutral200","LinkContainer","TopNavContainer","HueNeutralWhite","height","Spacing9","SearchFieldContainer","AdditionalNavItemContainer","TopNav","SearchFieldComponent","topNavLinkItems","AdditionalNavItemComponent","settingsPageHref","helpPageHref","userProfile","processedNavItems","map","item","ariaLabel","MemoizedTopNav","displayName"],"sources":["../../src/labs/TopNav.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport styled from \"@emotion/styled\";\nimport {\n memo,\n useMemo,\n ReactElement,\n useCallback,\n MouseEventHandler,\n KeyboardEventHandler,\n} from \"react\";\n\nimport type { HtmlProps } from \"../HtmlProps\";\nimport { QuestionCircleIcon, SettingsIcon } from \"../icons.generated\";\nimport { Link } from \"../Link\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"../OdysseyDesignTokensContext\";\nimport { Subordinate } from \"../Typography\";\n\nexport type TopNavLinkItem = {\n id: string;\n label: string;\n /**\n * link added to the nav item. if it is undefined, static text will be displayed.\n * fires onClick event when it is passed\n */\n href?: string;\n /**\n * determines whether the link item is diabled\n */\n isDisabled?: boolean;\n /**\n * Event fired when the nav item is clicked\n */\n onClick?: MouseEventHandler<HTMLAnchorElement> &\n MouseEventHandler<HTMLDivElement> &\n KeyboardEventHandler<HTMLDivElement>;\n /**\n * The link target prop. e.g., \"_blank\"\n */\n target?: string;\n};\n\nexport type UserProfileProps = {\n /**\n * Logged in user profile icon to be displayed in the top nav\n */\n profileIcon?: ReactElement;\n /**\n * Logged in user info to be displayed in the top nav\n */\n userName: string;\n /**\n * Org name of the logged in user\n */\n orgName: string;\n};\n\nexport type TopNavProps = {\n /**\n * Pass in a SearchField component with the variant=\"filled\" prop set\n */\n SearchFieldComponent?: ReactElement;\n /**\n * Nav links in the top nav\n */\n topNavLinkItems: TopNavLinkItem[];\n /**\n * Pass in an additional component like `Button` that will be displayed after the nav link items\n */\n AdditionalNavItemComponent?: ReactElement;\n /**\n * URL to settings page.\n */\n settingsPageHref?: string;\n /**\n * URL to the help page.\n */\n helpPageHref?: string;\n /**\n * Displays user account info\n */\n userProfile?: UserProfileProps;\n} & Pick<HtmlProps, \"testId\">;\n\nconst UserProfileContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})(({ odysseyDesignTokens }: { odysseyDesignTokens: DesignTokens }) => ({\n display: \"flex\",\n alignItems: \"center\",\n paddingRight: odysseyDesignTokens.Spacing4,\n}));\n\nconst UserProfileIconContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})(({ odysseyDesignTokens }: { odysseyDesignTokens: DesignTokens }) => ({\n display: \"flex\",\n paddingRight: odysseyDesignTokens.Spacing2,\n}));\n\nconst UserProfileInfoContainer = styled(\"div\")(() => ({\n display: \"flex\",\n flexDirection: \"column\",\n}));\n\nconst UserProfile = ({ profileIcon, userName, orgName }: UserProfileProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n return (\n <UserProfileContainer odysseyDesignTokens={odysseyDesignTokens}>\n {profileIcon && (\n <UserProfileIconContainer odysseyDesignTokens={odysseyDesignTokens}>\n {profileIcon}\n </UserProfileIconContainer>\n )}\n <UserProfileInfoContainer>\n <Subordinate color=\"textPrimary\">{userName}</Subordinate>\n <Subordinate color=\"textSecondary\">{orgName}</Subordinate>\n </UserProfileInfoContainer>\n </UserProfileContainer>\n );\n};\n\nconst TopNavListContainer = styled(\"ul\")(() => ({\n padding: 0,\n listStyle: \"none\",\n listStyleType: \"none\",\n display: \"flex\",\n alignItems: \"center\",\n}));\n\nconst TopNavItemLabelContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n display: \"flex\",\n flexWrap: \"wrap\",\n alignItems: \"center\",\n fontSize: odysseyDesignTokens.TypographyScale0,\n fontWeight: odysseyDesignTokens.TypographyWeightHeading,\n}));\n\nconst TopNavListItemContainer = styled(\"li\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"isDisabled\",\n})<{\n odysseyDesignTokens: DesignTokens;\n isDisabled?: boolean;\n}>(({ odysseyDesignTokens, isDisabled }) => ({\n display: \"flex\",\n alignItems: \"center\",\n cursor: isDisabled ? \"default\" : \"pointer\",\n pointerEvents: isDisabled ? \"none\" : \"auto\",\n color: `${isDisabled ? odysseyDesignTokens.TypographyColorDisabled : odysseyDesignTokens.TypographyColorHeading} !important`,\n \"& a\": {\n display: \"flex\",\n alignItems: \"center\",\n padding: `${odysseyDesignTokens.Spacing2} ${odysseyDesignTokens.Spacing4}`,\n color: `${odysseyDesignTokens.TypographyColorHeading} !important`,\n },\n \"& a:hover\": {\n textDecoration: \"none\",\n backgroundColor: !isDisabled ? odysseyDesignTokens.HueNeutral50 : \"inherit\",\n },\n \"& div[role='button']:hover\": {\n backgroundColor: !isDisabled ? odysseyDesignTokens.HueNeutral50 : \"inherit\",\n },\n \"& a:focus-visible\": {\n outlineOffset: 0,\n borderRadius: 0,\n outlineWidth: odysseyDesignTokens.FocusOutlineWidthMain,\n backgroundColor: !isDisabled ? odysseyDesignTokens.HueNeutral50 : \"inherit\",\n },\n}));\n\nconst NavItemContentClickContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n display: \"flex\",\n alignItems: \"center\",\n width: \"100%\",\n padding: `${odysseyDesignTokens.Spacing2} ${odysseyDesignTokens.Spacing4}`,\n \"&:focus-visible\": {\n borderRadius: 0,\n outlineColor: odysseyDesignTokens.FocusOutlineColorPrimary,\n outlineStyle: odysseyDesignTokens.FocusOutlineStyle,\n outlineWidth: odysseyDesignTokens.FocusOutlineWidthMain,\n backgroundColor: odysseyDesignTokens.HueNeutral50,\n textDecoration: \"none\",\n },\n}));\n\nconst TopNavItemContent = ({\n id,\n label,\n href,\n target,\n onClick,\n isDisabled,\n}: TopNavLinkItem) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n const topNavItemContentKeyHandler = useCallback<\n KeyboardEventHandler<HTMLDivElement>\n >(\n (event) => {\n if (event?.key === \"Enter\") {\n event.preventDefault();\n event.stopPropagation();\n onClick?.(event);\n }\n },\n [onClick],\n );\n\n return (\n <TopNavListItemContainer\n id={id}\n key={id}\n aria-disabled={isDisabled}\n isDisabled={isDisabled}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {\n // Use Link for nav items with links and div for disabled or non-link items\n isDisabled ? (\n <NavItemContentClickContainer\n odysseyDesignTokens={odysseyDesignTokens}\n >\n <TopNavItemLabelContainer odysseyDesignTokens={odysseyDesignTokens}>\n {label}\n </TopNavItemLabelContainer>\n </NavItemContentClickContainer>\n ) : !href ? (\n <NavItemContentClickContainer\n odysseyDesignTokens={odysseyDesignTokens}\n role=\"button\"\n tabIndex={0}\n onClick={onClick}\n onKeyDown={topNavItemContentKeyHandler}\n >\n <TopNavItemLabelContainer odysseyDesignTokens={odysseyDesignTokens}>\n {label}\n </TopNavItemLabelContainer>\n </NavItemContentClickContainer>\n ) : (\n <Link href={href} target={target} onClick={onClick}>\n <TopNavItemLabelContainer odysseyDesignTokens={odysseyDesignTokens}>\n {label}\n </TopNavItemLabelContainer>\n </Link>\n )\n }\n </TopNavListItemContainer>\n );\n};\n\nconst LinkAndProfileWrapper = styled(\"div\")(() => ({\n display: \"flex\",\n alignItems: \"center\",\n marginLeft: \"auto\",\n}));\n\nconst AdditionalLinkContainerWithBorder = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n display: \"flex\",\n alignItems: \"center\",\n marginRight: odysseyDesignTokens.Spacing3,\n borderRight: `${odysseyDesignTokens.BorderWidthMain} solid ${odysseyDesignTokens.HueNeutral200}`,\n}));\n\nconst LinkContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n paddingRight: odysseyDesignTokens.Spacing3,\n \"& a\": {\n color: `${odysseyDesignTokens.TypographyColorHeading} !important`,\n },\n}));\n\nconst TopNavContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n display: \"flex\",\n alignItems: \"center\",\n backgroundColor: odysseyDesignTokens.HueNeutralWhite,\n height: odysseyDesignTokens.Spacing9,\n}));\n\nconst SearchFieldContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n width: \"350px\",\n padding: `${odysseyDesignTokens.Spacing2} ${odysseyDesignTokens.Spacing3}`,\n}));\n\nconst AdditionalNavItemContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n padding: `0 ${odysseyDesignTokens.Spacing3}`,\n}));\n\nconst TopNav = ({\n SearchFieldComponent,\n topNavLinkItems,\n AdditionalNavItemComponent,\n settingsPageHref,\n helpPageHref,\n userProfile,\n}: TopNavProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n const processedNavItems = useMemo(\n () =>\n topNavLinkItems.map((item) => (\n <TopNavItemContent {...item} key={item.id} />\n )),\n [topNavLinkItems],\n );\n\n return (\n <TopNavContainer odysseyDesignTokens={odysseyDesignTokens}>\n {SearchFieldComponent && (\n <SearchFieldContainer odysseyDesignTokens={odysseyDesignTokens}>\n {SearchFieldComponent}\n </SearchFieldContainer>\n )}\n <TopNavListContainer>\n {processedNavItems?.map((item) => item)}\n </TopNavListContainer>\n <LinkAndProfileWrapper>\n {(AdditionalNavItemComponent || settingsPageHref || helpPageHref) && (\n <AdditionalLinkContainerWithBorder\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {AdditionalNavItemComponent && (\n <AdditionalNavItemContainer\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {AdditionalNavItemComponent}\n </AdditionalNavItemContainer>\n )}\n {settingsPageHref && (\n <LinkContainer odysseyDesignTokens={odysseyDesignTokens}>\n <Link href={settingsPageHref} ariaLabel=\"settings page\">\n <SettingsIcon />\n </Link>\n </LinkContainer>\n )}\n {helpPageHref && (\n <LinkContainer odysseyDesignTokens={odysseyDesignTokens}>\n <Link href={helpPageHref} ariaLabel=\"help page\">\n <QuestionCircleIcon />\n </Link>\n </LinkContainer>\n )}\n </AdditionalLinkContainerWithBorder>\n )}\n {userProfile && <UserProfile {...userProfile} />}\n </LinkAndProfileWrapper>\n </TopNavContainer>\n );\n};\n\nconst MemoizedTopNav = memo(TopNav);\nMemoizedTopNav.displayName = \"TopNav\";\n\nexport { MemoizedTopNav as TopNav };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,MAAM,MAAM,iBAAiB;AACpC,SACEC,IAAI,EACJC,OAAO,EAEPC,WAAW,QAGN,OAAO;AAAC,SAGNC,kBAAkB,EAAEC,YAAY;AAAA,SAChCC,IAAI;AAAA,SAGXC,sBAAsB;AAAA,SAEfC,WAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAAA,SAAAC,aAAA,IAAAC,cAAA;AAoEpB,MAAMC,oBAAoB,GAAGf,MAAM,CAAC,KAAK,EAAE;EACzCgB,iBAAiB,EAAGC,IAAI,IAAKA,IAAI,KAAK;AACxC,CAAC,CAAC,CAAC,CAAC;EAAEC;AAA2D,CAAC,MAAM;EACtEC,OAAO,EAAE,MAAM;EACfC,UAAU,EAAE,QAAQ;EACpBC,YAAY,EAAEH,mBAAmB,CAACI;AACpC,CAAC,CAAC,CAAC;AAEH,MAAMC,wBAAwB,GAAGvB,MAAM,CAAC,KAAK,EAAE;EAC7CgB,iBAAiB,EAAGC,IAAI,IAAKA,IAAI,KAAK;AACxC,CAAC,CAAC,CAAC,CAAC;EAAEC;AAA2D,CAAC,MAAM;EACtEC,OAAO,EAAE,MAAM;EACfE,YAAY,EAAEH,mBAAmB,CAACM;AACpC,CAAC,CAAC,CAAC;AAEH,MAAMC,wBAAwB,GAAGzB,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO;EACpDmB,OAAO,EAAE,MAAM;EACfO,aAAa,EAAE;AACjB,CAAC,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AACN,kBAAkB,IAAE;UAAC,CAClB;QAAC,CACM,CAChB;MAAA,CACgC,CACpC,EACA6F,WAAW,IAAIvF,IAAA,CAACiB,WAAW;QAAA,GAAKsE;MAAW,CAAG,CAAC;IAAA,CAC3B,CAAC;EAAA,CACT,CAAC;AAEtB,CAAC;AAED,MAAMK,cAAc,GAAGrG,IAAI,CAAC0F,MAAM,CAAC;AACnCW,cAAc,CAACC,WAAW,GAAG,QAAQ;AAErC,SAASD,cAAc,IAAIX,MAAM"}
@@ -161,16 +161,19 @@ export const datePickerTheme = {
161
161
  },
162
162
  MuiPickersLayout: {
163
163
  styleOverrides: {
164
- root: {
165
- display: "block"
166
- },
164
+ root: ({
165
+ theme
166
+ }) => ({
167
+ display: "block",
168
+ width: "calc(100vw - 64px)",
169
+ maxWidth: theme.mixins.maxWidth
170
+ }),
167
171
  contentWrapper: ({
168
172
  theme
169
173
  }) => ({
170
- width: `${352 / 14}rem`,
174
+ width: "100%",
171
175
  paddingInline: theme.spacing(3),
172
176
  "@media (pointer: fine)": {
173
- width: `${352 / 14}rem`,
174
177
  borderColor: theme.palette.divider,
175
178
  borderStyle: theme.mixins.borderStyle,
176
179
  borderWidth: theme.mixins.borderWidth,
@@ -1 +1 @@
1
- {"version":3,"file":"datePickerTheme.js","names":["createOdysseyMuiTheme","odysseyTokens","popupSpacingValue","odysseyTheme","dateStyles","default","theme","color","palette","text","primary","disabled","backgroundColor","hover","grey","focus","boxShadow","common","white","main","outline","outlineOffset","hoverSelected","dark","contrastText","outsideOfMonth","selected","border","today","todayDotStyles","borderRadius","bottom","spacing","content","height","typography","fontSize","position","transform","width","yearStyles","paddingBlock","paddingInline","lighter","secondary","yearCheckStyles","h6","maskImage","maskPosition","maskRepeat","right","datePickerTheme","components","MuiDateCalendar","styleOverrides","root","MuiPickersLayout","display","contentWrapper","borderColor","divider","borderStyle","mixins","borderWidth","MuiDatePickerToolbar","title","marginBlockStart","marginBlockEnd","MuiDayCalendar","header","justifyContent","monthContainer","weekContainer","marginBottom","marginLeft","marginRight","padding","gap","weekDayLabel","flexShrink","overline","fontWeight","lineHeight","letterSpacing","textTransform","MuiDatePicker","defaultProps","slotProps","popper","popperOptions","placement","showDaysOutsideCurrentMonth","views","MuiPickersCalendarHeader","label","h5","margin","maxHeight","minHeight","paddingBlockStart","paddingBlockEnd","borderBottom","labelContainer","overflow","switchViewButton","marginInlineStart","MuiPickersDay","dayWithMargin","flexBasis","body1","fontWeightBold","MuiPickersPopper","paper","marginTop","MuiYearCalendar","marginInlineEnd","MuiPickersYear","yearButton","alignItems","shape","MuiPickersArrowSwitcher","flexDirection","spacer","button"],"sources":["../../src/labs/datePickerTheme.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { CSSInterpolation } from \"@mui/material/styles\";\nimport { createOdysseyMuiTheme } from \"../theme\";\nimport { ThemeOptions } from \"@mui/material\";\nimport * as odysseyTokens from \"@okta/odyssey-design-tokens\";\n\nconst popupSpacingValue = 5;\n\nconst odysseyTheme = createOdysseyMuiTheme({ odysseyTokens });\n\ntype ThemeStyles = ({\n theme,\n}: {\n theme: typeof odysseyTheme;\n}) => CSSInterpolation;\n\ntype StateStyles = Record<string, ThemeStyles>;\n\nconst dateStyles: StateStyles = {\n default: ({ theme }) => ({\n color: theme.palette.text.primary,\n }),\n disabled: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.disabled,\n }),\n hover: ({ theme }) => ({\n backgroundColor: theme.palette.grey[100],\n }),\n focus: ({ theme }) => ({\n backgroundColor: \"transparent\",\n boxShadow: `0 0 0 2px ${theme.palette.common.white}, 0 0 0 4px ${theme.palette.primary.main}`,\n outline: \"2px solid transparent\",\n outlineOffset: \"1px\",\n }),\n hoverSelected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.dark,\n color: theme.palette.primary.contrastText,\n\n \"@media (pointer: fine)\": {\n backgroundColor: theme.palette.primary.main,\n },\n }),\n outsideOfMonth: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.grey[400],\n }),\n selected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n color: theme.palette.primary.contrastText,\n border: \"none\",\n }),\n today: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.primary.main,\n border: \"none\",\n }),\n};\n\nconst todayDotStyles: StateStyles = {\n default: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n borderRadius: \"50%\",\n bottom: theme.spacing(1),\n content: '\" \"',\n height: `${2 / theme.typography.fontSize}em`,\n position: \"absolute\",\n transform: \"translateY(-50%)\",\n width: `${2 / theme.typography.fontSize}em`,\n }),\n hover: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n }),\n selected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.contrastText,\n }),\n};\n\nconst yearStyles: StateStyles = {\n default: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.primary,\n paddingBlock: theme.spacing(3),\n paddingInline: theme.spacing(4),\n width: \"auto\",\n height: \"auto\",\n }),\n disabled: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.disabled,\n }),\n hover: ({ theme }) => ({\n backgroundColor: theme.palette.grey[100],\n }),\n hoverSelected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.lighter,\n color: theme.palette.primary.main,\n }),\n outsideOfMonth: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.secondary,\n }),\n selected: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.primary.main,\n }),\n};\n\nconst yearCheckStyles: StateStyles = {\n default: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n content: '\"\"',\n height: theme.typography.h6.fontSize,\n maskImage:\n \"url(\\\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M14.3536 4.35355L6.35355 12.3536C6.15829 12.5488 5.84171 12.5488 5.64645 12.3536L1.64645 8.35355L2.35355 7.64645L6 11.2929L13.6464 3.64645L14.3536 4.35355Z' fill='currentColor' /%3E%3C/svg%3E%0A\\\")\",\n maskPosition: \"50% 50%\",\n maskRepeat: \"no-repeat\",\n position: \"absolute\",\n right: theme.spacing(4),\n width: theme.spacing(4),\n }),\n};\n\nexport const datePickerTheme: ThemeOptions = {\n components: {\n MuiDateCalendar: {\n styleOverrides: {\n root: () => ({\n width: \"100%\",\n }),\n },\n },\n MuiPickersLayout: {\n styleOverrides: {\n root: {\n display: \"block\",\n },\n contentWrapper: ({ theme }) => ({\n width: `${352 / 14}rem`,\n paddingInline: theme.spacing(3),\n\n \"@media (pointer: fine)\": {\n width: `${352 / 14}rem`,\n borderColor: theme.palette.divider,\n borderStyle: theme.mixins.borderStyle,\n borderWidth: theme.mixins.borderWidth,\n borderRadius: theme.mixins.borderRadius,\n paddingBlock: theme.spacing(3),\n paddingInline: theme.spacing(3),\n },\n }),\n },\n },\n MuiDatePickerToolbar: {\n styleOverrides: {\n root: ({ theme }) => ({\n paddingInline: theme.spacing(4),\n paddingBlock: theme.spacing(4),\n }),\n title: ({ theme }) => ({\n marginBlockStart: theme.spacing(1),\n marginBlockEnd: 0,\n }),\n },\n },\n MuiDayCalendar: {\n styleOverrides: {\n header: ({ theme }) => ({\n justifyContent: \"space-between\",\n marginBlockStart: theme.spacing(5),\n paddingInline: theme.spacing(1),\n }),\n monthContainer: ({ theme }) => ({\n // padding needed to be able to show focus state for calendar days\n paddingBlock: theme.spacing(1),\n paddingInline: theme.spacing(1),\n }),\n weekContainer: ({ theme }) => ({\n justifyContent: \"space-between\",\n marginBottom: theme.spacing(1),\n marginLeft: 0,\n marginRight: 0,\n padding: 0,\n gap: theme.spacing(1),\n\n \"&:last-child\": {\n marginBottom: 0,\n },\n }),\n weekDayLabel: ({ theme }) => ({\n color: theme.palette.grey[900],\n flexShrink: 0,\n marginBottom: theme.spacing(2),\n marginLeft: 0,\n marginRight: 0,\n width: theme.spacing(6),\n height: \"auto\",\n fontSize: theme.typography.overline.fontSize,\n fontWeight: theme.typography.overline.fontWeight,\n lineHeight: theme.typography.overline.lineHeight,\n letterSpacing: theme.typography.overline.letterSpacing,\n textTransform: theme.typography.overline.textTransform,\n }),\n },\n },\n MuiDatePicker: {\n defaultProps: {\n slotProps: {\n popper: {\n popperOptions: {\n placement: \"bottom-start\",\n },\n },\n },\n showDaysOutsideCurrentMonth: true,\n views: [\"year\", \"day\"],\n },\n },\n MuiPickersCalendarHeader: {\n styleOverrides: {\n label: ({ theme }) => ({\n ...theme.typography.h5,\n margin: 0,\n }),\n root: ({ theme }) => ({\n justifyContent: \"space-between\",\n marginBlockEnd: 0,\n marginBlockStart: 0,\n maxHeight: theme.spacing(8),\n minHeight: theme.spacing(8),\n paddingInline: theme.spacing(1),\n paddingBlockStart: theme.spacing(1),\n paddingBlockEnd: theme.spacing(4),\n width: \"auto\",\n borderBottom: `1px solid ${theme.palette.grey[100]}`,\n }),\n labelContainer: {\n marginRight: 0,\n overflow: \"visible\",\n },\n switchViewButton: ({ theme }) => ({\n marginInlineStart: theme.spacing(1),\n }),\n },\n },\n MuiPickersDay: {\n styleOverrides: {\n dayWithMargin: () => ({\n marginLeft: 0,\n marginRight: 0,\n }),\n root: ({ theme }) => [\n dateStyles.default({ theme }),\n {\n border: \"none\",\n borderRadius: theme.mixins.borderRadius,\n flexBasis: theme.spacing(6),\n flexShrink: 0,\n fontSize: theme.typography.body1.fontSize,\n height: theme.spacing(6),\n width: theme.spacing(6),\n\n \"&.MuiPickersDay-today\": [\n dateStyles.today({ theme }),\n {\n fontWeight: theme.typography.fontWeightBold,\n },\n ],\n\n \"&.MuiPickersDay-today::after\": todayDotStyles.default({ theme }),\n \"&.MuiPickersDay-today.Mui-selected::after\":\n todayDotStyles.selected({ theme }),\n \"&.MuiPickersDay-dayOutsideMonth\": dateStyles.outsideOfMonth({\n theme,\n }),\n \"&:hover\": dateStyles.hover({ theme }),\n \"&:focus\": dateStyles.focus({ theme }),\n\n \"&.Mui-selected, &.Mui-selected:focus\": dateStyles.selected({\n theme,\n }),\n \"&.Mui-selected:hover\": dateStyles.hoverSelected({ theme }),\n\n \"&.Mui-disabled\": dateStyles.disabled({ theme }),\n },\n ],\n },\n },\n MuiPickersPopper: {\n styleOverrides: {\n paper: ({ theme }) => ({\n boxShadow: `0 ${(1 / 16) * (16 / 14)}rem ${\n (4 / 16) * (16 / 14)\n }rem rgba(29, 29, 33, 0.08), 0 ${(4 / 16) * (16 / 14)}rem ${\n (10 / 16) * (16 / 14)\n }rem rgba(29, 29, 33, 0.08), 0 ${(8 / 16) * (16 / 14)}rem ${\n (30 / 16) * (16 / 14)\n }rem rgba(29, 29, 33, 0.1)`,\n marginTop: theme.spacing(1),\n }),\n },\n },\n MuiYearCalendar: {\n styleOverrides: {\n root: ({ theme }) => ({\n display: \"block\",\n width: \"auto\",\n maxHeight: `${284 / 14}rem`,\n marginBottom: `-${theme.spacing(popupSpacingValue)}`,\n marginInlineEnd: 0,\n paddingInline: 0,\n }),\n },\n },\n MuiPickersYear: {\n styleOverrides: {\n root: () => ({\n width: \"100%\",\n justifyContent: \"flex-start\",\n }),\n yearButton: ({ theme }) => [\n yearStyles.default({ theme }),\n {\n position: \"relative\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n width: \"100%\",\n marginBottom: 0,\n marginTop: 0,\n paddingBlock: theme.spacing(3),\n paddingInline: theme.spacing(4),\n borderRadius: theme.shape.borderRadius,\n fontSize: theme.typography.body1.fontSize,\n\n \"&:hover\": yearStyles.hover({ theme }),\n\n \"&:not(.Mui-selected)\": {\n border: \"none\",\n },\n\n \"&.Mui-disabled\": yearStyles.disabled({ theme }),\n },\n ],\n selected: ({ theme }) => ({\n \"&, &:focus\": yearStyles.selected({ theme }),\n \"&:hover\": yearStyles.hoverSelected({ theme }),\n \"&::after\": yearCheckStyles.default({ theme }),\n }),\n },\n },\n MuiPickersArrowSwitcher: {\n styleOverrides: {\n root: {\n \":dir(rtl)\": {\n flexDirection: \"row-reverse\",\n },\n },\n spacer: ({ theme }) => ({\n width: theme.spacing(3),\n }),\n button: {\n margin: 0,\n },\n },\n },\n },\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA,SAaSA,qBAAqB;AAE9B,OAAO,KAAKC,aAAa,MAAM,6BAA6B;AAE5D,MAAMC,iBAAiB,GAAG,CAAC;AAE3B,MAAMC,YAAY,GAAGH,qBAAqB,CAAC;EAAEC;AAAc,CAAC,CAAC;AAU7D,MAAMG,UAAuB,GAAG;EAC9BC,OAAO,EAAEA,CAAC;IAAEC;EAAM,CAAC,MAAM;IACvBC,KAAK,EAAED,KAAK,CAACE,OAAO,CAACC,IAAI,CAACC;EAC5B,CAAC,CAAC;EACFC,QAAQ,EAAEA,CAAC;IAAEL;EAAM,CAAC,MAAM;IACxBM,eAAe,EAAE,aAAa;IAC9BL,KAAK,EAAED,KAAK,CAACE,OAAO,CAACC,IAAI,CAACE;EAC5B,CAAC,CAAC;EACFE,KAAK,EAAEA,CAAC;IAAEP;EAAM,CAAC,MAAM;IACrBM,eAAe,EAAEN,KAAK,CAACE,OAAO,CAACM,IAAI,CAAC,GAAG;EACzC,CAAC,CAAC;EACFC,KAAK,EAAEA,CAAC;IAAET;EAAM,CAAC,MAAM;IACrBM,eAAe,EAAE,aAAa;IAC9BI,SAAS,EAAG,aAAYV,KAAK,CAACE,OAAO,CAACS,MAAM,CAACC,KAAM,eAAcZ,KAAK,CAACE,OAAO,CAACE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AC;UACfwC,SAAS,EAAE,CAAC;UACZxE,YAAY,EAAEnC,KAAK,CAAC0B,OAAO,CAAC,CAAC,CAAC;UAC9BU,aAAa,EAAEpC,KAAK,CAAC0B,OAAO,CAAC,CAAC,CAAC;UAC/BF,YAAY,EAAExB,KAAK,CAACiH,KAAK,CAACzF,YAAY;UACtCM,QAAQ,EAAE9B,KAAK,CAAC6B,UAAU,CAAC0E,KAAK,CAACzE,QAAQ;UAEzC,SAAS,EAAEI,UAAU,CAAC3B,KAAK,CAAC;YAAEP;UAAM,CAAC,CAAC;UAEtC,sBAAsB,EAAE;YACtBqB,MAAM,EAAE;UACV,CAAC;UAED,gBAAgB,EAAEa,UAAU,CAAC7B,QAAQ,CAAC;YAAEL;UAAM,CAAC;QACjD,CAAC,CACF;QACDoB,QAAQ,EAAEA,CAAC;UAAEpB;QAAM,CAAC,MAAM;UACxB,YAAY,EAAEkC,UAAU,CAACd,QAAQ,CAAC;YAAEpB;UAAM,CAAC,CAAC;UAC5C,SAAS,EAAEkC,UAAU,CAAClB,aAAa,CAAC;YAAEhB;UAAM,CAAC,CAAC;UAC9C,UAAU,EAAEuC,eAAe,CAACxC,OAAO,CAAC;YAAEC;UAAM,CAAC;QAC/C,CAAC;MACH;IACF,CAAC;IACDkH,uBAAuB,EAAE;MACvBlE,cAAc,EAAE;QACdC,IAAI,EAAE;UACJ,WAAW,EAAE;YACXkE,aAAa,EAAE;UACjB;QACF,CAAC;QACDC,MAAM,EAAEA,CAAC;UAAEpH;QAAM,CAAC,MAAM;UACtBiC,KAAK,EAAEjC,KAAK,CAAC0B,OAAO,CAAC,CAAC;QACxB,CAAC,CAAC;QACF2F,MAAM,EAAE;UACN3B,MAAM,EAAE;QACV;MACF;IACF;EACF;AACF,CAAC"}
1
+ {"version":3,"file":"datePickerTheme.js","names":["createOdysseyMuiTheme","odysseyTokens","popupSpacingValue","odysseyTheme","dateStyles","default","theme","color","palette","text","primary","disabled","backgroundColor","hover","grey","focus","boxShadow","common","white","main","outline","outlineOffset","hoverSelected","dark","contrastText","outsideOfMonth","selected","border","today","todayDotStyles","borderRadius","bottom","spacing","content","height","typography","fontSize","position","transform","width","yearStyles","paddingBlock","paddingInline","lighter","secondary","yearCheckStyles","h6","maskImage","maskPosition","maskRepeat","right","datePickerTheme","components","MuiDateCalendar","styleOverrides","root","MuiPickersLayout","display","maxWidth","mixins","contentWrapper","borderColor","divider","borderStyle","borderWidth","MuiDatePickerToolbar","title","marginBlockStart","marginBlockEnd","MuiDayCalendar","header","justifyContent","monthContainer","weekContainer","marginBottom","marginLeft","marginRight","padding","gap","weekDayLabel","flexShrink","overline","fontWeight","lineHeight","letterSpacing","textTransform","MuiDatePicker","defaultProps","slotProps","popper","popperOptions","placement","showDaysOutsideCurrentMonth","views","MuiPickersCalendarHeader","label","h5","margin","maxHeight","minHeight","paddingBlockStart","paddingBlockEnd","borderBottom","labelContainer","overflow","switchViewButton","marginInlineStart","MuiPickersDay","dayWithMargin","flexBasis","body1","fontWeightBold","MuiPickersPopper","paper","marginTop","MuiYearCalendar","marginInlineEnd","MuiPickersYear","yearButton","alignItems","shape","MuiPickersArrowSwitcher","flexDirection","spacer","button"],"sources":["../../src/labs/datePickerTheme.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { CSSInterpolation } from \"@mui/material/styles\";\nimport { createOdysseyMuiTheme } from \"../theme\";\nimport { ThemeOptions } from \"@mui/material\";\nimport * as odysseyTokens from \"@okta/odyssey-design-tokens\";\n\nconst popupSpacingValue = 5;\n\nconst odysseyTheme = createOdysseyMuiTheme({ odysseyTokens });\n\ntype ThemeStyles = ({\n theme,\n}: {\n theme: typeof odysseyTheme;\n}) => CSSInterpolation;\n\ntype StateStyles = Record<string, ThemeStyles>;\n\nconst dateStyles: StateStyles = {\n default: ({ theme }) => ({\n color: theme.palette.text.primary,\n }),\n disabled: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.disabled,\n }),\n hover: ({ theme }) => ({\n backgroundColor: theme.palette.grey[100],\n }),\n focus: ({ theme }) => ({\n backgroundColor: \"transparent\",\n boxShadow: `0 0 0 2px ${theme.palette.common.white}, 0 0 0 4px ${theme.palette.primary.main}`,\n outline: \"2px solid transparent\",\n outlineOffset: \"1px\",\n }),\n hoverSelected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.dark,\n color: theme.palette.primary.contrastText,\n\n \"@media (pointer: fine)\": {\n backgroundColor: theme.palette.primary.main,\n },\n }),\n outsideOfMonth: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.grey[400],\n }),\n selected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n color: theme.palette.primary.contrastText,\n border: \"none\",\n }),\n today: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.primary.main,\n border: \"none\",\n }),\n};\n\nconst todayDotStyles: StateStyles = {\n default: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n borderRadius: \"50%\",\n bottom: theme.spacing(1),\n content: '\" \"',\n height: `${2 / theme.typography.fontSize}em`,\n position: \"absolute\",\n transform: \"translateY(-50%)\",\n width: `${2 / theme.typography.fontSize}em`,\n }),\n hover: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n }),\n selected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.contrastText,\n }),\n};\n\nconst yearStyles: StateStyles = {\n default: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.primary,\n paddingBlock: theme.spacing(3),\n paddingInline: theme.spacing(4),\n width: \"auto\",\n height: \"auto\",\n }),\n disabled: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.disabled,\n }),\n hover: ({ theme }) => ({\n backgroundColor: theme.palette.grey[100],\n }),\n hoverSelected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.lighter,\n color: theme.palette.primary.main,\n }),\n outsideOfMonth: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.secondary,\n }),\n selected: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.primary.main,\n }),\n};\n\nconst yearCheckStyles: StateStyles = {\n default: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n content: '\"\"',\n height: theme.typography.h6.fontSize,\n maskImage:\n \"url(\\\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M14.3536 4.35355L6.35355 12.3536C6.15829 12.5488 5.84171 12.5488 5.64645 12.3536L1.64645 8.35355L2.35355 7.64645L6 11.2929L13.6464 3.64645L14.3536 4.35355Z' fill='currentColor' /%3E%3C/svg%3E%0A\\\")\",\n maskPosition: \"50% 50%\",\n maskRepeat: \"no-repeat\",\n position: \"absolute\",\n right: theme.spacing(4),\n width: theme.spacing(4),\n }),\n};\n\nexport const datePickerTheme: ThemeOptions = {\n components: {\n MuiDateCalendar: {\n styleOverrides: {\n root: () => ({\n width: \"100%\",\n }),\n },\n },\n MuiPickersLayout: {\n styleOverrides: {\n root: ({ theme }) => ({\n display: \"block\",\n // Matches Popper width\n width: \"calc(100vw - 64px)\",\n maxWidth: theme.mixins.maxWidth,\n }),\n contentWrapper: ({ theme }) => ({\n width: \"100%\",\n paddingInline: theme.spacing(3),\n\n \"@media (pointer: fine)\": {\n borderColor: theme.palette.divider,\n borderStyle: theme.mixins.borderStyle,\n borderWidth: theme.mixins.borderWidth,\n borderRadius: theme.mixins.borderRadius,\n paddingBlock: theme.spacing(3),\n paddingInline: theme.spacing(3),\n },\n }),\n },\n },\n MuiDatePickerToolbar: {\n styleOverrides: {\n root: ({ theme }) => ({\n paddingInline: theme.spacing(4),\n paddingBlock: theme.spacing(4),\n }),\n title: ({ theme }) => ({\n marginBlockStart: theme.spacing(1),\n marginBlockEnd: 0,\n }),\n },\n },\n MuiDayCalendar: {\n styleOverrides: {\n header: ({ theme }) => ({\n justifyContent: \"space-between\",\n marginBlockStart: theme.spacing(5),\n paddingInline: theme.spacing(1),\n }),\n monthContainer: ({ theme }) => ({\n // padding needed to be able to show focus state for calendar days\n paddingBlock: theme.spacing(1),\n paddingInline: theme.spacing(1),\n }),\n weekContainer: ({ theme }) => ({\n justifyContent: \"space-between\",\n marginBottom: theme.spacing(1),\n marginLeft: 0,\n marginRight: 0,\n padding: 0,\n gap: theme.spacing(1),\n\n \"&:last-child\": {\n marginBottom: 0,\n },\n }),\n weekDayLabel: ({ theme }) => ({\n color: theme.palette.grey[900],\n flexShrink: 0,\n marginBottom: theme.spacing(2),\n marginLeft: 0,\n marginRight: 0,\n width: theme.spacing(6),\n height: \"auto\",\n fontSize: theme.typography.overline.fontSize,\n fontWeight: theme.typography.overline.fontWeight,\n lineHeight: theme.typography.overline.lineHeight,\n letterSpacing: theme.typography.overline.letterSpacing,\n textTransform: theme.typography.overline.textTransform,\n }),\n },\n },\n MuiDatePicker: {\n defaultProps: {\n slotProps: {\n popper: {\n popperOptions: {\n placement: \"bottom-start\",\n },\n },\n },\n showDaysOutsideCurrentMonth: true,\n views: [\"year\", \"day\"],\n },\n },\n MuiPickersCalendarHeader: {\n styleOverrides: {\n label: ({ theme }) => ({\n ...theme.typography.h5,\n margin: 0,\n }),\n root: ({ theme }) => ({\n justifyContent: \"space-between\",\n marginBlockEnd: 0,\n marginBlockStart: 0,\n maxHeight: theme.spacing(8),\n minHeight: theme.spacing(8),\n paddingInline: theme.spacing(1),\n paddingBlockStart: theme.spacing(1),\n paddingBlockEnd: theme.spacing(4),\n width: \"auto\",\n borderBottom: `1px solid ${theme.palette.grey[100]}`,\n }),\n labelContainer: {\n marginRight: 0,\n overflow: \"visible\",\n },\n switchViewButton: ({ theme }) => ({\n marginInlineStart: theme.spacing(1),\n }),\n },\n },\n MuiPickersDay: {\n styleOverrides: {\n dayWithMargin: () => ({\n marginLeft: 0,\n marginRight: 0,\n }),\n root: ({ theme }) => [\n dateStyles.default({ theme }),\n {\n border: \"none\",\n borderRadius: theme.mixins.borderRadius,\n flexBasis: theme.spacing(6),\n flexShrink: 0,\n fontSize: theme.typography.body1.fontSize,\n height: theme.spacing(6),\n width: theme.spacing(6),\n\n \"&.MuiPickersDay-today\": [\n dateStyles.today({ theme }),\n {\n fontWeight: theme.typography.fontWeightBold,\n },\n ],\n\n \"&.MuiPickersDay-today::after\": todayDotStyles.default({ theme }),\n \"&.MuiPickersDay-today.Mui-selected::after\":\n todayDotStyles.selected({ theme }),\n \"&.MuiPickersDay-dayOutsideMonth\": dateStyles.outsideOfMonth({\n theme,\n }),\n \"&:hover\": dateStyles.hover({ theme }),\n \"&:focus\": dateStyles.focus({ theme }),\n\n \"&.Mui-selected, &.Mui-selected:focus\": dateStyles.selected({\n theme,\n }),\n \"&.Mui-selected:hover\": dateStyles.hoverSelected({ theme }),\n\n \"&.Mui-disabled\": dateStyles.disabled({ theme }),\n },\n ],\n },\n },\n MuiPickersPopper: {\n styleOverrides: {\n paper: ({ theme }) => ({\n boxShadow: `0 ${(1 / 16) * (16 / 14)}rem ${\n (4 / 16) * (16 / 14)\n }rem rgba(29, 29, 33, 0.08), 0 ${(4 / 16) * (16 / 14)}rem ${\n (10 / 16) * (16 / 14)\n }rem rgba(29, 29, 33, 0.08), 0 ${(8 / 16) * (16 / 14)}rem ${\n (30 / 16) * (16 / 14)\n }rem rgba(29, 29, 33, 0.1)`,\n marginTop: theme.spacing(1),\n }),\n },\n },\n MuiYearCalendar: {\n styleOverrides: {\n root: ({ theme }) => ({\n display: \"block\",\n width: \"auto\",\n maxHeight: `${284 / 14}rem`,\n marginBottom: `-${theme.spacing(popupSpacingValue)}`,\n marginInlineEnd: 0,\n paddingInline: 0,\n }),\n },\n },\n MuiPickersYear: {\n styleOverrides: {\n root: () => ({\n width: \"100%\",\n justifyContent: \"flex-start\",\n }),\n yearButton: ({ theme }) => [\n yearStyles.default({ theme }),\n {\n position: \"relative\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n width: \"100%\",\n marginBottom: 0,\n marginTop: 0,\n paddingBlock: theme.spacing(3),\n paddingInline: theme.spacing(4),\n borderRadius: theme.shape.borderRadius,\n fontSize: theme.typography.body1.fontSize,\n\n \"&:hover\": yearStyles.hover({ theme }),\n\n \"&:not(.Mui-selected)\": {\n border: \"none\",\n },\n\n \"&.Mui-disabled\": yearStyles.disabled({ theme }),\n },\n ],\n selected: ({ theme }) => ({\n \"&, &:focus\": yearStyles.selected({ theme }),\n \"&:hover\": yearStyles.hoverSelected({ theme }),\n \"&::after\": yearCheckStyles.default({ theme }),\n }),\n },\n },\n MuiPickersArrowSwitcher: {\n styleOverrides: {\n root: {\n \":dir(rtl)\": {\n flexDirection: \"row-reverse\",\n },\n },\n spacer: ({ theme }) => ({\n width: theme.spacing(3),\n }),\n button: {\n margin: 0,\n },\n },\n },\n },\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA,SAaSA,qBAAqB;AAE9B,OAAO,KAAKC,aAAa,MAAM,6BAA6B;AAE5D,MAAMC,iBAAiB,GAAG,CAAC;AAE3B,MAAMC,YAAY,GAAGH,qBAAqB,CAAC;EAAEC;AAAc,CAAC,CAAC;AAU7D,MAAMG,UAAuB,GAAG;EAC9BC,OAAO,EAAEA,CAAC;IAAEC;EAAM,CAAC,MAAM;IACvBC,KAAK,EAAED,KAAK,CAACE,OAAO,CAACC,IAAI,CAACC;EAC5B,CAAC,CAAC;EACFC,QAAQ,EAAEA,CAAC;IAAEL;EAAM,CAAC,MAAM;IACxBM,eAAe,EAAE,aAAa;IAC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uBAAuB,EAAE;MACvBnE,cAAc,EAAE;QACdC,IAAI,EAAE;UACJ,WAAW,EAAE;YACXmE,aAAa,EAAE;UACjB;QACF,CAAC;QACDC,MAAM,EAAEA,CAAC;UAAErH;QAAM,CAAC,MAAM;UACtBiC,KAAK,EAAEjC,KAAK,CAAC0B,OAAO,CAAC,CAAC;QACxB,CAAC,CAAC;QACF4F,MAAM,EAAE;UACN3B,MAAM,EAAE;QACV;MACF;IACF;EACF;AACF,CAAC"}
@@ -27,4 +27,5 @@ export * from "./GroupPicker.js";
27
27
  export * from "./Switch.js";
28
28
  export * from "./NavAccordion.js";
29
29
  export * from "./SideNav.js";
30
+ export * from "./TopNav.js";
30
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["AdapterDateFns","LocalizationProvider"],"sources":["../../src/labs/index.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport { AdapterDateFns } from \"@mui/x-date-pickers/AdapterDateFns\";\nexport { LocalizationProvider } from \"@mui/x-date-pickers\";\nexport type { LocalizationProviderProps } from \"@mui/x-date-pickers\";\n\nexport * from \"./DatePicker\";\nexport * from \"./datePickerTheme\";\n\nexport * from \"./DataComponents\";\n\n/** @deprecated Will be removed in a future Odyssey version in lieu of the one shipping with DataTable */\nexport * from \"./DataTablePagination\";\nexport * from \"./DataFilters\";\nexport * from \"./FileUpload\";\nexport * from \"./Layout\";\nexport * from \"./materialReactTableTypes\";\n/** @deprecated Will be removed in a future Odyssey version in lieu of DataTable */\nexport * from \"./StaticTable\";\nexport * from \"./PageTemplate\";\n/** @deprecated Will be removed in a future Odyssey version in lieu of DataTable */\nexport * from \"./PaginatedTable\";\n\nexport * from \"./GroupPicker\";\n\nexport * from \"./Switch\";\n\nexport * from \"./NavAccordion\";\nexport * from \"./SideNav\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,cAAc,QAAQ,oCAAoC;AACnE,SAASC,oBAAoB,QAAQ,qBAAqB;AAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":["AdapterDateFns","LocalizationProvider"],"sources":["../../src/labs/index.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport { AdapterDateFns } from \"@mui/x-date-pickers/AdapterDateFns\";\nexport { LocalizationProvider } from \"@mui/x-date-pickers\";\nexport type { LocalizationProviderProps } from \"@mui/x-date-pickers\";\n\nexport * from \"./DatePicker\";\nexport * from \"./datePickerTheme\";\n\nexport * from \"./DataComponents\";\n\n/** @deprecated Will be removed in a future Odyssey version in lieu of the one shipping with DataTable */\nexport * from \"./DataTablePagination\";\nexport * from \"./DataFilters\";\nexport * from \"./FileUpload\";\nexport * from \"./Layout\";\nexport * from \"./materialReactTableTypes\";\n/** @deprecated Will be removed in a future Odyssey version in lieu of DataTable */\nexport * from \"./StaticTable\";\nexport * from \"./PageTemplate\";\n/** @deprecated Will be removed in a future Odyssey version in lieu of DataTable */\nexport * from \"./PaginatedTable\";\n\nexport * from \"./GroupPicker\";\n\nexport * from \"./Switch\";\n\nexport * from \"./NavAccordion\";\nexport * from \"./SideNav\";\nexport * from \"./TopNav\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,cAAc,QAAQ,oCAAoC;AACnE,SAASC,oBAAoB,QAAQ,qBAAqB;AAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA"}
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import { useTranslation } from "react-i18next";
14
- export const useDatePickerTranslations = () => {
14
+ export const useDateFieldsTranslations = () => {
15
15
  const {
16
16
  t
17
17
  } = useTranslation();
@@ -68,4 +68,4 @@ export const useDatePickerTranslations = () => {
68
68
  year: `${t("picker.view.name.year")}`
69
69
  };
70
70
  };
71
- //# sourceMappingURL=useDatePickerTranslations.js.map
71
+ //# sourceMappingURL=useDateFieldsTranslations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDatePickerTranslations.js","names":["useTranslation","useDatePickerTranslations","t","calendarViewSwitchingButtonAriaLabel","view","calendarWeekNumberHeaderLabel","calendarWeekNumberHeaderText","calendarWeekNumberAriaLabelText","calendarWeekNumberText","cancelButtonLabel","clearButtonLabel","clockLabelText","time","adapter","format","datePickerToolbarTitle","dateRangePickerToolbarTitle","dateTableLabel","dateTimePickerToolbarTitle","day","empty","end","endDate","endTime","fieldClearLabel","fieldDayPlaceholder","fieldMonthPlaceholder","fieldYearPlaceholder","fieldHoursPlaceholder","fieldMinutesPlaceholder","fieldSecondsPlaceholder","fieldMeridiemPlaceholder","fieldWeekDayPlaceholder","hours","hoursClockNumberText","meridiem","minutes","minutesClockNumberText","month","nextMonth","okButtonLabel","openDatePickerDialogue","value","utils","isValid","openNextView","openPreviousView","openTimePickerDialogue","previousMonth","seconds","secondsClockNumberText","selectViewText","start","startDate","startTime","todayButtonLabel","timePickerToolbarTitle","timeTableLabel","weekDay","year"],"sources":["../../src/labs/useDatePickerTranslations.ts"],"sourcesContent":["/*!\n * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { PickersLocaleText } from \"@mui/x-date-pickers\";\nimport { DateTime } from \"luxon\";\nimport { useTranslation } from \"react-i18next\";\n\nexport const useDatePickerTranslations = (): PickersLocaleText<DateTime> => {\n const { t } = useTranslation();\n\n return {\n calendarViewSwitchingButtonAriaLabel: (view) =>\n view === \"year\"\n ? `${t(\"picker.view.navigation.switch.calendarview\")}`\n : `${t(\"picker.view.navigation.switch.yearview\")}`,\n // not translated because we aren't using it\n calendarWeekNumberHeaderLabel: \"\",\n calendarWeekNumberHeaderText: \"\",\n calendarWeekNumberAriaLabelText: () => \"\",\n calendarWeekNumberText: () => \"\",\n\n cancelButtonLabel: `${t(\"picker.labels.action.cancel\")}`,\n clearButtonLabel: `${t(\"clear.text\")}`,\n clockLabelText: (view, time, adapter) =>\n `${t(\"picker.labels.select\")} ${view}. ${\n time === null\n ? `${t(\"picker.labels.clock.empty\")}`\n : `${t(\"picker.labels.clock.selected\")} ${adapter.format(time, \"fullTime\")}`\n }`,\n datePickerToolbarTitle: `${t(\"picker.date.toolbar.title\")}`,\n dateRangePickerToolbarTitle: `${t(\"picker.daterange.toolbar.title\")}`,\n dateTableLabel: `${t(\"picker.labels.table.date\")}`,\n dateTimePickerToolbarTitle: `${t(\"picker.datetime.toolbar.title\")}`,\n day: `${t(\"picker.view.name.day\")}`,\n empty: `${t(\"picker.labels.empty\")}`,\n end: `${t(\"picker.labels.range.end\")}`,\n endDate: `${t(\"picker.labels.range.enddate\")}`,\n endTime: `${t(\"picker.labels.range.endTime\")}`,\n fieldClearLabel: `${t(\"picker.labels.field.clear\")}`,\n fieldDayPlaceholder: () => `${t(\"picker.field.placeholder.day\")}`,\n fieldMonthPlaceholder: () => `${t(\"picker.field.placeholder.month\")}`,\n fieldYearPlaceholder: () => `${t(\"picker.field.placeholder.year\")}`,\n fieldHoursPlaceholder: () => `${t(\"picker.field.placeholder.hours\")}`,\n fieldMinutesPlaceholder: () => `${t(\"picker.field.placeholder.minutes\")}`,\n fieldSecondsPlaceholder: () => `${t(\"picker.field.placeholder.seconds\")}`,\n fieldMeridiemPlaceholder: () => `${t(\"picker.field.placeholder.meridiem\")}`,\n // not translated because we aren't using it\n fieldWeekDayPlaceholder: () => \"\",\n hours: `${t(\"picker.view.name.hours\")}`,\n hoursClockNumberText: (hours) =>\n `${hours} ${t(\"picker.labels.clock.hours\")}`,\n meridiem: `${t(\"picker.view.name.meridiem\")}`,\n minutes: `${t(\"picker.view.name.minutes\")}`,\n minutesClockNumberText: (minutes) =>\n `${minutes} ${t(\"picker.labels.clock.minutes\")}`,\n month: `${t(\"picker.view.name.month\")}`,\n nextMonth: `${t(\"picker.calendar.navigation.nextmonth\")}`,\n okButtonLabel: `${t(\"picker.labels.action.apply\")}`,\n openDatePickerDialogue: (value, utils) =>\n value !== null && utils.isValid(value)\n ? `${t(\"picker.labels.date.choose\")}, ${t(\"picker.labels.date.selected\")} ${utils.format(value, \"fullDate\")}`\n : `${t(\"picker.labels.date.choose\")}`,\n openNextView: `${t(\"picker.view.navigation.open.nextview\")}`,\n openPreviousView: `${t(\"picker.view.navigation.open.previousview\")}`,\n openTimePickerDialogue: (value, utils) =>\n value !== null && utils.isValid(value)\n ? `${t(\"picker.labels.time.choose\")}, ${t(\"picker.labels.time.selected\")} ${utils.format(value, \"fullTime\")}`\n : `${t(\"picker.labels.time.choose\")}`,\n previousMonth: `${t(\"picker.calendar.navigation.previousmonth\")}`,\n seconds: `${t(\"picker.view.name.seconds\")}`,\n secondsClockNumberText: (seconds) =>\n `${seconds} ${t(\"picker.labels.clock.seconds\")}`,\n selectViewText: (view) => `${t(\"picker.labels.select\")} ${view}`,\n start: `${t(\"picker.labels.range.start\")}`,\n startDate: `${t(\"picker.labels.range.startdate\")}`,\n startTime: `${t(\"picker.labels.range.starttime\")}`,\n todayButtonLabel: `${t(\"picker.labels.action.today\")}`,\n timePickerToolbarTitle: `${t(\"picker.time.toolbar.title\")}`,\n timeTableLabel: `${t(\"picker.labels.table.time\")}`,\n weekDay: `${t(\"picker.view.name.weekday\")}`,\n year: `${t(\"picker.view.name.year\")}`,\n };\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,cAAc,QAAQ,eAAe;AAE9C,OAAO,MAAMC,yBAAyB,GAAGA,CAAA,KAAmC;EAC1E,MAAM;IAAEC;EAAE,CAAC,GAAGF,cAAc,CAAC,CAAC;EAE9B,OAAO;IACLG,oCAAoC,EAAGC,IAAI,IACzCA,IAAI,KAAK,MAAM,GACV,GAAEF,CAAC,CAAC,4CAA4C,CAAE,EAAC,GACnD,GAAEA,CAAC,CAAC,wCAAwC,CAAE,EAAC;IAEtDG,6BAA6B,EAAE,EAAE;IACjCC,4BAA4B,EAAE,EAAE;IAChCC,+BAA+B,EAAEA,CAAA,KAAM,EAAE;IACzCC,sBAAsB,EAAEA,CAAA,KAAM,EAAE;IAEhCC,iBAAiB,EAAG,GAAEP,CAAC,CAAC,6BAA6B,CAAE,EAAC;IACxDQ,gBAAgB,EAAG,GAAER,CAAC,CAAC,YAAY,CAAE,EAAC;IACtCS,cAAc,EAAEA,CAACP,IAAI,EAAEQ,IAAI,EAAEC,OAAO,KACjC,GAAEX,CAAC,CAAC,sBAAsB,CAAE,IAAGE,IAAK,KACnCQ,IAAI,KAAK,IAAI,G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AAC,CAAC,2BAA2B,CAAE,KAAIA,CAAC,CAAC,6BAA6B,CAAE,IAAGyC,KAAK,CAAC7B,MAAM,CAAC4B,KAAK,EAAE,UAAU,CAAE,EAAC,GAC1G,GAAExC,CAAC,CAAC,2BAA2B,CAAE,EAAC;IACzC8C,aAAa,EAAG,GAAE9C,CAAC,CAAC,0CAA0C,CAAE,EAAC;IACjE+C,OAAO,EAAG,GAAE/C,CAAC,CAAC,0BAA0B,CAAE,EAAC;IAC3CgD,sBAAsB,EAAGD,OAAO,IAC7B,GAAEA,OAAQ,IAAG/C,CAAC,CAAC,6BAA6B,CAAE,EAAC;IAClDiD,cAAc,EAAG/C,IAAI,IAAM,GAAEF,CAAC,CAAC,sBAAsB,CAAE,IAAGE,IAAK,EAAC;IAChEgD,KAAK,EAAG,GAAElD,CAAC,CAAC,2BAA2B,CAAE,EAAC;IAC1CmD,SAAS,EAAG,GAAEnD,CAAC,CAAC,+BAA+B,CAAE,EAAC;IAClDoD,SAAS,EAAG,GAAEpD,CAAC,CAAC,+BAA+B,CAAE,EAAC;IAClDqD,gBAAgB,EAAG,GAAErD,CAAC,CAAC,4BAA4B,CAAE,EAAC;IACtDsD,sBAAsB,EAAG,GAAEtD,CAAC,CAAC,2BAA2B,CAAE,EAAC;IAC3DuD,cAAc,EAAG,GAAEvD,CAAC,CAAC,0BAA0B,CAAE,EAAC;IAClDwD,OAAO,EAAG,GAAExD,CAAC,CAAC,0BAA0B,CAAE,EAAC;IAC3CyD,IAAI,EAAG,GAAEzD,CAAC,CAAC,uBAAuB,CAAE;EACtC,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"useDateFieldsTranslations.js","names":["useTranslation","useDateFieldsTranslations","t","calendarViewSwitchingButtonAriaLabel","view","calendarWeekNumberHeaderLabel","calendarWeekNumberHeaderText","calendarWeekNumberAriaLabelText","calendarWeekNumberText","cancelButtonLabel","clearButtonLabel","clockLabelText","time","adapter","format","datePickerToolbarTitle","dateRangePickerToolbarTitle","dateTableLabel","dateTimePickerToolbarTitle","day","empty","end","endDate","endTime","fieldClearLabel","fieldDayPlaceholder","fieldMonthPlaceholder","fieldYearPlaceholder","fieldHoursPlaceholder","fieldMinutesPlaceholder","fieldSecondsPlaceholder","fieldMeridiemPlaceholder","fieldWeekDayPlaceholder","hours","hoursClockNumberText","meridiem","minutes","minutesClockNumberText","month","nextMonth","okButtonLabel","openDatePickerDialogue","value","utils","isValid","openNextView","openPreviousView","openTimePickerDialogue","previousMonth","seconds","secondsClockNumberText","selectViewText","start","startDate","startTime","todayButtonLabel","timePickerToolbarTitle","timeTableLabel","weekDay","year"],"sources":["../../src/labs/useDateFieldsTranslations.ts"],"sourcesContent":["/*!\n * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { PickersLocaleText } from \"@mui/x-date-pickers\";\nimport { DateTime } from \"luxon\";\nimport { useTranslation } from \"react-i18next\";\n\nexport type DateFieldsTranslations = PickersLocaleText<DateTime>;\n\nexport const useDateFieldsTranslations = (): DateFieldsTranslations => {\n const { t } = useTranslation();\n\n return {\n calendarViewSwitchingButtonAriaLabel: (view) =>\n view === \"year\"\n ? `${t(\"picker.view.navigation.switch.calendarview\")}`\n : `${t(\"picker.view.navigation.switch.yearview\")}`,\n // not translated because we aren't using it\n calendarWeekNumberHeaderLabel: \"\",\n calendarWeekNumberHeaderText: \"\",\n calendarWeekNumberAriaLabelText: () => \"\",\n calendarWeekNumberText: () => \"\",\n\n cancelButtonLabel: `${t(\"picker.labels.action.cancel\")}`,\n clearButtonLabel: `${t(\"clear.text\")}`,\n clockLabelText: (view, time, adapter) =>\n `${t(\"picker.labels.select\")} ${view}. ${\n time === null\n ? `${t(\"picker.labels.clock.empty\")}`\n : `${t(\"picker.labels.clock.selected\")} ${adapter.format(time, \"fullTime\")}`\n }`,\n datePickerToolbarTitle: `${t(\"picker.date.toolbar.title\")}`,\n dateRangePickerToolbarTitle: `${t(\"picker.daterange.toolbar.title\")}`,\n dateTableLabel: `${t(\"picker.labels.table.date\")}`,\n dateTimePickerToolbarTitle: `${t(\"picker.datetime.toolbar.title\")}`,\n day: `${t(\"picker.view.name.day\")}`,\n empty: `${t(\"picker.labels.empty\")}`,\n end: `${t(\"picker.labels.range.end\")}`,\n endDate: `${t(\"picker.labels.range.enddate\")}`,\n endTime: `${t(\"picker.labels.range.endTime\")}`,\n fieldClearLabel: `${t(\"picker.labels.field.clear\")}`,\n fieldDayPlaceholder: () => `${t(\"picker.field.placeholder.day\")}`,\n fieldMonthPlaceholder: () => `${t(\"picker.field.placeholder.month\")}`,\n fieldYearPlaceholder: () => `${t(\"picker.field.placeholder.year\")}`,\n fieldHoursPlaceholder: () => `${t(\"picker.field.placeholder.hours\")}`,\n fieldMinutesPlaceholder: () => `${t(\"picker.field.placeholder.minutes\")}`,\n fieldSecondsPlaceholder: () => `${t(\"picker.field.placeholder.seconds\")}`,\n fieldMeridiemPlaceholder: () => `${t(\"picker.field.placeholder.meridiem\")}`,\n // not translated because we aren't using it\n fieldWeekDayPlaceholder: () => \"\",\n hours: `${t(\"picker.view.name.hours\")}`,\n hoursClockNumberText: (hours) =>\n `${hours} ${t(\"picker.labels.clock.hours\")}`,\n meridiem: `${t(\"picker.view.name.meridiem\")}`,\n minutes: `${t(\"picker.view.name.minutes\")}`,\n minutesClockNumberText: (minutes) =>\n `${minutes} ${t(\"picker.labels.clock.minutes\")}`,\n month: `${t(\"picker.view.name.month\")}`,\n nextMonth: `${t(\"picker.calendar.navigation.nextmonth\")}`,\n okButtonLabel: `${t(\"picker.labels.action.apply\")}`,\n openDatePickerDialogue: (value, utils) =>\n value !== null && utils.isValid(value)\n ? `${t(\"picker.labels.date.choose\")}, ${t(\"picker.labels.date.selected\")} ${utils.format(value, \"fullDate\")}`\n : `${t(\"picker.labels.date.choose\")}`,\n openNextView: `${t(\"picker.view.navigation.open.nextview\")}`,\n openPreviousView: `${t(\"picker.view.navigation.open.previousview\")}`,\n openTimePickerDialogue: (value, utils) =>\n value !== null && utils.isValid(value)\n ? `${t(\"picker.labels.time.choose\")}, ${t(\"picker.labels.time.selected\")} ${utils.format(value, \"fullTime\")}`\n : `${t(\"picker.labels.time.choose\")}`,\n previousMonth: `${t(\"picker.calendar.navigation.previousmonth\")}`,\n seconds: `${t(\"picker.view.name.seconds\")}`,\n secondsClockNumberText: (seconds) =>\n `${seconds} ${t(\"picker.labels.clock.seconds\")}`,\n selectViewText: (view) => `${t(\"picker.labels.select\")} ${view}`,\n start: `${t(\"picker.labels.range.start\")}`,\n startDate: `${t(\"picker.labels.range.startdate\")}`,\n startTime: `${t(\"picker.labels.range.starttime\")}`,\n todayButtonLabel: `${t(\"picker.labels.action.today\")}`,\n timePickerToolbarTitle: `${t(\"picker.time.toolbar.title\")}`,\n timeTableLabel: `${t(\"picker.labels.table.time\")}`,\n weekDay: `${t(\"picker.view.name.weekday\")}`,\n year: `${t(\"picker.view.name.year\")}`,\n };\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,cAAc,QAAQ,eAAe;AAI9C,OAAO,MAAMC,yBAAyB,GAAGA,CAAA,KAA8B;EACrE,MAAM;IAAEC;EAAE,CAAC,GAAGF,cAAc,CAAC,CAAC;EAE9B,OAAO;IACLG,oCAAoC,EAAGC,IAAI,IACzCA,IAAI,KAAK,MAAM,GACV,GAAEF,CAAC,CAAC,4CAA4C,CAAE,EAAC,GACnD,GAAEA,CAAC,CAAC,wCAAwC,CAAE,EAAC;IAEtDG,6BAA6B,EAAE,EAAE;IACjCC,4BAA4B,EAAE,EAAE;IACh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