@okta/odyssey-react-mui 0.23.0 → 0.24.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 (463) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +43 -7
  3. package/dist/{src/ThemeProvider.d.ts → @types/i18next.d.js} +4 -7
  4. package/dist/@types/i18next.d.js.map +1 -0
  5. package/dist/Autocomplete.js +13 -3
  6. package/dist/Autocomplete.js.map +1 -1
  7. package/dist/Banner.js +6 -3
  8. package/dist/Banner.js.map +1 -1
  9. package/dist/Button.js +13 -3
  10. package/dist/Button.js.map +1 -1
  11. package/dist/Checkbox.js +44 -10
  12. package/dist/Checkbox.js.map +1 -1
  13. package/dist/CheckboxGroup.js +14 -3
  14. package/dist/CheckboxGroup.js.map +1 -1
  15. package/dist/CircularProgress.js +11 -0
  16. package/dist/CircularProgress.js.map +1 -1
  17. package/dist/Dialog.js +11 -7
  18. package/dist/Dialog.js.map +1 -1
  19. package/dist/Field.js +13 -8
  20. package/dist/Field.js.map +1 -1
  21. package/dist/FieldError.js +6 -3
  22. package/dist/FieldError.js.map +1 -1
  23. package/dist/FieldHint.js +1 -2
  24. package/dist/FieldHint.js.map +1 -1
  25. package/dist/FieldLabel.js +17 -5
  26. package/dist/FieldLabel.js.map +1 -1
  27. package/dist/Fieldset.js +55 -0
  28. package/dist/Fieldset.js.map +1 -0
  29. package/dist/Form.js +69 -0
  30. package/dist/Form.js.map +1 -0
  31. package/dist/Icon.js +2 -3
  32. package/dist/Icon.js.map +1 -1
  33. package/dist/Infobox.js +6 -3
  34. package/dist/Infobox.js.map +1 -1
  35. package/dist/Link.js +6 -2
  36. package/dist/Link.js.map +1 -1
  37. package/dist/MenuButton.js +0 -5
  38. package/dist/MenuButton.js.map +1 -1
  39. package/dist/MenuItem.js +4 -2
  40. package/dist/MenuItem.js.map +1 -1
  41. package/dist/MuiPropsChild.js +3 -1
  42. package/dist/MuiPropsChild.js.map +1 -1
  43. package/dist/MuiPropsContext.js +1 -0
  44. package/dist/MuiPropsContext.js.map +1 -1
  45. package/dist/NativeSelect.js +61 -0
  46. package/dist/NativeSelect.js.map +1 -0
  47. package/dist/OdysseyCacheProvider.js +1 -2
  48. package/dist/OdysseyCacheProvider.js.map +1 -1
  49. package/dist/OdysseyI18n.js +93 -0
  50. package/dist/OdysseyI18n.js.map +1 -0
  51. package/dist/{ThemeProvider.js → OdysseyProvider.js} +20 -8
  52. package/dist/OdysseyProvider.js.map +1 -0
  53. package/dist/OdysseyThemeProvider.js +11 -5
  54. package/dist/OdysseyThemeProvider.js.map +1 -1
  55. package/dist/OdysseyTranslationProvider.js +47 -0
  56. package/dist/OdysseyTranslationProvider.js.map +1 -0
  57. package/dist/OdysseyTranslationProvider.types.js +14 -0
  58. package/dist/OdysseyTranslationProvider.types.js.map +1 -0
  59. package/dist/PasswordField.js +12 -0
  60. package/dist/PasswordField.js.map +1 -1
  61. package/dist/Radio.js +11 -2
  62. package/dist/Radio.js.map +1 -1
  63. package/dist/RadioGroup.js +11 -2
  64. package/dist/RadioGroup.js.map +1 -1
  65. package/dist/ScreenReaderText.js +3 -3
  66. package/dist/ScreenReaderText.js.map +1 -1
  67. package/dist/SearchField.js +11 -0
  68. package/dist/SearchField.js.map +1 -1
  69. package/dist/Select.js +131 -0
  70. package/dist/Select.js.map +1 -0
  71. package/dist/Status.js.map +1 -1
  72. package/dist/Tabs.js +46 -0
  73. package/dist/Tabs.js.map +1 -0
  74. package/dist/Tag.js +11 -2
  75. package/dist/Tag.js.map +1 -1
  76. package/dist/TagList.js +11 -2
  77. package/dist/TagList.js.map +1 -1
  78. package/dist/TagListContext.js +1 -0
  79. package/dist/TagListContext.js.map +1 -1
  80. package/dist/TextField.js +12 -2
  81. package/dist/TextField.js.map +1 -1
  82. package/dist/Toast.js +10 -4
  83. package/dist/Toast.js.map +1 -1
  84. package/dist/ToastStack.js +1 -2
  85. package/dist/ToastStack.js.map +1 -1
  86. package/dist/Tooltip.js +11 -0
  87. package/dist/Tooltip.js.map +1 -1
  88. package/dist/a11yCheck.js +1 -2
  89. package/dist/a11yCheck.js.map +1 -1
  90. package/dist/createUniqueAlphabeticalId.js +1 -2
  91. package/dist/createUniqueAlphabeticalId.js.map +1 -1
  92. package/dist/createUniqueId.js +1 -2
  93. package/dist/createUniqueId.js.map +1 -1
  94. package/dist/iconDictionary/Add.js +1 -2
  95. package/dist/iconDictionary/Add.js.map +1 -1
  96. package/dist/iconDictionary/AddCircle.js +1 -2
  97. package/dist/iconDictionary/AddCircle.js.map +1 -1
  98. package/dist/iconDictionary/AlertCircle.js +1 -2
  99. package/dist/iconDictionary/AlertCircle.js.map +1 -1
  100. package/dist/iconDictionary/AlertCircleFilled.js +1 -2
  101. package/dist/iconDictionary/AlertCircleFilled.js.map +1 -1
  102. package/dist/iconDictionary/AlertTriangleFilled.js +1 -2
  103. package/dist/iconDictionary/AlertTriangleFilled.js.map +1 -1
  104. package/dist/iconDictionary/Anchor.js +1 -2
  105. package/dist/iconDictionary/Anchor.js.map +1 -1
  106. package/dist/iconDictionary/ArrowDown.js +1 -2
  107. package/dist/iconDictionary/ArrowDown.js.map +1 -1
  108. package/dist/iconDictionary/ArrowLeft.js +1 -2
  109. package/dist/iconDictionary/ArrowLeft.js.map +1 -1
  110. package/dist/iconDictionary/ArrowRight.js +1 -2
  111. package/dist/iconDictionary/ArrowRight.js.map +1 -1
  112. package/dist/iconDictionary/ArrowUp.js +1 -2
  113. package/dist/iconDictionary/ArrowUp.js.map +1 -1
  114. package/dist/iconDictionary/ArrowUpDown.js +1 -2
  115. package/dist/iconDictionary/ArrowUpDown.js.map +1 -1
  116. package/dist/iconDictionary/Calendar.js +1 -2
  117. package/dist/iconDictionary/Calendar.js.map +1 -1
  118. package/dist/iconDictionary/Check.js +1 -2
  119. package/dist/iconDictionary/Check.js.map +1 -1
  120. package/dist/iconDictionary/CheckCircleFilled.js +1 -2
  121. package/dist/iconDictionary/CheckCircleFilled.js.map +1 -1
  122. package/dist/iconDictionary/ChevronDown.js +1 -2
  123. package/dist/iconDictionary/ChevronDown.js.map +1 -1
  124. package/dist/iconDictionary/ChevronUp.js +1 -2
  125. package/dist/iconDictionary/ChevronUp.js.map +1 -1
  126. package/dist/iconDictionary/Close.js +1 -2
  127. package/dist/iconDictionary/Close.js.map +1 -1
  128. package/dist/iconDictionary/CloseCircleFilled.js +1 -2
  129. package/dist/iconDictionary/CloseCircleFilled.js.map +1 -1
  130. package/dist/iconDictionary/Copy.js +1 -2
  131. package/dist/iconDictionary/Copy.js.map +1 -1
  132. package/dist/iconDictionary/Delete.js +1 -2
  133. package/dist/iconDictionary/Delete.js.map +1 -1
  134. package/dist/iconDictionary/Download.js +1 -2
  135. package/dist/iconDictionary/Download.js.map +1 -1
  136. package/dist/iconDictionary/DragHandle.js +1 -2
  137. package/dist/iconDictionary/DragHandle.js.map +1 -1
  138. package/dist/iconDictionary/Edit.js +1 -2
  139. package/dist/iconDictionary/Edit.js.map +1 -1
  140. package/dist/iconDictionary/ExternalLink.js +1 -2
  141. package/dist/iconDictionary/ExternalLink.js.map +1 -1
  142. package/dist/iconDictionary/Eye.js +1 -2
  143. package/dist/iconDictionary/Eye.js.map +1 -1
  144. package/dist/iconDictionary/EyeOff.js +1 -2
  145. package/dist/iconDictionary/EyeOff.js.map +1 -1
  146. package/dist/iconDictionary/Filter.js +1 -2
  147. package/dist/iconDictionary/Filter.js.map +1 -1
  148. package/dist/iconDictionary/Globe.js +1 -2
  149. package/dist/iconDictionary/Globe.js.map +1 -1
  150. package/dist/iconDictionary/Home.js +1 -2
  151. package/dist/iconDictionary/Home.js.map +1 -1
  152. package/dist/iconDictionary/InformationCircle.js +1 -2
  153. package/dist/iconDictionary/InformationCircle.js.map +1 -1
  154. package/dist/iconDictionary/InformationCircleFilled.js +1 -2
  155. package/dist/iconDictionary/InformationCircleFilled.js.map +1 -1
  156. package/dist/iconDictionary/Notification.js +1 -2
  157. package/dist/iconDictionary/Notification.js.map +1 -1
  158. package/dist/iconDictionary/OverflowVertical.js +1 -2
  159. package/dist/iconDictionary/OverflowVertical.js.map +1 -1
  160. package/dist/iconDictionary/QuestionCircle.js +1 -2
  161. package/dist/iconDictionary/QuestionCircle.js.map +1 -1
  162. package/dist/iconDictionary/QuestionCircleFilled.js +1 -2
  163. package/dist/iconDictionary/QuestionCircleFilled.js.map +1 -1
  164. package/dist/iconDictionary/Search.js +1 -2
  165. package/dist/iconDictionary/Search.js.map +1 -1
  166. package/dist/iconDictionary/Settings.js +1 -2
  167. package/dist/iconDictionary/Settings.js.map +1 -1
  168. package/dist/iconDictionary/Subtract.js +1 -2
  169. package/dist/iconDictionary/Subtract.js.map +1 -1
  170. package/dist/iconDictionary/SvgIcon.js +1 -0
  171. package/dist/iconDictionary/SvgIcon.js.map +1 -1
  172. package/dist/iconDictionary/User.js +1 -2
  173. package/dist/iconDictionary/User.js.map +1 -1
  174. package/dist/iconDictionary/UserGroup.js +1 -2
  175. package/dist/iconDictionary/UserGroup.js.map +1 -1
  176. package/dist/iconDictionary/index.js.map +1 -1
  177. package/dist/index.js +9 -3
  178. package/dist/index.js.map +1 -1
  179. package/dist/properties/ts/odyssey-react-mui.js +11 -0
  180. package/dist/properties/ts/odyssey-react-mui.js.map +1 -0
  181. package/dist/properties/ts/odyssey-react-mui_cs.js +2 -0
  182. package/dist/properties/ts/odyssey-react-mui_cs.js.map +1 -0
  183. package/dist/properties/ts/odyssey-react-mui_da.js +2 -0
  184. package/dist/properties/ts/odyssey-react-mui_da.js.map +1 -0
  185. package/dist/properties/ts/odyssey-react-mui_de.js +2 -0
  186. package/dist/properties/ts/odyssey-react-mui_de.js.map +1 -0
  187. package/dist/properties/ts/odyssey-react-mui_el.js +2 -0
  188. package/dist/properties/ts/odyssey-react-mui_el.js.map +1 -0
  189. package/dist/properties/ts/odyssey-react-mui_es.js +2 -0
  190. package/dist/properties/ts/odyssey-react-mui_es.js.map +1 -0
  191. package/dist/properties/ts/odyssey-react-mui_fi.js +2 -0
  192. package/dist/properties/ts/odyssey-react-mui_fi.js.map +1 -0
  193. package/dist/properties/ts/odyssey-react-mui_fr.js +2 -0
  194. package/dist/properties/ts/odyssey-react-mui_fr.js.map +1 -0
  195. package/dist/properties/ts/odyssey-react-mui_hu.js +2 -0
  196. package/dist/properties/ts/odyssey-react-mui_hu.js.map +1 -0
  197. package/dist/properties/ts/odyssey-react-mui_id.js +2 -0
  198. package/dist/properties/ts/odyssey-react-mui_id.js.map +1 -0
  199. package/dist/properties/ts/odyssey-react-mui_it.js +2 -0
  200. package/dist/properties/ts/odyssey-react-mui_it.js.map +1 -0
  201. package/dist/properties/ts/odyssey-react-mui_ja.js +2 -0
  202. package/dist/properties/ts/odyssey-react-mui_ja.js.map +1 -0
  203. package/dist/properties/ts/odyssey-react-mui_ko.js +2 -0
  204. package/dist/properties/ts/odyssey-react-mui_ko.js.map +1 -0
  205. package/dist/properties/ts/odyssey-react-mui_ms.js +2 -0
  206. package/dist/properties/ts/odyssey-react-mui_ms.js.map +1 -0
  207. package/dist/properties/ts/odyssey-react-mui_nb.js +2 -0
  208. package/dist/properties/ts/odyssey-react-mui_nb.js.map +1 -0
  209. package/dist/properties/ts/odyssey-react-mui_nl-NL.js +2 -0
  210. package/dist/properties/ts/odyssey-react-mui_nl-NL.js.map +1 -0
  211. package/dist/properties/ts/odyssey-react-mui_pl.js +2 -0
  212. package/dist/properties/ts/odyssey-react-mui_pl.js.map +1 -0
  213. package/dist/properties/ts/odyssey-react-mui_pt-BR.js +2 -0
  214. package/dist/properties/ts/odyssey-react-mui_pt-BR.js.map +1 -0
  215. package/dist/properties/ts/odyssey-react-mui_ro.js +2 -0
  216. package/dist/properties/ts/odyssey-react-mui_ro.js.map +1 -0
  217. package/dist/properties/ts/odyssey-react-mui_ru.js +2 -0
  218. package/dist/properties/ts/odyssey-react-mui_ru.js.map +1 -0
  219. package/dist/properties/ts/odyssey-react-mui_sv.js +2 -0
  220. package/dist/properties/ts/odyssey-react-mui_sv.js.map +1 -0
  221. package/dist/properties/ts/odyssey-react-mui_th.js +2 -0
  222. package/dist/properties/ts/odyssey-react-mui_th.js.map +1 -0
  223. package/dist/properties/ts/odyssey-react-mui_tr.js +2 -0
  224. package/dist/properties/ts/odyssey-react-mui_tr.js.map +1 -0
  225. package/dist/properties/ts/odyssey-react-mui_uk.js +2 -0
  226. package/dist/properties/ts/odyssey-react-mui_uk.js.map +1 -0
  227. package/dist/properties/ts/odyssey-react-mui_zh-CN.js +2 -0
  228. package/dist/properties/ts/odyssey-react-mui_zh-CN.js.map +1 -0
  229. package/dist/properties/ts/odyssey-react-mui_zh-TW.js +2 -0
  230. package/dist/properties/ts/odyssey-react-mui_zh-TW.js.map +1 -0
  231. package/dist/src/Banner.d.ts.map +1 -1
  232. package/dist/src/Checkbox.d.ts +4 -2
  233. package/dist/src/Checkbox.d.ts.map +1 -1
  234. package/dist/src/CheckboxGroup.d.ts +2 -1
  235. package/dist/src/CheckboxGroup.d.ts.map +1 -1
  236. package/dist/src/Field.d.ts +5 -5
  237. package/dist/src/Field.d.ts.map +1 -1
  238. package/dist/src/FieldError.d.ts.map +1 -1
  239. package/dist/src/FieldLabel.d.ts +1 -2
  240. package/dist/src/FieldLabel.d.ts.map +1 -1
  241. package/dist/src/Fieldset.d.ts +42 -0
  242. package/dist/src/Fieldset.d.ts.map +1 -0
  243. package/dist/src/Form.d.ts +73 -0
  244. package/dist/src/Form.d.ts.map +1 -0
  245. package/dist/src/Icon.d.ts +4 -2
  246. package/dist/src/Icon.d.ts.map +1 -1
  247. package/dist/src/Infobox.d.ts.map +1 -1
  248. package/dist/src/MenuItem.d.ts +1 -1
  249. package/dist/src/MenuItem.d.ts.map +1 -1
  250. package/dist/src/NativeSelect.d.ts +36 -0
  251. package/dist/src/NativeSelect.d.ts.map +1 -0
  252. package/dist/src/OdysseyI18n.d.ts +54 -0
  253. package/dist/src/OdysseyI18n.d.ts.map +1 -0
  254. package/dist/src/OdysseyProvider.d.ts +27 -0
  255. package/dist/src/OdysseyProvider.d.ts.map +1 -0
  256. package/dist/src/OdysseyThemeProvider.d.ts +4 -2
  257. package/dist/src/OdysseyThemeProvider.d.ts.map +1 -1
  258. package/dist/src/OdysseyTranslationProvider.d.ts +25 -0
  259. package/dist/src/OdysseyTranslationProvider.d.ts.map +1 -0
  260. package/dist/src/OdysseyTranslationProvider.types.d.ts +14 -0
  261. package/dist/src/OdysseyTranslationProvider.types.d.ts.map +1 -0
  262. package/dist/src/PasswordField.d.ts.map +1 -1
  263. package/dist/src/Select.d.ts +35 -0
  264. package/dist/src/Select.d.ts.map +1 -0
  265. package/{src/ThemeProvider.tsx → dist/src/Tabs.d.ts} +16 -15
  266. package/dist/src/Tabs.d.ts.map +1 -0
  267. package/dist/src/TextField.d.ts +0 -4
  268. package/dist/src/TextField.d.ts.map +1 -1
  269. package/dist/src/Toast.d.ts +1 -1
  270. package/dist/src/Toast.d.ts.map +1 -1
  271. package/dist/src/index.d.ts +9 -5
  272. package/dist/src/index.d.ts.map +1 -1
  273. package/dist/src/properties/ts/odyssey-react-mui.d.ts +11 -0
  274. package/dist/src/properties/ts/odyssey-react-mui.d.ts.map +1 -0
  275. package/dist/src/properties/ts/odyssey-react-mui_cs.d.ts +2 -0
  276. package/dist/src/properties/ts/odyssey-react-mui_cs.d.ts.map +1 -0
  277. package/dist/src/properties/ts/odyssey-react-mui_da.d.ts +2 -0
  278. package/dist/src/properties/ts/odyssey-react-mui_da.d.ts.map +1 -0
  279. package/dist/src/properties/ts/odyssey-react-mui_de.d.ts +2 -0
  280. package/dist/src/properties/ts/odyssey-react-mui_de.d.ts.map +1 -0
  281. package/dist/src/properties/ts/odyssey-react-mui_el.d.ts +2 -0
  282. package/dist/src/properties/ts/odyssey-react-mui_el.d.ts.map +1 -0
  283. package/dist/src/properties/ts/odyssey-react-mui_es.d.ts +2 -0
  284. package/dist/src/properties/ts/odyssey-react-mui_es.d.ts.map +1 -0
  285. package/dist/src/properties/ts/odyssey-react-mui_fi.d.ts +2 -0
  286. package/dist/src/properties/ts/odyssey-react-mui_fi.d.ts.map +1 -0
  287. package/dist/src/properties/ts/odyssey-react-mui_fr.d.ts +2 -0
  288. package/dist/src/properties/ts/odyssey-react-mui_fr.d.ts.map +1 -0
  289. package/dist/src/properties/ts/odyssey-react-mui_hu.d.ts +2 -0
  290. package/dist/src/properties/ts/odyssey-react-mui_hu.d.ts.map +1 -0
  291. package/dist/src/properties/ts/odyssey-react-mui_id.d.ts +2 -0
  292. package/dist/src/properties/ts/odyssey-react-mui_id.d.ts.map +1 -0
  293. package/dist/src/properties/ts/odyssey-react-mui_it.d.ts +2 -0
  294. package/dist/src/properties/ts/odyssey-react-mui_it.d.ts.map +1 -0
  295. package/dist/src/properties/ts/odyssey-react-mui_ja.d.ts +2 -0
  296. package/dist/src/properties/ts/odyssey-react-mui_ja.d.ts.map +1 -0
  297. package/dist/src/properties/ts/odyssey-react-mui_ko.d.ts +2 -0
  298. package/dist/src/properties/ts/odyssey-react-mui_ko.d.ts.map +1 -0
  299. package/dist/src/properties/ts/odyssey-react-mui_ms.d.ts +2 -0
  300. package/dist/src/properties/ts/odyssey-react-mui_ms.d.ts.map +1 -0
  301. package/dist/src/properties/ts/odyssey-react-mui_nb.d.ts +2 -0
  302. package/dist/src/properties/ts/odyssey-react-mui_nb.d.ts.map +1 -0
  303. package/dist/src/properties/ts/odyssey-react-mui_nl-NL.d.ts +2 -0
  304. package/dist/src/properties/ts/odyssey-react-mui_nl-NL.d.ts.map +1 -0
  305. package/dist/src/properties/ts/odyssey-react-mui_pl.d.ts +2 -0
  306. package/dist/src/properties/ts/odyssey-react-mui_pl.d.ts.map +1 -0
  307. package/dist/src/properties/ts/odyssey-react-mui_pt-BR.d.ts +2 -0
  308. package/dist/src/properties/ts/odyssey-react-mui_pt-BR.d.ts.map +1 -0
  309. package/dist/src/properties/ts/odyssey-react-mui_ro.d.ts +2 -0
  310. package/dist/src/properties/ts/odyssey-react-mui_ro.d.ts.map +1 -0
  311. package/dist/src/properties/ts/odyssey-react-mui_ru.d.ts +2 -0
  312. package/dist/src/properties/ts/odyssey-react-mui_ru.d.ts.map +1 -0
  313. package/dist/src/properties/ts/odyssey-react-mui_sv.d.ts +2 -0
  314. package/dist/src/properties/ts/odyssey-react-mui_sv.d.ts.map +1 -0
  315. package/dist/src/properties/ts/odyssey-react-mui_th.d.ts +2 -0
  316. package/dist/src/properties/ts/odyssey-react-mui_th.d.ts.map +1 -0
  317. package/dist/src/properties/ts/odyssey-react-mui_tr.d.ts +2 -0
  318. package/dist/src/properties/ts/odyssey-react-mui_tr.d.ts.map +1 -0
  319. package/dist/src/properties/ts/odyssey-react-mui_uk.d.ts +2 -0
  320. package/dist/src/properties/ts/odyssey-react-mui_uk.d.ts.map +1 -0
  321. package/dist/src/properties/ts/odyssey-react-mui_zh-CN.d.ts +2 -0
  322. package/dist/src/properties/ts/odyssey-react-mui_zh-CN.d.ts.map +1 -0
  323. package/dist/src/properties/ts/odyssey-react-mui_zh-TW.d.ts +2 -0
  324. package/dist/src/properties/ts/odyssey-react-mui_zh-TW.d.ts.map +1 -0
  325. package/dist/src/theme/components.d.ts.map +1 -1
  326. package/dist/src/theme/index.d.ts +3 -1
  327. package/dist/src/theme/index.d.ts.map +1 -1
  328. package/dist/src/theme/mixins.d.ts +2 -1
  329. package/dist/src/theme/mixins.d.ts.map +1 -1
  330. package/dist/src/theme/palette.d.ts +2 -1
  331. package/dist/src/theme/palette.d.ts.map +1 -1
  332. package/dist/src/theme/shape.d.ts +2 -1
  333. package/dist/src/theme/shape.d.ts.map +1 -1
  334. package/dist/src/theme/spacing.d.ts +2 -1
  335. package/dist/src/theme/spacing.d.ts.map +1 -1
  336. package/dist/src/theme/theme.d.ts +3 -2
  337. package/dist/src/theme/theme.d.ts.map +1 -1
  338. package/dist/src/theme/typography.d.ts +2 -1
  339. package/dist/src/theme/typography.d.ts.map +1 -1
  340. package/dist/theme/components.js +91 -73
  341. package/dist/theme/components.js.map +1 -1
  342. package/dist/theme/components.types.js +1 -0
  343. package/dist/theme/components.types.js.map +1 -1
  344. package/dist/theme/index.js +1 -1
  345. package/dist/theme/index.js.map +1 -1
  346. package/dist/theme/mixins.js +8 -6
  347. package/dist/theme/mixins.js.map +1 -1
  348. package/dist/theme/mixins.types.js +1 -0
  349. package/dist/theme/mixins.types.js.map +1 -1
  350. package/dist/theme/palette.js +89 -86
  351. package/dist/theme/palette.js.map +1 -1
  352. package/dist/theme/palette.types.js +1 -0
  353. package/dist/theme/palette.types.js.map +1 -1
  354. package/dist/theme/shape.js +6 -4
  355. package/dist/theme/shape.js.map +1 -1
  356. package/dist/theme/spacing.js +4 -1
  357. package/dist/theme/spacing.js.map +1 -1
  358. package/dist/theme/temp.js +1 -0
  359. package/dist/theme/temp.js.map +1 -1
  360. package/dist/theme/theme.js +12 -9
  361. package/dist/theme/theme.js.map +1 -1
  362. package/dist/theme/typography.js +85 -83
  363. package/dist/theme/typography.js.map +1 -1
  364. package/dist/theme/typography.types.js +1 -0
  365. package/dist/theme/typography.types.js.map +1 -1
  366. package/dist/theme/useTheme.js +1 -0
  367. package/dist/theme/useTheme.js.map +1 -1
  368. package/dist/tsconfig.production.tsbuildinfo +1 -1
  369. package/dist/useUniqueAlphabeticalId.js +1 -0
  370. package/dist/useUniqueAlphabeticalId.js.map +1 -1
  371. package/dist/useUniqueId.js +1 -0
  372. package/dist/useUniqueId.js.map +1 -1
  373. package/i18n.config.json +8 -0
  374. package/package.json +9 -4
  375. package/scripts/properties-to-ts.js +103 -0
  376. package/src/@types/i18next.d.ts +22 -0
  377. package/src/Banner.tsx +16 -11
  378. package/src/Checkbox.tsx +47 -21
  379. package/src/CheckboxGroup.tsx +4 -1
  380. package/src/Field.tsx +16 -7
  381. package/src/FieldError.tsx +6 -1
  382. package/src/FieldLabel.tsx +7 -4
  383. package/src/Fieldset.tsx +95 -0
  384. package/src/Form.tsx +142 -0
  385. package/src/Icon.tsx +11 -14
  386. package/src/Infobox.tsx +12 -7
  387. package/src/Link.tsx +2 -2
  388. package/src/MenuItem.tsx +1 -0
  389. package/src/NativeSelect.tsx +107 -0
  390. package/src/OdysseyI18n.ts +101 -0
  391. package/src/OdysseyProvider.tsx +59 -0
  392. package/src/OdysseyThemeProvider.tsx +9 -3
  393. package/src/OdysseyTranslationProvider.test.tsx +63 -0
  394. package/src/OdysseyTranslationProvider.tsx +65 -0
  395. package/src/OdysseyTranslationProvider.types.ts +42 -0
  396. package/src/PasswordField.tsx +1 -0
  397. package/src/Select.tsx +226 -0
  398. package/src/Tabs.tsx +70 -0
  399. package/src/TextField.tsx +1 -6
  400. package/src/Toast.tsx +61 -59
  401. package/src/index.ts +7 -9
  402. package/src/properties/odyssey-react-mui.properties +8 -0
  403. package/src/properties/translations/odyssey-react-mui_cs.properties +0 -0
  404. package/src/properties/translations/odyssey-react-mui_da.properties +0 -0
  405. package/src/properties/translations/odyssey-react-mui_de.properties +0 -0
  406. package/src/properties/translations/odyssey-react-mui_el.properties +0 -0
  407. package/src/properties/translations/odyssey-react-mui_es.properties +0 -0
  408. package/src/properties/translations/odyssey-react-mui_fi.properties +0 -0
  409. package/src/properties/translations/odyssey-react-mui_fr.properties +0 -0
  410. package/src/properties/translations/odyssey-react-mui_hu.properties +0 -0
  411. package/src/properties/translations/odyssey-react-mui_id.properties +0 -0
  412. package/src/properties/translations/odyssey-react-mui_it.properties +0 -0
  413. package/src/properties/translations/odyssey-react-mui_ja.properties +0 -0
  414. package/src/properties/translations/odyssey-react-mui_ko.properties +0 -0
  415. package/src/properties/translations/odyssey-react-mui_ms.properties +0 -0
  416. package/src/properties/translations/odyssey-react-mui_nb.properties +0 -0
  417. package/src/properties/translations/odyssey-react-mui_nl-NL.properties +0 -0
  418. package/src/properties/translations/odyssey-react-mui_pl.properties +0 -0
  419. package/src/properties/translations/odyssey-react-mui_pt-BR.properties +0 -0
  420. package/src/properties/translations/odyssey-react-mui_ro.properties +0 -0
  421. package/src/properties/translations/odyssey-react-mui_ru.properties +0 -0
  422. package/src/properties/translations/odyssey-react-mui_sv.properties +0 -0
  423. package/src/properties/translations/odyssey-react-mui_th.properties +0 -0
  424. package/src/properties/translations/odyssey-react-mui_tr.properties +0 -0
  425. package/src/properties/translations/odyssey-react-mui_uk.properties +0 -0
  426. package/src/properties/translations/odyssey-react-mui_zh-CN.properties +0 -0
  427. package/src/properties/translations/odyssey-react-mui_zh-TW.properties +0 -0
  428. package/src/properties/ts/odyssey-react-mui.ts +1 -0
  429. package/src/properties/ts/odyssey-react-mui_cs.ts +1 -0
  430. package/src/properties/ts/odyssey-react-mui_da.ts +1 -0
  431. package/src/properties/ts/odyssey-react-mui_de.ts +1 -0
  432. package/src/properties/ts/odyssey-react-mui_el.ts +1 -0
  433. package/src/properties/ts/odyssey-react-mui_es.ts +1 -0
  434. package/src/properties/ts/odyssey-react-mui_fi.ts +1 -0
  435. package/src/properties/ts/odyssey-react-mui_fr.ts +1 -0
  436. package/src/properties/ts/odyssey-react-mui_hu.ts +1 -0
  437. package/src/properties/ts/odyssey-react-mui_id.ts +1 -0
  438. package/src/properties/ts/odyssey-react-mui_it.ts +1 -0
  439. package/src/properties/ts/odyssey-react-mui_ja.ts +1 -0
  440. package/src/properties/ts/odyssey-react-mui_ko.ts +1 -0
  441. package/src/properties/ts/odyssey-react-mui_ms.ts +1 -0
  442. package/src/properties/ts/odyssey-react-mui_nb.ts +1 -0
  443. package/src/properties/ts/odyssey-react-mui_nl-NL.ts +1 -0
  444. package/src/properties/ts/odyssey-react-mui_pl.ts +1 -0
  445. package/src/properties/ts/odyssey-react-mui_pt-BR.ts +1 -0
  446. package/src/properties/ts/odyssey-react-mui_ro.ts +1 -0
  447. package/src/properties/ts/odyssey-react-mui_ru.ts +1 -0
  448. package/src/properties/ts/odyssey-react-mui_sv.ts +1 -0
  449. package/src/properties/ts/odyssey-react-mui_th.ts +1 -0
  450. package/src/properties/ts/odyssey-react-mui_tr.ts +1 -0
  451. package/src/properties/ts/odyssey-react-mui_uk.ts +1 -0
  452. package/src/properties/ts/odyssey-react-mui_zh-CN.ts +1 -0
  453. package/src/properties/ts/odyssey-react-mui_zh-TW.ts +1 -0
  454. package/src/theme/components.tsx +12 -4
  455. package/src/theme/index.ts +5 -1
  456. package/src/theme/mixins.ts +10 -6
  457. package/src/theme/palette.ts +95 -88
  458. package/src/theme/shape.ts +12 -8
  459. package/src/theme/spacing.ts +17 -12
  460. package/src/theme/theme.ts +14 -10
  461. package/src/theme/typography.ts +87 -83
  462. package/dist/ThemeProvider.js.map +0 -1
  463. package/dist/src/ThemeProvider.d.ts.map +0 -1
@@ -9,5 +9,6 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
+
12
13
  export {};
13
14
  //# sourceMappingURL=components.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components.types.js","names":[],"sources":["../../src/theme/components.types.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\ndeclare module \"@mui/material/Alert\" {\n interface AlertPropsVariantOverrides {\n // Disable Mui defaults\n filled: false;\n outlined: false;\n standard: false;\n // Enable Odyssey variants\n banner: true;\n infobox: true;\n toast: true;\n }\n}\n\ndeclare module \"@mui/material/Button\" {\n interface ButtonPropsVariantOverrides {\n floating: true;\n primary: true;\n secondary: true;\n danger: true;\n text: false;\n contained: false;\n outlined: false;\n }\n interface ButtonPropsColorOverrides {\n inherit: false;\n primary: false;\n secondary: false;\n error: false;\n info: false;\n warning: false;\n success: false;\n }\n}\n\ndeclare module \"@mui/material/Chip\" {\n interface ChipPropsVariantOverrides {\n // Enable Odyssey variant for Status component\n status: true;\n }\n}\n\ndeclare module \"@mui/material/Link\" {\n interface LinkPropsVariantOverrides {\n default: true;\n monochrome: true;\n body1: false;\n body2: false;\n button: false;\n h1: false;\n h2: false;\n h3: false;\n h4: false;\n h5: false;\n h6: false;\n inherit: false;\n overline: false;\n subtitle1: false;\n subtitle2: false;\n }\n\n interface LinkPropsUnderlineOverrides {\n none: false;\n hover: false;\n always: false;\n }\n\n interface LinkPropsColorOverrides {\n inherit: false;\n primary: false;\n secondary: false;\n error: false;\n info: false;\n warning: false;\n success: false;\n }\n}\n\ndeclare module \"@mui/material/TableCell\" {\n interface TableCellPropsVariantOverrides {\n action: true;\n body: true;\n date: true;\n footer: true;\n head: true;\n number: true;\n }\n}\n\ndeclare module \"@mui/material/Tooltip\" {\n interface TooltipComponentsPropsOverrides {\n placement?: \"bottom\" | \"left\" | \"right\" | \"top\";\n }\n}\n\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAgGA"}
1
+ {"version":3,"file":"components.types.js","names":[],"sources":["../../src/theme/components.types.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\ndeclare module \"@mui/material/Alert\" {\n interface AlertPropsVariantOverrides {\n // Disable Mui defaults\n filled: false;\n outlined: false;\n standard: false;\n // Enable Odyssey variants\n banner: true;\n infobox: true;\n toast: true;\n }\n}\n\ndeclare module \"@mui/material/Button\" {\n interface ButtonPropsVariantOverrides {\n floating: true;\n primary: true;\n secondary: true;\n danger: true;\n text: false;\n contained: false;\n outlined: false;\n }\n interface ButtonPropsColorOverrides {\n inherit: false;\n primary: false;\n secondary: false;\n error: false;\n info: false;\n warning: false;\n success: false;\n }\n}\n\ndeclare module \"@mui/material/Chip\" {\n interface ChipPropsVariantOverrides {\n // Enable Odyssey variant for Status component\n status: true;\n }\n}\n\ndeclare module \"@mui/material/Link\" {\n interface LinkPropsVariantOverrides {\n default: true;\n monochrome: true;\n body1: false;\n body2: false;\n button: false;\n h1: false;\n h2: false;\n h3: false;\n h4: false;\n h5: false;\n h6: false;\n inherit: false;\n overline: false;\n subtitle1: false;\n subtitle2: false;\n }\n\n interface LinkPropsUnderlineOverrides {\n none: false;\n hover: false;\n always: false;\n }\n\n interface LinkPropsColorOverrides {\n inherit: false;\n primary: false;\n secondary: false;\n error: false;\n info: false;\n warning: false;\n success: false;\n }\n}\n\ndeclare module \"@mui/material/TableCell\" {\n interface TableCellPropsVariantOverrides {\n action: true;\n body: true;\n date: true;\n footer: true;\n head: true;\n number: true;\n }\n}\n\ndeclare module \"@mui/material/Tooltip\" {\n interface TooltipComponentsPropsOverrides {\n placement?: \"bottom\" | \"left\" | \"right\" | \"top\";\n }\n}\n\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAgGA"}
@@ -9,6 +9,6 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
- export { theme as odysseyTheme } from "./theme.js";
12
+ export * from "./theme.js";
13
13
  export { useTheme } from "./useTheme.js";
14
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["theme","odysseyTheme","useTheme"],"sources":["../../src/theme/index.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport { theme as odysseyTheme } from \"./theme\";\nexport { useTheme } from \"./useTheme\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;SAESA,KAAK,IAAIC,Y;SACTC,Q"}
1
+ {"version":3,"file":"index.js","names":["useTheme"],"sources":["../../src/theme/index.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport * as Tokens from \"@okta/odyssey-design-tokens\";\n\nexport * from \"./theme\";\nexport { useTheme } from \"./useTheme\";\n\nexport type DesignTokensOverride = Partial<typeof Tokens>;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA;AAAA,SAeSA,QAAQ"}
@@ -9,11 +9,13 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
- import * as Tokens from "@okta/odyssey-design-tokens";
13
- export const mixins = {
14
- maxWidth: Tokens.FontLineLengthMax,
15
- borderRadius: Tokens.BorderRadiusBase,
16
- borderStyle: Tokens.BorderStyleBase,
17
- borderWidth: Tokens.BorderWidthBase
12
+
13
+ export const mixins = odysseyTokens => {
14
+ return {
15
+ maxWidth: odysseyTokens.FontLineLengthMax,
16
+ borderRadius: odysseyTokens.BorderRadiusBase,
17
+ borderStyle: odysseyTokens.BorderStyleBase,
18
+ borderWidth: odysseyTokens.BorderWidthBase
19
+ };
18
20
  };
19
21
  //# sourceMappingURL=mixins.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mixins.js","names":["Tokens","mixins","maxWidth","FontLineLengthMax","borderRadius","BorderRadiusBase","borderStyle","BorderStyleBase","borderWidth","BorderWidthBase"],"sources":["../../src/theme/mixins.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\nimport * as Tokens from \"@okta/odyssey-design-tokens\";\n\nexport const mixins: ThemeOptions[\"mixins\"] = {\n maxWidth: Tokens.FontLineLengthMax,\n borderRadius: Tokens.BorderRadiusBase,\n borderStyle: Tokens.BorderStyleBase,\n borderWidth: Tokens.BorderWidthBase,\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,OAAO,KAAKA,MAAZ,MAAwB,6BAAxB;AAEA,OAAO,MAAMC,MAA8B,GAAG;EAC5CC,QAAQ,EAAEF,MAAM,CAACG,iBAD2B;EAE5CC,YAAY,EAAEJ,MAAM,CAACK,gBAFuB;EAG5CC,WAAW,EAAEN,MAAM,CAACO,eAHwB;EAI5CC,WAAW,EAAER,MAAM,CAACS;AAJwB,CAAvC"}
1
+ {"version":3,"file":"mixins.js","names":["mixins","odysseyTokens","maxWidth","FontLineLengthMax","borderRadius","BorderRadiusBase","borderStyle","BorderStyleBase","borderWidth","BorderWidthBase"],"sources":["../../src/theme/mixins.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\nimport { DesignTokensOverride } from \".\";\n\nexport const mixins = (\n odysseyTokens: DesignTokensOverride\n): ThemeOptions[\"mixins\"] => {\n return {\n maxWidth: odysseyTokens.FontLineLengthMax,\n borderRadius: odysseyTokens.BorderRadiusBase,\n borderStyle: odysseyTokens.BorderStyleBase,\n borderWidth: odysseyTokens.BorderWidthBase,\n };\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKA,OAAO,MAAMA,MAAM,GACjBC,aAAmC,IACR;EAC3B,OAAO;IACLC,QAAQ,EAAED,aAAa,CAACE,iBAAiB;IACzCC,YAAY,EAAEH,aAAa,CAACI,gBAAgB;IAC5CC,WAAW,EAAEL,aAAa,CAACM,eAAe;IAC1CC,WAAW,EAAEP,aAAa,CAACQ;EAC7B,CAAC;AACH,CAAC"}
@@ -9,5 +9,6 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
+
12
13
  export {};
13
14
  //# sourceMappingURL=mixins.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mixins.types.js","names":[],"sources":["../../src/theme/mixins.types.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\ndeclare module \"@mui/material/styles\" {\n interface Mixins {\n borderRadius?: string;\n borderStyle?: string;\n borderWidth?: string;\n maxWidth?: string;\n }\n\n interface MixinsOptions {\n borderRadius?: string;\n borderStyle?: string;\n borderWidth?: string;\n maxWidth?: string;\n }\n}\n\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAkBA"}
1
+ {"version":3,"file":"mixins.types.js","names":[],"sources":["../../src/theme/mixins.types.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\ndeclare module \"@mui/material/styles\" {\n interface Mixins {\n borderRadius?: string;\n borderStyle?: string;\n borderWidth?: string;\n maxWidth?: string;\n }\n\n interface MixinsOptions {\n borderRadius?: string;\n borderStyle?: string;\n borderWidth?: string;\n maxWidth?: string;\n }\n}\n\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAkBA"}
@@ -9,92 +9,95 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
+
12
13
  import * as Tokens from "@okta/odyssey-design-tokens";
13
- export const palette = {
14
- mode: "light",
15
- common: {
16
- black: Tokens.ColorNeutralDark,
17
- white: Tokens.ColorPaletteNeutralWhite
18
- },
19
- primary: {
20
- lighter: Tokens.ColorPaletteBlue000,
21
- light: Tokens.ColorPaletteBlue300,
22
- main: Tokens.ColorPaletteBlue500,
23
- dark: Tokens.ColorPaletteBlue900,
24
- contrastText: Tokens.ColorTextBodyInverse
25
- },
26
- secondary: {
27
- light: "#80c7ca",
28
- main: Tokens.ColorPaletteTurquoise500,
29
- dark: "#004650",
30
- contrastText: Tokens.ColorTextBodyInverse
31
- },
32
- error: {
33
- lighter: Tokens.ColorPaletteRed000,
34
- light: Tokens.ColorPaletteRed300,
35
- main: Tokens.ColorPaletteRed500,
36
- dark: Tokens.ColorPaletteRed900,
37
- contrastText: Tokens.ColorTextBodyInverse
38
- },
39
- warning: {
40
- lighter: Tokens.ColorPaletteYellow000,
41
- light: Tokens.ColorPaletteYellow300,
42
- main: Tokens.ColorPaletteYellow500,
43
- dark: Tokens.ColorPaletteYellow900,
44
- contrastText: Tokens.ColorTextBody
45
- },
46
- info: {
47
- lighter: Tokens.ColorPaletteBlue000,
48
- light: Tokens.ColorPaletteBlue300,
49
- main: Tokens.ColorPaletteBlue500,
50
- dark: Tokens.ColorPaletteBlue900,
51
- contrastText: Tokens.ColorTextBodyInverse
52
- },
53
- success: {
54
- lighter: Tokens.ColorPaletteGreen000,
55
- light: Tokens.ColorPaletteGreen300,
56
- main: Tokens.ColorPaletteGreen500,
57
- dark: Tokens.ColorPaletteGreen900,
58
- contrastText: Tokens.ColorTextBodyInverse
59
- },
60
- grey: {
61
- 50: Tokens.ColorPaletteNeutral000,
62
- 100: Tokens.ColorPaletteNeutral100,
63
- 200: Tokens.ColorPaletteNeutral200,
64
- 300: "#c1c1c8",
65
- 400: "#aaaab4",
66
- 500: Tokens.ColorPaletteNeutral500,
67
- 600: Tokens.ColorPaletteNeutral600,
68
- 700: "#585862",
69
- 800: "#41414b",
70
- 900: Tokens.ColorPaletteNeutral900,
71
- A100: Tokens.ColorPaletteNeutral100,
72
- A200: Tokens.ColorPaletteNeutral200,
73
- A400: "#aaaab4",
74
- A700: "#585862"
75
- },
76
- text: {
77
- primary: Tokens.ColorPaletteNeutral900,
78
- secondary: Tokens.ColorPaletteNeutral600,
79
- disabled: Tokens.ColorPaletteNeutral600
80
- },
81
- divider: Tokens.ColorBorderDisplay,
82
- background: {
83
- paper: Tokens.ColorBackgroundBase,
84
- default: Tokens.ColorBackgroundBase
85
- },
86
- action: {
87
- active: "rgba(0, 0, 0, 0.54)",
88
- hover: "rgba(0, 0, 0, 0.04)",
89
- hoverOpacity: 0.04,
90
- selected: "rgba(0, 0, 0, 0.08)",
91
- selectedOpacity: 0.08,
92
- disabled: Tokens.ColorPaletteNeutral200,
93
- disabledBackground: "rgba(0, 0, 0, 0.12)",
94
- disabledOpacity: 0.38,
95
- focus: "rgba(0, 0, 0, 0.12)",
96
- focusOpacity: 0.12,
97
- activatedOpacity: 0.12
98
- }
14
+ export const palette = odysseyTokens => {
15
+ return {
16
+ mode: "light",
17
+ common: {
18
+ black: odysseyTokens.ColorNeutralDark,
19
+ white: odysseyTokens.ColorPaletteNeutralWhite
20
+ },
21
+ primary: {
22
+ lighter: odysseyTokens.ColorPaletteBlue000,
23
+ light: odysseyTokens.ColorPaletteBlue300,
24
+ main: odysseyTokens.ColorPaletteBlue500 ?? Tokens.ColorPaletteGreen500,
25
+ dark: odysseyTokens.ColorPaletteBlue900,
26
+ contrastText: odysseyTokens.ColorTextBodyInverse
27
+ },
28
+ secondary: {
29
+ light: "#80c7ca",
30
+ main: odysseyTokens.ColorPaletteTurquoise500 ?? Tokens.ColorPaletteTurquoise500,
31
+ dark: "#004650",
32
+ contrastText: odysseyTokens.ColorTextBodyInverse
33
+ },
34
+ error: {
35
+ lighter: odysseyTokens.ColorPaletteRed000,
36
+ light: odysseyTokens.ColorPaletteRed300,
37
+ main: odysseyTokens.ColorPaletteRed500 ?? Tokens.ColorPaletteRed500,
38
+ dark: odysseyTokens.ColorPaletteRed900,
39
+ contrastText: odysseyTokens.ColorTextBodyInverse
40
+ },
41
+ warning: {
42
+ lighter: odysseyTokens.ColorPaletteYellow000,
43
+ light: odysseyTokens.ColorPaletteYellow300,
44
+ main: odysseyTokens.ColorPaletteYellow500 ?? Tokens.ColorPaletteYellow500,
45
+ dark: odysseyTokens.ColorPaletteYellow900,
46
+ contrastText: odysseyTokens.ColorTextBody
47
+ },
48
+ info: {
49
+ lighter: odysseyTokens.ColorPaletteBlue000,
50
+ light: odysseyTokens.ColorPaletteBlue300,
51
+ main: odysseyTokens.ColorPaletteBlue500 ?? Tokens.ColorPaletteBlue500,
52
+ dark: odysseyTokens.ColorPaletteBlue900,
53
+ contrastText: odysseyTokens.ColorTextBodyInverse
54
+ },
55
+ success: {
56
+ lighter: odysseyTokens.ColorPaletteGreen000,
57
+ light: odysseyTokens.ColorPaletteGreen300,
58
+ main: odysseyTokens.ColorPaletteGreen500 ?? Tokens.ColorPaletteGreen500,
59
+ dark: odysseyTokens.ColorPaletteGreen900,
60
+ contrastText: odysseyTokens.ColorTextBodyInverse
61
+ },
62
+ grey: {
63
+ 50: odysseyTokens.ColorPaletteNeutral000,
64
+ 100: odysseyTokens.ColorPaletteNeutral100,
65
+ 200: odysseyTokens.ColorPaletteNeutral200,
66
+ 300: "#c1c1c8",
67
+ 400: "#aaaab4",
68
+ 500: odysseyTokens.ColorPaletteNeutral500,
69
+ 600: odysseyTokens.ColorPaletteNeutral600,
70
+ 700: "#585862",
71
+ 800: "#41414b",
72
+ 900: odysseyTokens.ColorPaletteNeutral900,
73
+ A100: odysseyTokens.ColorPaletteNeutral100,
74
+ A200: odysseyTokens.ColorPaletteNeutral200,
75
+ A400: "#aaaab4",
76
+ A700: "#585862"
77
+ },
78
+ text: {
79
+ primary: odysseyTokens.ColorPaletteNeutral900,
80
+ secondary: odysseyTokens.ColorPaletteNeutral600,
81
+ disabled: odysseyTokens.ColorPaletteNeutral600
82
+ },
83
+ divider: odysseyTokens.ColorBorderDisplay,
84
+ background: {
85
+ paper: odysseyTokens.ColorBackgroundBase,
86
+ default: odysseyTokens.ColorBackgroundBase
87
+ },
88
+ action: {
89
+ active: "rgba(0, 0, 0, 0.54)",
90
+ hover: "rgba(0, 0, 0, 0.04)",
91
+ hoverOpacity: 0.04,
92
+ selected: "rgba(0, 0, 0, 0.08)",
93
+ selectedOpacity: 0.08,
94
+ disabled: odysseyTokens.ColorPaletteNeutral200,
95
+ disabledBackground: "rgba(0, 0, 0, 0.12)",
96
+ disabledOpacity: 0.38,
97
+ focus: "rgba(0, 0, 0, 0.12)",
98
+ focusOpacity: 0.12,
99
+ activatedOpacity: 0.12
100
+ }
101
+ };
99
102
  };
100
103
  //# sourceMappingURL=palette.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"palette.js","names":["Tokens","palette","mode","common","black","ColorNeutralDark","white","ColorPaletteNeutralWhite","primary","lighter","ColorPaletteBlue000","light","ColorPaletteBlue300","main","ColorPaletteBlue500","dark","ColorPaletteBlue900","contrastText","ColorTextBodyInverse","secondary","ColorPaletteTurquoise500","error","ColorPaletteRed000","ColorPaletteRed300","ColorPaletteRed500","ColorPaletteRed900","warning","ColorPaletteYellow000","ColorPaletteYellow300","ColorPaletteYellow500","ColorPaletteYellow900","ColorTextBody","info","success","ColorPaletteGreen000","ColorPaletteGreen300","ColorPaletteGreen500","ColorPaletteGreen900","grey","ColorPaletteNeutral000","ColorPaletteNeutral100","ColorPaletteNeutral200","ColorPaletteNeutral500","ColorPaletteNeutral600","ColorPaletteNeutral900","A100","A200","A400","A700","text","disabled","divider","ColorBorderDisplay","background","paper","ColorBackgroundBase","default","action","active","hover","hoverOpacity","selected","selectedOpacity","disabledBackground","disabledOpacity","focus","focusOpacity","activatedOpacity"],"sources":["../../src/theme/palette.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\nimport * as Tokens from \"@okta/odyssey-design-tokens\";\n\nexport const palette: ThemeOptions[\"palette\"] = {\n mode: \"light\",\n common: {\n black: Tokens.ColorNeutralDark,\n white: Tokens.ColorPaletteNeutralWhite,\n },\n primary: {\n lighter: Tokens.ColorPaletteBlue000,\n light: Tokens.ColorPaletteBlue300,\n main: Tokens.ColorPaletteBlue500,\n dark: Tokens.ColorPaletteBlue900,\n contrastText: Tokens.ColorTextBodyInverse,\n },\n secondary: {\n light: \"#80c7ca\",\n main: Tokens.ColorPaletteTurquoise500,\n dark: \"#004650\",\n contrastText: Tokens.ColorTextBodyInverse,\n },\n error: {\n lighter: Tokens.ColorPaletteRed000,\n light: Tokens.ColorPaletteRed300,\n main: Tokens.ColorPaletteRed500,\n dark: Tokens.ColorPaletteRed900,\n contrastText: Tokens.ColorTextBodyInverse,\n },\n warning: {\n lighter: Tokens.ColorPaletteYellow000,\n light: Tokens.ColorPaletteYellow300,\n main: Tokens.ColorPaletteYellow500,\n dark: Tokens.ColorPaletteYellow900,\n contrastText: Tokens.ColorTextBody,\n },\n info: {\n lighter: Tokens.ColorPaletteBlue000,\n light: Tokens.ColorPaletteBlue300,\n main: Tokens.ColorPaletteBlue500,\n dark: Tokens.ColorPaletteBlue900,\n contrastText: Tokens.ColorTextBodyInverse,\n },\n success: {\n lighter: Tokens.ColorPaletteGreen000,\n light: Tokens.ColorPaletteGreen300,\n main: Tokens.ColorPaletteGreen500,\n dark: Tokens.ColorPaletteGreen900,\n contrastText: Tokens.ColorTextBodyInverse,\n },\n grey: {\n 50: Tokens.ColorPaletteNeutral000,\n 100: Tokens.ColorPaletteNeutral100,\n 200: Tokens.ColorPaletteNeutral200,\n 300: \"#c1c1c8\",\n 400: \"#aaaab4\",\n 500: Tokens.ColorPaletteNeutral500,\n 600: Tokens.ColorPaletteNeutral600,\n 700: \"#585862\",\n 800: \"#41414b\",\n 900: Tokens.ColorPaletteNeutral900,\n // These are \"Accent\" colors. MUI's palette matches them to the standard greys.\n A100: Tokens.ColorPaletteNeutral100,\n A200: Tokens.ColorPaletteNeutral200,\n A400: \"#aaaab4\",\n A700: \"#585862\",\n },\n text: {\n primary: Tokens.ColorPaletteNeutral900,\n secondary: Tokens.ColorPaletteNeutral600,\n disabled: Tokens.ColorPaletteNeutral600,\n },\n divider: Tokens.ColorBorderDisplay,\n background: {\n paper: Tokens.ColorBackgroundBase,\n default: Tokens.ColorBackgroundBase,\n },\n action: {\n // We have no equivalents here. It's likely we will update these as their uses are discovered.\n active: \"rgba(0, 0, 0, 0.54)\",\n hover: \"rgba(0, 0, 0, 0.04)\",\n hoverOpacity: 0.04,\n selected: \"rgba(0, 0, 0, 0.08)\",\n selectedOpacity: 0.08,\n disabled: Tokens.ColorPaletteNeutral200,\n disabledBackground: \"rgba(0, 0, 0, 0.12)\",\n disabledOpacity: 0.38,\n focus: \"rgba(0, 0, 0, 0.12)\",\n focusOpacity: 0.12,\n activatedOpacity: 0.12,\n },\n};\n"],"mappings":"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"}
1
+ {"version":3,"file":"palette.js","names":["Tokens","palette","odysseyTokens","mode","common","black","ColorNeutralDark","white","ColorPaletteNeutralWhite","primary","lighter","ColorPaletteBlue000","light","ColorPaletteBlue300","main","ColorPaletteBlue500","ColorPaletteGreen500","dark","ColorPaletteBlue900","contrastText","ColorTextBodyInverse","secondary","ColorPaletteTurquoise500","error","ColorPaletteRed000","ColorPaletteRed300","ColorPaletteRed500","ColorPaletteRed900","warning","ColorPaletteYellow000","ColorPaletteYellow300","ColorPaletteYellow500","ColorPaletteYellow900","ColorTextBody","info","success","ColorPaletteGreen000","ColorPaletteGreen300","ColorPaletteGreen900","grey","ColorPaletteNeutral000","ColorPaletteNeutral100","ColorPaletteNeutral200","ColorPaletteNeutral500","ColorPaletteNeutral600","ColorPaletteNeutral900","A100","A200","A400","A700","text","disabled","divider","ColorBorderDisplay","background","paper","ColorBackgroundBase","default","action","active","hover","hoverOpacity","selected","selectedOpacity","disabledBackground","disabledOpacity","focus","focusOpacity","activatedOpacity"],"sources":["../../src/theme/palette.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\nimport { DesignTokensOverride } from \".\";\nimport * as Tokens from \"@okta/odyssey-design-tokens\";\n\nexport const palette = (\n odysseyTokens: DesignTokensOverride\n): ThemeOptions[\"palette\"] => {\n return {\n mode: \"light\",\n common: {\n black: odysseyTokens.ColorNeutralDark,\n white: odysseyTokens.ColorPaletteNeutralWhite,\n },\n primary: {\n lighter: odysseyTokens.ColorPaletteBlue000,\n light: odysseyTokens.ColorPaletteBlue300,\n main: odysseyTokens.ColorPaletteBlue500 ?? Tokens.ColorPaletteGreen500,\n dark: odysseyTokens.ColorPaletteBlue900,\n contrastText: odysseyTokens.ColorTextBodyInverse,\n },\n secondary: {\n light: \"#80c7ca\",\n main:\n odysseyTokens.ColorPaletteTurquoise500 ??\n Tokens.ColorPaletteTurquoise500,\n dark: \"#004650\",\n contrastText: odysseyTokens.ColorTextBodyInverse,\n },\n error: {\n lighter: odysseyTokens.ColorPaletteRed000,\n light: odysseyTokens.ColorPaletteRed300,\n main: odysseyTokens.ColorPaletteRed500 ?? Tokens.ColorPaletteRed500,\n dark: odysseyTokens.ColorPaletteRed900,\n contrastText: odysseyTokens.ColorTextBodyInverse,\n },\n warning: {\n lighter: odysseyTokens.ColorPaletteYellow000,\n light: odysseyTokens.ColorPaletteYellow300,\n main: odysseyTokens.ColorPaletteYellow500 ?? Tokens.ColorPaletteYellow500,\n dark: odysseyTokens.ColorPaletteYellow900,\n contrastText: odysseyTokens.ColorTextBody,\n },\n info: {\n lighter: odysseyTokens.ColorPaletteBlue000,\n light: odysseyTokens.ColorPaletteBlue300,\n main: odysseyTokens.ColorPaletteBlue500 ?? Tokens.ColorPaletteBlue500,\n dark: odysseyTokens.ColorPaletteBlue900,\n contrastText: odysseyTokens.ColorTextBodyInverse,\n },\n success: {\n lighter: odysseyTokens.ColorPaletteGreen000,\n light: odysseyTokens.ColorPaletteGreen300,\n main: odysseyTokens.ColorPaletteGreen500 ?? Tokens.ColorPaletteGreen500,\n dark: odysseyTokens.ColorPaletteGreen900,\n contrastText: odysseyTokens.ColorTextBodyInverse,\n },\n grey: {\n 50: odysseyTokens.ColorPaletteNeutral000,\n 100: odysseyTokens.ColorPaletteNeutral100,\n 200: odysseyTokens.ColorPaletteNeutral200,\n 300: \"#c1c1c8\",\n 400: \"#aaaab4\",\n 500: odysseyTokens.ColorPaletteNeutral500,\n 600: odysseyTokens.ColorPaletteNeutral600,\n 700: \"#585862\",\n 800: \"#41414b\",\n 900: odysseyTokens.ColorPaletteNeutral900,\n // These are \"Accent\" colors. MUI's palette matches them to the standard greys.\n A100: odysseyTokens.ColorPaletteNeutral100,\n A200: odysseyTokens.ColorPaletteNeutral200,\n A400: \"#aaaab4\",\n A700: \"#585862\",\n },\n text: {\n primary: odysseyTokens.ColorPaletteNeutral900,\n secondary: odysseyTokens.ColorPaletteNeutral600,\n disabled: odysseyTokens.ColorPaletteNeutral600,\n },\n divider: odysseyTokens.ColorBorderDisplay,\n background: {\n paper: odysseyTokens.ColorBackgroundBase,\n default: odysseyTokens.ColorBackgroundBase,\n },\n action: {\n // We have no equivalents here. It's likely we will update these as their uses are discovered.\n active: \"rgba(0, 0, 0, 0.54)\",\n hover: \"rgba(0, 0, 0, 0.04)\",\n hoverOpacity: 0.04,\n selected: \"rgba(0, 0, 0, 0.08)\",\n selectedOpacity: 0.08,\n disabled: odysseyTokens.ColorPaletteNeutral200,\n disabledBackground: \"rgba(0, 0, 0, 0.12)\",\n disabledOpacity: 0.38,\n focus: \"rgba(0, 0, 0, 0.12)\",\n focusOpacity: 0.12,\n activatedOpacity: 0.12,\n },\n };\n};\n"],"mappings":"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"}
@@ -9,5 +9,6 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
+
12
13
  export {};
13
14
  //# sourceMappingURL=palette.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"palette.types.js","names":[],"sources":["../../src/theme/palette.types.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\ndeclare module \"@mui/material/styles\" {\n interface PaletteColor {\n lighter?: string;\n }\n interface SimplePaletteColorOptions {\n lighter?: string;\n }\n}\n\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAWA"}
1
+ {"version":3,"file":"palette.types.js","names":[],"sources":["../../src/theme/palette.types.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\ndeclare module \"@mui/material/styles\" {\n interface PaletteColor {\n lighter?: string;\n }\n interface SimplePaletteColorOptions {\n lighter?: string;\n }\n}\n\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAWA"}
@@ -9,9 +9,11 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
- import * as Tokens from "@okta/odyssey-design-tokens";
13
- const NumericalBorderRadiusBase = typeof Tokens.BorderRadiusBase === "string" ? Number(Tokens.BorderRadiusBase.replace(/(\d+).*/, "$1")) : Tokens.BorderRadiusBase;
14
- export const shape = {
15
- borderRadius: NumericalBorderRadiusBase
12
+
13
+ export const shape = odysseyTokens => {
14
+ const NumericalBorderRadiusBase = typeof odysseyTokens.BorderRadiusBase === "string" ? Number(odysseyTokens.BorderRadiusBase.replace(/(\d+).*/, "$1")) : odysseyTokens.BorderRadiusBase;
15
+ return {
16
+ borderRadius: NumericalBorderRadiusBase
17
+ };
16
18
  };
17
19
  //# sourceMappingURL=shape.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shape.js","names":["Tokens","NumericalBorderRadiusBase","BorderRadiusBase","Number","replace","shape","borderRadius"],"sources":["../../src/theme/shape.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\nimport * as Tokens from \"@okta/odyssey-design-tokens\";\n\n// Strip units from BorderRadiusBase to accommodate MUI's typing\nconst NumericalBorderRadiusBase =\n typeof Tokens.BorderRadiusBase === \"string\"\n ? Number(Tokens.BorderRadiusBase.replace(/(\\d+).*/, \"$1\"))\n : Tokens.BorderRadiusBase;\n\nexport const shape: ThemeOptions[\"shape\"] = {\n borderRadius: NumericalBorderRadiusBase,\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,OAAO,KAAKA,MAAZ,MAAwB,6BAAxB;AAGA,MAAMC,yBAAyB,GAC7B,OAAOD,MAAM,CAACE,gBAAd,KAAmC,QAAnC,GACIC,MAAM,CAACH,MAAM,CAACE,gBAAP,CAAwBE,OAAxB,CAAgC,SAAhC,EAA2C,IAA3C,CAAD,CADV,GAEIJ,MAAM,CAACE,gBAHb;AAKA,OAAO,MAAMG,KAA4B,GAAG;EAC1CC,YAAY,EAAEL;AAD4B,CAArC"}
1
+ {"version":3,"file":"shape.js","names":["shape","odysseyTokens","NumericalBorderRadiusBase","BorderRadiusBase","Number","replace","borderRadius"],"sources":["../../src/theme/shape.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\nimport { DesignTokensOverride } from \".\";\n\nexport const shape = (\n odysseyTokens: DesignTokensOverride\n): ThemeOptions[\"shape\"] => {\n // Strip units from BorderRadiusBase to accommodate MUI's typing\n const NumericalBorderRadiusBase =\n typeof odysseyTokens.BorderRadiusBase === \"string\"\n ? Number(odysseyTokens.BorderRadiusBase.replace(/(\\d+).*/, \"$1\"))\n : odysseyTokens.BorderRadiusBase;\n\n return {\n borderRadius: NumericalBorderRadiusBase,\n };\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKA,OAAO,MAAMA,KAAK,GAChBC,aAAmC,IACT;EAE1B,MAAMC,yBAAyB,GAC7B,OAAOD,aAAa,CAACE,gBAAgB,KAAK,QAAQ,GAC9CC,MAAM,CAACH,aAAa,CAACE,gBAAgB,CAACE,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,GAC/DJ,aAAa,CAACE,gBAAgB;EAEpC,OAAO;IACLG,YAAY,EAAEJ;EAChB,CAAC;AACH,CAAC"}
@@ -9,6 +9,9 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
+
12
13
  import * as Tokens from "@okta/odyssey-design-tokens";
13
- export const spacing = [0, Tokens.SpaceScale0, Tokens.SpaceScale1, Tokens.SpaceScale2, Tokens.SpaceScale3, Tokens.SpaceScale4, Tokens.SpaceScale5, Tokens.SpaceScale6, Tokens.SpaceScale7, Tokens.SpaceScale8];
14
+ export const spacing = odysseyTokens => {
15
+ return [0, odysseyTokens.SpaceScale0 ?? Tokens.SpaceScale0, odysseyTokens.SpaceScale1 ?? Tokens.SpaceScale1, odysseyTokens.SpaceScale2 ?? Tokens.SpaceScale2, odysseyTokens.SpaceScale3 ?? Tokens.SpaceScale3, odysseyTokens.SpaceScale4 ?? Tokens.SpaceScale4, odysseyTokens.SpaceScale5 ?? Tokens.SpaceScale5, odysseyTokens.SpaceScale6 ?? Tokens.SpaceScale6, odysseyTokens.SpaceScale7 ?? Tokens.SpaceScale7, odysseyTokens.SpaceScale8 ?? Tokens.SpaceScale8];
16
+ };
14
17
  //# sourceMappingURL=spacing.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"spacing.js","names":["Tokens","spacing","SpaceScale0","SpaceScale1","SpaceScale2","SpaceScale3","SpaceScale4","SpaceScale5","SpaceScale6","SpaceScale7","SpaceScale8"],"sources":["../../src/theme/spacing.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\nimport * as Tokens from \"@okta/odyssey-design-tokens\";\n\nexport const spacing: ThemeOptions[\"spacing\"] = [\n 0,\n Tokens.SpaceScale0,\n Tokens.SpaceScale1,\n Tokens.SpaceScale2,\n Tokens.SpaceScale3,\n Tokens.SpaceScale4,\n Tokens.SpaceScale5,\n Tokens.SpaceScale6,\n Tokens.SpaceScale7,\n Tokens.SpaceScale8,\n];\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,OAAO,KAAKA,MAAZ,MAAwB,6BAAxB;AAEA,OAAO,MAAMC,OAAgC,GAAG,CAC9C,CAD8C,EAE9CD,MAAM,CAACE,WAFuC,EAG9CF,MAAM,CAACG,WAHuC,EAI9CH,MAAM,CAACI,WAJuC,EAK9CJ,MAAM,CAACK,WALuC,EAM9CL,MAAM,CAACM,WANuC,EAO9CN,MAAM,CAACO,WAPuC,EAQ9CP,MAAM,CAACQ,WARuC,EAS9CR,MAAM,CAACS,WATuC,EAU9CT,MAAM,CAACU,WAVuC,CAAzC"}
1
+ {"version":3,"file":"spacing.js","names":["Tokens","spacing","odysseyTokens","SpaceScale0","SpaceScale1","SpaceScale2","SpaceScale3","SpaceScale4","SpaceScale5","SpaceScale6","SpaceScale7","SpaceScale8"],"sources":["../../src/theme/spacing.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\nimport { DesignTokensOverride } from \".\";\nimport * as Tokens from \"@okta/odyssey-design-tokens\";\n\nexport const spacing = (\n odysseyTokens: DesignTokensOverride\n): ThemeOptions[\"spacing\"] => {\n return [\n 0,\n odysseyTokens.SpaceScale0 ?? Tokens.SpaceScale0,\n odysseyTokens.SpaceScale1 ?? Tokens.SpaceScale1,\n odysseyTokens.SpaceScale2 ?? Tokens.SpaceScale2,\n odysseyTokens.SpaceScale3 ?? Tokens.SpaceScale3,\n odysseyTokens.SpaceScale4 ?? Tokens.SpaceScale4,\n odysseyTokens.SpaceScale5 ?? Tokens.SpaceScale5,\n odysseyTokens.SpaceScale6 ?? Tokens.SpaceScale6,\n odysseyTokens.SpaceScale7 ?? Tokens.SpaceScale7,\n odysseyTokens.SpaceScale8 ?? Tokens.SpaceScale8,\n ];\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,OAAO,KAAKA,MAAM,MAAM,6BAA6B;AAErD,OAAO,MAAMC,OAAO,GAClBC,aAAmC,IACP;EAC5B,OAAO,CACL,CAAC,EACDA,aAAa,CAACC,WAAW,IAAIH,MAAM,CAACG,WAAW,EAC/CD,aAAa,CAACE,WAAW,IAAIJ,MAAM,CAACI,WAAW,EAC/CF,aAAa,CAACG,WAAW,IAAIL,MAAM,CAACK,WAAW,EAC/CH,aAAa,CAACI,WAAW,IAAIN,MAAM,CAACM,WAAW,EAC/CJ,aAAa,CAACK,WAAW,IAAIP,MAAM,CAACO,WAAW,EAC/CL,aAAa,CAACM,WAAW,IAAIR,MAAM,CAACQ,WAAW,EAC/CN,aAAa,CAACO,WAAW,IAAIT,MAAM,CAACS,WAAW,EAC/CP,aAAa,CAACQ,WAAW,IAAIV,MAAM,CAACU,WAAW,EAC/CR,aAAa,CAACS,WAAW,IAAIX,MAAM,CAACW,WAAW,CAChD;AACH,CAAC"}
@@ -9,6 +9,7 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
+
12
13
  export const temp = {
13
14
  borderWidth: "24px"
14
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"temp.js","names":["temp","borderWidth"],"sources":["../../src/theme/temp.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\nexport type Temp = {\n borderWidth: string;\n};\n\nexport const temp: Temp = {\n borderWidth: \"24px\",\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAMA,OAAO,MAAMA,IAAU,GAAG;EACxBC,WAAW,EAAE;AADW,CAAnB"}
1
+ {"version":3,"file":"temp.js","names":["temp","borderWidth"],"sources":["../../src/theme/temp.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\nexport type Temp = {\n borderWidth: string;\n};\n\nexport const temp: Temp = {\n borderWidth: \"24px\",\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,OAAO,MAAMA,IAAU,GAAG;EACxBC,WAAW,EAAE;AACf,CAAC"}
@@ -9,6 +9,7 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
+
12
13
  import { createTheme } from "@mui/material/styles";
13
14
  import { components } from "./components.js";
14
15
  import { mixins } from "./mixins.js";
@@ -21,13 +22,15 @@ import "./components.types.js";
21
22
  import "./mixins.types.js";
22
23
  import "./palette.types.js";
23
24
  import "./typography.types.js";
24
- export const theme = createTheme({
25
- components,
26
- mixins,
27
- palette,
28
- shape,
29
- spacing,
30
- temp,
31
- typography
32
- });
25
+ export const createOdysseyMuiTheme = odysseyTokens => {
26
+ return createTheme({
27
+ components,
28
+ mixins: mixins(odysseyTokens),
29
+ palette: palette(odysseyTokens),
30
+ shape: shape(odysseyTokens),
31
+ spacing: spacing(odysseyTokens),
32
+ temp,
33
+ typography: typography(odysseyTokens)
34
+ });
35
+ };
33
36
  //# sourceMappingURL=theme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","names":["createTheme","components","mixins","palette","shape","spacing","temp","typography","theme"],"sources":["../../src/theme/theme.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { createTheme } from \"@mui/material/styles\";\n\nimport { components } from \"./components\";\nimport { mixins } from \"./mixins\";\nimport { OdysseyTheme } from \"./OdysseyTheme\";\nimport { palette } from \"./palette\";\nimport { shape } from \"./shape\";\nimport { spacing } from \"./spacing\";\nimport { temp } from \"./temp\";\nimport { typography } from \"./typography\";\nimport \"./components.types\";\nimport \"./mixins.types\";\nimport \"./palette.types\";\nimport \"./typography.types\";\n\nexport const theme = createTheme({\n components,\n mixins,\n palette,\n shape,\n spacing,\n temp,\n typography,\n}) as OdysseyTheme;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,WAAT,QAA4B,sBAA5B;SAESC,U;SACAC,M;SAEAC,O;SACAC,K;SACAC,O;SACAC,I;SACAC,U;;;;;AAMT,OAAO,MAAMC,KAAK,GAAGR,WAAW,CAAC;EAC/BC,UAD+B;EAE/BC,MAF+B;EAG/BC,OAH+B;EAI/BC,KAJ+B;EAK/BC,OAL+B;EAM/BC,IAN+B;EAO/BC;AAP+B,CAAD,CAAzB"}
1
+ {"version":3,"file":"theme.js","names":["createTheme","components","mixins","palette","shape","spacing","temp","typography","createOdysseyMuiTheme","odysseyTokens"],"sources":["../../src/theme/theme.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { createTheme } from \"@mui/material/styles\";\n\nimport { components } from \"./components\";\nimport { mixins } from \"./mixins\";\nimport { palette } from \"./palette\";\nimport { shape } from \"./shape\";\nimport { spacing } from \"./spacing\";\nimport { temp } from \"./temp\";\nimport { typography } from \"./typography\";\nimport \"./components.types\";\nimport \"./mixins.types\";\nimport \"./palette.types\";\nimport \"./typography.types\";\nimport { DesignTokensOverride } from \".\";\n\nexport type { OdysseyTheme } from \"./OdysseyTheme\";\n\nexport const createOdysseyMuiTheme = (odysseyTokens: DesignTokensOverride) => {\n return createTheme({\n components,\n mixins: mixins(odysseyTokens),\n palette: palette(odysseyTokens),\n shape: shape(odysseyTokens),\n spacing: spacing(odysseyTokens),\n temp,\n typography: typography(odysseyTokens),\n });\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,WAAW,QAAQ,sBAAsB;AAAC,SAE1CC,UAAU;AAAA,SACVC,MAAM;AAAA,SACNC,OAAO;AAAA,SACPC,KAAK;AAAA,SACLC,OAAO;AAAA,SACPC,IAAI;AAAA,SACJC,UAAU;AAAA;AAAA;AAAA;AAAA;AASnB,OAAO,MAAMC,qBAAqB,GAAIC,aAAmC,IAAK;EAC5E,OAAOT,WAAW,CAAC;IACjBC,UAAU;IACVC,MAAM,EAAEA,MAAM,CAACO,aAAa,CAAC;IAC7BN,OAAO,EAAEA,OAAO,CAACM,aAAa,CAAC;IAC/BL,KAAK,EAAEA,KAAK,CAACK,aAAa,CAAC;IAC3BJ,OAAO,EAAEA,OAAO,CAACI,aAAa,CAAC;IAC/BH,IAAI;IACJC,UAAU,EAAEA,UAAU,CAACE,aAAa;EACtC,CAAC,CAAC;AACJ,CAAC"}