@okta/odyssey-react-mui 0.23.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1146) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +43 -7
  3. package/dist/@types/i18next.d.js +14 -0
  4. package/dist/@types/i18next.d.js.map +1 -0
  5. package/dist/Autocomplete.js +15 -4
  6. package/dist/Autocomplete.js.map +1 -1
  7. package/dist/Banner.js +16 -6
  8. package/dist/Banner.js.map +1 -1
  9. package/dist/Box.js +29 -0
  10. package/dist/Box.js.map +1 -0
  11. package/dist/Button.js +35 -11
  12. package/dist/Button.js.map +1 -1
  13. package/dist/Callout.js +50 -0
  14. package/dist/Callout.js.map +1 -0
  15. package/dist/Checkbox.js +54 -15
  16. package/dist/Checkbox.js.map +1 -1
  17. package/dist/CheckboxGroup.js +16 -4
  18. package/dist/CheckboxGroup.js.map +1 -1
  19. package/dist/CircularProgress.js +14 -1
  20. package/dist/CircularProgress.js.map +1 -1
  21. package/dist/Dialog.js +26 -16
  22. package/dist/Dialog.js.map +1 -1
  23. package/dist/Field.js +21 -9
  24. package/dist/Field.js.map +1 -1
  25. package/dist/FieldError.js +9 -5
  26. package/dist/FieldError.js.map +1 -1
  27. package/dist/FieldHint.js +4 -4
  28. package/dist/FieldHint.js.map +1 -1
  29. package/dist/FieldLabel.js +22 -8
  30. package/dist/FieldLabel.js.map +1 -1
  31. package/dist/Fieldset.js +64 -0
  32. package/dist/Fieldset.js.map +1 -0
  33. package/dist/FieldsetContext.js +18 -0
  34. package/dist/FieldsetContext.js.map +1 -0
  35. package/dist/Form.js +81 -0
  36. package/dist/Form.js.map +1 -0
  37. package/dist/Link.js +18 -19
  38. package/dist/Link.js.map +1 -1
  39. package/dist/MenuButton.js +41 -27
  40. package/dist/MenuButton.js.map +1 -1
  41. package/dist/MenuContext.js +18 -0
  42. package/dist/MenuContext.js.map +1 -0
  43. package/dist/MenuItem.js +25 -10
  44. package/dist/MenuItem.js.map +1 -1
  45. package/dist/MuiPropsChild.js +4 -1
  46. package/dist/MuiPropsChild.js.map +1 -1
  47. package/dist/MuiPropsContext.js +3 -1
  48. package/dist/MuiPropsContext.js.map +1 -1
  49. package/dist/NativeSelect.js +61 -0
  50. package/dist/NativeSelect.js.map +1 -0
  51. package/dist/NullElement.js +2 -0
  52. package/dist/NullElement.js.map +1 -0
  53. package/dist/OdysseyCacheProvider.js +7 -5
  54. package/dist/OdysseyCacheProvider.js.map +1 -1
  55. package/dist/OdysseyDesignTokensContext.js +17 -0
  56. package/dist/OdysseyDesignTokensContext.js.map +1 -0
  57. package/dist/OdysseyI18n.js +97 -0
  58. package/dist/OdysseyI18n.js.map +1 -0
  59. package/dist/OdysseyProvider.js +44 -0
  60. package/dist/OdysseyProvider.js.map +1 -0
  61. package/dist/OdysseyThemeProvider.js +20 -7
  62. package/dist/OdysseyThemeProvider.js.map +1 -1
  63. package/dist/OdysseyTranslationProvider.js +47 -0
  64. package/dist/OdysseyTranslationProvider.js.map +1 -0
  65. package/dist/OdysseyTranslationProvider.types.js +14 -0
  66. package/dist/OdysseyTranslationProvider.types.js.map +1 -0
  67. package/dist/PasswordField.js +19 -5
  68. package/dist/PasswordField.js.map +1 -1
  69. package/dist/Radio.js +16 -8
  70. package/dist/Radio.js.map +1 -1
  71. package/dist/RadioGroup.js +12 -2
  72. package/dist/RadioGroup.js.map +1 -1
  73. package/dist/ScreenReaderText.js +8 -5
  74. package/dist/ScreenReaderText.js.map +1 -1
  75. package/dist/SearchField.js +47 -5
  76. package/dist/SearchField.js.map +1 -1
  77. package/dist/Select.js +132 -0
  78. package/dist/Select.js.map +1 -0
  79. package/dist/Status.js +10 -4
  80. package/dist/Status.js.map +1 -1
  81. package/dist/SvgIcon.js +15 -0
  82. package/dist/SvgIcon.js.map +1 -0
  83. package/dist/Tabs.js +48 -0
  84. package/dist/Tabs.js.map +1 -0
  85. package/dist/Tag.js +23 -5
  86. package/dist/Tag.js.map +1 -1
  87. package/dist/TagList.js +14 -2
  88. package/dist/TagList.js.map +1 -1
  89. package/dist/TagListContext.js +1 -0
  90. package/dist/TagListContext.js.map +1 -1
  91. package/dist/TextField.js +13 -2
  92. package/dist/TextField.js.map +1 -1
  93. package/dist/Toast.js +21 -8
  94. package/dist/Toast.js.map +1 -1
  95. package/dist/ToastStack.js +11 -8
  96. package/dist/ToastStack.js.map +1 -1
  97. package/dist/Tooltip.js +13 -2
  98. package/dist/Tooltip.js.map +1 -1
  99. package/dist/Typography.js +283 -0
  100. package/dist/Typography.js.map +1 -0
  101. package/dist/createUniqueAlphabeticalId.js +1 -2
  102. package/dist/createUniqueAlphabeticalId.js.map +1 -1
  103. package/dist/createUniqueId.js +1 -2
  104. package/dist/createUniqueId.js.map +1 -1
  105. package/dist/icons.generated/Add.js +33 -0
  106. package/dist/icons.generated/Add.js.map +1 -0
  107. package/dist/icons.generated/AddCircle.js +33 -0
  108. package/dist/icons.generated/AddCircle.js.map +1 -0
  109. package/dist/icons.generated/Apps.js +33 -0
  110. package/dist/icons.generated/Apps.js.map +1 -0
  111. package/dist/icons.generated/ArrowDown.js +33 -0
  112. package/dist/icons.generated/ArrowDown.js.map +1 -0
  113. package/dist/icons.generated/ArrowLeft.js +33 -0
  114. package/dist/icons.generated/ArrowLeft.js.map +1 -0
  115. package/dist/icons.generated/ArrowLowerLeft.js +33 -0
  116. package/dist/icons.generated/ArrowLowerLeft.js.map +1 -0
  117. package/dist/icons.generated/ArrowLowerRight.js +33 -0
  118. package/dist/icons.generated/ArrowLowerRight.js.map +1 -0
  119. package/dist/icons.generated/ArrowRight.js +33 -0
  120. package/dist/icons.generated/ArrowRight.js.map +1 -0
  121. package/dist/icons.generated/ArrowUnsorted.js +33 -0
  122. package/dist/icons.generated/ArrowUnsorted.js.map +1 -0
  123. package/dist/icons.generated/ArrowUp.js +33 -0
  124. package/dist/icons.generated/ArrowUp.js.map +1 -0
  125. package/dist/icons.generated/ArrowUpperLeft.js +33 -0
  126. package/dist/icons.generated/ArrowUpperLeft.js.map +1 -0
  127. package/dist/icons.generated/ArrowUpperRight.js +33 -0
  128. package/dist/icons.generated/ArrowUpperRight.js.map +1 -0
  129. package/dist/icons.generated/Bug.js +33 -0
  130. package/dist/icons.generated/Bug.js.map +1 -0
  131. package/dist/icons.generated/Calendar.js +33 -0
  132. package/dist/icons.generated/Calendar.js.map +1 -0
  133. package/dist/icons.generated/Call.js +33 -0
  134. package/dist/icons.generated/Call.js.map +1 -0
  135. package/dist/icons.generated/Chat.js +33 -0
  136. package/dist/icons.generated/Chat.js.map +1 -0
  137. package/dist/icons.generated/Check.js +33 -0
  138. package/dist/icons.generated/Check.js.map +1 -0
  139. package/dist/icons.generated/CheckCircleFilled.js +33 -0
  140. package/dist/icons.generated/CheckCircleFilled.js.map +1 -0
  141. package/dist/icons.generated/ChevronDown.js +33 -0
  142. package/dist/icons.generated/ChevronDown.js.map +1 -0
  143. package/dist/icons.generated/ChevronLeft.js +33 -0
  144. package/dist/icons.generated/ChevronLeft.js.map +1 -0
  145. package/dist/icons.generated/ChevronRight.js +33 -0
  146. package/dist/icons.generated/ChevronRight.js.map +1 -0
  147. package/dist/icons.generated/ChevronUp.js +33 -0
  148. package/dist/icons.generated/ChevronUp.js.map +1 -0
  149. package/dist/icons.generated/Clock.js +33 -0
  150. package/dist/icons.generated/Clock.js.map +1 -0
  151. package/dist/icons.generated/Close.js +33 -0
  152. package/dist/icons.generated/Close.js.map +1 -0
  153. package/dist/icons.generated/CloseCircleFilled.js +33 -0
  154. package/dist/icons.generated/CloseCircleFilled.js.map +1 -0
  155. package/dist/icons.generated/CollapseLeft.js +33 -0
  156. package/dist/icons.generated/CollapseLeft.js.map +1 -0
  157. package/dist/icons.generated/CollapseRight.js +33 -0
  158. package/dist/icons.generated/CollapseRight.js.map +1 -0
  159. package/dist/icons.generated/Copy.js +33 -0
  160. package/dist/icons.generated/Copy.js.map +1 -0
  161. package/dist/icons.generated/DangerDiamond.js +33 -0
  162. package/dist/icons.generated/DangerDiamond.js.map +1 -0
  163. package/dist/icons.generated/DangerDiamondFilled.js +33 -0
  164. package/dist/icons.generated/DangerDiamondFilled.js.map +1 -0
  165. package/dist/icons.generated/Delete.js +33 -0
  166. package/dist/icons.generated/Delete.js.map +1 -0
  167. package/dist/icons.generated/Deny.js +33 -0
  168. package/dist/icons.generated/Deny.js.map +1 -0
  169. package/dist/icons.generated/Devices.js +33 -0
  170. package/dist/icons.generated/Devices.js.map +1 -0
  171. package/dist/icons.generated/Directory.js +33 -0
  172. package/dist/icons.generated/Directory.js.map +1 -0
  173. package/dist/icons.generated/Documentation.js +33 -0
  174. package/dist/icons.generated/Documentation.js.map +1 -0
  175. package/dist/icons.generated/Download.js +33 -0
  176. package/dist/icons.generated/Download.js.map +1 -0
  177. package/dist/icons.generated/DragIndicator.js +33 -0
  178. package/dist/icons.generated/DragIndicator.js.map +1 -0
  179. package/dist/icons.generated/Edit.js +33 -0
  180. package/dist/icons.generated/Edit.js.map +1 -0
  181. package/dist/icons.generated/ExpandLeft.js +33 -0
  182. package/dist/icons.generated/ExpandLeft.js.map +1 -0
  183. package/dist/icons.generated/ExpandRight.js +33 -0
  184. package/dist/icons.generated/ExpandRight.js.map +1 -0
  185. package/dist/icons.generated/ExternalLink.js +33 -0
  186. package/dist/icons.generated/ExternalLink.js.map +1 -0
  187. package/dist/icons.generated/Filter.js +33 -0
  188. package/dist/icons.generated/Filter.js.map +1 -0
  189. package/dist/icons.generated/Folder.js +33 -0
  190. package/dist/icons.generated/Folder.js.map +1 -0
  191. package/dist/icons.generated/Globe.js +33 -0
  192. package/dist/icons.generated/Globe.js.map +1 -0
  193. package/dist/icons.generated/Grid.js +74 -0
  194. package/dist/icons.generated/Grid.js.map +1 -0
  195. package/dist/icons.generated/Group.js +33 -0
  196. package/dist/icons.generated/Group.js.map +1 -0
  197. package/dist/icons.generated/Hide.js +33 -0
  198. package/dist/icons.generated/Hide.js.map +1 -0
  199. package/dist/icons.generated/Home.js +33 -0
  200. package/dist/icons.generated/Home.js.map +1 -0
  201. package/dist/icons.generated/InformationCircle.js +33 -0
  202. package/dist/icons.generated/InformationCircle.js.map +1 -0
  203. package/dist/icons.generated/InformationCircleFilled.js +33 -0
  204. package/dist/icons.generated/InformationCircleFilled.js.map +1 -0
  205. package/dist/icons.generated/Link.js +33 -0
  206. package/dist/icons.generated/Link.js.map +1 -0
  207. package/dist/icons.generated/List.js +33 -0
  208. package/dist/icons.generated/List.js.map +1 -0
  209. package/dist/icons.generated/Lock.js +33 -0
  210. package/dist/icons.generated/Lock.js.map +1 -0
  211. package/dist/icons.generated/More.js +33 -0
  212. package/dist/icons.generated/More.js.map +1 -0
  213. package/dist/icons.generated/Notification.js +33 -0
  214. package/dist/icons.generated/Notification.js.map +1 -0
  215. package/dist/icons.generated/Pause.js +33 -0
  216. package/dist/icons.generated/Pause.js.map +1 -0
  217. package/dist/icons.generated/QuestionCircle.js +33 -0
  218. package/dist/icons.generated/QuestionCircle.js.map +1 -0
  219. package/dist/icons.generated/QuestionCircleFilled.js +33 -0
  220. package/dist/icons.generated/QuestionCircleFilled.js.map +1 -0
  221. package/dist/icons.generated/Refresh.js +33 -0
  222. package/dist/icons.generated/Refresh.js.map +1 -0
  223. package/dist/icons.generated/Reset.js +33 -0
  224. package/dist/icons.generated/Reset.js.map +1 -0
  225. package/dist/icons.generated/Resume.js +33 -0
  226. package/dist/icons.generated/Resume.js.map +1 -0
  227. package/dist/icons.generated/Search.js +33 -0
  228. package/dist/icons.generated/Search.js.map +1 -0
  229. package/dist/icons.generated/Server.js +33 -0
  230. package/dist/icons.generated/Server.js.map +1 -0
  231. package/dist/icons.generated/Settings.js +33 -0
  232. package/dist/icons.generated/Settings.js.map +1 -0
  233. package/dist/icons.generated/Show.js +33 -0
  234. package/dist/icons.generated/Show.js.map +1 -0
  235. package/dist/icons.generated/Subtract.js +33 -0
  236. package/dist/icons.generated/Subtract.js.map +1 -0
  237. package/dist/icons.generated/Sync.js +33 -0
  238. package/dist/icons.generated/Sync.js.map +1 -0
  239. package/dist/icons.generated/Unlock.js +33 -0
  240. package/dist/icons.generated/Unlock.js.map +1 -0
  241. package/dist/icons.generated/Upload.js +33 -0
  242. package/dist/icons.generated/Upload.js.map +1 -0
  243. package/dist/icons.generated/User.js +33 -0
  244. package/dist/icons.generated/User.js.map +1 -0
  245. package/dist/icons.generated/Video.js +33 -0
  246. package/dist/icons.generated/Video.js.map +1 -0
  247. package/dist/icons.generated/Warning.js +33 -0
  248. package/dist/icons.generated/Warning.js.map +1 -0
  249. package/dist/icons.generated/WarningFilled.js +33 -0
  250. package/dist/icons.generated/WarningFilled.js.map +1 -0
  251. package/dist/icons.generated/index.js +85 -0
  252. package/dist/icons.generated/index.js.map +1 -0
  253. package/dist/index.js +15 -8
  254. package/dist/index.js.map +1 -1
  255. package/dist/labs/DatePicker.js +42 -0
  256. package/dist/labs/DatePicker.js.map +1 -0
  257. package/dist/labs/DatePicker.types.js +12 -0
  258. package/dist/labs/DatePicker.types.js.map +1 -0
  259. package/dist/labs/PaginatedTable.js +170 -0
  260. package/dist/labs/PaginatedTable.js.map +1 -0
  261. package/dist/labs/StaticTable.js +82 -0
  262. package/dist/labs/StaticTable.js.map +1 -0
  263. package/dist/labs/datePickerTheme.js +456 -0
  264. package/dist/labs/datePickerTheme.js.map +1 -0
  265. package/dist/labs/index.js +20 -0
  266. package/dist/labs/index.js.map +1 -0
  267. package/dist/labs/materialReactTableTypes.js +2 -0
  268. package/dist/labs/materialReactTableTypes.js.map +1 -0
  269. package/dist/properties/ts/odyssey-react-mui.js +16 -0
  270. package/dist/properties/ts/odyssey-react-mui.js.map +1 -0
  271. package/dist/properties/ts/odyssey-react-mui_cs.js +16 -0
  272. package/dist/properties/ts/odyssey-react-mui_cs.js.map +1 -0
  273. package/dist/properties/ts/odyssey-react-mui_da.js +16 -0
  274. package/dist/properties/ts/odyssey-react-mui_da.js.map +1 -0
  275. package/dist/properties/ts/odyssey-react-mui_de.js +16 -0
  276. package/dist/properties/ts/odyssey-react-mui_de.js.map +1 -0
  277. package/dist/properties/ts/odyssey-react-mui_el.js +16 -0
  278. package/dist/properties/ts/odyssey-react-mui_el.js.map +1 -0
  279. package/dist/properties/ts/odyssey-react-mui_es.js +16 -0
  280. package/dist/properties/ts/odyssey-react-mui_es.js.map +1 -0
  281. package/dist/properties/ts/odyssey-react-mui_fi.js +16 -0
  282. package/dist/properties/ts/odyssey-react-mui_fi.js.map +1 -0
  283. package/dist/properties/ts/odyssey-react-mui_fr.js +16 -0
  284. package/dist/properties/ts/odyssey-react-mui_fr.js.map +1 -0
  285. package/dist/properties/ts/odyssey-react-mui_hu.js +16 -0
  286. package/dist/properties/ts/odyssey-react-mui_hu.js.map +1 -0
  287. package/dist/properties/ts/odyssey-react-mui_id.js +16 -0
  288. package/dist/properties/ts/odyssey-react-mui_id.js.map +1 -0
  289. package/dist/properties/ts/odyssey-react-mui_it.js +16 -0
  290. package/dist/properties/ts/odyssey-react-mui_it.js.map +1 -0
  291. package/dist/properties/ts/odyssey-react-mui_ja.js +16 -0
  292. package/dist/properties/ts/odyssey-react-mui_ja.js.map +1 -0
  293. package/dist/properties/ts/odyssey-react-mui_ko.js +16 -0
  294. package/dist/properties/ts/odyssey-react-mui_ko.js.map +1 -0
  295. package/dist/properties/ts/odyssey-react-mui_ms.js +16 -0
  296. package/dist/properties/ts/odyssey-react-mui_ms.js.map +1 -0
  297. package/dist/properties/ts/odyssey-react-mui_nb.js +16 -0
  298. package/dist/properties/ts/odyssey-react-mui_nb.js.map +1 -0
  299. package/dist/properties/ts/odyssey-react-mui_nl_NL.js +16 -0
  300. package/dist/properties/ts/odyssey-react-mui_nl_NL.js.map +1 -0
  301. package/dist/properties/ts/odyssey-react-mui_ok_PL.js +11 -0
  302. package/dist/properties/ts/odyssey-react-mui_ok_PL.js.map +1 -0
  303. package/dist/properties/ts/odyssey-react-mui_ok_SK.js +11 -0
  304. package/dist/properties/ts/odyssey-react-mui_ok_SK.js.map +1 -0
  305. package/dist/properties/ts/odyssey-react-mui_pl.js +16 -0
  306. package/dist/properties/ts/odyssey-react-mui_pl.js.map +1 -0
  307. package/dist/properties/ts/odyssey-react-mui_pt_BR.js +16 -0
  308. package/dist/properties/ts/odyssey-react-mui_pt_BR.js.map +1 -0
  309. package/dist/properties/ts/odyssey-react-mui_ro.js +16 -0
  310. package/dist/properties/ts/odyssey-react-mui_ro.js.map +1 -0
  311. package/dist/properties/ts/odyssey-react-mui_ru.js +16 -0
  312. package/dist/properties/ts/odyssey-react-mui_ru.js.map +1 -0
  313. package/dist/properties/ts/odyssey-react-mui_sv.js +16 -0
  314. package/dist/properties/ts/odyssey-react-mui_sv.js.map +1 -0
  315. package/dist/properties/ts/odyssey-react-mui_th.js +16 -0
  316. package/dist/properties/ts/odyssey-react-mui_th.js.map +1 -0
  317. package/dist/properties/ts/odyssey-react-mui_tr.js +16 -0
  318. package/dist/properties/ts/odyssey-react-mui_tr.js.map +1 -0
  319. package/dist/properties/ts/odyssey-react-mui_uk.js +16 -0
  320. package/dist/properties/ts/odyssey-react-mui_uk.js.map +1 -0
  321. package/dist/properties/ts/odyssey-react-mui_vi.js +16 -0
  322. package/dist/properties/ts/odyssey-react-mui_vi.js.map +1 -0
  323. package/dist/properties/ts/odyssey-react-mui_zh_CN.js +16 -0
  324. package/dist/properties/ts/odyssey-react-mui_zh_CN.js.map +1 -0
  325. package/dist/properties/ts/odyssey-react-mui_zh_TW.js +16 -0
  326. package/dist/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -0
  327. package/dist/scripts/generateIconsIndex.d.ts +13 -0
  328. package/dist/scripts/generateIconsIndex.d.ts.map +1 -0
  329. package/dist/src/Autocomplete.d.ts +34 -1
  330. package/dist/src/Autocomplete.d.ts.map +1 -1
  331. package/dist/src/Banner.d.ts +4 -2
  332. package/dist/src/Banner.d.ts.map +1 -1
  333. package/dist/src/Box.d.ts +20 -0
  334. package/dist/src/Box.d.ts.map +1 -0
  335. package/dist/src/Button.d.ts +66 -9
  336. package/dist/src/Button.d.ts.map +1 -1
  337. package/dist/src/Callout.d.ts +37 -0
  338. package/dist/src/Callout.d.ts.map +1 -0
  339. package/dist/src/Checkbox.d.ts +40 -5
  340. package/dist/src/Checkbox.d.ts.map +1 -1
  341. package/dist/src/CheckboxGroup.d.ts +20 -1
  342. package/dist/src/CheckboxGroup.d.ts.map +1 -1
  343. package/dist/src/CircularProgress.d.ts +9 -1
  344. package/dist/src/CircularProgress.d.ts.map +1 -1
  345. package/dist/src/Dialog.d.ts +29 -7
  346. package/dist/src/Dialog.d.ts.map +1 -1
  347. package/dist/src/Field.d.ts +10 -6
  348. package/dist/src/Field.d.ts.map +1 -1
  349. package/dist/src/FieldError.d.ts.map +1 -1
  350. package/dist/src/FieldHint.d.ts.map +1 -1
  351. package/dist/src/FieldLabel.d.ts +1 -2
  352. package/dist/src/FieldLabel.d.ts.map +1 -1
  353. package/dist/src/Fieldset.d.ts +46 -0
  354. package/dist/src/Fieldset.d.ts.map +1 -0
  355. package/dist/src/FieldsetContext.d.ts +18 -0
  356. package/dist/src/FieldsetContext.d.ts.map +1 -0
  357. package/dist/src/Form.d.ts +76 -0
  358. package/dist/src/Form.d.ts.map +1 -0
  359. package/dist/src/Link.d.ts +23 -4
  360. package/dist/src/Link.d.ts.map +1 -1
  361. package/dist/src/MenuButton.d.ts +40 -10
  362. package/dist/src/MenuButton.d.ts.map +1 -1
  363. package/dist/src/MenuContext.d.ts +18 -0
  364. package/dist/src/MenuContext.d.ts.map +1 -0
  365. package/dist/src/MenuItem.d.ts +32 -6
  366. package/dist/src/MenuItem.d.ts.map +1 -1
  367. package/dist/src/MuiPropsChild.d.ts.map +1 -1
  368. package/dist/src/MuiPropsContext.d.ts +1 -0
  369. package/dist/src/MuiPropsContext.d.ts.map +1 -1
  370. package/dist/src/NativeSelect.d.ts +75 -0
  371. package/dist/src/NativeSelect.d.ts.map +1 -0
  372. package/dist/src/NullElement.d.ts +13 -0
  373. package/dist/src/NullElement.d.ts.map +1 -0
  374. package/dist/src/OdysseyCacheProvider.d.ts +8 -5
  375. package/dist/src/OdysseyCacheProvider.d.ts.map +1 -1
  376. package/dist/src/OdysseyDesignTokensContext.d.ts +16 -0
  377. package/dist/src/OdysseyDesignTokensContext.d.ts.map +1 -0
  378. package/dist/src/OdysseyI18n.d.ts +429 -0
  379. package/dist/src/OdysseyI18n.d.ts.map +1 -0
  380. package/dist/src/OdysseyProvider.d.ts +21 -0
  381. package/dist/src/OdysseyProvider.d.ts.map +1 -0
  382. package/dist/src/OdysseyThemeProvider.d.ts +9 -6
  383. package/dist/src/OdysseyThemeProvider.d.ts.map +1 -1
  384. package/dist/src/OdysseyTranslationProvider.d.ts +24 -0
  385. package/dist/src/OdysseyTranslationProvider.d.ts.map +1 -0
  386. package/dist/src/OdysseyTranslationProvider.types.d.ts +14 -0
  387. package/dist/src/OdysseyTranslationProvider.types.d.ts.map +1 -0
  388. package/dist/src/PasswordField.d.ts.map +1 -1
  389. package/dist/src/Radio.d.ts +20 -3
  390. package/dist/src/Radio.d.ts.map +1 -1
  391. package/dist/src/RadioGroup.d.ts +7 -7
  392. package/dist/src/RadioGroup.d.ts.map +1 -1
  393. package/dist/src/ScreenReaderText.d.ts.map +1 -1
  394. package/dist/src/SearchField.d.ts +4 -0
  395. package/dist/src/SearchField.d.ts.map +1 -1
  396. package/dist/src/Select.d.ts +71 -0
  397. package/dist/src/Select.d.ts.map +1 -0
  398. package/dist/src/Status.d.ts +11 -5
  399. package/dist/src/Status.d.ts.map +1 -1
  400. package/dist/src/SvgIcon.d.ts +21 -0
  401. package/dist/src/SvgIcon.d.ts.map +1 -0
  402. package/dist/src/Tabs.d.ts +51 -0
  403. package/dist/src/Tabs.d.ts.map +1 -0
  404. package/dist/src/Tag.d.ts +15 -5
  405. package/dist/src/Tag.d.ts.map +1 -1
  406. package/dist/src/TagList.d.ts +4 -1
  407. package/dist/src/TagList.d.ts.map +1 -1
  408. package/dist/src/TextField.d.ts +4 -8
  409. package/dist/src/TextField.d.ts.map +1 -1
  410. package/dist/src/Toast.d.ts +12 -11
  411. package/dist/src/Toast.d.ts.map +1 -1
  412. package/dist/src/ToastStack.d.ts +3 -0
  413. package/dist/src/ToastStack.d.ts.map +1 -1
  414. package/dist/src/Tooltip.d.ts +15 -3
  415. package/dist/src/Tooltip.d.ts.map +1 -1
  416. package/dist/src/Typography.d.ts +95 -0
  417. package/dist/src/Typography.d.ts.map +1 -0
  418. package/dist/src/icons.generated/Add.d.ts +16 -0
  419. package/dist/src/icons.generated/Add.d.ts.map +1 -0
  420. package/dist/src/icons.generated/AddCircle.d.ts +16 -0
  421. package/dist/src/icons.generated/AddCircle.d.ts.map +1 -0
  422. package/dist/src/icons.generated/Apps.d.ts +16 -0
  423. package/dist/src/icons.generated/Apps.d.ts.map +1 -0
  424. package/dist/src/icons.generated/ArrowDown.d.ts +16 -0
  425. package/dist/src/icons.generated/ArrowDown.d.ts.map +1 -0
  426. package/dist/src/icons.generated/ArrowLeft.d.ts +16 -0
  427. package/dist/src/icons.generated/ArrowLeft.d.ts.map +1 -0
  428. package/dist/src/icons.generated/ArrowLowerLeft.d.ts +16 -0
  429. package/dist/src/icons.generated/ArrowLowerLeft.d.ts.map +1 -0
  430. package/dist/src/icons.generated/ArrowLowerRight.d.ts +16 -0
  431. package/dist/src/icons.generated/ArrowLowerRight.d.ts.map +1 -0
  432. package/dist/src/icons.generated/ArrowRight.d.ts +16 -0
  433. package/dist/src/icons.generated/ArrowRight.d.ts.map +1 -0
  434. package/dist/src/icons.generated/ArrowUnsorted.d.ts +16 -0
  435. package/dist/src/icons.generated/ArrowUnsorted.d.ts.map +1 -0
  436. package/dist/src/icons.generated/ArrowUp.d.ts +16 -0
  437. package/dist/src/icons.generated/ArrowUp.d.ts.map +1 -0
  438. package/dist/src/icons.generated/ArrowUpperLeft.d.ts +16 -0
  439. package/dist/src/icons.generated/ArrowUpperLeft.d.ts.map +1 -0
  440. package/dist/src/icons.generated/ArrowUpperRight.d.ts +16 -0
  441. package/dist/src/icons.generated/ArrowUpperRight.d.ts.map +1 -0
  442. package/dist/src/icons.generated/Bug.d.ts +16 -0
  443. package/dist/src/icons.generated/Bug.d.ts.map +1 -0
  444. package/dist/src/icons.generated/Calendar.d.ts +16 -0
  445. package/dist/src/icons.generated/Calendar.d.ts.map +1 -0
  446. package/dist/src/icons.generated/Call.d.ts +16 -0
  447. package/dist/src/icons.generated/Call.d.ts.map +1 -0
  448. package/dist/src/icons.generated/Chat.d.ts +16 -0
  449. package/dist/src/icons.generated/Chat.d.ts.map +1 -0
  450. package/dist/src/icons.generated/Check.d.ts +16 -0
  451. package/dist/src/icons.generated/Check.d.ts.map +1 -0
  452. package/dist/src/icons.generated/CheckCircleFilled.d.ts +16 -0
  453. package/dist/src/icons.generated/CheckCircleFilled.d.ts.map +1 -0
  454. package/dist/src/icons.generated/ChevronDown.d.ts +16 -0
  455. package/dist/src/icons.generated/ChevronDown.d.ts.map +1 -0
  456. package/dist/src/icons.generated/ChevronLeft.d.ts +16 -0
  457. package/dist/src/icons.generated/ChevronLeft.d.ts.map +1 -0
  458. package/dist/src/icons.generated/ChevronRight.d.ts +16 -0
  459. package/dist/src/icons.generated/ChevronRight.d.ts.map +1 -0
  460. package/dist/src/icons.generated/ChevronUp.d.ts +16 -0
  461. package/dist/src/icons.generated/ChevronUp.d.ts.map +1 -0
  462. package/dist/src/icons.generated/Clock.d.ts +16 -0
  463. package/dist/src/icons.generated/Clock.d.ts.map +1 -0
  464. package/dist/src/icons.generated/Close.d.ts +16 -0
  465. package/dist/src/icons.generated/Close.d.ts.map +1 -0
  466. package/dist/src/icons.generated/CloseCircleFilled.d.ts +16 -0
  467. package/dist/src/icons.generated/CloseCircleFilled.d.ts.map +1 -0
  468. package/dist/src/icons.generated/CollapseLeft.d.ts +16 -0
  469. package/dist/src/icons.generated/CollapseLeft.d.ts.map +1 -0
  470. package/dist/src/icons.generated/CollapseRight.d.ts +16 -0
  471. package/dist/src/icons.generated/CollapseRight.d.ts.map +1 -0
  472. package/dist/src/icons.generated/Copy.d.ts +16 -0
  473. package/dist/src/icons.generated/Copy.d.ts.map +1 -0
  474. package/dist/src/icons.generated/DangerDiamond.d.ts +16 -0
  475. package/dist/src/icons.generated/DangerDiamond.d.ts.map +1 -0
  476. package/dist/src/icons.generated/DangerDiamondFilled.d.ts +16 -0
  477. package/dist/src/icons.generated/DangerDiamondFilled.d.ts.map +1 -0
  478. package/dist/src/icons.generated/Delete.d.ts +16 -0
  479. package/dist/src/icons.generated/Delete.d.ts.map +1 -0
  480. package/dist/src/icons.generated/Deny.d.ts +16 -0
  481. package/dist/src/icons.generated/Deny.d.ts.map +1 -0
  482. package/dist/src/icons.generated/Devices.d.ts +16 -0
  483. package/dist/src/icons.generated/Devices.d.ts.map +1 -0
  484. package/dist/src/icons.generated/Directory.d.ts +16 -0
  485. package/dist/src/icons.generated/Directory.d.ts.map +1 -0
  486. package/dist/src/icons.generated/Documentation.d.ts +16 -0
  487. package/dist/src/icons.generated/Documentation.d.ts.map +1 -0
  488. package/dist/src/icons.generated/Download.d.ts +16 -0
  489. package/dist/src/icons.generated/Download.d.ts.map +1 -0
  490. package/dist/src/icons.generated/DragIndicator.d.ts +16 -0
  491. package/dist/src/icons.generated/DragIndicator.d.ts.map +1 -0
  492. package/dist/src/icons.generated/Edit.d.ts +16 -0
  493. package/dist/src/icons.generated/Edit.d.ts.map +1 -0
  494. package/dist/src/icons.generated/ExpandLeft.d.ts +16 -0
  495. package/dist/src/icons.generated/ExpandLeft.d.ts.map +1 -0
  496. package/dist/src/icons.generated/ExpandRight.d.ts +16 -0
  497. package/dist/src/icons.generated/ExpandRight.d.ts.map +1 -0
  498. package/dist/src/icons.generated/ExternalLink.d.ts +16 -0
  499. package/dist/src/icons.generated/ExternalLink.d.ts.map +1 -0
  500. package/dist/src/icons.generated/Filter.d.ts +16 -0
  501. package/dist/src/icons.generated/Filter.d.ts.map +1 -0
  502. package/dist/src/icons.generated/Folder.d.ts +16 -0
  503. package/dist/src/icons.generated/Folder.d.ts.map +1 -0
  504. package/dist/src/icons.generated/Globe.d.ts +16 -0
  505. package/dist/src/icons.generated/Globe.d.ts.map +1 -0
  506. package/dist/src/icons.generated/Grid.d.ts +16 -0
  507. package/dist/src/icons.generated/Grid.d.ts.map +1 -0
  508. package/dist/src/icons.generated/Group.d.ts +16 -0
  509. package/dist/src/icons.generated/Group.d.ts.map +1 -0
  510. package/dist/src/icons.generated/Hide.d.ts +16 -0
  511. package/dist/src/icons.generated/Hide.d.ts.map +1 -0
  512. package/dist/src/icons.generated/Home.d.ts +16 -0
  513. package/dist/src/icons.generated/Home.d.ts.map +1 -0
  514. package/dist/src/icons.generated/InformationCircle.d.ts +16 -0
  515. package/dist/src/icons.generated/InformationCircle.d.ts.map +1 -0
  516. package/dist/src/icons.generated/InformationCircleFilled.d.ts +16 -0
  517. package/dist/src/icons.generated/InformationCircleFilled.d.ts.map +1 -0
  518. package/dist/src/icons.generated/Link.d.ts +16 -0
  519. package/dist/src/icons.generated/Link.d.ts.map +1 -0
  520. package/dist/src/icons.generated/List.d.ts +16 -0
  521. package/dist/src/icons.generated/List.d.ts.map +1 -0
  522. package/dist/src/icons.generated/Lock.d.ts +16 -0
  523. package/dist/src/icons.generated/Lock.d.ts.map +1 -0
  524. package/dist/src/icons.generated/More.d.ts +16 -0
  525. package/dist/src/icons.generated/More.d.ts.map +1 -0
  526. package/dist/src/icons.generated/Notification.d.ts +16 -0
  527. package/dist/src/icons.generated/Notification.d.ts.map +1 -0
  528. package/dist/src/icons.generated/Pause.d.ts +16 -0
  529. package/dist/src/icons.generated/Pause.d.ts.map +1 -0
  530. package/dist/src/icons.generated/QuestionCircle.d.ts +16 -0
  531. package/dist/src/icons.generated/QuestionCircle.d.ts.map +1 -0
  532. package/dist/src/icons.generated/QuestionCircleFilled.d.ts +16 -0
  533. package/dist/src/icons.generated/QuestionCircleFilled.d.ts.map +1 -0
  534. package/dist/src/icons.generated/Refresh.d.ts +16 -0
  535. package/dist/src/icons.generated/Refresh.d.ts.map +1 -0
  536. package/dist/src/icons.generated/Reset.d.ts +16 -0
  537. package/dist/src/icons.generated/Reset.d.ts.map +1 -0
  538. package/dist/src/icons.generated/Resume.d.ts +16 -0
  539. package/dist/src/icons.generated/Resume.d.ts.map +1 -0
  540. package/dist/src/icons.generated/Search.d.ts +16 -0
  541. package/dist/src/icons.generated/Search.d.ts.map +1 -0
  542. package/dist/src/icons.generated/Server.d.ts +16 -0
  543. package/dist/src/icons.generated/Server.d.ts.map +1 -0
  544. package/dist/src/icons.generated/Settings.d.ts +16 -0
  545. package/dist/src/icons.generated/Settings.d.ts.map +1 -0
  546. package/dist/src/icons.generated/Show.d.ts +16 -0
  547. package/dist/src/icons.generated/Show.d.ts.map +1 -0
  548. package/dist/src/icons.generated/Subtract.d.ts +16 -0
  549. package/dist/src/icons.generated/Subtract.d.ts.map +1 -0
  550. package/dist/src/icons.generated/Sync.d.ts +16 -0
  551. package/dist/src/icons.generated/Sync.d.ts.map +1 -0
  552. package/dist/src/icons.generated/Unlock.d.ts +16 -0
  553. package/dist/src/icons.generated/Unlock.d.ts.map +1 -0
  554. package/dist/src/icons.generated/Upload.d.ts +16 -0
  555. package/dist/src/icons.generated/Upload.d.ts.map +1 -0
  556. package/dist/src/icons.generated/User.d.ts +16 -0
  557. package/dist/src/icons.generated/User.d.ts.map +1 -0
  558. package/dist/src/icons.generated/Video.d.ts +16 -0
  559. package/dist/src/icons.generated/Video.d.ts.map +1 -0
  560. package/dist/src/icons.generated/Warning.d.ts +16 -0
  561. package/dist/src/icons.generated/Warning.d.ts.map +1 -0
  562. package/dist/src/icons.generated/WarningFilled.d.ts +16 -0
  563. package/dist/src/icons.generated/WarningFilled.d.ts.map +1 -0
  564. package/dist/src/icons.generated/index.d.ts +85 -0
  565. package/dist/src/icons.generated/index.d.ts.map +1 -0
  566. package/dist/src/index.d.ts +36 -21
  567. package/dist/src/index.d.ts.map +1 -1
  568. package/dist/src/labs/DatePicker.d.ts +19 -0
  569. package/dist/src/labs/DatePicker.d.ts.map +1 -0
  570. package/dist/src/labs/DatePicker.types.d.ts +19 -0
  571. package/dist/src/labs/DatePicker.types.d.ts.map +1 -0
  572. package/dist/src/labs/PaginatedTable.d.ts +35 -0
  573. package/dist/src/labs/PaginatedTable.d.ts.map +1 -0
  574. package/dist/src/labs/StaticTable.d.ts +29 -0
  575. package/dist/src/labs/StaticTable.d.ts.map +1 -0
  576. package/dist/src/labs/datePickerTheme.d.ts +14 -0
  577. package/dist/src/labs/datePickerTheme.d.ts.map +1 -0
  578. package/dist/src/labs/index.d.ts +21 -0
  579. package/dist/src/labs/index.d.ts.map +1 -0
  580. package/dist/src/labs/materialReactTableTypes.d.ts +15 -0
  581. package/dist/src/labs/materialReactTableTypes.d.ts.map +1 -0
  582. package/dist/src/properties/ts/odyssey-react-mui.d.ts +16 -0
  583. package/dist/src/properties/ts/odyssey-react-mui.d.ts.map +1 -0
  584. package/dist/src/properties/ts/odyssey-react-mui_cs.d.ts +16 -0
  585. package/dist/src/properties/ts/odyssey-react-mui_cs.d.ts.map +1 -0
  586. package/dist/src/properties/ts/odyssey-react-mui_da.d.ts +16 -0
  587. package/dist/src/properties/ts/odyssey-react-mui_da.d.ts.map +1 -0
  588. package/dist/src/properties/ts/odyssey-react-mui_de.d.ts +16 -0
  589. package/dist/src/properties/ts/odyssey-react-mui_de.d.ts.map +1 -0
  590. package/dist/src/properties/ts/odyssey-react-mui_el.d.ts +16 -0
  591. package/dist/src/properties/ts/odyssey-react-mui_el.d.ts.map +1 -0
  592. package/dist/src/properties/ts/odyssey-react-mui_es.d.ts +16 -0
  593. package/dist/src/properties/ts/odyssey-react-mui_es.d.ts.map +1 -0
  594. package/dist/src/properties/ts/odyssey-react-mui_fi.d.ts +16 -0
  595. package/dist/src/properties/ts/odyssey-react-mui_fi.d.ts.map +1 -0
  596. package/dist/src/properties/ts/odyssey-react-mui_fr.d.ts +16 -0
  597. package/dist/src/properties/ts/odyssey-react-mui_fr.d.ts.map +1 -0
  598. package/dist/src/properties/ts/odyssey-react-mui_hu.d.ts +16 -0
  599. package/dist/src/properties/ts/odyssey-react-mui_hu.d.ts.map +1 -0
  600. package/dist/src/properties/ts/odyssey-react-mui_id.d.ts +16 -0
  601. package/dist/src/properties/ts/odyssey-react-mui_id.d.ts.map +1 -0
  602. package/dist/src/properties/ts/odyssey-react-mui_it.d.ts +16 -0
  603. package/dist/src/properties/ts/odyssey-react-mui_it.d.ts.map +1 -0
  604. package/dist/src/properties/ts/odyssey-react-mui_ja.d.ts +16 -0
  605. package/dist/src/properties/ts/odyssey-react-mui_ja.d.ts.map +1 -0
  606. package/dist/src/properties/ts/odyssey-react-mui_ko.d.ts +16 -0
  607. package/dist/src/properties/ts/odyssey-react-mui_ko.d.ts.map +1 -0
  608. package/dist/src/properties/ts/odyssey-react-mui_ms.d.ts +16 -0
  609. package/dist/src/properties/ts/odyssey-react-mui_ms.d.ts.map +1 -0
  610. package/dist/src/properties/ts/odyssey-react-mui_nb.d.ts +16 -0
  611. package/dist/src/properties/ts/odyssey-react-mui_nb.d.ts.map +1 -0
  612. package/dist/src/properties/ts/odyssey-react-mui_nl_NL.d.ts +16 -0
  613. package/dist/src/properties/ts/odyssey-react-mui_nl_NL.d.ts.map +1 -0
  614. package/dist/src/properties/ts/odyssey-react-mui_ok_PL.d.ts +11 -0
  615. package/dist/src/properties/ts/odyssey-react-mui_ok_PL.d.ts.map +1 -0
  616. package/dist/src/properties/ts/odyssey-react-mui_ok_SK.d.ts +11 -0
  617. package/dist/src/properties/ts/odyssey-react-mui_ok_SK.d.ts.map +1 -0
  618. package/dist/src/properties/ts/odyssey-react-mui_pl.d.ts +16 -0
  619. package/dist/src/properties/ts/odyssey-react-mui_pl.d.ts.map +1 -0
  620. package/dist/src/properties/ts/odyssey-react-mui_pt_BR.d.ts +16 -0
  621. package/dist/src/properties/ts/odyssey-react-mui_pt_BR.d.ts.map +1 -0
  622. package/dist/src/properties/ts/odyssey-react-mui_ro.d.ts +16 -0
  623. package/dist/src/properties/ts/odyssey-react-mui_ro.d.ts.map +1 -0
  624. package/dist/src/properties/ts/odyssey-react-mui_ru.d.ts +16 -0
  625. package/dist/src/properties/ts/odyssey-react-mui_ru.d.ts.map +1 -0
  626. package/dist/src/properties/ts/odyssey-react-mui_sv.d.ts +16 -0
  627. package/dist/src/properties/ts/odyssey-react-mui_sv.d.ts.map +1 -0
  628. package/dist/src/properties/ts/odyssey-react-mui_th.d.ts +16 -0
  629. package/dist/src/properties/ts/odyssey-react-mui_th.d.ts.map +1 -0
  630. package/dist/src/properties/ts/odyssey-react-mui_tr.d.ts +16 -0
  631. package/dist/src/properties/ts/odyssey-react-mui_tr.d.ts.map +1 -0
  632. package/dist/src/properties/ts/odyssey-react-mui_uk.d.ts +16 -0
  633. package/dist/src/properties/ts/odyssey-react-mui_uk.d.ts.map +1 -0
  634. package/dist/src/properties/ts/odyssey-react-mui_vi.d.ts +16 -0
  635. package/dist/src/properties/ts/odyssey-react-mui_vi.d.ts.map +1 -0
  636. package/dist/src/properties/ts/odyssey-react-mui_zh_CN.d.ts +16 -0
  637. package/dist/src/properties/ts/odyssey-react-mui_zh_CN.d.ts.map +1 -0
  638. package/dist/src/properties/ts/odyssey-react-mui_zh_TW.d.ts +16 -0
  639. package/dist/src/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -0
  640. package/dist/src/theme/components.d.ts +2 -1
  641. package/dist/src/theme/components.d.ts.map +1 -1
  642. package/dist/src/theme/components.types.d.ts +4 -2
  643. package/dist/src/theme/components.types.d.ts.map +1 -1
  644. package/dist/src/theme/index.d.ts +1 -2
  645. package/dist/src/theme/index.d.ts.map +1 -1
  646. package/dist/src/theme/mixins.d.ts +2 -1
  647. package/dist/src/theme/mixins.d.ts.map +1 -1
  648. package/dist/src/theme/palette.d.ts +2 -1
  649. package/dist/src/theme/palette.d.ts.map +1 -1
  650. package/dist/src/theme/shape.d.ts +2 -1
  651. package/dist/src/theme/shape.d.ts.map +1 -1
  652. package/dist/src/theme/spacing.d.ts +2 -1
  653. package/dist/src/theme/spacing.d.ts.map +1 -1
  654. package/dist/src/theme/theme.d.ts +4 -2
  655. package/dist/src/theme/theme.d.ts.map +1 -1
  656. package/dist/src/theme/typography.d.ts +2 -1
  657. package/dist/src/theme/typography.d.ts.map +1 -1
  658. package/dist/src/theme/typography.types.d.ts +2 -2
  659. package/dist/src/theme/typography.types.d.ts.map +1 -1
  660. package/dist/theme/components.js +1673 -1738
  661. package/dist/theme/components.js.map +1 -1
  662. package/dist/theme/components.types.js +1 -0
  663. package/dist/theme/components.types.js.map +1 -1
  664. package/dist/theme/index.js +1 -2
  665. package/dist/theme/index.js.map +1 -1
  666. package/dist/theme/mixins.js +8 -6
  667. package/dist/theme/mixins.js.map +1 -1
  668. package/dist/theme/mixins.types.js +1 -0
  669. package/dist/theme/mixins.types.js.map +1 -1
  670. package/dist/theme/palette.js +89 -87
  671. package/dist/theme/palette.js.map +1 -1
  672. package/dist/theme/palette.types.js +1 -0
  673. package/dist/theme/palette.types.js.map +1 -1
  674. package/dist/theme/shape.js +6 -4
  675. package/dist/theme/shape.js.map +1 -1
  676. package/dist/theme/spacing.js +4 -2
  677. package/dist/theme/spacing.js.map +1 -1
  678. package/dist/theme/theme.js +8 -9
  679. package/dist/theme/theme.js.map +1 -1
  680. package/dist/theme/typography.js +115 -83
  681. package/dist/theme/typography.js.map +1 -1
  682. package/dist/theme/typography.types.js +1 -0
  683. package/dist/theme/typography.types.js.map +1 -1
  684. package/dist/tsconfig.production.tsbuildinfo +1 -1
  685. package/dist/useUniqueAlphabeticalId.js +1 -0
  686. package/dist/useUniqueAlphabeticalId.js.map +1 -1
  687. package/dist/useUniqueId.js +1 -0
  688. package/dist/useUniqueId.js.map +1 -1
  689. package/i18n.config.json +7 -0
  690. package/package.json +28 -8
  691. package/scripts/generateIconsIndex.ts +49 -0
  692. package/scripts/properties-to-ts.js +96 -0
  693. package/src/@types/i18next.d.ts +22 -0
  694. package/src/Autocomplete.tsx +36 -1
  695. package/src/Banner.tsx +30 -15
  696. package/src/Box.tsx +28 -0
  697. package/src/Button.tsx +100 -19
  698. package/src/Callout.tsx +62 -0
  699. package/src/Checkbox.tsx +102 -26
  700. package/src/CheckboxGroup.tsx +24 -2
  701. package/src/CircularProgress.tsx +13 -1
  702. package/src/Dialog.tsx +44 -16
  703. package/src/Field.tsx +32 -9
  704. package/src/FieldError.tsx +8 -2
  705. package/src/FieldHint.tsx +2 -1
  706. package/src/FieldLabel.tsx +8 -6
  707. package/src/Fieldset.tsx +106 -0
  708. package/src/FieldsetContext.tsx +23 -0
  709. package/src/Form.tsx +152 -0
  710. package/src/Link.tsx +49 -29
  711. package/src/MenuButton.tsx +89 -39
  712. package/src/MenuContext.ts +25 -0
  713. package/src/MenuItem.tsx +68 -23
  714. package/src/MuiPropsChild.tsx +1 -0
  715. package/src/MuiPropsContext.ts +3 -1
  716. package/src/NativeSelect.tsx +146 -0
  717. package/src/NullElement.tsx +13 -0
  718. package/src/OdysseyCacheProvider.test.tsx +1 -1
  719. package/src/OdysseyCacheProvider.tsx +13 -7
  720. package/src/OdysseyDesignTokensContext.tsx +19 -0
  721. package/src/OdysseyI18n.ts +105 -0
  722. package/src/OdysseyProvider.tsx +60 -0
  723. package/src/OdysseyThemeProvider.tsx +33 -10
  724. package/src/OdysseyTranslationProvider.test.tsx +63 -0
  725. package/src/OdysseyTranslationProvider.tsx +65 -0
  726. package/src/OdysseyTranslationProvider.types.ts +44 -0
  727. package/src/PasswordField.tsx +9 -7
  728. package/src/Radio.tsx +23 -7
  729. package/src/RadioGroup.tsx +8 -7
  730. package/src/ScreenReaderText.tsx +6 -2
  731. package/src/SearchField.tsx +55 -5
  732. package/src/Select.tsx +264 -0
  733. package/src/Status.tsx +26 -9
  734. package/src/SvgIcon.ts +23 -0
  735. package/src/Tabs.tsx +103 -0
  736. package/src/Tag.tsx +34 -14
  737. package/src/TagList.tsx +12 -2
  738. package/src/TextField.tsx +12 -10
  739. package/src/Toast.tsx +82 -77
  740. package/src/ToastStack.tsx +12 -2
  741. package/src/Tooltip.tsx +15 -3
  742. package/src/Typography.tsx +357 -0
  743. package/src/icons.generated/Add.tsx +41 -0
  744. package/src/icons.generated/AddCircle.tsx +43 -0
  745. package/src/icons.generated/Apps.tsx +43 -0
  746. package/src/icons.generated/ArrowDown.tsx +43 -0
  747. package/src/icons.generated/ArrowLeft.tsx +43 -0
  748. package/src/icons.generated/ArrowLowerLeft.tsx +44 -0
  749. package/src/icons.generated/ArrowLowerRight.tsx +44 -0
  750. package/src/icons.generated/ArrowRight.tsx +43 -0
  751. package/src/icons.generated/ArrowUnsorted.tsx +44 -0
  752. package/src/icons.generated/ArrowUp.tsx +43 -0
  753. package/src/icons.generated/ArrowUpperLeft.tsx +44 -0
  754. package/src/icons.generated/ArrowUpperRight.tsx +44 -0
  755. package/src/icons.generated/Bug.tsx +41 -0
  756. package/src/icons.generated/Calendar.tsx +43 -0
  757. package/src/icons.generated/Call.tsx +43 -0
  758. package/src/icons.generated/Chat.tsx +43 -0
  759. package/src/icons.generated/Check.tsx +43 -0
  760. package/src/icons.generated/CheckCircleFilled.tsx +44 -0
  761. package/src/icons.generated/ChevronDown.tsx +43 -0
  762. package/src/icons.generated/ChevronLeft.tsx +43 -0
  763. package/src/icons.generated/ChevronRight.tsx +44 -0
  764. package/src/icons.generated/ChevronUp.tsx +43 -0
  765. package/src/icons.generated/Clock.tsx +43 -0
  766. package/src/icons.generated/Close.tsx +43 -0
  767. package/src/icons.generated/CloseCircleFilled.tsx +44 -0
  768. package/src/icons.generated/CollapseLeft.tsx +44 -0
  769. package/src/icons.generated/CollapseRight.tsx +44 -0
  770. package/src/icons.generated/Copy.tsx +43 -0
  771. package/src/icons.generated/DangerDiamond.tsx +44 -0
  772. package/src/icons.generated/DangerDiamondFilled.tsx +44 -0
  773. package/src/icons.generated/Delete.tsx +43 -0
  774. package/src/icons.generated/Deny.tsx +43 -0
  775. package/src/icons.generated/Devices.tsx +43 -0
  776. package/src/icons.generated/Directory.tsx +43 -0
  777. package/src/icons.generated/Documentation.tsx +44 -0
  778. package/src/icons.generated/Download.tsx +43 -0
  779. package/src/icons.generated/DragIndicator.tsx +44 -0
  780. package/src/icons.generated/Edit.tsx +43 -0
  781. package/src/icons.generated/ExpandLeft.tsx +43 -0
  782. package/src/icons.generated/ExpandRight.tsx +43 -0
  783. package/src/icons.generated/ExternalLink.tsx +44 -0
  784. package/src/icons.generated/Filter.tsx +43 -0
  785. package/src/icons.generated/Folder.tsx +43 -0
  786. package/src/icons.generated/Globe.tsx +43 -0
  787. package/src/icons.generated/Grid.tsx +46 -0
  788. package/src/icons.generated/Group.tsx +43 -0
  789. package/src/icons.generated/Hide.tsx +43 -0
  790. package/src/icons.generated/Home.tsx +43 -0
  791. package/src/icons.generated/InformationCircle.tsx +44 -0
  792. package/src/icons.generated/InformationCircleFilled.tsx +44 -0
  793. package/src/icons.generated/Link.tsx +43 -0
  794. package/src/icons.generated/List.tsx +43 -0
  795. package/src/icons.generated/Lock.tsx +43 -0
  796. package/src/icons.generated/More.tsx +43 -0
  797. package/src/icons.generated/Notification.tsx +44 -0
  798. package/src/icons.generated/Pause.tsx +43 -0
  799. package/src/icons.generated/QuestionCircle.tsx +44 -0
  800. package/src/icons.generated/QuestionCircleFilled.tsx +44 -0
  801. package/src/icons.generated/Refresh.tsx +43 -0
  802. package/src/icons.generated/Reset.tsx +43 -0
  803. package/src/icons.generated/Resume.tsx +43 -0
  804. package/src/icons.generated/Search.tsx +43 -0
  805. package/src/icons.generated/Server.tsx +43 -0
  806. package/src/icons.generated/Settings.tsx +43 -0
  807. package/src/icons.generated/Show.tsx +43 -0
  808. package/src/icons.generated/Subtract.tsx +43 -0
  809. package/src/icons.generated/Sync.tsx +43 -0
  810. package/src/icons.generated/Unlock.tsx +43 -0
  811. package/src/icons.generated/Upload.tsx +43 -0
  812. package/src/icons.generated/User.tsx +43 -0
  813. package/src/icons.generated/Video.tsx +43 -0
  814. package/src/icons.generated/Warning.tsx +43 -0
  815. package/src/icons.generated/WarningFilled.tsx +44 -0
  816. package/src/icons.generated/index.ts +87 -0
  817. package/src/index.ts +28 -74
  818. package/src/labs/DatePicker.tsx +48 -0
  819. package/src/labs/DatePicker.types.ts +24 -0
  820. package/src/labs/PaginatedTable.tsx +272 -0
  821. package/src/labs/README.md +44 -0
  822. package/src/labs/StaticTable.tsx +122 -0
  823. package/src/labs/datePickerTheme.tsx +341 -0
  824. package/src/labs/index.ts +24 -0
  825. package/src/labs/materialReactTableTypes.ts +19 -0
  826. package/src/properties/odyssey-react-mui.properties +13 -0
  827. package/src/properties/translations/odyssey-react-mui_cs.properties +14 -0
  828. package/src/properties/translations/odyssey-react-mui_da.properties +14 -0
  829. package/src/properties/translations/odyssey-react-mui_de.properties +14 -0
  830. package/src/properties/translations/odyssey-react-mui_el.properties +14 -0
  831. package/src/properties/translations/odyssey-react-mui_es.properties +14 -0
  832. package/src/properties/translations/odyssey-react-mui_fi.properties +14 -0
  833. package/src/properties/translations/odyssey-react-mui_fr.properties +14 -0
  834. package/src/properties/translations/odyssey-react-mui_hu.properties +14 -0
  835. package/src/properties/translations/odyssey-react-mui_id.properties +14 -0
  836. package/src/properties/translations/odyssey-react-mui_it.properties +14 -0
  837. package/src/properties/translations/odyssey-react-mui_ja.properties +14 -0
  838. package/src/properties/translations/odyssey-react-mui_ko.properties +14 -0
  839. package/src/properties/translations/odyssey-react-mui_ms.properties +14 -0
  840. package/src/properties/translations/odyssey-react-mui_nb.properties +14 -0
  841. package/src/properties/translations/odyssey-react-mui_nl_NL.properties +14 -0
  842. package/src/properties/translations/odyssey-react-mui_ok_PL.properties +8 -0
  843. package/src/properties/translations/odyssey-react-mui_ok_SK.properties +8 -0
  844. package/src/properties/translations/odyssey-react-mui_pl.properties +14 -0
  845. package/src/properties/translations/odyssey-react-mui_pt_BR.properties +14 -0
  846. package/src/properties/translations/odyssey-react-mui_ro.properties +14 -0
  847. package/src/properties/translations/odyssey-react-mui_ru.properties +14 -0
  848. package/src/properties/translations/odyssey-react-mui_sv.properties +14 -0
  849. package/src/properties/translations/odyssey-react-mui_th.properties +14 -0
  850. package/src/properties/translations/odyssey-react-mui_tr.properties +14 -0
  851. package/src/properties/translations/odyssey-react-mui_uk.properties +14 -0
  852. package/src/properties/translations/odyssey-react-mui_vi.properties +14 -0
  853. package/src/properties/translations/odyssey-react-mui_zh_CN.properties +14 -0
  854. package/src/properties/translations/odyssey-react-mui_zh_TW.properties +14 -0
  855. package/src/properties/ts/odyssey-react-mui.ts +1 -0
  856. package/src/properties/ts/odyssey-react-mui_cs.ts +1 -0
  857. package/src/properties/ts/odyssey-react-mui_da.ts +1 -0
  858. package/src/properties/ts/odyssey-react-mui_de.ts +1 -0
  859. package/src/properties/ts/odyssey-react-mui_el.ts +1 -0
  860. package/src/properties/ts/odyssey-react-mui_es.ts +1 -0
  861. package/src/properties/ts/odyssey-react-mui_fi.ts +1 -0
  862. package/src/properties/ts/odyssey-react-mui_fr.ts +1 -0
  863. package/src/properties/ts/odyssey-react-mui_hu.ts +1 -0
  864. package/src/properties/ts/odyssey-react-mui_id.ts +1 -0
  865. package/src/properties/ts/odyssey-react-mui_it.ts +1 -0
  866. package/src/properties/ts/odyssey-react-mui_ja.ts +1 -0
  867. package/src/properties/ts/odyssey-react-mui_ko.ts +1 -0
  868. package/src/properties/ts/odyssey-react-mui_ms.ts +1 -0
  869. package/src/properties/ts/odyssey-react-mui_nb.ts +1 -0
  870. package/src/properties/ts/odyssey-react-mui_nl_NL.ts +1 -0
  871. package/src/properties/ts/odyssey-react-mui_ok_PL.ts +1 -0
  872. package/src/properties/ts/odyssey-react-mui_ok_SK.ts +1 -0
  873. package/src/properties/ts/odyssey-react-mui_pl.ts +1 -0
  874. package/src/properties/ts/odyssey-react-mui_pt_BR.ts +1 -0
  875. package/src/properties/ts/odyssey-react-mui_ro.ts +1 -0
  876. package/src/properties/ts/odyssey-react-mui_ru.ts +1 -0
  877. package/src/properties/ts/odyssey-react-mui_sv.ts +1 -0
  878. package/src/properties/ts/odyssey-react-mui_th.ts +1 -0
  879. package/src/properties/ts/odyssey-react-mui_tr.ts +1 -0
  880. package/src/properties/ts/odyssey-react-mui_uk.ts +1 -0
  881. package/src/properties/ts/odyssey-react-mui_vi.ts +1 -0
  882. package/src/properties/ts/odyssey-react-mui_zh_CN.ts +1 -0
  883. package/src/properties/ts/odyssey-react-mui_zh_TW.ts +1 -0
  884. package/src/theme/components.tsx +1919 -1727
  885. package/src/theme/components.types.ts +4 -2
  886. package/src/theme/index.ts +1 -2
  887. package/src/theme/mixins.ts +9 -6
  888. package/src/theme/palette.ts +94 -89
  889. package/src/theme/shape.ts +11 -8
  890. package/src/theme/spacing.ts +18 -13
  891. package/src/theme/theme.ts +13 -11
  892. package/src/theme/typography.ts +120 -83
  893. package/src/theme/typography.types.ts +2 -2
  894. package/tsconfig.json +3 -0
  895. package/dist/Icon.js +0 -31
  896. package/dist/Icon.js.map +0 -1
  897. package/dist/Infobox.js +0 -38
  898. package/dist/Infobox.js.map +0 -1
  899. package/dist/ThemeProvider.js +0 -30
  900. package/dist/ThemeProvider.js.map +0 -1
  901. package/dist/a11yCheck.js +0 -26
  902. package/dist/a11yCheck.js.map +0 -1
  903. package/dist/iconDictionary/Add.js +0 -34
  904. package/dist/iconDictionary/Add.js.map +0 -1
  905. package/dist/iconDictionary/AddCircle.js +0 -34
  906. package/dist/iconDictionary/AddCircle.js.map +0 -1
  907. package/dist/iconDictionary/AlertCircle.js +0 -34
  908. package/dist/iconDictionary/AlertCircle.js.map +0 -1
  909. package/dist/iconDictionary/AlertCircleFilled.js +0 -34
  910. package/dist/iconDictionary/AlertCircleFilled.js.map +0 -1
  911. package/dist/iconDictionary/AlertTriangleFilled.js +0 -34
  912. package/dist/iconDictionary/AlertTriangleFilled.js.map +0 -1
  913. package/dist/iconDictionary/Anchor.js +0 -36
  914. package/dist/iconDictionary/Anchor.js.map +0 -1
  915. package/dist/iconDictionary/ArrowDown.js +0 -34
  916. package/dist/iconDictionary/ArrowDown.js.map +0 -1
  917. package/dist/iconDictionary/ArrowLeft.js +0 -34
  918. package/dist/iconDictionary/ArrowLeft.js.map +0 -1
  919. package/dist/iconDictionary/ArrowRight.js +0 -34
  920. package/dist/iconDictionary/ArrowRight.js.map +0 -1
  921. package/dist/iconDictionary/ArrowUp.js +0 -34
  922. package/dist/iconDictionary/ArrowUp.js.map +0 -1
  923. package/dist/iconDictionary/ArrowUpDown.js +0 -34
  924. package/dist/iconDictionary/ArrowUpDown.js.map +0 -1
  925. package/dist/iconDictionary/Calendar.js +0 -34
  926. package/dist/iconDictionary/Calendar.js.map +0 -1
  927. package/dist/iconDictionary/Check.js +0 -34
  928. package/dist/iconDictionary/Check.js.map +0 -1
  929. package/dist/iconDictionary/CheckCircleFilled.js +0 -34
  930. package/dist/iconDictionary/CheckCircleFilled.js.map +0 -1
  931. package/dist/iconDictionary/ChevronDown.js +0 -34
  932. package/dist/iconDictionary/ChevronDown.js.map +0 -1
  933. package/dist/iconDictionary/ChevronUp.js +0 -34
  934. package/dist/iconDictionary/ChevronUp.js.map +0 -1
  935. package/dist/iconDictionary/Close.js +0 -34
  936. package/dist/iconDictionary/Close.js.map +0 -1
  937. package/dist/iconDictionary/CloseCircleFilled.js +0 -34
  938. package/dist/iconDictionary/CloseCircleFilled.js.map +0 -1
  939. package/dist/iconDictionary/Copy.js +0 -34
  940. package/dist/iconDictionary/Copy.js.map +0 -1
  941. package/dist/iconDictionary/Delete.js +0 -34
  942. package/dist/iconDictionary/Delete.js.map +0 -1
  943. package/dist/iconDictionary/Download.js +0 -34
  944. package/dist/iconDictionary/Download.js.map +0 -1
  945. package/dist/iconDictionary/DragHandle.js +0 -34
  946. package/dist/iconDictionary/DragHandle.js.map +0 -1
  947. package/dist/iconDictionary/Edit.js +0 -34
  948. package/dist/iconDictionary/Edit.js.map +0 -1
  949. package/dist/iconDictionary/ExternalLink.js +0 -34
  950. package/dist/iconDictionary/ExternalLink.js.map +0 -1
  951. package/dist/iconDictionary/Eye.js +0 -34
  952. package/dist/iconDictionary/Eye.js.map +0 -1
  953. package/dist/iconDictionary/EyeOff.js +0 -34
  954. package/dist/iconDictionary/EyeOff.js.map +0 -1
  955. package/dist/iconDictionary/Filter.js +0 -34
  956. package/dist/iconDictionary/Filter.js.map +0 -1
  957. package/dist/iconDictionary/Globe.js +0 -34
  958. package/dist/iconDictionary/Globe.js.map +0 -1
  959. package/dist/iconDictionary/Home.js +0 -34
  960. package/dist/iconDictionary/Home.js.map +0 -1
  961. package/dist/iconDictionary/InformationCircle.js +0 -34
  962. package/dist/iconDictionary/InformationCircle.js.map +0 -1
  963. package/dist/iconDictionary/InformationCircleFilled.js +0 -34
  964. package/dist/iconDictionary/InformationCircleFilled.js.map +0 -1
  965. package/dist/iconDictionary/Notification.js +0 -34
  966. package/dist/iconDictionary/Notification.js.map +0 -1
  967. package/dist/iconDictionary/OverflowVertical.js +0 -34
  968. package/dist/iconDictionary/OverflowVertical.js.map +0 -1
  969. package/dist/iconDictionary/QuestionCircle.js +0 -34
  970. package/dist/iconDictionary/QuestionCircle.js.map +0 -1
  971. package/dist/iconDictionary/QuestionCircleFilled.js +0 -34
  972. package/dist/iconDictionary/QuestionCircleFilled.js.map +0 -1
  973. package/dist/iconDictionary/Search.js +0 -34
  974. package/dist/iconDictionary/Search.js.map +0 -1
  975. package/dist/iconDictionary/Settings.js +0 -32
  976. package/dist/iconDictionary/Settings.js.map +0 -1
  977. package/dist/iconDictionary/Subtract.js +0 -34
  978. package/dist/iconDictionary/Subtract.js.map +0 -1
  979. package/dist/iconDictionary/SvgIcon.js +0 -14
  980. package/dist/iconDictionary/SvgIcon.js.map +0 -1
  981. package/dist/iconDictionary/User.js +0 -34
  982. package/dist/iconDictionary/User.js.map +0 -1
  983. package/dist/iconDictionary/UserGroup.js +0 -34
  984. package/dist/iconDictionary/UserGroup.js.map +0 -1
  985. package/dist/iconDictionary/index.js +0 -134
  986. package/dist/iconDictionary/index.js.map +0 -1
  987. package/dist/iconDictionary/types.js +0 -2
  988. package/dist/iconDictionary/types.js.map +0 -1
  989. package/dist/src/Icon.d.ts +0 -27
  990. package/dist/src/Icon.d.ts.map +0 -1
  991. package/dist/src/Infobox.d.ts +0 -36
  992. package/dist/src/Infobox.d.ts.map +0 -1
  993. package/dist/src/ThemeProvider.d.ts +0 -17
  994. package/dist/src/ThemeProvider.d.ts.map +0 -1
  995. package/dist/src/a11yCheck.d.ts +0 -14
  996. package/dist/src/a11yCheck.d.ts.map +0 -1
  997. package/dist/src/iconDictionary/Add.d.ts +0 -16
  998. package/dist/src/iconDictionary/Add.d.ts.map +0 -1
  999. package/dist/src/iconDictionary/AddCircle.d.ts +0 -16
  1000. package/dist/src/iconDictionary/AddCircle.d.ts.map +0 -1
  1001. package/dist/src/iconDictionary/AlertCircle.d.ts +0 -16
  1002. package/dist/src/iconDictionary/AlertCircle.d.ts.map +0 -1
  1003. package/dist/src/iconDictionary/AlertCircleFilled.d.ts +0 -16
  1004. package/dist/src/iconDictionary/AlertCircleFilled.d.ts.map +0 -1
  1005. package/dist/src/iconDictionary/AlertTriangleFilled.d.ts +0 -16
  1006. package/dist/src/iconDictionary/AlertTriangleFilled.d.ts.map +0 -1
  1007. package/dist/src/iconDictionary/Anchor.d.ts +0 -16
  1008. package/dist/src/iconDictionary/Anchor.d.ts.map +0 -1
  1009. package/dist/src/iconDictionary/ArrowDown.d.ts +0 -16
  1010. package/dist/src/iconDictionary/ArrowDown.d.ts.map +0 -1
  1011. package/dist/src/iconDictionary/ArrowLeft.d.ts +0 -16
  1012. package/dist/src/iconDictionary/ArrowLeft.d.ts.map +0 -1
  1013. package/dist/src/iconDictionary/ArrowRight.d.ts +0 -16
  1014. package/dist/src/iconDictionary/ArrowRight.d.ts.map +0 -1
  1015. package/dist/src/iconDictionary/ArrowUp.d.ts +0 -16
  1016. package/dist/src/iconDictionary/ArrowUp.d.ts.map +0 -1
  1017. package/dist/src/iconDictionary/ArrowUpDown.d.ts +0 -16
  1018. package/dist/src/iconDictionary/ArrowUpDown.d.ts.map +0 -1
  1019. package/dist/src/iconDictionary/Calendar.d.ts +0 -16
  1020. package/dist/src/iconDictionary/Calendar.d.ts.map +0 -1
  1021. package/dist/src/iconDictionary/Check.d.ts +0 -16
  1022. package/dist/src/iconDictionary/Check.d.ts.map +0 -1
  1023. package/dist/src/iconDictionary/CheckCircleFilled.d.ts +0 -16
  1024. package/dist/src/iconDictionary/CheckCircleFilled.d.ts.map +0 -1
  1025. package/dist/src/iconDictionary/ChevronDown.d.ts +0 -16
  1026. package/dist/src/iconDictionary/ChevronDown.d.ts.map +0 -1
  1027. package/dist/src/iconDictionary/ChevronUp.d.ts +0 -16
  1028. package/dist/src/iconDictionary/ChevronUp.d.ts.map +0 -1
  1029. package/dist/src/iconDictionary/Close.d.ts +0 -16
  1030. package/dist/src/iconDictionary/Close.d.ts.map +0 -1
  1031. package/dist/src/iconDictionary/CloseCircleFilled.d.ts +0 -16
  1032. package/dist/src/iconDictionary/CloseCircleFilled.d.ts.map +0 -1
  1033. package/dist/src/iconDictionary/Copy.d.ts +0 -16
  1034. package/dist/src/iconDictionary/Copy.d.ts.map +0 -1
  1035. package/dist/src/iconDictionary/Delete.d.ts +0 -16
  1036. package/dist/src/iconDictionary/Delete.d.ts.map +0 -1
  1037. package/dist/src/iconDictionary/Download.d.ts +0 -16
  1038. package/dist/src/iconDictionary/Download.d.ts.map +0 -1
  1039. package/dist/src/iconDictionary/DragHandle.d.ts +0 -16
  1040. package/dist/src/iconDictionary/DragHandle.d.ts.map +0 -1
  1041. package/dist/src/iconDictionary/Edit.d.ts +0 -16
  1042. package/dist/src/iconDictionary/Edit.d.ts.map +0 -1
  1043. package/dist/src/iconDictionary/ExternalLink.d.ts +0 -16
  1044. package/dist/src/iconDictionary/ExternalLink.d.ts.map +0 -1
  1045. package/dist/src/iconDictionary/Eye.d.ts +0 -16
  1046. package/dist/src/iconDictionary/Eye.d.ts.map +0 -1
  1047. package/dist/src/iconDictionary/EyeOff.d.ts +0 -16
  1048. package/dist/src/iconDictionary/EyeOff.d.ts.map +0 -1
  1049. package/dist/src/iconDictionary/Filter.d.ts +0 -16
  1050. package/dist/src/iconDictionary/Filter.d.ts.map +0 -1
  1051. package/dist/src/iconDictionary/Globe.d.ts +0 -16
  1052. package/dist/src/iconDictionary/Globe.d.ts.map +0 -1
  1053. package/dist/src/iconDictionary/Home.d.ts +0 -16
  1054. package/dist/src/iconDictionary/Home.d.ts.map +0 -1
  1055. package/dist/src/iconDictionary/InformationCircle.d.ts +0 -16
  1056. package/dist/src/iconDictionary/InformationCircle.d.ts.map +0 -1
  1057. package/dist/src/iconDictionary/InformationCircleFilled.d.ts +0 -16
  1058. package/dist/src/iconDictionary/InformationCircleFilled.d.ts.map +0 -1
  1059. package/dist/src/iconDictionary/Notification.d.ts +0 -16
  1060. package/dist/src/iconDictionary/Notification.d.ts.map +0 -1
  1061. package/dist/src/iconDictionary/OverflowVertical.d.ts +0 -16
  1062. package/dist/src/iconDictionary/OverflowVertical.d.ts.map +0 -1
  1063. package/dist/src/iconDictionary/QuestionCircle.d.ts +0 -16
  1064. package/dist/src/iconDictionary/QuestionCircle.d.ts.map +0 -1
  1065. package/dist/src/iconDictionary/QuestionCircleFilled.d.ts +0 -16
  1066. package/dist/src/iconDictionary/QuestionCircleFilled.d.ts.map +0 -1
  1067. package/dist/src/iconDictionary/Search.d.ts +0 -16
  1068. package/dist/src/iconDictionary/Search.d.ts.map +0 -1
  1069. package/dist/src/iconDictionary/Settings.d.ts +0 -16
  1070. package/dist/src/iconDictionary/Settings.d.ts.map +0 -1
  1071. package/dist/src/iconDictionary/Subtract.d.ts +0 -16
  1072. package/dist/src/iconDictionary/Subtract.d.ts.map +0 -1
  1073. package/dist/src/iconDictionary/SvgIcon.d.ts +0 -14
  1074. package/dist/src/iconDictionary/SvgIcon.d.ts.map +0 -1
  1075. package/dist/src/iconDictionary/User.d.ts +0 -16
  1076. package/dist/src/iconDictionary/User.d.ts.map +0 -1
  1077. package/dist/src/iconDictionary/UserGroup.d.ts +0 -16
  1078. package/dist/src/iconDictionary/UserGroup.d.ts.map +0 -1
  1079. package/dist/src/iconDictionary/index.d.ts +0 -94
  1080. package/dist/src/iconDictionary/index.d.ts.map +0 -1
  1081. package/dist/src/iconDictionary/types.d.ts +0 -19
  1082. package/dist/src/iconDictionary/types.d.ts.map +0 -1
  1083. package/dist/src/theme/OdysseyTheme.d.ts +0 -23
  1084. package/dist/src/theme/OdysseyTheme.d.ts.map +0 -1
  1085. package/dist/src/theme/temp.d.ts +0 -16
  1086. package/dist/src/theme/temp.d.ts.map +0 -1
  1087. package/dist/src/theme/useTheme.d.ts +0 -14
  1088. package/dist/src/theme/useTheme.d.ts.map +0 -1
  1089. package/dist/theme/OdysseyTheme.js +0 -2
  1090. package/dist/theme/OdysseyTheme.js.map +0 -1
  1091. package/dist/theme/temp.js +0 -15
  1092. package/dist/theme/temp.js.map +0 -1
  1093. package/dist/theme/useTheme.js +0 -16
  1094. package/dist/theme/useTheme.js.map +0 -1
  1095. package/scripts/resolveIconSrcPath.cjs +0 -20
  1096. package/src/Icon.test.tsx +0 -51
  1097. package/src/Icon.tsx +0 -57
  1098. package/src/Infobox.tsx +0 -48
  1099. package/src/ThemeProvider.tsx +0 -26
  1100. package/src/a11yCheck.ts +0 -28
  1101. package/src/iconDictionary/Add.tsx +0 -42
  1102. package/src/iconDictionary/AddCircle.tsx +0 -44
  1103. package/src/iconDictionary/AlertCircle.tsx +0 -44
  1104. package/src/iconDictionary/AlertCircleFilled.tsx +0 -45
  1105. package/src/iconDictionary/AlertTriangleFilled.tsx +0 -45
  1106. package/src/iconDictionary/Anchor.tsx +0 -46
  1107. package/src/iconDictionary/ArrowDown.tsx +0 -44
  1108. package/src/iconDictionary/ArrowLeft.tsx +0 -44
  1109. package/src/iconDictionary/ArrowRight.tsx +0 -44
  1110. package/src/iconDictionary/ArrowUp.tsx +0 -44
  1111. package/src/iconDictionary/ArrowUpDown.tsx +0 -44
  1112. package/src/iconDictionary/Calendar.tsx +0 -44
  1113. package/src/iconDictionary/Check.tsx +0 -44
  1114. package/src/iconDictionary/CheckCircleFilled.tsx +0 -45
  1115. package/src/iconDictionary/ChevronDown.tsx +0 -44
  1116. package/src/iconDictionary/ChevronUp.tsx +0 -44
  1117. package/src/iconDictionary/Close.tsx +0 -44
  1118. package/src/iconDictionary/CloseCircleFilled.tsx +0 -45
  1119. package/src/iconDictionary/Copy.tsx +0 -44
  1120. package/src/iconDictionary/Delete.tsx +0 -44
  1121. package/src/iconDictionary/Download.tsx +0 -44
  1122. package/src/iconDictionary/DragHandle.tsx +0 -44
  1123. package/src/iconDictionary/Edit.tsx +0 -44
  1124. package/src/iconDictionary/ExternalLink.tsx +0 -45
  1125. package/src/iconDictionary/Eye.tsx +0 -42
  1126. package/src/iconDictionary/EyeOff.tsx +0 -44
  1127. package/src/iconDictionary/Filter.tsx +0 -44
  1128. package/src/iconDictionary/Globe.tsx +0 -44
  1129. package/src/iconDictionary/Home.tsx +0 -44
  1130. package/src/iconDictionary/InformationCircle.tsx +0 -45
  1131. package/src/iconDictionary/InformationCircleFilled.tsx +0 -45
  1132. package/src/iconDictionary/Notification.tsx +0 -45
  1133. package/src/iconDictionary/OverflowVertical.tsx +0 -45
  1134. package/src/iconDictionary/QuestionCircle.tsx +0 -45
  1135. package/src/iconDictionary/QuestionCircleFilled.tsx +0 -45
  1136. package/src/iconDictionary/Search.tsx +0 -44
  1137. package/src/iconDictionary/Settings.tsx +0 -42
  1138. package/src/iconDictionary/Subtract.tsx +0 -44
  1139. package/src/iconDictionary/SvgIcon.ts +0 -14
  1140. package/src/iconDictionary/User.tsx +0 -44
  1141. package/src/iconDictionary/UserGroup.tsx +0 -44
  1142. package/src/iconDictionary/index.ts +0 -176
  1143. package/src/iconDictionary/types.ts +0 -20
  1144. package/src/theme/OdysseyTheme.ts +0 -25
  1145. package/src/theme/temp.ts +0 -19
  1146. package/src/theme/useTheme.ts +0 -18
package/CHANGELOG.md CHANGED
@@ -3,6 +3,62 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.0](https://github.com/okta/odyssey/compare/v0.24.0...v1.0.0) (2023-07-31)
7
+
8
+ ### Features
9
+
10
+ - add `isDisabled` in context from Fieldset to Field ([#1911](https://github.com/okta/odyssey/issues/1911)) ([135dbbb](https://github.com/okta/odyssey/commit/135dbbb6bf98514deb164713b84ea23b5a4296d1))
11
+ - add Button types ([#1903](https://github.com/okta/odyssey/issues/1903)) ([5b78259](https://github.com/okta/odyssey/commit/5b78259045eb36e50a2a24f387c6b213471bbcac))
12
+ - adds ScopedCssBaseline to OdysseyThemeProvider ([#1904](https://github.com/okta/odyssey/issues/1904)) ([bbb734d](https://github.com/okta/odyssey/commit/bbb734d6c17a9831502cd6d4fd620d5cf1066a34))
13
+ - **odyssey-react-mui:** add icon support to Tag ([6d1adc4](https://github.com/okta/odyssey/commit/6d1adc4422609b9623a320fa6bb4dcafa088f13d))
14
+ - **odyssey-react-mui:** add sub2 type style ([0d7b2a0](https://github.com/okta/odyssey/commit/0d7b2a082c6a89c3395c84708b2e9de2796817f5))
15
+ - **odyssey-react-mui:** add transparency and blur to Toast ([497ed8c](https://github.com/okta/odyssey/commit/497ed8c00dc45214a0455623aed89610b40562d2))
16
+ - **odyssey-react-mui:** generate new and updated icon components ([a5aa7ab](https://github.com/okta/odyssey/commit/a5aa7ab62b0ac3b50163b98730b5eb9fe23ac791))
17
+ - **odyssey-react-mui:** include color properties in type styles ([a817ffb](https://github.com/okta/odyssey/commit/a817ffb56f8c960840b342cde701247a1f2fcbc4))
18
+ - **odyssey-react-mui:** manually update icon index, update references in styling ([6ed2aab](https://github.com/okta/odyssey/commit/6ed2aabf9635f0c5dd31b626bdf55bf6e6c46fd9))
19
+ - **odyssey-react-mui:** update Button to match Rebrand ([d017b46](https://github.com/okta/odyssey/commit/d017b467b56999d62c35c9681c6829faa96eb487))
20
+ - **odyssey-react-mui:** update Dialog to match Rebrand ([2894c1d](https://github.com/okta/odyssey/commit/2894c1d6854be19721a9830062f27c73e93242b2))
21
+ - **odyssey-react-mui:** update Link to match new brand standards ([5afc6ed](https://github.com/okta/odyssey/commit/5afc6ed73e81c13d1feeede8e686eee42dee37c8))
22
+ - **odyssey-react-mui:** update Status styles and variants to match brand ([2da6aa6](https://github.com/okta/odyssey/commit/2da6aa69c65f79f84c19a6a360a31ad17666749d))
23
+ - **odyssey-react-mui:** updated ScopedCSSBaseline for rebrand ([e9e2514](https://github.com/okta/odyssey/commit/e9e2514cf8cefeaefe0afe9cbfc0d65f8f09e947))
24
+ - remove Icon component ([#1864](https://github.com/okta/odyssey/issues/1864)) ([b897485](https://github.com/okta/odyssey/commit/b897485c5e7bfedae2770b0329b9ce6d7c974e69))
25
+
26
+ ### Bug Fixes
27
+
28
+ - add play test for dialog, menubutton, select, tag, passwordfield ([#1861](https://github.com/okta/odyssey/issues/1861)) ([2957e6a](https://github.com/okta/odyssey/commit/2957e6ab7685301dd0713556129c3fd7a44451ae))
29
+ - Button's `tooltipText` needs to show on hover ([#1817](https://github.com/okta/odyssey/issues/1817)) ([0ca21ff](https://github.com/okta/odyssey/commit/0ca21ff190a35ecaf05e1f1c9e71bd0757edee4d))
30
+ - change to DesignTokens type rather than the overrides in theme ([#1816](https://github.com/okta/odyssey/issues/1816)) ([47c106b](https://github.com/okta/odyssey/commit/47c106bdeb2cdec597c58ba3b7ca9040091a10e4))
31
+ - clicking MenuItem closes MenuButton ([#1820](https://github.com/okta/odyssey/issues/1820)) ([bde9d88](https://github.com/okta/odyssey/commit/bde9d880a87038949e2df22cf02e6380168bd3eb))
32
+ - enable a11y tests in CI ([#1826](https://github.com/okta/odyssey/issues/1826)) ([cd98022](https://github.com/okta/odyssey/commit/cd9802265de5fc10a96a8ed28ce3f2e762c530cc))
33
+ - memoize the Link component ([#1813](https://github.com/okta/odyssey/issues/1813)) ([a98dd87](https://github.com/okta/odyssey/commit/a98dd873a2a92a558202901e4aa456f9be4d0cae))
34
+ - **odyssey-react-mui:** add aria-disabled to Tag ([f798e48](https://github.com/okta/odyssey/commit/f798e481b4f03eeb8834bb8e413b85f3aef18f03))
35
+ - **odyssey-react-mui:** autocomplete is now RTL friendly ([e14265e](https://github.com/okta/odyssey/commit/e14265ea4eeee6cd4f108f032a8158272402f3b2))
36
+ - **odyssey-react-mui:** lengthy field labels are no longer cut off ([6231951](https://github.com/okta/odyssey/commit/6231951d9d98a5815c48820b73505beeb6319659))
37
+ - **odyssey-react-mui:** make Form, Infobox spacing constent across uses ([752461c](https://github.com/okta/odyssey/commit/752461c711235310e63cb96ff18c09ff3a1f7640))
38
+ - orrectly import zh-CN and zh-TW files ([659d140](https://github.com/okta/odyssey/commit/659d14091476e3b4b3785f39254e80f4842453d7))
39
+ - Upgrade many packages to fix vulns ([#1880](https://github.com/okta/odyssey/issues/1880)) ([6f617e2](https://github.com/okta/odyssey/commit/6f617e2efb5fc23be5ec47af7b88f3519ac59261))
40
+ - use odyssey tokens inside mui components style override ([6863535](https://github.com/okta/odyssey/commit/68635351df8f17eb6401b94f43b9b7672eb9684e))
41
+
42
+ ## [0.24.0](https://github.com/okta/odyssey/compare/v0.23.0...v0.24.0) (2023-05-25)
43
+
44
+ ### Features
45
+
46
+ - add odyssey token override support ([#1797](https://github.com/okta/odyssey/issues/1797)) ([52543cc](https://github.com/okta/odyssey/commit/52543cc5bc37ab5ad639434d80faa4683a1e8061))
47
+ - make tranlationOverrides available via pass-through prop ([cb6fbe4](https://github.com/okta/odyssey/commit/cb6fbe45c14c05d639d147618f4279c538b034e2))
48
+ - **odyssey-react-mui:** add Form and Fieldset components ([bc4cfe6](https://github.com/okta/odyssey/commit/bc4cfe690dd4d95cc60d6410b47800cfcc0f1bc2))
49
+ - **odyssey-react-mui:** implement translation system via OdysseyTranslationProvider ([3c3fe2d](https://github.com/okta/odyssey/commit/3c3fe2dba78b21a8bc859ba33b5cd15e03c0c590))
50
+ - wrap the Select ([26452d9](https://github.com/okta/odyssey/commit/26452d9712c69531d5e3637f84f6e4b8c187a526))
51
+
52
+ ### Bug Fixes
53
+
54
+ - add href to Link ([93009b7](https://github.com/okta/odyssey/commit/93009b78e849476f99a56381f82771e3768e2e80))
55
+ - correct type error ([0a2d09e](https://github.com/okta/odyssey/commit/0a2d09e676ee24c803516a953be6cd5033936480))
56
+ - fix type errors ([30275bc](https://github.com/okta/odyssey/commit/30275bc70653f1ab2e07ee0e3f07faad2d8d7216))
57
+ - **odyssey-react-mui:** add proper displayName for TextField ([cd0eff0](https://github.com/okta/odyssey/commit/cd0eff05b0c35ea158cf19e6e2585eb9c83038fa))
58
+ - **odyssey-react-mui:** fix RTL placement of Select chevron ([9d99d9d](https://github.com/okta/odyssey/commit/9d99d9dcf5d166c46f1ea72d2bce2affe7ee0b6c))
59
+ - remove unused forwardRef from Icon and Toast ([bdfd1b1](https://github.com/okta/odyssey/commit/bdfd1b1a523579c3c6699915957197f5dc67776a))
60
+ - renderValue was missing a useCallback wrapper ([#1800](https://github.com/okta/odyssey/issues/1800)) ([40d9566](https://github.com/okta/odyssey/commit/40d95669bf9d1f394aeb163fc41d46823f312d7f))
61
+
6
62
  ## [0.23.0](https://github.com/okta/odyssey/compare/v0.22.0...v0.23.0) (2023-05-08)
7
63
 
8
64
  ### Features
package/README.md CHANGED
@@ -44,12 +44,14 @@ Import named ESM exports:
44
44
  import { PasswordInput } from "@okta/odyssey-react-mui";
45
45
  ```
46
46
 
47
- Add the Odyssey `ThemeProvider` around your whole app:
47
+ Add the Odyssey `OdysseyProvider` around your whole app:
48
48
 
49
49
  ```jsx
50
- import { ThemeProvider } from "@okta/odyssey-react-mui";
50
+ import { OdysseyProvider } from "@okta/odyssey-react-mui";
51
51
 
52
- const YourAppRoot = ({ children }) => <ThemeProvider>{children}</ThemeProvider>;
52
+ const YourAppRoot = ({ children }) => (
53
+ <OdysseyProvider>{children}</OdysseyProvider>
54
+ );
53
55
  ```
54
56
 
55
57
  Add Material-UI components not exported from Odyssey with Odyssey styling or add your own theme to MUI:
@@ -72,16 +74,50 @@ const YourAppRoot = ({ children }) => (
72
74
 
73
75
  It’s possible to have 2 versions of Odyssey running at the same time, so when adding MUI, you can do it piecemeal.
74
76
 
75
- This is how you setup two `ThemeProvider`s like so:
77
+ This is how you setup two `OdysseyProvider`s like so:
76
78
 
77
79
  ```jsx
78
- import { ThemeProvider as OdysseyMuiThemeProvider } from "@okta/odyssey-react-mui";
80
+ import { OdysseyProvider } from "@okta/odyssey-react-mui";
79
81
  import { ThemeProvider as OdysseyLegacyThemeProvider } from "@okta/odyssey-react-theme";
80
82
 
81
83
  const YourAppRoot = ({ children }) => (
82
- <OdysseyMuiThemeProvider>
84
+ <OdysseyProvider>
83
85
  <OdysseyLegacyThemeProvider>{children}</OdysseyLegacyThemeProvider>
84
- </OdysseyMuiThemeProvider>
86
+ </OdysseyProvider>
87
+ );
88
+ ```
89
+
90
+ ### Overrides
91
+
92
+ It is possible to provide `nonce`, `themeOverride`, `languageCode` and `translationOverrides` to the underlying components via props:
93
+
94
+ ```jsx
95
+ import { OdysseyProvider } from "@okta/odyssey-react-mui";
96
+ import { theme } from "./themeOverride";
97
+
98
+ const nonce =
99
+ "K6ybeaqlwaAKk0hQF?hE2qZ0Ar3M=G4Bpr-XFk1x4XbL3dH3T5=mk0aXeWX9ifn9";
100
+
101
+ const languageCode = "en";
102
+
103
+ const translationOverrides = {
104
+ en: {
105
+ "fieldlabel.optional.text": "Not Required",
106
+ },
107
+ fr: {
108
+ "fieldlabel.optional.text": "Non Requis",
109
+ },
110
+ };
111
+
112
+ const YourAppRoot = ({ children }) => (
113
+ <OdysseyProvider
114
+ nonce={nonce}
115
+ themeOverride={theme}
116
+ languageCode={languageCode}
117
+ translationOverrides={translationOverrides}
118
+ >
119
+ {children}
120
+ </OdysseyProvider>
85
121
  );
86
122
  ```
87
123
 
@@ -0,0 +1,14 @@
1
+ /*!
2
+ * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
4
+ *
5
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
6
+ * Unless required by applicable law or agreed to in writing, software
7
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
8
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
+ *
10
+ * See the License for the specific language governing permissions and limitations under the License.
11
+ */
12
+
13
+ import "i18next";
14
+ //# sourceMappingURL=i18next.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18next.d.js","names":[],"sources":["../../src/@types/i18next.d.ts"],"sourcesContent":["/*!\n * Copyright (c) 2023-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 \"i18next\";\nimport { translation as en } from \"../properties/ts/odyssey-react-mui\";\n\ndeclare module \"i18next\" {\n interface CustomTypeOptions {\n resources: {\n translations: typeof en;\n };\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,SAAS"}
@@ -1,13 +1,23 @@
1
1
  import _Autocomplete from "@mui/material/Autocomplete";
2
2
  import _InputBase from "@mui/material/InputBase";
3
+ /*!
4
+ * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
5
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
6
+ *
7
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ *
12
+ * See the License for the specific language governing permissions and limitations under the License.
13
+ */
3
14
  import { memo, useCallback } from "react";
4
15
  import { Field } from "./Field.js";
5
16
  import { jsx as _jsx } from "react/jsx-runtime";
6
-
7
17
  const Autocomplete = _ref => {
8
18
  let {
9
- isCustomValueAllowed,
10
19
  hasMultipleChoices,
20
+ isCustomValueAllowed,
11
21
  isDisabled,
12
22
  isLoading,
13
23
  isReadOnly,
@@ -35,7 +45,8 @@ const Autocomplete = _ref => {
35
45
  ariaDescribedBy,
36
46
  id
37
47
  } = _ref3;
38
- return _jsx(_InputBase, { ...params,
48
+ return _jsx(_InputBase, {
49
+ ...params,
39
50
  ...InputProps,
40
51
  "aria-describedby": ariaDescribedBy,
41
52
  id: id
@@ -44,6 +55,7 @@ const Autocomplete = _ref => {
44
55
  });
45
56
  }, [hint, label]);
46
57
  return _jsx(_Autocomplete, {
58
+ "aria-disabled": isDisabled,
47
59
  disabled: isDisabled,
48
60
  freeSolo: isCustomValueAllowed,
49
61
  loading: isLoading,
@@ -56,7 +68,6 @@ const Autocomplete = _ref => {
56
68
  value: value
57
69
  });
58
70
  };
59
-
60
71
  const MemoizedAutocomplete = memo(Autocomplete);
61
72
  export { MemoizedAutocomplete as Autocomplete };
62
73
  //# sourceMappingURL=Autocomplete.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.js","names":["memo","useCallback","Field","Autocomplete","isCustomValueAllowed","hasMultipleChoices","isDisabled","isLoading","isReadOnly","hint","label","onChange","onInputChange","options","value","renderInput","InputLabelProps","InputProps","params","htmlFor","ariaDescribedBy","id","MemoizedAutocomplete"],"sources":["../src/Autocomplete.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-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 {\n Autocomplete as MuiAutocomplete,\n AutocompleteProps as MuiAutocompleteProps,\n InputBase,\n} from \"@mui/material\";\nimport { memo, useCallback } from \"react\";\n\nimport { Field } from \"./Field\";\n\nexport type AutocompleteProps<\n OptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined\n> = {\n hasMultipleChoices?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"multiple\"];\n hint?: string;\n isCustomValueAllowed?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"freeSolo\"];\n isDisabled?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"disabled\"];\n isLoading?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"loading\"];\n isReadOnly?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"readOnly\"];\n label: string;\n onChange?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"onChange\"];\n onInputChange?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"onInputChange\"];\n options: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"options\"];\n value?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"value\"];\n};\n\nconst Autocomplete = <\n OptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined\n>({\n isCustomValueAllowed,\n hasMultipleChoices,\n isDisabled,\n isLoading,\n isReadOnly,\n hint,\n label,\n onChange,\n onInputChange,\n options,\n value,\n}: AutocompleteProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>) => {\n const renderInput = useCallback(\n ({ InputLabelProps, InputProps, ...params }) => (\n <Field\n fieldType=\"single\"\n hasVisibleLabel\n id={InputLabelProps.htmlFor}\n hint={hint}\n label={label}\n renderFieldComponent={({ ariaDescribedBy, id }) => (\n <InputBase\n {...params}\n {...InputProps}\n aria-describedby={ariaDescribedBy}\n id={id}\n />\n )}\n />\n ),\n [hint, label]\n );\n\n return (\n <MuiAutocomplete\n disabled={isDisabled}\n freeSolo={isCustomValueAllowed}\n loading={isLoading}\n multiple={hasMultipleChoices}\n onChange={onChange}\n onInputChange={onInputChange}\n options={options}\n readOnly={isReadOnly}\n renderInput={renderInput}\n value={value}\n />\n );\n};\n\nconst MemoizedAutocomplete = memo(Autocomplete) as typeof Autocomplete;\n\nexport { MemoizedAutocomplete as Autocomplete };\n"],"mappings":";;AAiBA,SAASA,IAAT,EAAeC,WAAf,QAAkC,OAAlC;SAESC,K;;;AAiET,MAAMC,YAAY,GAAG,QAgB0D;EAAA,IAZ7E;IACAC,oBADA;IAEAC,kBAFA;IAGAC,UAHA;IAIAC,SAJA;IAKAC,UALA;IAMAC,IANA;IAOAC,KAPA;IAQAC,QARA;IASAC,aATA;IAUAC,OAVA;IAWAC;EAXA,CAY6E;EAC7E,MAAMC,WAAW,GAAGd,WAAW,CAC7B;IAAA,IAAC;MAAEe,eAAF;MAAmBC,UAAnB;MAA+B,GAAGC;IAAlC,CAAD;IAAA,OACE,KAAC,KAAD;MACE,SAAS,EAAC,QADZ;MAEE,eAAe,MAFjB;MAGE,EAAE,EAAEF,eAAe,CAACG,OAHtB;MAIE,IAAI,EAAEV,IAJR;MAKE,KAAK,EAAEC,KALT;MAME,oBAAoB,EAAE;QAAA,IAAC;UAAEU,eAAF;UAAmBC;QAAnB,CAAD;QAAA,OACpB,sBACMH,MADN;UAAA,GAEMD,UAFN;UAGE,oBAAkBG,eAHpB;UAIE,EAAE,EAAEC;QAJN,EADoB;MAAA;IANxB,EADF;EAAA,CAD6B,EAkB7B,CAACZ,IAAD,EAAOC,KAAP,CAlB6B,CAA/B;EAqBA,OACE;IACE,QAAQ,EAAEJ,UADZ;IAEE,QAAQ,EAAEF,oBAFZ;IAGE,OAAO,EAAEG,SAHX;IAIE,QAAQ,EAAEF,kBAJZ;IAKE,QAAQ,EAAEM,QALZ;IAME,aAAa,EAAEC,aANjB;IAOE,OAAO,EAAEC,OAPX;IAQE,QAAQ,EAAEL,UARZ;IASE,WAAW,EAAEO,WATf;IAUE,KAAK,EAAED;EAVT,EADF;AAcD,CApDD;;AAsDA,MAAMQ,oBAAoB,GAAGtB,IAAI,CAACG,YAAD,CAAjC;AAEA,SAASmB,oBAAoB,IAAInB,YAAjC"}
1
+ {"version":3,"file":"Autocomplete.js","names":["memo","useCallback","Field","jsx","_jsx","Autocomplete","_ref","hasMultipleChoices","isCustomValueAllowed","isDisabled","isLoading","isReadOnly","hint","label","onChange","onInputChange","options","value","renderInput","_ref2","InputLabelProps","InputProps","params","fieldType","hasVisibleLabel","id","htmlFor","renderFieldComponent","_ref3","ariaDescribedBy","_InputBase","_Autocomplete","disabled","freeSolo","loading","multiple","readOnly","MemoizedAutocomplete"],"sources":["../src/Autocomplete.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-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 {\n Autocomplete as MuiAutocomplete,\n AutocompleteProps as MuiAutocompleteProps,\n InputBase,\n} from \"@mui/material\";\nimport { memo, useCallback } from \"react\";\n\nimport { Field } from \"./Field\";\n\nexport type AutocompleteProps<\n OptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined\n> = {\n /**\n * Enables multiple choice selection\n */\n hasMultipleChoices?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"multiple\"];\n /**\n * The hint text for the Autocomplete input\n */\n hint?: string;\n /**\n * Allows the input of custom values\n */\n isCustomValueAllowed?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"freeSolo\"];\n /**\n * Disables the Autocomplete input\n */\n isDisabled?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"disabled\"];\n /**\n * Displays a loading indicator\n */\n isLoading?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"loading\"];\n /**\n * Makes the Autocomplete input read-only\n */\n isReadOnly?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"readOnly\"];\n /**\n * The label text for the autocomplete input\n */\n label: string;\n /**\n * Callback fired when the value of the autocomplete input changes\n */\n onChange?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"onChange\"];\n /**\n * Callback fired when the input value of the autocomplete input changes\n */\n onInputChange?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"onInputChange\"];\n /**\n * The options for the Autocomplete input\n */\n options: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"options\"];\n /**\n * The value of the Autocomplete input\n */\n value?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"value\"];\n};\n\nconst Autocomplete = <\n OptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined\n>({\n hasMultipleChoices,\n isCustomValueAllowed,\n isDisabled,\n isLoading,\n isReadOnly,\n hint,\n label,\n onChange,\n onInputChange,\n options,\n value,\n}: AutocompleteProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>) => {\n const renderInput = useCallback(\n ({ InputLabelProps, InputProps, ...params }) => (\n <Field\n fieldType=\"single\"\n hasVisibleLabel\n id={InputLabelProps.htmlFor}\n hint={hint}\n label={label}\n renderFieldComponent={({ ariaDescribedBy, id }) => (\n <InputBase\n {...params}\n {...InputProps}\n aria-describedby={ariaDescribedBy}\n id={id}\n />\n )}\n />\n ),\n [hint, label]\n );\n\n return (\n <MuiAutocomplete\n // AutoComplete is wrapped in a div within MUI which does not get the disabled attr. So this aria-disabled gets set in the div\n aria-disabled={isDisabled}\n disabled={isDisabled}\n freeSolo={isCustomValueAllowed}\n loading={isLoading}\n multiple={hasMultipleChoices}\n onChange={onChange}\n onInputChange={onInputChange}\n options={options}\n readOnly={isReadOnly}\n renderInput={renderInput}\n value={value}\n />\n );\n};\n\nconst MemoizedAutocomplete = memo(Autocomplete) as typeof Autocomplete;\n\nexport { MemoizedAutocomplete as Autocomplete };\n"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAOA,SAASA,IAAI,EAAEC,WAAW,QAAQ,OAAO;AAAC,SAEjCC,KAAK;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAkGd,MAAMC,YAAY,GAAGC,IAAA,IAgB0D;EAAA,IAZ7E;IACAC,kBAAkB;IAClBC,oBAAoB;IACpBC,UAAU;IACVC,SAAS;IACTC,UAAU;IACVC,IAAI;IACJC,KAAK;IACLC,QAAQ;IACRC,aAAa;IACbC,OAAO;IACPC;EACuE,CAAC,GAAAX,IAAA;EACxE,MAAMY,WAAW,GAAGjB,WAAW,CAC7BkB,KAAA;IAAA,IAAC;MAAEC,eAAe;MAAEC,UAAU;MAAE,GAAGC;IAAO,CAAC,GAAAH,KAAA;IAAA,OACzCf,IAAA,CAACF,KAAK;MACJqB,SAAS,EAAC,QAAQ;MAClBC,eAAe;MACfC,EAAE,EAAEL,eAAe,CAACM,OAAQ;MAC5Bd,IAAI,EAAEA,IAAK;MACXC,KAAK,EAAEA,KAAM;MACbc,oBAAoB,EAAEC,KAAA;QAAA,IAAC;UAAEC,eAAe;UAAEJ;QAAG,CAAC,GAAAG,KAAA;QAAA,OAC5CxB,IAAA,CAAA0B,UAAA;UAAA,GACMR,MAAM;UAAA,GACND,UAAU;UACd,oBAAkBQ,eAAgB;UAClCJ,EAAE,EAAEA;QAAG,CACR,CAAC;MAAA;IACF,CACH,CAAC;EAAA,CACH,EACD,CAACb,IAAI,EAAEC,KAAK,CACd,CAAC;EAED,OACET,IAAA,CAAA2B,aAAA;IAEE,iBAAetB,UAAW;IAC1BuB,QAAQ,EAAEvB,UAAW;IACrBwB,QAAQ,EAAEzB,oBAAqB;IAC/B0B,OAAO,EAAExB,SAAU;IACnByB,QAAQ,EAAE5B,kBAAmB;IAC7BO,QAAQ,EAAEA,QAAS;IACnBC,aAAa,EAAEA,aAAc;IAC7BC,OAAO,EAAEA,OAAQ;IACjBoB,QAAQ,EAAEzB,UAAW;IACrBO,WAAW,EAAEA,WAAY;IACzBD,KAAK,EAAEA;EAAM,CACd,CAAC;AAEN,CAAC;AAED,MAAMoB,oBAAoB,GAAGrC,IAAI,CAACK,YAAY,CAAwB;AAEtE,SAASgC,oBAAoB,IAAIhC,YAAY"}
package/dist/Banner.js CHANGED
@@ -1,3 +1,5 @@
1
+ import _Alert from "@mui/material/Alert";
2
+ import _AlertTitle from "@mui/material/AlertTitle";
1
3
  /*!
2
4
  * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
5
  * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
@@ -9,11 +11,14 @@
9
11
  *
10
12
  * See the License for the specific language governing permissions and limitations under the License.
11
13
  */
14
+ import { Link } from "./Link.js";
15
+ import { ScreenReaderText } from "./ScreenReaderText.js";
12
16
  import { memo } from "react";
13
- import { Alert, Link, ScreenReaderText } from "./index.js";
17
+ import { useTranslation } from "react-i18next";
14
18
  import { jsxs as _jsxs } from "react/jsx-runtime";
15
19
  import { jsx as _jsx } from "react/jsx-runtime";
16
-
20
+ export const bannerRoleValues = ["status", "alert"];
21
+ export const bannerSeverityValues = ["success", "info", "warning", "error"];
17
22
  const Banner = _ref => {
18
23
  let {
19
24
  linkUrl,
@@ -23,21 +28,26 @@ const Banner = _ref => {
23
28
  severity,
24
29
  text
25
30
  } = _ref;
26
- return _jsxs(Alert, {
31
+ const {
32
+ t
33
+ } = useTranslation();
34
+ return _jsxs(_Alert, {
27
35
  onClose: onClose,
28
36
  role: role,
29
37
  severity: severity,
30
38
  variant: "banner",
31
39
  children: [_jsxs(ScreenReaderText, {
32
- children: [severity, ":"]
33
- }), text, linkUrl && _jsx(Link, {
40
+ children: [t(`severity.${severity}`), ":"]
41
+ }), _jsx(_AlertTitle, {
42
+ children: text
43
+ }), linkUrl && _jsx(Link, {
34
44
  href: linkUrl,
35
45
  variant: "monochrome",
36
46
  children: linkText
37
47
  })]
38
48
  });
39
49
  };
40
-
41
50
  const MemoizedBanner = memo(Banner);
51
+ MemoizedBanner.displayName = "Banner";
42
52
  export { MemoizedBanner as Banner };
43
53
  //# sourceMappingURL=Banner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.js","names":["memo","Alert","Link","ScreenReaderText","Banner","linkUrl","linkText","onClose","role","severity","text","MemoizedBanner"],"sources":["../src/Banner.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 { AlertColor, AlertProps } from \"@mui/material\";\nimport { memo } from \"react\";\nimport { Alert, Link, ScreenReaderText } from \"./\";\n\nexport type BannerProps = {\n /**\n * If linkUrl is not undefined, this is the text of the link.\n * If left blank, it defaults to \"Learn more\".\n * Note that linkText does nothing if linkUrl is not defined\n */\n linkText?: string;\n /**\n * If defined, the alert will include a link to the URL\n */\n linkUrl?: string;\n /**\n * The function that's fired when the user clicks the close button. If undefined,\n * the close button will not be shown.\n */\n onClose?: AlertProps[\"onClose\"];\n /**\n * Sets the ARIA role of the alert\n * (\"status\" for something that dynamically updates, \"alert\" for errors, null for something\n * unchanging)\n */\n role?: \"status\" | \"alert\";\n /**\n * Determine the color and icon of the alert\n */\n severity: AlertColor;\n /**\n * The text content of the alert\n */\n text: string;\n};\n\nconst Banner = ({\n linkUrl,\n linkText,\n onClose,\n role,\n severity,\n text,\n}: BannerProps) => (\n <Alert onClose={onClose} role={role} severity={severity} variant=\"banner\">\n <ScreenReaderText>{severity}:</ScreenReaderText>\n {text}\n {linkUrl && (\n <Link href={linkUrl} variant=\"monochrome\">\n {linkText}\n </Link>\n )}\n </Alert>\n);\n\nconst MemoizedBanner = memo(Banner);\n\nexport { MemoizedBanner as Banner };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,SAASA,IAAT,QAAqB,OAArB;SACSC,K,EAAOC,I,EAAMC,gB;;;;AAkCtB,MAAMC,MAAM,GAAG;EAAA,IAAC;IACdC,OADc;IAEdC,QAFc;IAGdC,OAHc;IAIdC,IAJc;IAKdC,QALc;IAMdC;EANc,CAAD;EAAA,OAQb,MAAC,KAAD;IAAO,OAAO,EAAEH,OAAhB;IAAyB,IAAI,EAAEC,IAA/B;IAAqC,QAAQ,EAAEC,QAA/C;IAAyD,OAAO,EAAC,QAAjE;IAAA,WACE,MAAC,gBAAD;MAAA,WAAmBA,QAAnB;IAAA,EADF,EAEGC,IAFH,EAGGL,OAAO,IACN,KAAC,IAAD;MAAM,IAAI,EAAEA,OAAZ;MAAqB,OAAO,EAAC,YAA7B;MAAA,UACGC;IADH,EAJJ;EAAA,EARa;AAAA,CAAf;;AAmBA,MAAMK,cAAc,GAAGX,IAAI,CAACI,MAAD,CAA3B;AAEA,SAASO,cAAc,IAAIP,MAA3B"}
1
+ {"version":3,"file":"Banner.js","names":["Link","ScreenReaderText","memo","useTranslation","jsxs","_jsxs","jsx","_jsx","bannerRoleValues","bannerSeverityValues","Banner","_ref","linkUrl","linkText","onClose","role","severity","text","t","_Alert","variant","children","_AlertTitle","href","MemoizedBanner","displayName"],"sources":["../src/Banner.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 { Alert, AlertColor, AlertTitle, AlertProps } from \"@mui/material\";\nimport { Link } from \"./Link\";\nimport { ScreenReaderText } from \"./ScreenReaderText\";\nimport { memo } from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\nexport const bannerRoleValues = [\"status\", \"alert\"] as const;\nexport const bannerSeverityValues: AlertColor[] = [\n \"success\",\n \"info\",\n \"warning\",\n \"error\",\n];\n\nexport type BannerProps = {\n /**\n * If linkUrl is not undefined, this is the text of the link.\n * If left blank, it defaults to \"Learn more\".\n * Note that linkText does nothing if linkUrl is not defined\n */\n linkText?: string;\n /**\n * If defined, the alert will include a link to the URL\n */\n linkUrl?: string;\n /**\n * The function that's fired when the user clicks the close button. If undefined,\n * the close button will not be shown.\n */\n onClose?: AlertProps[\"onClose\"];\n /**\n * Sets the ARIA role of the alert\n * (\"status\" for something that dynamically updates, \"alert\" for errors, null for something\n * unchanging)\n */\n role?: (typeof bannerRoleValues)[number];\n /**\n * Determine the color and icon of the alert\n */\n severity: (typeof bannerSeverityValues)[number];\n /**\n * The text content of the alert\n */\n text: string;\n};\n\nconst Banner = ({\n linkUrl,\n linkText,\n onClose,\n role,\n severity,\n text,\n}: BannerProps) => {\n const { t } = useTranslation();\n\n return (\n <Alert onClose={onClose} role={role} severity={severity} variant=\"banner\">\n <ScreenReaderText>{t(`severity.${severity}`)}:</ScreenReaderText>\n <AlertTitle>{text}</AlertTitle>\n {linkUrl && (\n <Link href={linkUrl} variant=\"monochrome\">\n {linkText}\n </Link>\n )}\n </Alert>\n );\n};\n\nconst MemoizedBanner = memo(Banner);\nMemoizedBanner.displayName = \"Banner\";\n\nexport { MemoizedBanner as Banner };\n"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA,SAaSA,IAAI;AAAA,SACJC,gBAAgB;AACzB,SAASC,IAAI,QAAQ,OAAO;AAC5B,SAASC,cAAc,QAAQ,eAAe;AAAC,SAAAC,IAAA,IAAAC,KAAA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAE/C,OAAO,MAAMC,gBAAgB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU;AAC5D,OAAO,MAAMC,oBAAkC,GAAG,CAChD,SAAS,EACT,MAAM,EACN,SAAS,EACT,OAAO,CACR;AAkCD,MAAMC,MAAM,GAAGC,IAAA,IAOI;EAAA,IAPH;IACdC,OAAO;IACPC,QAAQ;IACRC,OAAO;IACPC,IAAI;IACJC,QAAQ;IACRC;EACW,CAAC,GAAAN,IAAA;EACZ,MAAM;IAAEO;EAAE,CAAC,GAAGf,cAAc,CAAC,CAAC;EAE9B,OACEE,KAAA,CAAAc,MAAA;IAAOL,OAAO,EAAEA,OAAQ;IAACC,IAAI,EAAEA,IAAK;IAACC,QAAQ,EAAEA,QAAS;IAACI,OAAO,EAAC,QAAQ;IAAAC,QAAA,GACvEhB,KAAA,CAACJ,gBAAgB;MAAAoB,QAAA,GAAEH,CAAC,CAAE,YAAWF,QAAS,EAAC,CAAC,EAAC,GAAC;IAAA,CAAkB,CAAC,EACjET,IAAA,CAAAe,WAAA;MAAAD,QAAA,EAAaJ;IAAI,CAAa,CAAC,EAC9BL,OAAO,IACNL,IAAA,CAACP,IAAI;MAACuB,IAAI,EAAEX,OAAQ;MAACQ,OAAO,EAAC,YAAY;MAAAC,QAAA,EACtCR;IAAQ,CACL,CACP;EAAA,CACI,CAAC;AAEZ,CAAC;AAED,MAAMW,cAAc,GAAGtB,IAAI,CAACQ,MAAM,CAAC;AACnCc,cAAc,CAACC,WAAW,GAAG,QAAQ;AAErC,SAASD,cAAc,IAAId,MAAM"}
package/dist/Box.js ADDED
@@ -0,0 +1,29 @@
1
+ import _Box from "@mui/material/Box";
2
+ /*!
3
+ * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
4
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
5
+ *
6
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
7
+ * Unless required by applicable law or agreed to in writing, software
8
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ *
11
+ * See the License for the specific language governing permissions and limitations under the License.
12
+ */
13
+ import { forwardRef } from "react";
14
+ import { jsx as _jsx } from "react/jsx-runtime";
15
+ export const Box = forwardRef((_ref, ref) => {
16
+ let {
17
+ children,
18
+ component,
19
+ sx
20
+ } = _ref;
21
+ return _jsx(_Box, {
22
+ ref: ref,
23
+ children: children,
24
+ component: component,
25
+ sx: sx
26
+ });
27
+ });
28
+ Box.displayName = "Box";
29
+ //# sourceMappingURL=Box.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Box.js","names":["forwardRef","jsx","_jsx","Box","_ref","ref","children","component","sx","_Box","displayName"],"sources":["../src/Box.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-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 { Box as MuiBox, BoxProps as MuiBoxProps } from \"@mui/material\";\nimport { ReactNode, forwardRef } from \"react\";\n\nexport type BoxProps = {\n children?: ReactNode;\n component?: MuiBoxProps[\"component\"];\n sx?: MuiBoxProps[\"sx\"];\n};\n\nexport const Box = forwardRef<HTMLElement, BoxProps>(\n ({ children, component, sx }, ref) => (\n <MuiBox ref={ref} children={children} component={component} sx={sx} />\n )\n);\n\nBox.displayName = \"Box\";\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,SAAoBA,UAAU,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQ9C,OAAO,MAAMC,GAAG,GAAGH,UAAU,CAC3B,CAAAI,IAAA,EAA8BC,GAAG;EAAA,IAAhC;IAAEC,QAAQ;IAAEC,SAAS;IAAEC;EAAG,CAAC,GAAAJ,IAAA;EAAA,OAC1BF,IAAA,CAAAO,IAAA;IAAQJ,GAAG,EAAEA,GAAI;IAACC,QAAQ,EAAEA,QAAS;IAACC,SAAS,EAAEA,SAAU;IAACC,EAAE,EAAEA;EAAG,CAAE,CAAC;AAAA,CAE1E,CAAC;AAEDL,GAAG,CAACO,WAAW,GAAG,KAAK"}
package/dist/Button.js CHANGED
@@ -1,26 +1,47 @@
1
1
  import _Button from "@mui/material/Button";
2
- import { memo, useContext, useMemo } from "react";
3
- import { MuiPropsContext } from "./MuiPropsContext.js";
2
+ /*!
3
+ * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
4
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
5
+ *
6
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
7
+ * Unless required by applicable law or agreed to in writing, software
8
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ *
11
+ * See the License for the specific language governing permissions and limitations under the License.
12
+ */
13
+ import { memo, useCallback } from "react";
14
+ import { MuiPropsContext, useMuiProps } from "./MuiPropsContext.js";
4
15
  import { Tooltip } from "./Tooltip.js";
5
16
  import { jsx as _jsx } from "react/jsx-runtime";
6
17
  import { Fragment as _Fragment } from "react/jsx-runtime";
7
18
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
-
19
+ export const buttonSizeValues = ["small", "medium", "large"];
20
+ export const buttonTypeValues = ["button", "submit", "reset"];
21
+ export const buttonVariantValues = ["primary", "secondary", "tertiary", "danger", "floating"];
9
22
  const Button = _ref => {
10
23
  let {
24
+ ariaDescribedBy,
25
+ ariaLabel,
26
+ ariaLabelledBy,
11
27
  endIcon,
12
28
  id,
13
29
  isDisabled,
14
30
  isFullWidth,
31
+ label = "",
15
32
  onClick,
16
33
  size = "medium",
17
34
  startIcon,
18
- text,
19
35
  tooltipText,
36
+ type = "button",
20
37
  variant
21
38
  } = _ref;
22
- const muiProps = useContext(MuiPropsContext);
23
- const button = useMemo(() => _jsx(_Button, { ...muiProps,
39
+ const muiProps = useMuiProps();
40
+ const renderButton = useCallback(muiProps => _jsx(_Button, {
41
+ ...muiProps,
42
+ "aria-label": ariaLabel,
43
+ "aria-labelledby": ariaLabelledBy,
44
+ "aria-describedby": ariaDescribedBy,
24
45
  disabled: isDisabled,
25
46
  endIcon: endIcon,
26
47
  fullWidth: isFullWidth,
@@ -28,19 +49,22 @@ const Button = _ref => {
28
49
  onClick: onClick,
29
50
  size: size,
30
51
  startIcon: startIcon,
52
+ type: type,
31
53
  variant: variant,
32
- children: text
33
- }), [endIcon, id, isDisabled, isFullWidth, muiProps, onClick, size, startIcon, text, variant]);
54
+ children: label
55
+ }), [ariaDescribedBy, ariaLabel, ariaLabelledBy, endIcon, id, isDisabled, isFullWidth, label, onClick, size, startIcon, type, variant]);
34
56
  return _jsxs(_Fragment, {
35
57
  children: [tooltipText && _jsx(Tooltip, {
36
58
  ariaType: "description",
37
59
  placement: "top",
38
60
  text: tooltipText,
39
- children: button
40
- }), !tooltipText && button]
61
+ children: _jsx(MuiPropsContext.Consumer, {
62
+ children: renderButton
63
+ })
64
+ }), !tooltipText && renderButton(muiProps)]
41
65
  });
42
66
  };
43
-
44
67
  const MemoizedButton = memo(Button);
68
+ MemoizedButton.displayName = "Button";
45
69
  export { MemoizedButton as Button };
46
70
  //# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","names":["memo","useContext","useMemo","MuiPropsContext","Tooltip","Button","endIcon","id","isDisabled","isFullWidth","onClick","size","startIcon","text","tooltipText","variant","muiProps","button","MemoizedButton"],"sources":["../src/Button.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 { Button as MuiButton } from \"@mui/material\";\nimport type { ButtonProps as MuiButtonProps } from \"@mui/material\";\nimport { memo, ReactElement, useContext, useMemo } from \"react\";\n\nimport { Icon } from \"./Icon\";\nimport { MuiPropsContext } from \"./MuiPropsContext\";\nimport { Tooltip } from \"./Tooltip\";\n\nexport type ButtonProps = {\n endIcon?: ReactElement<typeof Icon>;\n id?: string;\n isDisabled?: boolean;\n isFullWidth?: boolean;\n onClick?: MuiButtonProps[\"onClick\"];\n size?: MuiButtonProps[\"size\"];\n startIcon?: ReactElement<typeof Icon>;\n text?: string;\n /**\n * `tooltipText` determines the text of the tooltip that wraps the button if it's icon-only.\n */\n tooltipText?: string;\n variant?: \"primary\" | \"secondary\" | \"danger\" | \"floating\";\n};\n\nconst Button = ({\n endIcon,\n id,\n isDisabled,\n isFullWidth,\n onClick,\n size = \"medium\",\n startIcon,\n text,\n tooltipText,\n variant,\n}: ButtonProps) => {\n const muiProps = useContext(MuiPropsContext);\n\n const button = useMemo(\n () => (\n <MuiButton\n {...muiProps}\n disabled={isDisabled}\n endIcon={endIcon}\n fullWidth={isFullWidth}\n id={id}\n onClick={onClick}\n size={size}\n startIcon={startIcon}\n variant={variant}\n >\n {text}\n </MuiButton>\n ),\n [\n endIcon,\n id,\n isDisabled,\n isFullWidth,\n muiProps,\n onClick,\n size,\n startIcon,\n text,\n variant,\n ]\n );\n\n return (\n <>\n {tooltipText && (\n <Tooltip ariaType=\"description\" placement=\"top\" text={tooltipText}>\n {button}\n </Tooltip>\n )}\n {!tooltipText && button}\n </>\n );\n};\n\nconst MemoizedButton = memo(Button);\n\nexport { MemoizedButton as Button };\n"],"mappings":";AAcA,SAASA,IAAT,EAA6BC,UAA7B,EAAyCC,OAAzC,QAAwD,OAAxD;SAGSC,e;SACAC,O;;;;;AAkBT,MAAMC,MAAM,GAAG,QAWI;EAAA,IAXH;IACdC,OADc;IAEdC,EAFc;IAGdC,UAHc;IAIdC,WAJc;IAKdC,OALc;IAMdC,IAAI,GAAG,QANO;IAOdC,SAPc;IAQdC,IARc;IASdC,WATc;IAUdC;EAVc,CAWG;EACjB,MAAMC,QAAQ,GAAGf,UAAU,CAACE,eAAD,CAA3B;EAEA,MAAMc,MAAM,GAAGf,OAAO,CACpB,MACE,mBACMc,QADN;IAEE,QAAQ,EAAER,UAFZ;IAGE,OAAO,EAAEF,OAHX;IAIE,SAAS,EAAEG,WAJb;IAKE,EAAE,EAAEF,EALN;IAME,OAAO,EAAEG,OANX;IAOE,IAAI,EAAEC,IAPR;IAQE,SAAS,EAAEC,SARb;IASE,OAAO,EAAEG,OATX;IAAA,UAWGF;EAXH,EAFkB,EAgBpB,CACEP,OADF,EAEEC,EAFF,EAGEC,UAHF,EAIEC,WAJF,EAKEO,QALF,EAMEN,OANF,EAOEC,IAPF,EAQEC,SARF,EASEC,IATF,EAUEE,OAVF,CAhBoB,CAAtB;EA8BA,OACE;IAAA,WACGD,WAAW,IACV,KAAC,OAAD;MAAS,QAAQ,EAAC,aAAlB;MAAgC,SAAS,EAAC,KAA1C;MAAgD,IAAI,EAAEA,WAAtD;MAAA,UACGG;IADH,EAFJ,EAMG,CAACH,WAAD,IAAgBG,MANnB;EAAA,EADF;AAUD,CAtDD;;AAwDA,MAAMC,cAAc,GAAGlB,IAAI,CAACK,MAAD,CAA3B;AAEA,SAASa,cAAc,IAAIb,MAA3B"}
1
+ {"version":3,"file":"Button.js","names":["memo","useCallback","MuiPropsContext","useMuiProps","Tooltip","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","buttonSizeValues","buttonTypeValues","buttonVariantValues","Button","_ref","ariaDescribedBy","ariaLabel","ariaLabelledBy","endIcon","id","isDisabled","isFullWidth","label","onClick","size","startIcon","tooltipText","type","variant","muiProps","renderButton","_Button","disabled","fullWidth","children","ariaType","placement","text","Consumer","MemoizedButton","displayName"],"sources":["../src/Button.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 { Button as MuiButton } from \"@mui/material\";\nimport type { ButtonProps as MuiButtonProps } from \"@mui/material\";\nimport { memo, ReactElement, useCallback } from \"react\";\n\nimport { MuiPropsContext, useMuiProps } from \"./MuiPropsContext\";\nimport { Tooltip } from \"./Tooltip\";\n\nexport const buttonSizeValues = [\"small\", \"medium\", \"large\"] as const;\nexport const buttonTypeValues = [\"button\", \"submit\", \"reset\"] as const;\nexport const buttonVariantValues = [\n \"primary\",\n \"secondary\",\n \"tertiary\",\n \"danger\",\n \"floating\",\n] as const;\n\nexport type ButtonProps = {\n /**\n * The ARIA label for the Button\n */\n ariaLabel?: string;\n /**\n * The ID of the element that labels the Button\n */\n ariaLabelledBy?: string;\n /**\n * The ID of the element that describes the Button\n */\n ariaDescribedBy?: string;\n /**\n * The icon element to display at the end of the Button\n */\n endIcon?: ReactElement;\n /**\n * The ID of the Button\n */\n id?: string;\n /**\n * Determines whether the Button is disabled\n */\n isDisabled?: boolean;\n /**\n * Determines whether the Button should take up the full available width\n */\n isFullWidth?: boolean;\n /**\n * The text content of the Button\n */\n label?: string;\n /**\n * The click event handler for the Button\n */\n onClick?: MuiButtonProps[\"onClick\"];\n /**\n * The size of the button\n */\n size?: (typeof buttonSizeValues)[number];\n /**\n * The icon element to display at the start of the Button\n */\n startIcon?: ReactElement;\n /**\n * The tooltip text for the Button if it's icon-only\n */\n tooltipText?: string;\n /**\n * The type of the HTML button element\n */\n type?: (typeof buttonTypeValues)[number];\n /**\n * The variant of the Button\n */\n variant: (typeof buttonVariantValues)[number];\n} & (\n | {\n endIcon?: ReactElement;\n label: string;\n startIcon?: ReactElement;\n }\n | {\n endIcon?: ReactElement;\n label?: \"\" | undefined;\n startIcon: ReactElement;\n }\n | {\n endIcon: ReactElement;\n label?: \"\" | undefined;\n startIcon?: ReactElement;\n }\n);\n\nconst Button = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n endIcon,\n id,\n isDisabled,\n isFullWidth,\n label = \"\",\n onClick,\n size = \"medium\",\n startIcon,\n tooltipText,\n type = \"button\",\n variant,\n}: ButtonProps) => {\n const muiProps = useMuiProps();\n\n const renderButton = useCallback(\n (muiProps) => (\n <MuiButton\n {...muiProps}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-describedby={ariaDescribedBy}\n disabled={isDisabled}\n endIcon={endIcon}\n fullWidth={isFullWidth}\n id={id}\n onClick={onClick}\n size={size}\n startIcon={startIcon}\n type={type}\n variant={variant}\n >\n {label}\n </MuiButton>\n ),\n [\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n endIcon,\n id,\n isDisabled,\n isFullWidth,\n label,\n onClick,\n size,\n startIcon,\n type,\n variant,\n ]\n );\n\n return (\n <>\n {tooltipText && (\n <Tooltip ariaType=\"description\" placement=\"top\" text={tooltipText}>\n <MuiPropsContext.Consumer>{renderButton}</MuiPropsContext.Consumer>\n </Tooltip>\n )}\n\n {!tooltipText && renderButton(muiProps)}\n </>\n );\n};\n\nconst MemoizedButton = memo(Button);\nMemoizedButton.displayName = \"Button\";\n\nexport { MemoizedButton as Button };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA,SAASA,IAAI,EAAgBC,WAAW,QAAQ,OAAO;AAAC,SAE/CC,eAAe,EAAEC,WAAW;AAAA,SAC5BC,OAAO;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAEhB,OAAO,MAAMC,gBAAgB,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAU;AACrE,OAAO,MAAMC,gBAAgB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAU;AACtE,OAAO,MAAMC,mBAAmB,GAAG,CACjC,SAAS,EACT,WAAW,EACX,UAAU,EACV,QAAQ,EACR,UAAU,CACF;AA6EV,MAAMC,MAAM,GAAGC,IAAA,IAeI;EAAA,IAfH;IACdC,eAAe;IACfC,SAAS;IACTC,cAAc;IACdC,OAAO;IACPC,EAAE;IACFC,UAAU;IACVC,WAAW;IACXC,KAAK,GAAG,EAAE;IACVC,OAAO;IACPC,IAAI,GAAG,QAAQ;IACfC,SAAS;IACTC,WAAW;IACXC,IAAI,GAAG,QAAQ;IACfC;EACW,CAAC,GAAAd,IAAA;EACZ,MAAMe,QAAQ,GAAG3B,WAAW,CAAC,CAAC;EAE9B,MAAM4B,YAAY,GAAG9B,WAAW,CAC7B6B,QAAQ,IACPxB,IAAA,CAAA0B,OAAA;IAAA,GACMF,QAAQ;IACZ,cAAYb,SAAU;IACtB,mBAAiBC,cAAe;IAChC,oBAAkBF,eAAgB;IAClCiB,QAAQ,EAAEZ,UAAW;IACrBF,OAAO,EAAEA,OAAQ;IACjBe,SAAS,EAAEZ,WAAY;IACvBF,EAAE,EAAEA,EAAG;IACPI,OAAO,EAAEA,OAAQ;IACjBC,IAAI,EAAEA,IAAK;IACXC,SAAS,EAAEA,SAAU;IACrBE,IAAI,EAAEA,IAAK;IACXC,OAAO,EAAEA,OAAQ;IAAAM,QAAA,EAEhBZ;EAAK,CACG,CACZ,EACD,CACEP,eAAe,EACfC,SAAS,EACTC,cAAc,EACdC,OAAO,EACPC,EAAE,EACFC,UAAU,EACVC,WAAW,EACXC,KAAK,EACLC,OAAO,EACPC,IAAI,EACJC,SAAS,EACTE,IAAI,EACJC,OAAO,CAEX,CAAC;EAED,OACEnB,KAAA,CAAAF,SAAA;IAAA2B,QAAA,GACGR,WAAW,IACVrB,IAAA,CAACF,OAAO;MAACgC,QAAQ,EAAC,aAAa;MAACC,SAAS,EAAC,KAAK;MAACC,IAAI,EAAEX,WAAY;MAAAQ,QAAA,EAChE7B,IAAA,CAACJ,eAAe,CAACqC,QAAQ;QAAAJ,QAAA,EAAEJ;MAAY,CAA2B;IAAC,CAC5D,CACV,EAEA,CAACJ,WAAW,IAAII,YAAY,CAACD,QAAQ,CAAC;EAAA,CACvC,CAAC;AAEP,CAAC;AAED,MAAMU,cAAc,GAAGxC,IAAI,CAACc,MAAM,CAAC;AACnC0B,cAAc,CAACC,WAAW,GAAG,QAAQ;AAErC,SAASD,cAAc,IAAI1B,MAAM"}
@@ -0,0 +1,50 @@
1
+ import _Alert from "@mui/material/Alert";
2
+ import _Box from "@mui/material/Box";
3
+ import _AlertTitle from "@mui/material/AlertTitle";
4
+ /*!
5
+ * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
6
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
7
+ *
8
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ *
13
+ * See the License for the specific language governing permissions and limitations under the License.
14
+ */
15
+
16
+ import { memo } from "react";
17
+ import { ScreenReaderText } from "./ScreenReaderText.js";
18
+ import { useTranslation } from "react-i18next";
19
+ import { jsxs as _jsxs } from "react/jsx-runtime";
20
+ import { jsx as _jsx } from "react/jsx-runtime";
21
+ export const calloutRoleValues = ["status", "alert"];
22
+ export const calloutSeverityValues = ["success", "info", "warning", "error"];
23
+ const Callout = _ref => {
24
+ let {
25
+ children,
26
+ role,
27
+ severity,
28
+ title
29
+ } = _ref;
30
+ const {
31
+ t
32
+ } = useTranslation();
33
+ return _jsxs(_Alert, {
34
+ role: role,
35
+ severity: severity,
36
+ variant: "callout",
37
+ children: [_jsxs(ScreenReaderText, {
38
+ children: [t(`severity.${severity}`), ": "]
39
+ }), title && _jsx(_AlertTitle, {
40
+ children: title
41
+ }), _jsx(_Box, {
42
+ component: "div",
43
+ children: children
44
+ })]
45
+ });
46
+ };
47
+ const MemoizedCallout = memo(Callout);
48
+ MemoizedCallout.displayName = "Callout";
49
+ export { MemoizedCallout as Callout };
50
+ //# sourceMappingURL=Callout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Callout.js","names":["memo","ScreenReaderText","useTranslation","jsxs","_jsxs","jsx","_jsx","calloutRoleValues","calloutSeverityValues","Callout","_ref","children","role","severity","title","t","_Alert","variant","_AlertTitle","_Box","component","MemoizedCallout","displayName"],"sources":["../src/Callout.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 { memo, ReactNode } from \"react\";\nimport { Alert, AlertTitle, Box } from \"@mui/material\";\nimport { ScreenReaderText } from \"./ScreenReaderText\";\nimport { useTranslation } from \"react-i18next\";\n\nexport const calloutRoleValues = [\"status\", \"alert\"] as const;\nexport const calloutSeverityValues = [\n \"success\",\n \"info\",\n \"warning\",\n \"error\",\n] as const;\n\nexport type CalloutProps = {\n /**\n * The contents of the Callout\n */\n children: ReactNode;\n /**\n * Sets the ARIA role of the Callout\n * (\"status\" for something that dynamically updates, \"alert\" for errors, null for something\n * unchanging)\n */\n role?: (typeof calloutRoleValues)[number];\n /**\n * Determine the color and icon of the Callout\n */\n severity: (typeof calloutSeverityValues)[number];\n /**\n * The title of the Callout\n */\n title?: string;\n};\n\nconst Callout = ({ children, role, severity, title }: CalloutProps) => {\n const { t } = useTranslation();\n\n return (\n <Alert role={role} severity={severity} variant=\"callout\">\n <ScreenReaderText>{t(`severity.${severity}`)}: </ScreenReaderText>\n {title && <AlertTitle>{title}</AlertTitle>}\n <Box component=\"div\">{children}</Box>\n </Alert>\n );\n};\n\nconst MemoizedCallout = memo(Callout);\nMemoizedCallout.displayName = \"Callout\";\n\nexport { MemoizedCallout as Callout };\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAmB,OAAO;AAAC,SAE/BC,gBAAgB;AACzB,SAASC,cAAc,QAAQ,eAAe;AAAC,SAAAC,IAAA,IAAAC,KAAA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAE/C,OAAO,MAAMC,iBAAiB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU;AAC7D,OAAO,MAAMC,qBAAqB,GAAG,CACnC,SAAS,EACT,MAAM,EACN,SAAS,EACT,OAAO,CACC;AAuBV,MAAMC,OAAO,GAAGC,IAAA,IAAuD;EAAA,IAAtD;IAAEC,QAAQ;IAAEC,IAAI;IAAEC,QAAQ;IAAEC;EAAoB,CAAC,GAAAJ,IAAA;EAChE,MAAM;IAAEK;EAAE,CAAC,GAAGb,cAAc,CAAC,CAAC;EAE9B,OACEE,KAAA,CAAAY,MAAA;IAAOJ,IAAI,EAAEA,IAAK;IAACC,QAAQ,EAAEA,QAAS;IAACI,OAAO,EAAC,SAAS;IAAAN,QAAA,GACtDP,KAAA,CAACH,gBAAgB;MAAAU,QAAA,GAAEI,CAAC,CAAE,YAAWF,QAAS,EAAC,CAAC,EAAC,IAAE;IAAA,CAAkB,CAAC,EACjEC,KAAK,IAAIR,IAAA,CAAAY,WAAA;MAAAP,QAAA,EAAaG;IAAK,CAAa,CAAC,EAC1CR,IAAA,CAAAa,IAAA;MAAKC,SAAS,EAAC,KAAK;MAAAT,QAAA,EAAEA;IAAQ,CAAM,CAAC;EAAA,CAChC,CAAC;AAEZ,CAAC;AAED,MAAMU,eAAe,GAAGrB,IAAI,CAACS,OAAO,CAAC;AACrCY,eAAe,CAACC,WAAW,GAAG,SAAS;AAEvC,SAASD,eAAe,IAAIZ,OAAO"}