@okta/odyssey-react-mui 0.24.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 (1063) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/Autocomplete.js +2 -1
  3. package/dist/Autocomplete.js.map +1 -1
  4. package/dist/Banner.js +11 -4
  5. package/dist/Banner.js.map +1 -1
  6. package/dist/{src/theme/OdysseyTheme.d.ts → Box.js} +18 -12
  7. package/dist/Box.js.map +1 -0
  8. package/dist/Button.js +23 -9
  9. package/dist/Button.js.map +1 -1
  10. package/dist/{Infobox.js → Callout.js} +18 -9
  11. package/dist/Callout.js.map +1 -0
  12. package/dist/Checkbox.js +17 -12
  13. package/dist/Checkbox.js.map +1 -1
  14. package/dist/CheckboxGroup.js +2 -1
  15. package/dist/CheckboxGroup.js.map +1 -1
  16. package/dist/CircularProgress.js +3 -1
  17. package/dist/CircularProgress.js.map +1 -1
  18. package/dist/Dialog.js +15 -9
  19. package/dist/Dialog.js.map +1 -1
  20. package/dist/Field.js +11 -4
  21. package/dist/Field.js.map +1 -1
  22. package/dist/FieldError.js +3 -2
  23. package/dist/FieldError.js.map +1 -1
  24. package/dist/FieldHint.js +3 -2
  25. package/dist/FieldHint.js.map +1 -1
  26. package/dist/FieldLabel.js +5 -3
  27. package/dist/FieldLabel.js.map +1 -1
  28. package/dist/Fieldset.js +26 -17
  29. package/dist/Fieldset.js.map +1 -1
  30. package/{src/theme/useTheme.ts → dist/FieldsetContext.js} +6 -6
  31. package/dist/FieldsetContext.js.map +1 -0
  32. package/dist/Form.js +25 -13
  33. package/dist/Form.js.map +1 -1
  34. package/dist/Link.js +17 -22
  35. package/dist/Link.js.map +1 -1
  36. package/dist/MenuButton.js +41 -22
  37. package/dist/MenuButton.js.map +1 -1
  38. package/dist/{src/theme/useTheme.d.ts → MenuContext.js} +7 -3
  39. package/dist/MenuContext.js.map +1 -0
  40. package/dist/MenuItem.js +23 -10
  41. package/dist/MenuItem.js.map +1 -1
  42. package/dist/MuiPropsChild.js +1 -0
  43. package/dist/MuiPropsChild.js.map +1 -1
  44. package/dist/MuiPropsContext.js +2 -1
  45. package/dist/MuiPropsContext.js.map +1 -1
  46. package/dist/NativeSelect.js.map +1 -1
  47. package/dist/NullElement.js +2 -0
  48. package/dist/NullElement.js.map +1 -0
  49. package/dist/OdysseyCacheProvider.js +6 -3
  50. package/dist/OdysseyCacheProvider.js.map +1 -1
  51. package/dist/OdysseyDesignTokensContext.js +17 -0
  52. package/dist/OdysseyDesignTokensContext.js.map +1 -0
  53. package/dist/OdysseyI18n.js +12 -8
  54. package/dist/OdysseyI18n.js.map +1 -1
  55. package/dist/OdysseyProvider.js +4 -2
  56. package/dist/OdysseyProvider.js.map +1 -1
  57. package/dist/OdysseyThemeProvider.js +15 -8
  58. package/dist/OdysseyThemeProvider.js.map +1 -1
  59. package/dist/OdysseyTranslationProvider.js.map +1 -1
  60. package/dist/OdysseyTranslationProvider.types.js +1 -1
  61. package/dist/OdysseyTranslationProvider.types.js.map +1 -1
  62. package/dist/PasswordField.js +7 -5
  63. package/dist/PasswordField.js.map +1 -1
  64. package/dist/Radio.js +5 -6
  65. package/dist/Radio.js.map +1 -1
  66. package/dist/RadioGroup.js +1 -0
  67. package/dist/RadioGroup.js.map +1 -1
  68. package/dist/ScreenReaderText.js +5 -2
  69. package/dist/ScreenReaderText.js.map +1 -1
  70. package/dist/SearchField.js +36 -5
  71. package/dist/SearchField.js.map +1 -1
  72. package/dist/Select.js +6 -5
  73. package/dist/Select.js.map +1 -1
  74. package/dist/Status.js +10 -4
  75. package/dist/Status.js.map +1 -1
  76. package/dist/SvgIcon.js.map +1 -0
  77. package/dist/Tabs.js +6 -4
  78. package/dist/Tabs.js.map +1 -1
  79. package/dist/Tag.js +12 -3
  80. package/dist/Tag.js.map +1 -1
  81. package/dist/TagList.js +3 -0
  82. package/dist/TagList.js.map +1 -1
  83. package/dist/TextField.js +1 -0
  84. package/dist/TextField.js.map +1 -1
  85. package/dist/Toast.js +12 -5
  86. package/dist/Toast.js.map +1 -1
  87. package/dist/ToastStack.js +10 -6
  88. package/dist/ToastStack.js.map +1 -1
  89. package/dist/Tooltip.js +2 -2
  90. package/dist/Tooltip.js.map +1 -1
  91. package/dist/Typography.js +283 -0
  92. package/dist/Typography.js.map +1 -0
  93. package/dist/{iconDictionary → icons.generated}/Add.js +5 -5
  94. package/dist/icons.generated/Add.js.map +1 -0
  95. package/dist/{iconDictionary → icons.generated}/AddCircle.js +5 -5
  96. package/dist/icons.generated/AddCircle.js.map +1 -0
  97. package/dist/icons.generated/Apps.js +33 -0
  98. package/dist/icons.generated/Apps.js.map +1 -0
  99. package/dist/{iconDictionary → icons.generated}/ArrowDown.js +5 -5
  100. package/dist/icons.generated/ArrowDown.js.map +1 -0
  101. package/dist/{iconDictionary → icons.generated}/ArrowLeft.js +5 -5
  102. package/dist/icons.generated/ArrowLeft.js.map +1 -0
  103. package/dist/icons.generated/ArrowLowerLeft.js +33 -0
  104. package/dist/icons.generated/ArrowLowerLeft.js.map +1 -0
  105. package/dist/icons.generated/ArrowLowerRight.js +33 -0
  106. package/dist/icons.generated/ArrowLowerRight.js.map +1 -0
  107. package/dist/{iconDictionary → icons.generated}/ArrowRight.js +5 -5
  108. package/dist/icons.generated/ArrowRight.js.map +1 -0
  109. package/dist/icons.generated/ArrowUnsorted.js +33 -0
  110. package/dist/icons.generated/ArrowUnsorted.js.map +1 -0
  111. package/dist/{iconDictionary → icons.generated}/ArrowUp.js +5 -5
  112. package/dist/icons.generated/ArrowUp.js.map +1 -0
  113. package/dist/icons.generated/ArrowUpperLeft.js +33 -0
  114. package/dist/icons.generated/ArrowUpperLeft.js.map +1 -0
  115. package/dist/icons.generated/ArrowUpperRight.js +33 -0
  116. package/dist/icons.generated/ArrowUpperRight.js.map +1 -0
  117. package/dist/icons.generated/Bug.js +33 -0
  118. package/dist/icons.generated/Bug.js.map +1 -0
  119. package/dist/icons.generated/Calendar.js +33 -0
  120. package/dist/icons.generated/Calendar.js.map +1 -0
  121. package/dist/icons.generated/Call.js +33 -0
  122. package/dist/icons.generated/Call.js.map +1 -0
  123. package/dist/icons.generated/Chat.js +33 -0
  124. package/dist/icons.generated/Chat.js.map +1 -0
  125. package/dist/{iconDictionary → icons.generated}/Check.js +5 -5
  126. package/dist/icons.generated/Check.js.map +1 -0
  127. package/dist/{iconDictionary → icons.generated}/CheckCircleFilled.js +5 -5
  128. package/dist/icons.generated/CheckCircleFilled.js.map +1 -0
  129. package/dist/{iconDictionary → icons.generated}/ChevronDown.js +5 -5
  130. package/dist/icons.generated/ChevronDown.js.map +1 -0
  131. package/dist/icons.generated/ChevronLeft.js +33 -0
  132. package/dist/icons.generated/ChevronLeft.js.map +1 -0
  133. package/dist/icons.generated/ChevronRight.js +33 -0
  134. package/dist/icons.generated/ChevronRight.js.map +1 -0
  135. package/dist/{iconDictionary → icons.generated}/ChevronUp.js +5 -5
  136. package/dist/icons.generated/ChevronUp.js.map +1 -0
  137. package/dist/icons.generated/Clock.js +33 -0
  138. package/dist/icons.generated/Clock.js.map +1 -0
  139. package/dist/{iconDictionary → icons.generated}/Close.js +5 -5
  140. package/dist/icons.generated/Close.js.map +1 -0
  141. package/dist/{iconDictionary → icons.generated}/CloseCircleFilled.js +5 -5
  142. package/dist/icons.generated/CloseCircleFilled.js.map +1 -0
  143. package/dist/{iconDictionary/OverflowVertical.js → icons.generated/CollapseLeft.js} +8 -8
  144. package/dist/icons.generated/CollapseLeft.js.map +1 -0
  145. package/dist/icons.generated/CollapseRight.js +33 -0
  146. package/dist/icons.generated/CollapseRight.js.map +1 -0
  147. package/dist/icons.generated/Copy.js +33 -0
  148. package/dist/icons.generated/Copy.js.map +1 -0
  149. package/dist/icons.generated/DangerDiamond.js +33 -0
  150. package/dist/icons.generated/DangerDiamond.js.map +1 -0
  151. package/dist/icons.generated/DangerDiamondFilled.js +33 -0
  152. package/dist/icons.generated/DangerDiamondFilled.js.map +1 -0
  153. package/dist/{iconDictionary → icons.generated}/Delete.js +5 -5
  154. package/dist/icons.generated/Delete.js.map +1 -0
  155. package/dist/icons.generated/Deny.js +33 -0
  156. package/dist/icons.generated/Deny.js.map +1 -0
  157. package/dist/icons.generated/Devices.js +33 -0
  158. package/dist/icons.generated/Devices.js.map +1 -0
  159. package/dist/icons.generated/Directory.js +33 -0
  160. package/dist/icons.generated/Directory.js.map +1 -0
  161. package/dist/icons.generated/Documentation.js +33 -0
  162. package/dist/icons.generated/Documentation.js.map +1 -0
  163. package/dist/icons.generated/Download.js +33 -0
  164. package/dist/icons.generated/Download.js.map +1 -0
  165. package/dist/icons.generated/DragIndicator.js +33 -0
  166. package/dist/icons.generated/DragIndicator.js.map +1 -0
  167. package/dist/{iconDictionary → icons.generated}/Edit.js +5 -5
  168. package/dist/icons.generated/Edit.js.map +1 -0
  169. package/dist/icons.generated/ExpandLeft.js +33 -0
  170. package/dist/icons.generated/ExpandLeft.js.map +1 -0
  171. package/dist/{iconDictionary/ArrowUpDown.js → icons.generated/ExpandRight.js} +8 -8
  172. package/dist/icons.generated/ExpandRight.js.map +1 -0
  173. package/dist/{iconDictionary → icons.generated}/ExternalLink.js +5 -5
  174. package/dist/icons.generated/ExternalLink.js.map +1 -0
  175. package/dist/{iconDictionary → icons.generated}/Filter.js +5 -5
  176. package/dist/icons.generated/Filter.js.map +1 -0
  177. package/dist/icons.generated/Folder.js +33 -0
  178. package/dist/icons.generated/Folder.js.map +1 -0
  179. package/dist/{iconDictionary → icons.generated}/Globe.js +5 -5
  180. package/dist/icons.generated/Globe.js.map +1 -0
  181. package/dist/icons.generated/Grid.js +74 -0
  182. package/dist/icons.generated/Grid.js.map +1 -0
  183. package/dist/icons.generated/Group.js +33 -0
  184. package/dist/icons.generated/Group.js.map +1 -0
  185. package/dist/icons.generated/Hide.js +33 -0
  186. package/dist/icons.generated/Hide.js.map +1 -0
  187. package/dist/icons.generated/Home.js +33 -0
  188. package/dist/icons.generated/Home.js.map +1 -0
  189. package/dist/{iconDictionary → icons.generated}/InformationCircle.js +5 -5
  190. package/dist/icons.generated/InformationCircle.js.map +1 -0
  191. package/dist/{iconDictionary → icons.generated}/InformationCircleFilled.js +5 -5
  192. package/dist/icons.generated/InformationCircleFilled.js.map +1 -0
  193. package/dist/icons.generated/Link.js +33 -0
  194. package/dist/icons.generated/Link.js.map +1 -0
  195. package/dist/icons.generated/List.js +33 -0
  196. package/dist/icons.generated/List.js.map +1 -0
  197. package/dist/{iconDictionary/AlertCircle.js → icons.generated/Lock.js} +8 -8
  198. package/dist/icons.generated/Lock.js.map +1 -0
  199. package/dist/icons.generated/More.js +33 -0
  200. package/dist/icons.generated/More.js.map +1 -0
  201. package/dist/{iconDictionary → icons.generated}/Notification.js +5 -5
  202. package/dist/icons.generated/Notification.js.map +1 -0
  203. package/dist/icons.generated/Pause.js +33 -0
  204. package/dist/icons.generated/Pause.js.map +1 -0
  205. package/dist/{iconDictionary → icons.generated}/QuestionCircle.js +5 -5
  206. package/dist/icons.generated/QuestionCircle.js.map +1 -0
  207. package/dist/{iconDictionary → icons.generated}/QuestionCircleFilled.js +5 -5
  208. package/dist/icons.generated/QuestionCircleFilled.js.map +1 -0
  209. package/dist/icons.generated/Refresh.js +33 -0
  210. package/dist/icons.generated/Refresh.js.map +1 -0
  211. package/dist/icons.generated/Reset.js +33 -0
  212. package/dist/icons.generated/Reset.js.map +1 -0
  213. package/dist/icons.generated/Resume.js +33 -0
  214. package/dist/icons.generated/Resume.js.map +1 -0
  215. package/dist/{iconDictionary → icons.generated}/Search.js +5 -5
  216. package/dist/icons.generated/Search.js.map +1 -0
  217. package/dist/icons.generated/Server.js +33 -0
  218. package/dist/icons.generated/Server.js.map +1 -0
  219. package/dist/icons.generated/Settings.js +33 -0
  220. package/dist/icons.generated/Settings.js.map +1 -0
  221. package/dist/icons.generated/Show.js +33 -0
  222. package/dist/icons.generated/Show.js.map +1 -0
  223. package/dist/{iconDictionary → icons.generated}/Subtract.js +5 -5
  224. package/dist/icons.generated/Subtract.js.map +1 -0
  225. package/dist/{iconDictionary/AlertTriangleFilled.js → icons.generated/Sync.js} +8 -8
  226. package/dist/icons.generated/Sync.js.map +1 -0
  227. package/dist/{iconDictionary/AlertCircleFilled.js → icons.generated/Unlock.js} +8 -8
  228. package/dist/icons.generated/Unlock.js.map +1 -0
  229. package/dist/icons.generated/Upload.js +33 -0
  230. package/dist/icons.generated/Upload.js.map +1 -0
  231. package/dist/{iconDictionary → icons.generated}/User.js +5 -5
  232. package/dist/icons.generated/User.js.map +1 -0
  233. package/dist/icons.generated/Video.js +33 -0
  234. package/dist/icons.generated/Video.js.map +1 -0
  235. package/dist/icons.generated/Warning.js +33 -0
  236. package/dist/icons.generated/Warning.js.map +1 -0
  237. package/dist/icons.generated/WarningFilled.js +33 -0
  238. package/dist/icons.generated/WarningFilled.js.map +1 -0
  239. package/dist/icons.generated/index.js +85 -0
  240. package/dist/icons.generated/index.js.map +1 -0
  241. package/dist/index.js +7 -6
  242. package/dist/index.js.map +1 -1
  243. package/dist/labs/DatePicker.js +42 -0
  244. package/dist/labs/DatePicker.js.map +1 -0
  245. package/{src/iconDictionary/SvgIcon.ts → dist/labs/DatePicker.types.js} +2 -4
  246. package/dist/labs/DatePicker.types.js.map +1 -0
  247. package/dist/labs/PaginatedTable.js +170 -0
  248. package/dist/labs/PaginatedTable.js.map +1 -0
  249. package/dist/labs/StaticTable.js +82 -0
  250. package/dist/labs/StaticTable.js.map +1 -0
  251. package/dist/labs/datePickerTheme.js +456 -0
  252. package/dist/labs/datePickerTheme.js.map +1 -0
  253. package/dist/{src/a11yCheck.d.ts → labs/index.js} +9 -3
  254. package/dist/labs/index.js.map +1 -0
  255. package/dist/labs/materialReactTableTypes.js +2 -0
  256. package/dist/labs/materialReactTableTypes.js.map +1 -0
  257. package/dist/properties/ts/odyssey-react-mui.js +7 -2
  258. package/dist/properties/ts/odyssey-react-mui.js.map +1 -1
  259. package/dist/properties/ts/odyssey-react-mui_cs.js +15 -1
  260. package/dist/properties/ts/odyssey-react-mui_cs.js.map +1 -1
  261. package/dist/properties/ts/odyssey-react-mui_da.js +15 -1
  262. package/dist/properties/ts/odyssey-react-mui_da.js.map +1 -1
  263. package/dist/properties/ts/odyssey-react-mui_de.js +15 -1
  264. package/dist/properties/ts/odyssey-react-mui_de.js.map +1 -1
  265. package/dist/properties/ts/odyssey-react-mui_el.js +15 -1
  266. package/dist/properties/ts/odyssey-react-mui_el.js.map +1 -1
  267. package/dist/properties/ts/odyssey-react-mui_es.js +15 -1
  268. package/dist/properties/ts/odyssey-react-mui_es.js.map +1 -1
  269. package/dist/properties/ts/odyssey-react-mui_fi.js +15 -1
  270. package/dist/properties/ts/odyssey-react-mui_fi.js.map +1 -1
  271. package/dist/properties/ts/odyssey-react-mui_fr.js +15 -1
  272. package/dist/properties/ts/odyssey-react-mui_fr.js.map +1 -1
  273. package/dist/properties/ts/odyssey-react-mui_hu.js +15 -1
  274. package/dist/properties/ts/odyssey-react-mui_hu.js.map +1 -1
  275. package/dist/properties/ts/odyssey-react-mui_id.js +15 -1
  276. package/dist/properties/ts/odyssey-react-mui_id.js.map +1 -1
  277. package/dist/properties/ts/odyssey-react-mui_it.js +15 -1
  278. package/dist/properties/ts/odyssey-react-mui_it.js.map +1 -1
  279. package/dist/properties/ts/odyssey-react-mui_ja.js +15 -1
  280. package/dist/properties/ts/odyssey-react-mui_ja.js.map +1 -1
  281. package/dist/properties/ts/odyssey-react-mui_ko.js +15 -1
  282. package/dist/properties/ts/odyssey-react-mui_ko.js.map +1 -1
  283. package/dist/properties/ts/odyssey-react-mui_ms.js +15 -1
  284. package/dist/properties/ts/odyssey-react-mui_ms.js.map +1 -1
  285. package/dist/properties/ts/odyssey-react-mui_nb.js +15 -1
  286. package/dist/properties/ts/odyssey-react-mui_nb.js.map +1 -1
  287. package/dist/properties/ts/odyssey-react-mui_nl_NL.js +16 -0
  288. package/dist/properties/ts/odyssey-react-mui_nl_NL.js.map +1 -0
  289. package/dist/properties/ts/odyssey-react-mui_ok_PL.js +11 -0
  290. package/dist/properties/ts/odyssey-react-mui_ok_PL.js.map +1 -0
  291. package/dist/properties/ts/odyssey-react-mui_ok_SK.js +11 -0
  292. package/dist/properties/ts/odyssey-react-mui_ok_SK.js.map +1 -0
  293. package/dist/properties/ts/odyssey-react-mui_pl.js +15 -1
  294. package/dist/properties/ts/odyssey-react-mui_pl.js.map +1 -1
  295. package/dist/properties/ts/odyssey-react-mui_pt_BR.js +16 -0
  296. package/dist/properties/ts/odyssey-react-mui_pt_BR.js.map +1 -0
  297. package/dist/properties/ts/odyssey-react-mui_ro.js +15 -1
  298. package/dist/properties/ts/odyssey-react-mui_ro.js.map +1 -1
  299. package/dist/properties/ts/odyssey-react-mui_ru.js +15 -1
  300. package/dist/properties/ts/odyssey-react-mui_ru.js.map +1 -1
  301. package/dist/properties/ts/odyssey-react-mui_sv.js +15 -1
  302. package/dist/properties/ts/odyssey-react-mui_sv.js.map +1 -1
  303. package/dist/properties/ts/odyssey-react-mui_th.js +15 -1
  304. package/dist/properties/ts/odyssey-react-mui_th.js.map +1 -1
  305. package/dist/properties/ts/odyssey-react-mui_tr.js +15 -1
  306. package/dist/properties/ts/odyssey-react-mui_tr.js.map +1 -1
  307. package/dist/properties/ts/odyssey-react-mui_uk.js +15 -1
  308. package/dist/properties/ts/odyssey-react-mui_uk.js.map +1 -1
  309. package/dist/properties/ts/odyssey-react-mui_vi.js +16 -0
  310. package/dist/properties/ts/odyssey-react-mui_vi.js.map +1 -0
  311. package/dist/properties/ts/odyssey-react-mui_zh_CN.js +16 -0
  312. package/dist/properties/ts/odyssey-react-mui_zh_CN.js.map +1 -0
  313. package/dist/properties/ts/odyssey-react-mui_zh_TW.js +16 -0
  314. package/dist/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -0
  315. package/{src/theme/temp.ts → dist/scripts/generateIconsIndex.d.ts} +2 -8
  316. package/dist/scripts/generateIconsIndex.d.ts.map +1 -0
  317. package/dist/src/Autocomplete.d.ts +34 -1
  318. package/dist/src/Autocomplete.d.ts.map +1 -1
  319. package/dist/src/Banner.d.ts +4 -2
  320. package/dist/src/Banner.d.ts.map +1 -1
  321. package/dist/src/Box.d.ts +20 -0
  322. package/dist/src/Box.d.ts.map +1 -0
  323. package/dist/src/Button.d.ts +66 -9
  324. package/dist/src/Button.d.ts.map +1 -1
  325. package/dist/src/{Infobox.d.ts → Callout.d.ts} +12 -11
  326. package/dist/src/Callout.d.ts.map +1 -0
  327. package/dist/src/Checkbox.d.ts +39 -6
  328. package/dist/src/Checkbox.d.ts.map +1 -1
  329. package/dist/src/CheckboxGroup.d.ts +19 -1
  330. package/dist/src/CheckboxGroup.d.ts.map +1 -1
  331. package/dist/src/CircularProgress.d.ts +9 -1
  332. package/dist/src/CircularProgress.d.ts.map +1 -1
  333. package/dist/src/Dialog.d.ts +29 -7
  334. package/dist/src/Dialog.d.ts.map +1 -1
  335. package/dist/src/Field.d.ts +6 -2
  336. package/dist/src/Field.d.ts.map +1 -1
  337. package/dist/src/FieldError.d.ts.map +1 -1
  338. package/dist/src/FieldHint.d.ts.map +1 -1
  339. package/dist/src/FieldLabel.d.ts.map +1 -1
  340. package/dist/src/Fieldset.d.ts +16 -12
  341. package/dist/src/Fieldset.d.ts.map +1 -1
  342. package/dist/src/FieldsetContext.d.ts +18 -0
  343. package/dist/src/FieldsetContext.d.ts.map +1 -0
  344. package/dist/src/Form.d.ts +31 -28
  345. package/dist/src/Form.d.ts.map +1 -1
  346. package/dist/src/Link.d.ts +23 -4
  347. package/dist/src/Link.d.ts.map +1 -1
  348. package/dist/src/MenuButton.d.ts +40 -10
  349. package/dist/src/MenuButton.d.ts.map +1 -1
  350. package/dist/src/MenuContext.d.ts +18 -0
  351. package/dist/src/MenuContext.d.ts.map +1 -0
  352. package/dist/src/MenuItem.d.ts +32 -6
  353. package/dist/src/MenuItem.d.ts.map +1 -1
  354. package/dist/src/MuiPropsChild.d.ts.map +1 -1
  355. package/dist/src/MuiPropsContext.d.ts +1 -0
  356. package/dist/src/MuiPropsContext.d.ts.map +1 -1
  357. package/dist/src/NativeSelect.d.ts +39 -0
  358. package/dist/src/NativeSelect.d.ts.map +1 -1
  359. package/dist/src/{theme/temp.d.ts → NullElement.d.ts} +2 -5
  360. package/dist/src/NullElement.d.ts.map +1 -0
  361. package/dist/src/OdysseyCacheProvider.d.ts +8 -5
  362. package/dist/src/OdysseyCacheProvider.d.ts.map +1 -1
  363. package/dist/src/OdysseyDesignTokensContext.d.ts +16 -0
  364. package/dist/src/OdysseyDesignTokensContext.d.ts.map +1 -0
  365. package/dist/src/OdysseyI18n.d.ts +400 -25
  366. package/dist/src/OdysseyI18n.d.ts.map +1 -1
  367. package/dist/src/OdysseyProvider.d.ts +7 -13
  368. package/dist/src/OdysseyProvider.d.ts.map +1 -1
  369. package/dist/src/OdysseyThemeProvider.d.ts +9 -8
  370. package/dist/src/OdysseyThemeProvider.d.ts.map +1 -1
  371. package/dist/src/OdysseyTranslationProvider.d.ts +3 -4
  372. package/dist/src/OdysseyTranslationProvider.d.ts.map +1 -1
  373. package/dist/src/OdysseyTranslationProvider.types.d.ts +1 -1
  374. package/dist/src/OdysseyTranslationProvider.types.d.ts.map +1 -1
  375. package/dist/src/PasswordField.d.ts.map +1 -1
  376. package/dist/src/Radio.d.ts +20 -3
  377. package/dist/src/Radio.d.ts.map +1 -1
  378. package/dist/src/RadioGroup.d.ts +7 -7
  379. package/dist/src/RadioGroup.d.ts.map +1 -1
  380. package/dist/src/ScreenReaderText.d.ts.map +1 -1
  381. package/dist/src/SearchField.d.ts +4 -0
  382. package/dist/src/SearchField.d.ts.map +1 -1
  383. package/dist/src/Select.d.ts +37 -1
  384. package/dist/src/Select.d.ts.map +1 -1
  385. package/dist/src/Status.d.ts +11 -5
  386. package/dist/src/Status.d.ts.map +1 -1
  387. package/dist/src/{iconDictionary/types.d.ts → SvgIcon.d.ts} +4 -2
  388. package/dist/src/SvgIcon.d.ts.map +1 -0
  389. package/dist/src/Tabs.d.ts +31 -7
  390. package/dist/src/Tabs.d.ts.map +1 -1
  391. package/dist/src/Tag.d.ts +15 -5
  392. package/dist/src/Tag.d.ts.map +1 -1
  393. package/dist/src/TagList.d.ts +4 -1
  394. package/dist/src/TagList.d.ts.map +1 -1
  395. package/dist/src/TextField.d.ts +4 -4
  396. package/dist/src/TextField.d.ts.map +1 -1
  397. package/dist/src/Toast.d.ts +11 -10
  398. package/dist/src/Toast.d.ts.map +1 -1
  399. package/dist/src/ToastStack.d.ts +3 -0
  400. package/dist/src/ToastStack.d.ts.map +1 -1
  401. package/dist/src/Tooltip.d.ts +15 -3
  402. package/dist/src/Tooltip.d.ts.map +1 -1
  403. package/dist/src/Typography.d.ts +95 -0
  404. package/dist/src/Typography.d.ts.map +1 -0
  405. package/dist/src/icons.generated/Add.d.ts +16 -0
  406. package/dist/src/icons.generated/Add.d.ts.map +1 -0
  407. package/dist/src/icons.generated/AddCircle.d.ts +16 -0
  408. package/dist/src/icons.generated/AddCircle.d.ts.map +1 -0
  409. package/dist/src/icons.generated/Apps.d.ts +16 -0
  410. package/dist/src/icons.generated/Apps.d.ts.map +1 -0
  411. package/dist/src/icons.generated/ArrowDown.d.ts +16 -0
  412. package/dist/src/icons.generated/ArrowDown.d.ts.map +1 -0
  413. package/dist/src/icons.generated/ArrowLeft.d.ts +16 -0
  414. package/dist/src/icons.generated/ArrowLeft.d.ts.map +1 -0
  415. package/dist/src/icons.generated/ArrowLowerLeft.d.ts +16 -0
  416. package/dist/src/icons.generated/ArrowLowerLeft.d.ts.map +1 -0
  417. package/dist/src/icons.generated/ArrowLowerRight.d.ts +16 -0
  418. package/dist/src/icons.generated/ArrowLowerRight.d.ts.map +1 -0
  419. package/dist/src/icons.generated/ArrowRight.d.ts +16 -0
  420. package/dist/src/icons.generated/ArrowRight.d.ts.map +1 -0
  421. package/dist/src/icons.generated/ArrowUnsorted.d.ts +16 -0
  422. package/dist/src/icons.generated/ArrowUnsorted.d.ts.map +1 -0
  423. package/dist/src/icons.generated/ArrowUp.d.ts +16 -0
  424. package/dist/src/icons.generated/ArrowUp.d.ts.map +1 -0
  425. package/dist/src/icons.generated/ArrowUpperLeft.d.ts +16 -0
  426. package/dist/src/icons.generated/ArrowUpperLeft.d.ts.map +1 -0
  427. package/dist/src/icons.generated/ArrowUpperRight.d.ts +16 -0
  428. package/dist/src/icons.generated/ArrowUpperRight.d.ts.map +1 -0
  429. package/dist/src/icons.generated/Bug.d.ts +16 -0
  430. package/dist/src/icons.generated/Bug.d.ts.map +1 -0
  431. package/dist/src/icons.generated/Calendar.d.ts +16 -0
  432. package/dist/src/icons.generated/Calendar.d.ts.map +1 -0
  433. package/dist/src/icons.generated/Call.d.ts +16 -0
  434. package/dist/src/icons.generated/Call.d.ts.map +1 -0
  435. package/dist/src/icons.generated/Chat.d.ts +16 -0
  436. package/dist/src/icons.generated/Chat.d.ts.map +1 -0
  437. package/dist/src/{iconDictionary/InformationCircleFilled.d.ts → icons.generated/Check.d.ts} +4 -4
  438. package/dist/src/icons.generated/Check.d.ts.map +1 -0
  439. package/dist/src/icons.generated/CheckCircleFilled.d.ts +16 -0
  440. package/dist/src/icons.generated/CheckCircleFilled.d.ts.map +1 -0
  441. package/dist/src/icons.generated/ChevronDown.d.ts +16 -0
  442. package/dist/src/icons.generated/ChevronDown.d.ts.map +1 -0
  443. package/dist/src/icons.generated/ChevronLeft.d.ts +16 -0
  444. package/dist/src/icons.generated/ChevronLeft.d.ts.map +1 -0
  445. package/dist/src/icons.generated/ChevronRight.d.ts +16 -0
  446. package/dist/src/icons.generated/ChevronRight.d.ts.map +1 -0
  447. package/dist/src/icons.generated/ChevronUp.d.ts +16 -0
  448. package/dist/src/icons.generated/ChevronUp.d.ts.map +1 -0
  449. package/dist/src/icons.generated/Clock.d.ts +16 -0
  450. package/dist/src/icons.generated/Clock.d.ts.map +1 -0
  451. package/dist/src/icons.generated/Close.d.ts +16 -0
  452. package/dist/src/icons.generated/Close.d.ts.map +1 -0
  453. package/dist/src/icons.generated/CloseCircleFilled.d.ts +16 -0
  454. package/dist/src/icons.generated/CloseCircleFilled.d.ts.map +1 -0
  455. package/dist/src/icons.generated/CollapseLeft.d.ts +16 -0
  456. package/dist/src/icons.generated/CollapseLeft.d.ts.map +1 -0
  457. package/dist/src/icons.generated/CollapseRight.d.ts +16 -0
  458. package/dist/src/icons.generated/CollapseRight.d.ts.map +1 -0
  459. package/dist/src/icons.generated/Copy.d.ts +16 -0
  460. package/dist/src/icons.generated/Copy.d.ts.map +1 -0
  461. package/dist/src/icons.generated/DangerDiamond.d.ts +16 -0
  462. package/dist/src/icons.generated/DangerDiamond.d.ts.map +1 -0
  463. package/dist/src/icons.generated/DangerDiamondFilled.d.ts +16 -0
  464. package/dist/src/icons.generated/DangerDiamondFilled.d.ts.map +1 -0
  465. package/dist/src/icons.generated/Delete.d.ts +16 -0
  466. package/dist/src/icons.generated/Delete.d.ts.map +1 -0
  467. package/dist/src/icons.generated/Deny.d.ts +16 -0
  468. package/dist/src/icons.generated/Deny.d.ts.map +1 -0
  469. package/dist/src/icons.generated/Devices.d.ts +16 -0
  470. package/dist/src/icons.generated/Devices.d.ts.map +1 -0
  471. package/dist/src/icons.generated/Directory.d.ts +16 -0
  472. package/dist/src/icons.generated/Directory.d.ts.map +1 -0
  473. package/dist/src/icons.generated/Documentation.d.ts +16 -0
  474. package/dist/src/icons.generated/Documentation.d.ts.map +1 -0
  475. package/dist/src/icons.generated/Download.d.ts +16 -0
  476. package/dist/src/icons.generated/Download.d.ts.map +1 -0
  477. package/dist/src/icons.generated/DragIndicator.d.ts +16 -0
  478. package/dist/src/icons.generated/DragIndicator.d.ts.map +1 -0
  479. package/dist/src/icons.generated/Edit.d.ts +16 -0
  480. package/dist/src/icons.generated/Edit.d.ts.map +1 -0
  481. package/dist/src/icons.generated/ExpandLeft.d.ts +16 -0
  482. package/dist/src/icons.generated/ExpandLeft.d.ts.map +1 -0
  483. package/dist/src/icons.generated/ExpandRight.d.ts +16 -0
  484. package/dist/src/icons.generated/ExpandRight.d.ts.map +1 -0
  485. package/dist/src/icons.generated/ExternalLink.d.ts +16 -0
  486. package/dist/src/icons.generated/ExternalLink.d.ts.map +1 -0
  487. package/dist/src/icons.generated/Filter.d.ts +16 -0
  488. package/dist/src/icons.generated/Filter.d.ts.map +1 -0
  489. package/dist/src/icons.generated/Folder.d.ts +16 -0
  490. package/dist/src/icons.generated/Folder.d.ts.map +1 -0
  491. package/dist/src/icons.generated/Globe.d.ts +16 -0
  492. package/dist/src/icons.generated/Globe.d.ts.map +1 -0
  493. package/dist/src/icons.generated/Grid.d.ts +16 -0
  494. package/dist/src/icons.generated/Grid.d.ts.map +1 -0
  495. package/dist/src/icons.generated/Group.d.ts +16 -0
  496. package/dist/src/icons.generated/Group.d.ts.map +1 -0
  497. package/dist/src/icons.generated/Hide.d.ts +16 -0
  498. package/dist/src/icons.generated/Hide.d.ts.map +1 -0
  499. package/dist/src/icons.generated/Home.d.ts +16 -0
  500. package/dist/src/icons.generated/Home.d.ts.map +1 -0
  501. package/dist/src/icons.generated/InformationCircle.d.ts +16 -0
  502. package/dist/src/icons.generated/InformationCircle.d.ts.map +1 -0
  503. package/dist/src/icons.generated/InformationCircleFilled.d.ts +16 -0
  504. package/dist/src/icons.generated/InformationCircleFilled.d.ts.map +1 -0
  505. package/dist/src/icons.generated/Link.d.ts +16 -0
  506. package/dist/src/icons.generated/Link.d.ts.map +1 -0
  507. package/dist/src/icons.generated/List.d.ts +16 -0
  508. package/dist/src/icons.generated/List.d.ts.map +1 -0
  509. package/dist/src/icons.generated/Lock.d.ts +16 -0
  510. package/dist/src/icons.generated/Lock.d.ts.map +1 -0
  511. package/dist/src/icons.generated/More.d.ts +16 -0
  512. package/dist/src/icons.generated/More.d.ts.map +1 -0
  513. package/dist/src/icons.generated/Notification.d.ts +16 -0
  514. package/dist/src/icons.generated/Notification.d.ts.map +1 -0
  515. package/dist/src/icons.generated/Pause.d.ts +16 -0
  516. package/dist/src/icons.generated/Pause.d.ts.map +1 -0
  517. package/dist/src/icons.generated/QuestionCircle.d.ts +16 -0
  518. package/dist/src/icons.generated/QuestionCircle.d.ts.map +1 -0
  519. package/dist/src/icons.generated/QuestionCircleFilled.d.ts +16 -0
  520. package/dist/src/icons.generated/QuestionCircleFilled.d.ts.map +1 -0
  521. package/dist/src/icons.generated/Refresh.d.ts +16 -0
  522. package/dist/src/icons.generated/Refresh.d.ts.map +1 -0
  523. package/dist/src/icons.generated/Reset.d.ts +16 -0
  524. package/dist/src/icons.generated/Reset.d.ts.map +1 -0
  525. package/dist/src/icons.generated/Resume.d.ts +16 -0
  526. package/dist/src/icons.generated/Resume.d.ts.map +1 -0
  527. package/dist/src/icons.generated/Search.d.ts +16 -0
  528. package/dist/src/icons.generated/Search.d.ts.map +1 -0
  529. package/dist/src/icons.generated/Server.d.ts +16 -0
  530. package/dist/src/icons.generated/Server.d.ts.map +1 -0
  531. package/dist/src/icons.generated/Settings.d.ts +16 -0
  532. package/dist/src/icons.generated/Settings.d.ts.map +1 -0
  533. package/dist/src/icons.generated/Show.d.ts +16 -0
  534. package/dist/src/icons.generated/Show.d.ts.map +1 -0
  535. package/dist/src/icons.generated/Subtract.d.ts +16 -0
  536. package/dist/src/icons.generated/Subtract.d.ts.map +1 -0
  537. package/dist/src/icons.generated/Sync.d.ts +16 -0
  538. package/dist/src/icons.generated/Sync.d.ts.map +1 -0
  539. package/dist/src/icons.generated/Unlock.d.ts +16 -0
  540. package/dist/src/icons.generated/Unlock.d.ts.map +1 -0
  541. package/dist/src/icons.generated/Upload.d.ts +16 -0
  542. package/dist/src/icons.generated/Upload.d.ts.map +1 -0
  543. package/dist/src/icons.generated/User.d.ts +16 -0
  544. package/dist/src/icons.generated/User.d.ts.map +1 -0
  545. package/dist/src/icons.generated/Video.d.ts +16 -0
  546. package/dist/src/icons.generated/Video.d.ts.map +1 -0
  547. package/dist/src/icons.generated/Warning.d.ts +16 -0
  548. package/dist/src/icons.generated/Warning.d.ts.map +1 -0
  549. package/dist/src/icons.generated/WarningFilled.d.ts +16 -0
  550. package/dist/src/icons.generated/WarningFilled.d.ts.map +1 -0
  551. package/dist/src/icons.generated/index.d.ts +85 -0
  552. package/dist/src/icons.generated/index.d.ts.map +1 -0
  553. package/dist/src/index.d.ts +29 -18
  554. package/dist/src/index.d.ts.map +1 -1
  555. package/dist/src/labs/DatePicker.d.ts +19 -0
  556. package/dist/src/labs/DatePicker.d.ts.map +1 -0
  557. package/dist/src/labs/DatePicker.types.d.ts +19 -0
  558. package/dist/src/labs/DatePicker.types.d.ts.map +1 -0
  559. package/dist/src/labs/PaginatedTable.d.ts +35 -0
  560. package/dist/src/labs/PaginatedTable.d.ts.map +1 -0
  561. package/dist/src/labs/StaticTable.d.ts +29 -0
  562. package/dist/src/labs/StaticTable.d.ts.map +1 -0
  563. package/dist/src/{iconDictionary/SvgIcon.d.ts → labs/datePickerTheme.d.ts} +3 -3
  564. package/dist/src/labs/datePickerTheme.d.ts.map +1 -0
  565. package/dist/src/labs/index.d.ts +21 -0
  566. package/dist/src/labs/index.d.ts.map +1 -0
  567. package/dist/src/labs/materialReactTableTypes.d.ts +15 -0
  568. package/dist/src/labs/materialReactTableTypes.d.ts.map +1 -0
  569. package/dist/src/properties/ts/odyssey-react-mui.d.ts +7 -2
  570. package/dist/src/properties/ts/odyssey-react-mui.d.ts.map +1 -1
  571. package/dist/src/properties/ts/odyssey-react-mui_cs.d.ts +15 -1
  572. package/dist/src/properties/ts/odyssey-react-mui_cs.d.ts.map +1 -1
  573. package/dist/src/properties/ts/odyssey-react-mui_da.d.ts +15 -1
  574. package/dist/src/properties/ts/odyssey-react-mui_da.d.ts.map +1 -1
  575. package/dist/src/properties/ts/odyssey-react-mui_de.d.ts +15 -1
  576. package/dist/src/properties/ts/odyssey-react-mui_de.d.ts.map +1 -1
  577. package/dist/src/properties/ts/odyssey-react-mui_el.d.ts +15 -1
  578. package/dist/src/properties/ts/odyssey-react-mui_el.d.ts.map +1 -1
  579. package/dist/src/properties/ts/odyssey-react-mui_es.d.ts +15 -1
  580. package/dist/src/properties/ts/odyssey-react-mui_es.d.ts.map +1 -1
  581. package/dist/src/properties/ts/odyssey-react-mui_fi.d.ts +15 -1
  582. package/dist/src/properties/ts/odyssey-react-mui_fi.d.ts.map +1 -1
  583. package/dist/src/properties/ts/odyssey-react-mui_fr.d.ts +15 -1
  584. package/dist/src/properties/ts/odyssey-react-mui_fr.d.ts.map +1 -1
  585. package/dist/src/properties/ts/odyssey-react-mui_hu.d.ts +15 -1
  586. package/dist/src/properties/ts/odyssey-react-mui_hu.d.ts.map +1 -1
  587. package/dist/src/properties/ts/odyssey-react-mui_id.d.ts +15 -1
  588. package/dist/src/properties/ts/odyssey-react-mui_id.d.ts.map +1 -1
  589. package/dist/src/properties/ts/odyssey-react-mui_it.d.ts +15 -1
  590. package/dist/src/properties/ts/odyssey-react-mui_it.d.ts.map +1 -1
  591. package/dist/src/properties/ts/odyssey-react-mui_ja.d.ts +15 -1
  592. package/dist/src/properties/ts/odyssey-react-mui_ja.d.ts.map +1 -1
  593. package/dist/src/properties/ts/odyssey-react-mui_ko.d.ts +15 -1
  594. package/dist/src/properties/ts/odyssey-react-mui_ko.d.ts.map +1 -1
  595. package/dist/src/properties/ts/odyssey-react-mui_ms.d.ts +15 -1
  596. package/dist/src/properties/ts/odyssey-react-mui_ms.d.ts.map +1 -1
  597. package/dist/src/properties/ts/odyssey-react-mui_nb.d.ts +15 -1
  598. package/dist/src/properties/ts/odyssey-react-mui_nb.d.ts.map +1 -1
  599. package/dist/src/properties/ts/odyssey-react-mui_nl_NL.d.ts +16 -0
  600. package/dist/src/properties/ts/odyssey-react-mui_nl_NL.d.ts.map +1 -0
  601. package/dist/src/properties/ts/odyssey-react-mui_ok_PL.d.ts +11 -0
  602. package/dist/src/properties/ts/odyssey-react-mui_ok_PL.d.ts.map +1 -0
  603. package/dist/src/properties/ts/odyssey-react-mui_ok_SK.d.ts +11 -0
  604. package/dist/src/properties/ts/odyssey-react-mui_ok_SK.d.ts.map +1 -0
  605. package/dist/src/properties/ts/odyssey-react-mui_pl.d.ts +15 -1
  606. package/dist/src/properties/ts/odyssey-react-mui_pl.d.ts.map +1 -1
  607. package/dist/src/properties/ts/odyssey-react-mui_pt_BR.d.ts +16 -0
  608. package/dist/src/properties/ts/odyssey-react-mui_pt_BR.d.ts.map +1 -0
  609. package/dist/src/properties/ts/odyssey-react-mui_ro.d.ts +15 -1
  610. package/dist/src/properties/ts/odyssey-react-mui_ro.d.ts.map +1 -1
  611. package/dist/src/properties/ts/odyssey-react-mui_ru.d.ts +15 -1
  612. package/dist/src/properties/ts/odyssey-react-mui_ru.d.ts.map +1 -1
  613. package/dist/src/properties/ts/odyssey-react-mui_sv.d.ts +15 -1
  614. package/dist/src/properties/ts/odyssey-react-mui_sv.d.ts.map +1 -1
  615. package/dist/src/properties/ts/odyssey-react-mui_th.d.ts +15 -1
  616. package/dist/src/properties/ts/odyssey-react-mui_th.d.ts.map +1 -1
  617. package/dist/src/properties/ts/odyssey-react-mui_tr.d.ts +15 -1
  618. package/dist/src/properties/ts/odyssey-react-mui_tr.d.ts.map +1 -1
  619. package/dist/src/properties/ts/odyssey-react-mui_uk.d.ts +15 -1
  620. package/dist/src/properties/ts/odyssey-react-mui_uk.d.ts.map +1 -1
  621. package/dist/src/properties/ts/odyssey-react-mui_vi.d.ts +16 -0
  622. package/dist/src/properties/ts/odyssey-react-mui_vi.d.ts.map +1 -0
  623. package/dist/src/properties/ts/odyssey-react-mui_zh_CN.d.ts +16 -0
  624. package/dist/src/properties/ts/odyssey-react-mui_zh_CN.d.ts.map +1 -0
  625. package/dist/src/properties/ts/odyssey-react-mui_zh_TW.d.ts +16 -0
  626. package/dist/src/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -0
  627. package/dist/src/theme/components.d.ts +2 -1
  628. package/dist/src/theme/components.d.ts.map +1 -1
  629. package/dist/src/theme/components.types.d.ts +4 -2
  630. package/dist/src/theme/components.types.d.ts.map +1 -1
  631. package/dist/src/theme/index.d.ts +0 -3
  632. package/dist/src/theme/index.d.ts.map +1 -1
  633. package/dist/src/theme/mixins.d.ts +2 -2
  634. package/dist/src/theme/mixins.d.ts.map +1 -1
  635. package/dist/src/theme/palette.d.ts +2 -2
  636. package/dist/src/theme/palette.d.ts.map +1 -1
  637. package/dist/src/theme/shape.d.ts +2 -2
  638. package/dist/src/theme/shape.d.ts.map +1 -1
  639. package/dist/src/theme/spacing.d.ts +2 -2
  640. package/dist/src/theme/spacing.d.ts.map +1 -1
  641. package/dist/src/theme/theme.d.ts +4 -3
  642. package/dist/src/theme/theme.d.ts.map +1 -1
  643. package/dist/src/theme/typography.d.ts +2 -2
  644. package/dist/src/theme/typography.d.ts.map +1 -1
  645. package/dist/src/theme/typography.types.d.ts +2 -2
  646. package/dist/src/theme/typography.types.d.ts.map +1 -1
  647. package/dist/theme/components.js +1674 -1757
  648. package/dist/theme/components.js.map +1 -1
  649. package/dist/theme/components.types.js.map +1 -1
  650. package/dist/theme/index.js +0 -1
  651. package/dist/theme/index.js.map +1 -1
  652. package/dist/theme/mixins.js +4 -4
  653. package/dist/theme/mixins.js.map +1 -1
  654. package/dist/theme/palette.js +50 -51
  655. package/dist/theme/palette.js.map +1 -1
  656. package/dist/theme/shape.js +1 -1
  657. package/dist/theme/shape.js.map +1 -1
  658. package/dist/theme/spacing.js +1 -2
  659. package/dist/theme/spacing.js.map +1 -1
  660. package/dist/theme/theme.js +8 -12
  661. package/dist/theme/theme.js.map +1 -1
  662. package/dist/theme/typography.js +76 -46
  663. package/dist/theme/typography.js.map +1 -1
  664. package/dist/theme/typography.types.js.map +1 -1
  665. package/dist/tsconfig.production.tsbuildinfo +1 -1
  666. package/i18n.config.json +0 -1
  667. package/package.json +26 -11
  668. package/scripts/generateIconsIndex.ts +49 -0
  669. package/scripts/properties-to-ts.js +8 -15
  670. package/src/Autocomplete.tsx +36 -1
  671. package/src/Banner.tsx +15 -5
  672. package/src/Box.tsx +28 -0
  673. package/src/Button.tsx +100 -19
  674. package/src/{Infobox.tsx → Callout.tsx} +23 -14
  675. package/src/Checkbox.tsx +64 -14
  676. package/src/CheckboxGroup.tsx +20 -1
  677. package/src/CircularProgress.tsx +13 -1
  678. package/src/Dialog.tsx +44 -16
  679. package/src/Field.tsx +18 -4
  680. package/src/FieldError.tsx +2 -1
  681. package/src/FieldHint.tsx +2 -1
  682. package/src/FieldLabel.tsx +4 -5
  683. package/src/Fieldset.tsx +45 -34
  684. package/src/FieldsetContext.tsx +23 -0
  685. package/src/Form.tsx +54 -44
  686. package/src/Link.tsx +49 -29
  687. package/src/MenuButton.tsx +89 -39
  688. package/src/{theme/OdysseyTheme.ts → MenuContext.ts} +11 -11
  689. package/src/MenuItem.tsx +67 -23
  690. package/src/MuiPropsChild.tsx +1 -0
  691. package/src/MuiPropsContext.ts +3 -1
  692. package/src/NativeSelect.tsx +39 -0
  693. package/{dist/theme/temp.js → src/NullElement.tsx} +1 -4
  694. package/src/OdysseyCacheProvider.test.tsx +1 -1
  695. package/src/OdysseyCacheProvider.tsx +13 -7
  696. package/src/OdysseyDesignTokensContext.tsx +19 -0
  697. package/src/OdysseyI18n.ts +12 -8
  698. package/src/OdysseyProvider.tsx +19 -18
  699. package/src/OdysseyThemeProvider.tsx +30 -13
  700. package/src/OdysseyTranslationProvider.tsx +7 -7
  701. package/src/OdysseyTranslationProvider.types.ts +6 -4
  702. package/src/PasswordField.tsx +8 -7
  703. package/src/Radio.tsx +23 -7
  704. package/src/RadioGroup.tsx +8 -7
  705. package/src/ScreenReaderText.tsx +6 -2
  706. package/src/SearchField.tsx +55 -5
  707. package/src/Select.tsx +42 -4
  708. package/src/Status.tsx +26 -9
  709. package/src/{iconDictionary/types.ts → SvgIcon.ts} +4 -1
  710. package/src/Tabs.tsx +40 -7
  711. package/src/Tag.tsx +34 -14
  712. package/src/TagList.tsx +12 -2
  713. package/src/TextField.tsx +11 -4
  714. package/src/Toast.tsx +22 -19
  715. package/src/ToastStack.tsx +12 -2
  716. package/src/Tooltip.tsx +15 -3
  717. package/src/Typography.tsx +357 -0
  718. package/src/{iconDictionary → icons.generated}/Add.tsx +4 -5
  719. package/src/{iconDictionary → icons.generated}/AddCircle.tsx +4 -5
  720. package/src/icons.generated/Apps.tsx +43 -0
  721. package/src/{iconDictionary → icons.generated}/ArrowDown.tsx +4 -5
  722. package/src/{iconDictionary → icons.generated}/ArrowLeft.tsx +4 -5
  723. package/src/{iconDictionary/OverflowVertical.tsx → icons.generated/ArrowLowerLeft.tsx} +8 -9
  724. package/src/icons.generated/ArrowLowerRight.tsx +44 -0
  725. package/src/{iconDictionary → icons.generated}/ArrowRight.tsx +4 -5
  726. package/src/{iconDictionary/AlertCircleFilled.tsx → icons.generated/ArrowUnsorted.tsx} +8 -9
  727. package/src/{iconDictionary → icons.generated}/ArrowUp.tsx +4 -5
  728. package/src/icons.generated/ArrowUpperLeft.tsx +44 -0
  729. package/src/icons.generated/ArrowUpperRight.tsx +44 -0
  730. package/src/{iconDictionary/Eye.tsx → icons.generated/Bug.tsx} +7 -8
  731. package/src/icons.generated/Calendar.tsx +43 -0
  732. package/src/icons.generated/Call.tsx +43 -0
  733. package/src/icons.generated/Chat.tsx +43 -0
  734. package/src/{iconDictionary → icons.generated}/Check.tsx +4 -5
  735. package/src/{iconDictionary → icons.generated}/CheckCircleFilled.tsx +4 -5
  736. package/src/{iconDictionary → icons.generated}/ChevronDown.tsx +4 -5
  737. package/src/icons.generated/ChevronLeft.tsx +43 -0
  738. package/src/icons.generated/ChevronRight.tsx +44 -0
  739. package/src/{iconDictionary → icons.generated}/ChevronUp.tsx +4 -5
  740. package/src/icons.generated/Clock.tsx +43 -0
  741. package/src/{iconDictionary → icons.generated}/Close.tsx +4 -5
  742. package/src/{iconDictionary → icons.generated}/CloseCircleFilled.tsx +4 -5
  743. package/src/icons.generated/CollapseLeft.tsx +44 -0
  744. package/src/icons.generated/CollapseRight.tsx +44 -0
  745. package/src/icons.generated/Copy.tsx +43 -0
  746. package/src/icons.generated/DangerDiamond.tsx +44 -0
  747. package/src/icons.generated/DangerDiamondFilled.tsx +44 -0
  748. package/src/{iconDictionary → icons.generated}/Delete.tsx +4 -5
  749. package/src/icons.generated/Deny.tsx +43 -0
  750. package/src/{iconDictionary/AlertCircle.tsx → icons.generated/Devices.tsx} +7 -8
  751. package/src/icons.generated/Directory.tsx +43 -0
  752. package/src/icons.generated/Documentation.tsx +44 -0
  753. package/src/icons.generated/Download.tsx +43 -0
  754. package/src/icons.generated/DragIndicator.tsx +44 -0
  755. package/src/{iconDictionary → icons.generated}/Edit.tsx +4 -5
  756. package/src/icons.generated/ExpandLeft.tsx +43 -0
  757. package/src/icons.generated/ExpandRight.tsx +43 -0
  758. package/src/{iconDictionary → icons.generated}/ExternalLink.tsx +4 -5
  759. package/src/{iconDictionary → icons.generated}/Filter.tsx +4 -5
  760. package/src/icons.generated/Folder.tsx +43 -0
  761. package/src/icons.generated/Globe.tsx +43 -0
  762. package/src/icons.generated/Grid.tsx +46 -0
  763. package/src/{iconDictionary/Globe.tsx → icons.generated/Group.tsx} +7 -8
  764. package/src/icons.generated/Hide.tsx +43 -0
  765. package/src/icons.generated/Home.tsx +43 -0
  766. package/src/{iconDictionary → icons.generated}/InformationCircle.tsx +4 -5
  767. package/src/{iconDictionary → icons.generated}/InformationCircleFilled.tsx +4 -5
  768. package/src/icons.generated/Link.tsx +43 -0
  769. package/src/icons.generated/List.tsx +43 -0
  770. package/src/icons.generated/Lock.tsx +43 -0
  771. package/src/icons.generated/More.tsx +43 -0
  772. package/src/{iconDictionary → icons.generated}/Notification.tsx +4 -5
  773. package/src/icons.generated/Pause.tsx +43 -0
  774. package/src/{iconDictionary → icons.generated}/QuestionCircle.tsx +4 -5
  775. package/src/{iconDictionary → icons.generated}/QuestionCircleFilled.tsx +4 -5
  776. package/src/icons.generated/Refresh.tsx +43 -0
  777. package/src/icons.generated/Reset.tsx +43 -0
  778. package/src/icons.generated/Resume.tsx +43 -0
  779. package/src/{iconDictionary → icons.generated}/Search.tsx +4 -5
  780. package/src/icons.generated/Server.tsx +43 -0
  781. package/src/icons.generated/Settings.tsx +43 -0
  782. package/src/icons.generated/Show.tsx +43 -0
  783. package/src/{iconDictionary → icons.generated}/Subtract.tsx +4 -5
  784. package/src/{iconDictionary/Copy.tsx → icons.generated/Sync.tsx} +7 -8
  785. package/src/icons.generated/Unlock.tsx +43 -0
  786. package/src/icons.generated/Upload.tsx +43 -0
  787. package/src/{iconDictionary → icons.generated}/User.tsx +4 -5
  788. package/src/icons.generated/Video.tsx +43 -0
  789. package/src/icons.generated/Warning.tsx +43 -0
  790. package/src/icons.generated/WarningFilled.tsx +44 -0
  791. package/src/icons.generated/index.ts +87 -0
  792. package/src/index.ts +21 -65
  793. package/src/labs/DatePicker.tsx +48 -0
  794. package/src/labs/DatePicker.types.ts +24 -0
  795. package/src/labs/PaginatedTable.tsx +272 -0
  796. package/src/labs/README.md +44 -0
  797. package/src/labs/StaticTable.tsx +122 -0
  798. package/src/labs/datePickerTheme.tsx +341 -0
  799. package/src/labs/index.ts +24 -0
  800. package/{dist/theme/useTheme.js → src/labs/materialReactTableTypes.ts} +7 -5
  801. package/src/properties/odyssey-react-mui.properties +7 -2
  802. package/src/properties/translations/odyssey-react-mui_cs.properties +14 -0
  803. package/src/properties/translations/odyssey-react-mui_da.properties +14 -0
  804. package/src/properties/translations/odyssey-react-mui_de.properties +14 -0
  805. package/src/properties/translations/odyssey-react-mui_el.properties +14 -0
  806. package/src/properties/translations/odyssey-react-mui_es.properties +14 -0
  807. package/src/properties/translations/odyssey-react-mui_fi.properties +14 -0
  808. package/src/properties/translations/odyssey-react-mui_fr.properties +14 -0
  809. package/src/properties/translations/odyssey-react-mui_hu.properties +14 -0
  810. package/src/properties/translations/odyssey-react-mui_id.properties +14 -0
  811. package/src/properties/translations/odyssey-react-mui_it.properties +14 -0
  812. package/src/properties/translations/odyssey-react-mui_ja.properties +14 -0
  813. package/src/properties/translations/odyssey-react-mui_ko.properties +14 -0
  814. package/src/properties/translations/odyssey-react-mui_ms.properties +14 -0
  815. package/src/properties/translations/odyssey-react-mui_nb.properties +14 -0
  816. package/src/properties/translations/odyssey-react-mui_nl_NL.properties +14 -0
  817. package/src/properties/translations/odyssey-react-mui_ok_PL.properties +8 -0
  818. package/src/properties/translations/odyssey-react-mui_ok_SK.properties +8 -0
  819. package/src/properties/translations/odyssey-react-mui_pl.properties +14 -0
  820. package/src/properties/translations/odyssey-react-mui_pt_BR.properties +14 -0
  821. package/src/properties/translations/odyssey-react-mui_ro.properties +14 -0
  822. package/src/properties/translations/odyssey-react-mui_ru.properties +14 -0
  823. package/src/properties/translations/odyssey-react-mui_sv.properties +14 -0
  824. package/src/properties/translations/odyssey-react-mui_th.properties +14 -0
  825. package/src/properties/translations/odyssey-react-mui_tr.properties +14 -0
  826. package/src/properties/translations/odyssey-react-mui_uk.properties +14 -0
  827. package/src/properties/translations/odyssey-react-mui_vi.properties +14 -0
  828. package/src/properties/translations/odyssey-react-mui_zh_CN.properties +14 -0
  829. package/src/properties/translations/odyssey-react-mui_zh_TW.properties +14 -0
  830. package/src/properties/ts/odyssey-react-mui.ts +1 -1
  831. package/src/properties/ts/odyssey-react-mui_cs.ts +1 -1
  832. package/src/properties/ts/odyssey-react-mui_da.ts +1 -1
  833. package/src/properties/ts/odyssey-react-mui_de.ts +1 -1
  834. package/src/properties/ts/odyssey-react-mui_el.ts +1 -1
  835. package/src/properties/ts/odyssey-react-mui_es.ts +1 -1
  836. package/src/properties/ts/odyssey-react-mui_fi.ts +1 -1
  837. package/src/properties/ts/odyssey-react-mui_fr.ts +1 -1
  838. package/src/properties/ts/odyssey-react-mui_hu.ts +1 -1
  839. package/src/properties/ts/odyssey-react-mui_id.ts +1 -1
  840. package/src/properties/ts/odyssey-react-mui_it.ts +1 -1
  841. package/src/properties/ts/odyssey-react-mui_ja.ts +1 -1
  842. package/src/properties/ts/odyssey-react-mui_ko.ts +1 -1
  843. package/src/properties/ts/odyssey-react-mui_ms.ts +1 -1
  844. package/src/properties/ts/odyssey-react-mui_nb.ts +1 -1
  845. package/src/properties/ts/odyssey-react-mui_nl_NL.ts +1 -0
  846. package/src/properties/ts/odyssey-react-mui_ok_PL.ts +1 -0
  847. package/src/properties/ts/odyssey-react-mui_ok_SK.ts +1 -0
  848. package/src/properties/ts/odyssey-react-mui_pl.ts +1 -1
  849. package/src/properties/ts/odyssey-react-mui_pt_BR.ts +1 -0
  850. package/src/properties/ts/odyssey-react-mui_ro.ts +1 -1
  851. package/src/properties/ts/odyssey-react-mui_ru.ts +1 -1
  852. package/src/properties/ts/odyssey-react-mui_sv.ts +1 -1
  853. package/src/properties/ts/odyssey-react-mui_th.ts +1 -1
  854. package/src/properties/ts/odyssey-react-mui_tr.ts +1 -1
  855. package/src/properties/ts/odyssey-react-mui_uk.ts +1 -1
  856. package/src/properties/ts/odyssey-react-mui_vi.ts +1 -0
  857. package/src/properties/ts/odyssey-react-mui_zh_CN.ts +1 -0
  858. package/src/properties/ts/odyssey-react-mui_zh_TW.ts +1 -0
  859. package/src/theme/components.tsx +1921 -1737
  860. package/src/theme/components.types.ts +4 -2
  861. package/src/theme/index.ts +0 -5
  862. package/src/theme/mixins.ts +7 -8
  863. package/src/theme/palette.ts +53 -55
  864. package/src/theme/shape.ts +6 -7
  865. package/src/theme/spacing.ts +13 -13
  866. package/src/theme/theme.ts +6 -8
  867. package/src/theme/typography.ts +81 -48
  868. package/src/theme/typography.types.ts +2 -2
  869. package/tsconfig.json +3 -0
  870. package/dist/Icon.js +0 -30
  871. package/dist/Icon.js.map +0 -1
  872. package/dist/Infobox.js.map +0 -1
  873. package/dist/a11yCheck.js +0 -25
  874. package/dist/a11yCheck.js.map +0 -1
  875. package/dist/iconDictionary/Add.js.map +0 -1
  876. package/dist/iconDictionary/AddCircle.js.map +0 -1
  877. package/dist/iconDictionary/AlertCircle.js.map +0 -1
  878. package/dist/iconDictionary/AlertCircleFilled.js.map +0 -1
  879. package/dist/iconDictionary/AlertTriangleFilled.js.map +0 -1
  880. package/dist/iconDictionary/Anchor.js +0 -35
  881. package/dist/iconDictionary/Anchor.js.map +0 -1
  882. package/dist/iconDictionary/ArrowDown.js.map +0 -1
  883. package/dist/iconDictionary/ArrowLeft.js.map +0 -1
  884. package/dist/iconDictionary/ArrowRight.js.map +0 -1
  885. package/dist/iconDictionary/ArrowUp.js.map +0 -1
  886. package/dist/iconDictionary/ArrowUpDown.js.map +0 -1
  887. package/dist/iconDictionary/Calendar.js +0 -33
  888. package/dist/iconDictionary/Calendar.js.map +0 -1
  889. package/dist/iconDictionary/Check.js.map +0 -1
  890. package/dist/iconDictionary/CheckCircleFilled.js.map +0 -1
  891. package/dist/iconDictionary/ChevronDown.js.map +0 -1
  892. package/dist/iconDictionary/ChevronUp.js.map +0 -1
  893. package/dist/iconDictionary/Close.js.map +0 -1
  894. package/dist/iconDictionary/CloseCircleFilled.js.map +0 -1
  895. package/dist/iconDictionary/Copy.js +0 -33
  896. package/dist/iconDictionary/Copy.js.map +0 -1
  897. package/dist/iconDictionary/Delete.js.map +0 -1
  898. package/dist/iconDictionary/Download.js +0 -33
  899. package/dist/iconDictionary/Download.js.map +0 -1
  900. package/dist/iconDictionary/DragHandle.js +0 -33
  901. package/dist/iconDictionary/DragHandle.js.map +0 -1
  902. package/dist/iconDictionary/Edit.js.map +0 -1
  903. package/dist/iconDictionary/ExternalLink.js.map +0 -1
  904. package/dist/iconDictionary/Eye.js +0 -33
  905. package/dist/iconDictionary/Eye.js.map +0 -1
  906. package/dist/iconDictionary/EyeOff.js +0 -33
  907. package/dist/iconDictionary/EyeOff.js.map +0 -1
  908. package/dist/iconDictionary/Filter.js.map +0 -1
  909. package/dist/iconDictionary/Globe.js.map +0 -1
  910. package/dist/iconDictionary/Home.js +0 -33
  911. package/dist/iconDictionary/Home.js.map +0 -1
  912. package/dist/iconDictionary/InformationCircle.js.map +0 -1
  913. package/dist/iconDictionary/InformationCircleFilled.js.map +0 -1
  914. package/dist/iconDictionary/Notification.js.map +0 -1
  915. package/dist/iconDictionary/OverflowVertical.js.map +0 -1
  916. package/dist/iconDictionary/QuestionCircle.js.map +0 -1
  917. package/dist/iconDictionary/QuestionCircleFilled.js.map +0 -1
  918. package/dist/iconDictionary/Search.js.map +0 -1
  919. package/dist/iconDictionary/Settings.js +0 -31
  920. package/dist/iconDictionary/Settings.js.map +0 -1
  921. package/dist/iconDictionary/Subtract.js.map +0 -1
  922. package/dist/iconDictionary/SvgIcon.js.map +0 -1
  923. package/dist/iconDictionary/User.js.map +0 -1
  924. package/dist/iconDictionary/UserGroup.js +0 -33
  925. package/dist/iconDictionary/UserGroup.js.map +0 -1
  926. package/dist/iconDictionary/index.js +0 -134
  927. package/dist/iconDictionary/index.js.map +0 -1
  928. package/dist/iconDictionary/types.js +0 -2
  929. package/dist/iconDictionary/types.js.map +0 -1
  930. package/dist/properties/ts/odyssey-react-mui_nl-NL.js +0 -2
  931. package/dist/properties/ts/odyssey-react-mui_nl-NL.js.map +0 -1
  932. package/dist/properties/ts/odyssey-react-mui_pt-BR.js +0 -2
  933. package/dist/properties/ts/odyssey-react-mui_pt-BR.js.map +0 -1
  934. package/dist/properties/ts/odyssey-react-mui_zh-CN.js +0 -2
  935. package/dist/properties/ts/odyssey-react-mui_zh-CN.js.map +0 -1
  936. package/dist/properties/ts/odyssey-react-mui_zh-TW.js +0 -2
  937. package/dist/properties/ts/odyssey-react-mui_zh-TW.js.map +0 -1
  938. package/dist/src/Icon.d.ts +0 -29
  939. package/dist/src/Icon.d.ts.map +0 -1
  940. package/dist/src/Infobox.d.ts.map +0 -1
  941. package/dist/src/a11yCheck.d.ts.map +0 -1
  942. package/dist/src/iconDictionary/Add.d.ts +0 -16
  943. package/dist/src/iconDictionary/Add.d.ts.map +0 -1
  944. package/dist/src/iconDictionary/AddCircle.d.ts +0 -16
  945. package/dist/src/iconDictionary/AddCircle.d.ts.map +0 -1
  946. package/dist/src/iconDictionary/AlertCircle.d.ts +0 -16
  947. package/dist/src/iconDictionary/AlertCircle.d.ts.map +0 -1
  948. package/dist/src/iconDictionary/AlertCircleFilled.d.ts +0 -16
  949. package/dist/src/iconDictionary/AlertCircleFilled.d.ts.map +0 -1
  950. package/dist/src/iconDictionary/AlertTriangleFilled.d.ts +0 -16
  951. package/dist/src/iconDictionary/AlertTriangleFilled.d.ts.map +0 -1
  952. package/dist/src/iconDictionary/Anchor.d.ts +0 -16
  953. package/dist/src/iconDictionary/Anchor.d.ts.map +0 -1
  954. package/dist/src/iconDictionary/ArrowDown.d.ts +0 -16
  955. package/dist/src/iconDictionary/ArrowDown.d.ts.map +0 -1
  956. package/dist/src/iconDictionary/ArrowLeft.d.ts +0 -16
  957. package/dist/src/iconDictionary/ArrowLeft.d.ts.map +0 -1
  958. package/dist/src/iconDictionary/ArrowRight.d.ts +0 -16
  959. package/dist/src/iconDictionary/ArrowRight.d.ts.map +0 -1
  960. package/dist/src/iconDictionary/ArrowUp.d.ts +0 -16
  961. package/dist/src/iconDictionary/ArrowUp.d.ts.map +0 -1
  962. package/dist/src/iconDictionary/ArrowUpDown.d.ts +0 -16
  963. package/dist/src/iconDictionary/ArrowUpDown.d.ts.map +0 -1
  964. package/dist/src/iconDictionary/Calendar.d.ts +0 -16
  965. package/dist/src/iconDictionary/Calendar.d.ts.map +0 -1
  966. package/dist/src/iconDictionary/Check.d.ts +0 -16
  967. package/dist/src/iconDictionary/Check.d.ts.map +0 -1
  968. package/dist/src/iconDictionary/CheckCircleFilled.d.ts +0 -16
  969. package/dist/src/iconDictionary/CheckCircleFilled.d.ts.map +0 -1
  970. package/dist/src/iconDictionary/ChevronDown.d.ts +0 -16
  971. package/dist/src/iconDictionary/ChevronDown.d.ts.map +0 -1
  972. package/dist/src/iconDictionary/ChevronUp.d.ts +0 -16
  973. package/dist/src/iconDictionary/ChevronUp.d.ts.map +0 -1
  974. package/dist/src/iconDictionary/Close.d.ts +0 -16
  975. package/dist/src/iconDictionary/Close.d.ts.map +0 -1
  976. package/dist/src/iconDictionary/CloseCircleFilled.d.ts +0 -16
  977. package/dist/src/iconDictionary/CloseCircleFilled.d.ts.map +0 -1
  978. package/dist/src/iconDictionary/Copy.d.ts +0 -16
  979. package/dist/src/iconDictionary/Copy.d.ts.map +0 -1
  980. package/dist/src/iconDictionary/Delete.d.ts +0 -16
  981. package/dist/src/iconDictionary/Delete.d.ts.map +0 -1
  982. package/dist/src/iconDictionary/Download.d.ts +0 -16
  983. package/dist/src/iconDictionary/Download.d.ts.map +0 -1
  984. package/dist/src/iconDictionary/DragHandle.d.ts +0 -16
  985. package/dist/src/iconDictionary/DragHandle.d.ts.map +0 -1
  986. package/dist/src/iconDictionary/Edit.d.ts +0 -16
  987. package/dist/src/iconDictionary/Edit.d.ts.map +0 -1
  988. package/dist/src/iconDictionary/ExternalLink.d.ts +0 -16
  989. package/dist/src/iconDictionary/ExternalLink.d.ts.map +0 -1
  990. package/dist/src/iconDictionary/Eye.d.ts +0 -16
  991. package/dist/src/iconDictionary/Eye.d.ts.map +0 -1
  992. package/dist/src/iconDictionary/EyeOff.d.ts +0 -16
  993. package/dist/src/iconDictionary/EyeOff.d.ts.map +0 -1
  994. package/dist/src/iconDictionary/Filter.d.ts +0 -16
  995. package/dist/src/iconDictionary/Filter.d.ts.map +0 -1
  996. package/dist/src/iconDictionary/Globe.d.ts +0 -16
  997. package/dist/src/iconDictionary/Globe.d.ts.map +0 -1
  998. package/dist/src/iconDictionary/Home.d.ts +0 -16
  999. package/dist/src/iconDictionary/Home.d.ts.map +0 -1
  1000. package/dist/src/iconDictionary/InformationCircle.d.ts +0 -16
  1001. package/dist/src/iconDictionary/InformationCircle.d.ts.map +0 -1
  1002. package/dist/src/iconDictionary/InformationCircleFilled.d.ts.map +0 -1
  1003. package/dist/src/iconDictionary/Notification.d.ts +0 -16
  1004. package/dist/src/iconDictionary/Notification.d.ts.map +0 -1
  1005. package/dist/src/iconDictionary/OverflowVertical.d.ts +0 -16
  1006. package/dist/src/iconDictionary/OverflowVertical.d.ts.map +0 -1
  1007. package/dist/src/iconDictionary/QuestionCircle.d.ts +0 -16
  1008. package/dist/src/iconDictionary/QuestionCircle.d.ts.map +0 -1
  1009. package/dist/src/iconDictionary/QuestionCircleFilled.d.ts +0 -16
  1010. package/dist/src/iconDictionary/QuestionCircleFilled.d.ts.map +0 -1
  1011. package/dist/src/iconDictionary/Search.d.ts +0 -16
  1012. package/dist/src/iconDictionary/Search.d.ts.map +0 -1
  1013. package/dist/src/iconDictionary/Settings.d.ts +0 -16
  1014. package/dist/src/iconDictionary/Settings.d.ts.map +0 -1
  1015. package/dist/src/iconDictionary/Subtract.d.ts +0 -16
  1016. package/dist/src/iconDictionary/Subtract.d.ts.map +0 -1
  1017. package/dist/src/iconDictionary/SvgIcon.d.ts.map +0 -1
  1018. package/dist/src/iconDictionary/User.d.ts +0 -16
  1019. package/dist/src/iconDictionary/User.d.ts.map +0 -1
  1020. package/dist/src/iconDictionary/UserGroup.d.ts +0 -16
  1021. package/dist/src/iconDictionary/UserGroup.d.ts.map +0 -1
  1022. package/dist/src/iconDictionary/index.d.ts +0 -94
  1023. package/dist/src/iconDictionary/index.d.ts.map +0 -1
  1024. package/dist/src/iconDictionary/types.d.ts.map +0 -1
  1025. package/dist/src/properties/ts/odyssey-react-mui_nl-NL.d.ts +0 -2
  1026. package/dist/src/properties/ts/odyssey-react-mui_nl-NL.d.ts.map +0 -1
  1027. package/dist/src/properties/ts/odyssey-react-mui_pt-BR.d.ts +0 -2
  1028. package/dist/src/properties/ts/odyssey-react-mui_pt-BR.d.ts.map +0 -1
  1029. package/dist/src/properties/ts/odyssey-react-mui_zh-CN.d.ts +0 -2
  1030. package/dist/src/properties/ts/odyssey-react-mui_zh-CN.d.ts.map +0 -1
  1031. package/dist/src/properties/ts/odyssey-react-mui_zh-TW.d.ts +0 -2
  1032. package/dist/src/properties/ts/odyssey-react-mui_zh-TW.d.ts.map +0 -1
  1033. package/dist/src/theme/OdysseyTheme.d.ts.map +0 -1
  1034. package/dist/src/theme/temp.d.ts.map +0 -1
  1035. package/dist/src/theme/useTheme.d.ts.map +0 -1
  1036. package/dist/theme/OdysseyTheme.js +0 -2
  1037. package/dist/theme/OdysseyTheme.js.map +0 -1
  1038. package/dist/theme/temp.js.map +0 -1
  1039. package/dist/theme/useTheme.js.map +0 -1
  1040. package/scripts/resolveIconSrcPath.cjs +0 -20
  1041. package/src/Icon.test.tsx +0 -51
  1042. package/src/Icon.tsx +0 -54
  1043. package/src/a11yCheck.ts +0 -28
  1044. package/src/iconDictionary/AlertTriangleFilled.tsx +0 -45
  1045. package/src/iconDictionary/Anchor.tsx +0 -46
  1046. package/src/iconDictionary/ArrowUpDown.tsx +0 -44
  1047. package/src/iconDictionary/Calendar.tsx +0 -44
  1048. package/src/iconDictionary/Download.tsx +0 -44
  1049. package/src/iconDictionary/DragHandle.tsx +0 -44
  1050. package/src/iconDictionary/EyeOff.tsx +0 -44
  1051. package/src/iconDictionary/Home.tsx +0 -44
  1052. package/src/iconDictionary/Settings.tsx +0 -42
  1053. package/src/iconDictionary/UserGroup.tsx +0 -44
  1054. package/src/iconDictionary/index.ts +0 -176
  1055. package/src/properties/translations/odyssey-react-mui_nl-NL.properties +0 -0
  1056. package/src/properties/translations/odyssey-react-mui_pt-BR.properties +0 -0
  1057. package/src/properties/translations/odyssey-react-mui_zh-CN.properties +0 -0
  1058. package/src/properties/translations/odyssey-react-mui_zh-TW.properties +0 -0
  1059. package/src/properties/ts/odyssey-react-mui_nl-NL.ts +0 -1
  1060. package/src/properties/ts/odyssey-react-mui_pt-BR.ts +0 -1
  1061. package/src/properties/ts/odyssey-react-mui_zh-CN.ts +0 -1
  1062. package/src/properties/ts/odyssey-react-mui_zh-TW.ts +0 -1
  1063. /package/dist/{iconDictionary/SvgIcon.js → SvgIcon.js} +0 -0
package/dist/Dialog.js CHANGED
@@ -14,19 +14,21 @@ import _DialogContentText from "@mui/material/DialogContentText";
14
14
  *
15
15
  * See the License for the specific language governing permissions and limitations under the License.
16
16
  */
17
- import { Button, CloseIcon } from "./index.js";
17
+ import { Button } from "./Button.js";
18
+ import { CloseIcon } from "./icons.generated/index.js";
18
19
  import { memo, useState, useEffect, useRef } from "react";
19
20
  import { jsx as _jsx } from "react/jsx-runtime";
20
21
  import { jsxs as _jsxs } from "react/jsx-runtime";
21
22
  const Dialog = _ref => {
22
23
  let {
23
- callToActionPrimaryComponent,
24
- callToActionSecondaryComponent,
25
- callToActionTertiaryComponent,
24
+ callToActionFirstComponent,
25
+ callToActionSecondComponent,
26
+ callToActionLastComponent,
26
27
  children,
27
28
  isOpen,
28
29
  onClose,
29
- title
30
+ title,
31
+ ariaLabel
30
32
  } = _ref;
31
33
  const [isContentScrollable, setIsContentScrollable] = useState(false);
32
34
  const dialogContentRef = useRef(null);
@@ -54,19 +56,23 @@ const Dialog = _ref => {
54
56
  onClose: onClose,
55
57
  children: [_jsxs(_DialogTitle, {
56
58
  children: [title, _jsx(Button, {
57
- variant: "floating",
59
+ ariaLabel: ariaLabel,
60
+ label: "",
58
61
  onClick: onClose,
59
- startIcon: _jsx(CloseIcon, {})
62
+ size: "small",
63
+ startIcon: _jsx(CloseIcon, {}),
64
+ variant: "floating"
60
65
  })]
61
66
  }), _jsx(_DialogContent, {
62
67
  dividers: isContentScrollable,
63
68
  ref: dialogContentRef,
64
69
  children: content
65
- }), (callToActionPrimaryComponent || callToActionSecondaryComponent || callToActionTertiaryComponent) && _jsxs(_DialogActions, {
66
- children: [callToActionTertiaryComponent, callToActionSecondaryComponent, callToActionPrimaryComponent]
70
+ }), (callToActionFirstComponent || callToActionSecondComponent || callToActionLastComponent) && _jsxs(_DialogActions, {
71
+ children: [callToActionLastComponent, callToActionSecondComponent, callToActionFirstComponent]
67
72
  })]
68
73
  });
69
74
  };
70
75
  const MemoizedDialog = memo(Dialog);
76
+ MemoizedDialog.displayName = "Dialog";
71
77
  export { MemoizedDialog as Dialog };
72
78
  //# sourceMappingURL=Dialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.js","names":["Button","CloseIcon","memo","useState","useEffect","useRef","jsx","_jsx","jsxs","_jsxs","Dialog","_ref","callToActionPrimaryComponent","callToActionSecondaryComponent","callToActionTertiaryComponent","children","isOpen","onClose","title","isContentScrollable","setIsContentScrollable","dialogContentRef","frameId","handleContentScroll","dialogContentElement","current","scrollHeight","clientHeight","requestAnimationFrame","cancelAnimationFrame","content","_DialogContentText","_Dialog","open","_DialogTitle","variant","onClick","startIcon","_DialogContent","dividers","ref","_DialogActions","MemoizedDialog"],"sources":["../src/Dialog.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 { Dialog as MuiDialog } from \"@mui/material\";\nimport {\n DialogTitle,\n DialogContent,\n DialogContentText,\n DialogActions,\n} from \"@mui/material\";\nimport { Button, CloseIcon } from \"./\";\nimport {\n memo,\n ReactNode,\n useState,\n useEffect,\n useRef,\n ReactElement,\n} from \"react\";\n\nexport type DialogProps = {\n callToActionPrimaryComponent?: ReactElement<typeof Button>;\n callToActionSecondaryComponent?: ReactElement<typeof Button>;\n callToActionTertiaryComponent?: ReactElement<typeof Button>;\n children: ReactNode | Array<ReactNode>;\n onClose: () => void;\n isOpen: boolean;\n title: string;\n};\n\nconst Dialog = ({\n callToActionPrimaryComponent,\n callToActionSecondaryComponent,\n callToActionTertiaryComponent,\n children,\n isOpen,\n onClose,\n title,\n}: DialogProps) => {\n const [isContentScrollable, setIsContentScrollable] = useState(false);\n const dialogContentRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n let frameId: number;\n\n const handleContentScroll = () => {\n const dialogContentElement = dialogContentRef.current;\n if (dialogContentElement) {\n setIsContentScrollable(\n dialogContentElement.scrollHeight > dialogContentElement.clientHeight\n );\n }\n frameId = requestAnimationFrame(handleContentScroll);\n };\n\n if (isOpen) {\n frameId = requestAnimationFrame(handleContentScroll);\n }\n\n return () => {\n cancelAnimationFrame(frameId);\n };\n }, [isOpen]);\n\n const content =\n typeof children === \"string\" ? (\n <DialogContentText>{children}</DialogContentText>\n ) : (\n children\n );\n\n return (\n <MuiDialog open={isOpen} onClose={onClose}>\n <DialogTitle>\n {title}\n <Button\n variant=\"floating\"\n onClick={onClose}\n startIcon={<CloseIcon />}\n />\n </DialogTitle>\n <DialogContent dividers={isContentScrollable} ref={dialogContentRef}>\n {content}\n </DialogContent>\n\n {(callToActionPrimaryComponent ||\n callToActionSecondaryComponent ||\n callToActionTertiaryComponent) && (\n <DialogActions>\n {callToActionTertiaryComponent}\n {callToActionSecondaryComponent}\n {callToActionPrimaryComponent}\n </DialogActions>\n )}\n </MuiDialog>\n );\n};\n\nconst MemoizedDialog = memo(Dialog);\n\nexport { MemoizedDialog as Dialog };\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA,SAmBSA,MAAM,EAAEC,SAAS;AAC1B,SACEC,IAAI,EAEJC,QAAQ,EACRC,SAAS,EACTC,MAAM,QAED,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAYf,MAAMC,MAAM,GAAGC,IAAA,IAQI;EAAA,IARH;IACdC,4BAA4B;IAC5BC,8BAA8B;IAC9BC,6BAA6B;IAC7BC,QAAQ;IACRC,MAAM;IACNC,OAAO;IACPC;EACW,CAAC,GAAAP,IAAA;EACZ,MAAM,CAACQ,mBAAmB,EAAEC,sBAAsB,CAAC,GAAGjB,QAAQ,CAAC,KAAK,CAAC;EACrE,MAAMkB,gBAAgB,GAAGhB,MAAM,CAAiB,IAAI,CAAC;EAErDD,SAAS,CAAC,MAAM;IACd,IAAIkB,OAAe;IAEnB,MAAMC,mBAAmB,GAAGA,CAAA,KAAM;MAChC,MAAMC,oBAAoB,GAAGH,gBAAgB,CAACI,OAAO;MACrD,IAAID,oBAAoB,EAAE;QACxBJ,sBAAsB,CACpBI,oBAAoB,CAACE,YAAY,GAAGF,oBAAoB,CAACG,YAC3D,CAAC;MACH;MACAL,OAAO,GAAGM,qBAAqB,CAACL,mBAAmB,CAAC;IACtD,CAAC;IAED,IAAIP,MAAM,EAAE;MACVM,OAAO,GAAGM,qBAAqB,CAACL,mBAAmB,CAAC;IACtD;IAEA,OAAO,MAAM;MACXM,oBAAoB,CAACP,OAAO,CAAC;IAC/B,CAAC;EACH,CAAC,EAAE,CAACN,MAAM,CAAC,CAAC;EAEZ,MAAMc,OAAO,GACX,OAAOf,QAAQ,KAAK,QAAQ,GAC1BR,IAAA,CAAAwB,kBAAA;IAAAhB,QAAA,EAAoBA;EAAQ,CAAoB,CAAC,GAEjDA,QACD;EAEH,OACEN,KAAA,CAAAuB,OAAA;IAAWC,IAAI,EAAEjB,MAAO;IAACC,OAAO,EAAEA,OAAQ;IAAAF,QAAA,GACxCN,KAAA,CAAAyB,YAAA;MAAAnB,QAAA,GACGG,KAAK,EACNX,IAAA,CAACP,MAAM;QACLmC,OAAO,EAAC,UAAU;QAClBC,OAAO,EAAEnB,OAAQ;QACjBoB,SAAS,EAAE9B,IAAA,CAACN,SAAS,IAAE;MAAE,CAC1B,CAAC;IAAA,CACS,CAAC,EACdM,IAAA,CAAA+B,cAAA;MAAeC,QAAQ,EAAEpB,mBAAoB;MAACqB,GAAG,EAAEnB,gBAAiB;MAAAN,QAAA,EACjEe;IAAO,CACK,CAAC,EAEf,CAAClB,4BAA4B,IAC5BC,8BAA8B,IAC9BC,6BAA6B,KAC7BL,KAAA,CAAAgC,cAAA;MAAA1B,QAAA,GACGD,6BAA6B,EAC7BD,8BAA8B,EAC9BD,4BAA4B;IAAA,CAChB,CAChB;EAAA,CACQ,CAAC;AAEhB,CAAC;AAED,MAAM8B,cAAc,GAAGxC,IAAI,CAACQ,MAAM,CAAC;AAEnC,SAASgC,cAAc,IAAIhC,MAAM"}
1
+ {"version":3,"file":"Dialog.js","names":["Button","CloseIcon","memo","useState","useEffect","useRef","jsx","_jsx","jsxs","_jsxs","Dialog","_ref","callToActionFirstComponent","callToActionSecondComponent","callToActionLastComponent","children","isOpen","onClose","title","ariaLabel","isContentScrollable","setIsContentScrollable","dialogContentRef","frameId","handleContentScroll","dialogContentElement","current","scrollHeight","clientHeight","requestAnimationFrame","cancelAnimationFrame","content","_DialogContentText","_Dialog","open","_DialogTitle","label","onClick","size","startIcon","variant","_DialogContent","dividers","ref","_DialogActions","MemoizedDialog","displayName"],"sources":["../src/Dialog.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 { Dialog as MuiDialog } from \"@mui/material\";\nimport {\n DialogTitle,\n DialogContent,\n DialogContentText,\n DialogActions,\n} from \"@mui/material\";\nimport { Button } from \"./Button\";\nimport { CloseIcon } from \"./icons.generated\";\nimport {\n memo,\n ReactNode,\n useState,\n useEffect,\n useRef,\n ReactElement,\n} from \"react\";\n\nexport type DialogProps = {\n /**\n * An optional Button object to be situated in the Dialog footer. Should almost always be of variant `primary`.\n */\n callToActionFirstComponent?: ReactElement<typeof Button>;\n /**\n * An optional Button object to be situated in the Dialog footer, alongside the `callToActionPrimaryComponent`.\n */\n callToActionSecondComponent?: ReactElement<typeof Button>;\n /**\n * An optional Button object to be situated in the Dialog footer, alongside the other two `callToAction` components.\n */\n callToActionLastComponent?: ReactElement<typeof Button>;\n /**\n * The content of the Dialog. May be a `string` or any other `ReactNode` or array of `ReactNode`s.\n */\n children: ReactNode;\n /**\n * When set to `true`, the Dialog will be visible.\n */\n isOpen: boolean;\n /**\n * Callback that controls what happens when the Dialog is dismissed\n */\n onClose: () => void;\n /**\n * The title of the Dialog\n */\n title: string;\n ariaLabel: string;\n};\n\nconst Dialog = ({\n callToActionFirstComponent,\n callToActionSecondComponent,\n callToActionLastComponent,\n children,\n isOpen,\n onClose,\n title,\n ariaLabel,\n}: DialogProps) => {\n const [isContentScrollable, setIsContentScrollable] = useState(false);\n const dialogContentRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n let frameId: number;\n\n const handleContentScroll = () => {\n const dialogContentElement = dialogContentRef.current;\n if (dialogContentElement) {\n setIsContentScrollable(\n dialogContentElement.scrollHeight > dialogContentElement.clientHeight\n );\n }\n frameId = requestAnimationFrame(handleContentScroll);\n };\n\n if (isOpen) {\n frameId = requestAnimationFrame(handleContentScroll);\n }\n\n return () => {\n cancelAnimationFrame(frameId);\n };\n }, [isOpen]);\n\n const content =\n typeof children === \"string\" ? (\n <DialogContentText>{children}</DialogContentText>\n ) : (\n children\n );\n\n return (\n <MuiDialog open={isOpen} onClose={onClose}>\n <DialogTitle>\n {title}\n <Button\n ariaLabel={ariaLabel}\n label=\"\"\n onClick={onClose}\n size=\"small\"\n startIcon={<CloseIcon />}\n variant=\"floating\"\n />\n </DialogTitle>\n <DialogContent dividers={isContentScrollable} ref={dialogContentRef}>\n {content}\n </DialogContent>\n\n {(callToActionFirstComponent ||\n callToActionSecondComponent ||\n callToActionLastComponent) && (\n <DialogActions>\n {callToActionLastComponent}\n {callToActionSecondComponent}\n {callToActionFirstComponent}\n </DialogActions>\n )}\n </MuiDialog>\n );\n};\n\nconst MemoizedDialog = memo(Dialog);\nMemoizedDialog.displayName = \"Dialog\";\n\nexport { MemoizedDialog as Dialog };\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA,SAmBSA,MAAM;AAAA,SACNC,SAAS;AAClB,SACEC,IAAI,EAEJC,QAAQ,EACRC,SAAS,EACTC,MAAM,QAED,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAkCf,MAAMC,MAAM,GAAGC,IAAA,IASI;EAAA,IATH;IACdC,0BAA0B;IAC1BC,2BAA2B;IAC3BC,yBAAyB;IACzBC,QAAQ;IACRC,MAAM;IACNC,OAAO;IACPC,KAAK;IACLC;EACW,CAAC,GAAAR,IAAA;EACZ,MAAM,CAACS,mBAAmB,EAAEC,sBAAsB,CAAC,GAAGlB,QAAQ,CAAC,KAAK,CAAC;EACrE,MAAMmB,gBAAgB,GAAGjB,MAAM,CAAiB,IAAI,CAAC;EAErDD,SAAS,CAAC,MAAM;IACd,IAAImB,OAAe;IAEnB,MAAMC,mBAAmB,GAAGA,CAAA,KAAM;MAChC,MAAMC,oBAAoB,GAAGH,gBAAgB,CAACI,OAAO;MACrD,IAAID,oBAAoB,EAAE;QACxBJ,sBAAsB,CACpBI,oBAAoB,CAACE,YAAY,GAAGF,oBAAoB,CAACG,YAC3D,CAAC;MACH;MACAL,OAAO,GAAGM,qBAAqB,CAACL,mBAAmB,CAAC;IACtD,CAAC;IAED,IAAIR,MAAM,EAAE;MACVO,OAAO,GAAGM,qBAAqB,CAACL,mBAAmB,CAAC;IACtD;IAEA,OAAO,MAAM;MACXM,oBAAoB,CAACP,OAAO,CAAC;IAC/B,CAAC;EACH,CAAC,EAAE,CAACP,MAAM,CAAC,CAAC;EAEZ,MAAMe,OAAO,GACX,OAAOhB,QAAQ,KAAK,QAAQ,GAC1BR,IAAA,CAAAyB,kBAAA;IAAAjB,QAAA,EAAoBA;EAAQ,CAAoB,CAAC,GAEjDA,QACD;EAEH,OACEN,KAAA,CAAAwB,OAAA;IAAWC,IAAI,EAAElB,MAAO;IAACC,OAAO,EAAEA,OAAQ;IAAAF,QAAA,GACxCN,KAAA,CAAA0B,YAAA;MAAApB,QAAA,GACGG,KAAK,EACNX,IAAA,CAACP,MAAM;QACLmB,SAAS,EAAEA,SAAU;QACrBiB,KAAK,EAAC,EAAE;QACRC,OAAO,EAAEpB,OAAQ;QACjBqB,IAAI,EAAC,OAAO;QACZC,SAAS,EAAEhC,IAAA,CAACN,SAAS,IAAE,CAAE;QACzBuC,OAAO,EAAC;MAAU,CACnB,CAAC;IAAA,CACS,CAAC,EACdjC,IAAA,CAAAkC,cAAA;MAAeC,QAAQ,EAAEtB,mBAAoB;MAACuB,GAAG,EAAErB,gBAAiB;MAAAP,QAAA,EACjEgB;IAAO,CACK,CAAC,EAEf,CAACnB,0BAA0B,IAC1BC,2BAA2B,IAC3BC,yBAAyB,KACzBL,KAAA,CAAAmC,cAAA;MAAA7B,QAAA,GACGD,yBAAyB,EACzBD,2BAA2B,EAC3BD,0BAA0B;IAAA,CACd,CAChB;EAAA,CACQ,CAAC;AAEhB,CAAC;AAED,MAAMiC,cAAc,GAAG3C,IAAI,CAACQ,MAAM,CAAC;AACnCmC,cAAc,CAACC,WAAW,GAAG,QAAQ;AAErC,SAASD,cAAc,IAAInC,MAAM"}
package/dist/Field.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import _FormControl from "@mui/material/FormControl";
2
2
  import _FormLabel from "@mui/material/FormLabel";
3
- import _Typography from "@mui/material/Typography";
4
3
  /*!
5
4
  * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
6
5
  * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
@@ -17,10 +16,13 @@ import { memo, useMemo } from "react";
17
16
  import { FieldError } from "./FieldError.js";
18
17
  import { FieldHint } from "./FieldHint.js";
19
18
  import { FieldLabel } from "./FieldLabel.js";
20
- import { useUniqueId } from "./useUniqueId.js";
19
+ import { Typography } from "./Typography.js";
20
+ import { useFieldset } from "./FieldsetContext.js";
21
21
  import { useTranslation } from "react-i18next";
22
+ import { useUniqueId } from "./useUniqueId.js";
22
23
  import { jsxs as _jsxs } from "react/jsx-runtime";
23
24
  import { jsx as _jsx } from "react/jsx-runtime";
25
+ export const fieldTypeValues = ["single", "group"];
24
26
  const Field = _ref => {
25
27
  let {
26
28
  errorMessage,
@@ -28,7 +30,7 @@ const Field = _ref => {
28
30
  hasVisibleLabel,
29
31
  hint,
30
32
  id: idOverride,
31
- isDisabled = false,
33
+ isDisabled: isDisabledProp = false,
32
34
  isRadioGroup = false,
33
35
  isOptional = false,
34
36
  label,
@@ -42,6 +44,10 @@ const Field = _ref => {
42
44
  const errorId = errorMessage ? `${id}-error` : undefined;
43
45
  const labelId = `${id}-label`;
44
46
  const ariaDescribedBy = useMemo(() => [hintId, errorId].join(" ").trim() || undefined, [errorId, hintId]);
47
+ const {
48
+ isDisabled: isFieldsetDisabled
49
+ } = useFieldset();
50
+ const isDisabled = useMemo(() => isDisabledProp || isFieldsetDisabled, [isDisabledProp, isFieldsetDisabled]);
45
51
  return _jsxs(_FormControl, {
46
52
  component: fieldType === "group" ? "fieldset" : "div",
47
53
  disabled: isDisabled,
@@ -49,7 +55,7 @@ const Field = _ref => {
49
55
  role: isRadioGroup ? "radiogroup" : undefined,
50
56
  children: [fieldType === "group" ? _jsxs(_FormLabel, {
51
57
  component: "legend",
52
- children: [label, " ", isOptional && label && _jsxs(_Typography, {
58
+ children: [label, " ", isOptional && label && _jsxs(Typography, {
53
59
  component: "span",
54
60
  color: "textSecondary",
55
61
  children: ["(", t("fieldlabel.optional.text"), ")"]
@@ -73,5 +79,6 @@ const Field = _ref => {
73
79
  });
74
80
  };
75
81
  const MemoizedField = memo(Field);
82
+ MemoizedField.displayName = "Field";
76
83
  export { MemoizedField as Field };
77
84
  //# sourceMappingURL=Field.js.map
package/dist/Field.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Field.js","names":["memo","useMemo","FieldError","FieldHint","FieldLabel","useUniqueId","useTranslation","jsxs","_jsxs","jsx","_jsx","Field","_ref","errorMessage","fieldType","hasVisibleLabel","hint","id","idOverride","isDisabled","isRadioGroup","isOptional","label","renderFieldComponent","t","hintId","undefined","errorId","labelId","ariaDescribedBy","join","trim","_FormControl","component","disabled","error","Boolean","role","children","_FormLabel","_Typography","color","inputId","text","MemoizedField"],"sources":["../src/Field.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, ReactElement, useMemo } from \"react\";\n\nimport {\n FormControl as MuiFormControl,\n FormLabel as MuiFormLabel,\n Typography,\n} from \"@mui/material\";\nimport { FieldError } from \"./FieldError\";\nimport { FieldHint } from \"./FieldHint\";\nimport { FieldLabel } from \"./FieldLabel\";\nimport { useUniqueId } from \"./useUniqueId\";\nimport { useTranslation } from \"react-i18next\";\n\nexport type FieldProps = {\n /**\n * If `error` is not undefined, the `input` will indicate an error.\n */\n errorMessage?: string;\n /**\n * The field type determines how ARIA components are setup. It's important to use this to denote if you expect only one component (like a text field) or multiple (like a radio group).\n */\n fieldType: \"single\" | \"group\";\n hasVisibleLabel: boolean;\n /**\n * The helper text content.\n */\n hint?: string;\n /**\n * The id of the `input` element.\n */\n id?: string;\n /**\n * Important for narrowing down the `fieldset` role to \"radiogroup\".\n */\n isRadioGroup?: boolean;\n /**\n * Important for determining if children inherit error state\n */\n isCheckboxGroup?: boolean;\n /**\n * If `true`, the component is disabled.\n */\n isDisabled?: boolean;\n /**\n * If `true`, the `input` element is not required.\n */\n isOptional?: boolean;\n /**\n * The label for the `input` element.\n */\n label: string;\n /**\n * The short hint displayed in the `input` before the user enters a value.\n */\n placeholder?: string;\n /**\n * Render-props function that sends back ARIA props to your field component.\n */\n renderFieldComponent: ({\n ariaDescribedBy,\n id,\n }: {\n ariaDescribedBy?: string;\n id: string;\n }) => ReactElement;\n};\n\nconst Field = ({\n errorMessage,\n fieldType,\n hasVisibleLabel,\n hint,\n id: idOverride,\n isDisabled = false,\n isRadioGroup = false,\n isOptional = false,\n label,\n renderFieldComponent,\n}: FieldProps) => {\n const { t } = useTranslation();\n\n const id = useUniqueId(idOverride);\n const hintId = hint ? `${id}-hint` : undefined;\n const errorId = errorMessage ? `${id}-error` : undefined;\n const labelId = `${id}-label`;\n\n const ariaDescribedBy = useMemo(\n () => [hintId, errorId].join(\" \").trim() || undefined,\n [errorId, hintId]\n );\n\n return (\n <MuiFormControl\n component={fieldType === \"group\" ? \"fieldset\" : \"div\"}\n disabled={isDisabled}\n error={Boolean(errorMessage)}\n role={isRadioGroup ? \"radiogroup\" : undefined}\n >\n {fieldType === \"group\" ? (\n <MuiFormLabel component=\"legend\">\n {label}{\" \"}\n {isOptional && label && (\n <Typography component=\"span\" color=\"textSecondary\">\n ({t(\"fieldlabel.optional.text\")})\n </Typography>\n )}\n </MuiFormLabel>\n ) : (\n <FieldLabel\n hasVisibleLabel={hasVisibleLabel}\n id={labelId}\n inputId={id}\n isOptional={isOptional}\n text={label}\n />\n )}\n\n {hint && <FieldHint id={hintId} text={hint} />}\n\n {renderFieldComponent({\n ariaDescribedBy,\n id,\n })}\n\n {errorMessage && <FieldError id={errorId} text={errorMessage} />}\n </MuiFormControl>\n );\n};\n\nconst MemoizedField = memo(Field);\n\nexport { MemoizedField as Field };\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,EAAgBC,OAAO,QAAQ,OAAO;AAAC,SAO3CC,UAAU;AAAA,SACVC,SAAS;AAAA,SACTC,UAAU;AAAA,SACVC,WAAW;AACpB,SAASC,cAAc,QAAQ,eAAe;AAAC,SAAAC,IAAA,IAAAC,KAAA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAwD/C,MAAMC,KAAK,GAAGC,IAAA,IAWI;EAAA,IAXH;IACbC,YAAY;IACZC,SAAS;IACTC,eAAe;IACfC,IAAI;IACJC,EAAE,EAAEC,UAAU;IACdC,UAAU,GAAG,KAAK;IAClBC,YAAY,GAAG,KAAK;IACpBC,UAAU,GAAG,KAAK;IAClBC,KAAK;IACLC;EACU,CAAC,GAAAX,IAAA;EACX,MAAM;IAAEY;EAAE,CAAC,GAAGlB,cAAc,CAAC,CAAC;EAE9B,MAAMW,EAAE,GAAGZ,WAAW,CAACa,UAAU,CAAC;EAClC,MAAMO,MAAM,GAAGT,IAAI,GAAI,GAAEC,EAAG,OAAM,GAAGS,SAAS;EAC9C,MAAMC,OAAO,GAAGd,YAAY,GAAI,GAAEI,EAAG,QAAO,GAAGS,SAAS;EACxD,MAAME,OAAO,GAAI,GAAEX,EAAG,QAAO;EAE7B,MAAMY,eAAe,GAAG5B,OAAO,CAC7B,MAAM,CAACwB,MAAM,EAAEE,OAAO,CAAC,CAACG,IAAI,CAAC,GAAG,CAAC,CAACC,IAAI,CAAC,CAAC,IAAIL,SAAS,EACrD,CAACC,OAAO,EAAEF,MAAM,CAClB,CAAC;EAED,OACEjB,KAAA,CAAAwB,YAAA;IACEC,SAAS,EAAEnB,SAAS,KAAK,OAAO,GAAG,UAAU,GAAG,KAAM;IACtDoB,QAAQ,EAAEf,UAAW;IACrBgB,KAAK,EAAEC,OAAO,CAACvB,YAAY,CAAE;IAC7BwB,IAAI,EAAEjB,YAAY,GAAG,YAAY,GAAGM,SAAU;IAAAY,QAAA,GAE7CxB,SAAS,KAAK,OAAO,GACpBN,KAAA,CAAA+B,UAAA;MAAcN,SAAS,EAAC,QAAQ;MAAAK,QAAA,GAC7BhB,KAAK,EAAE,GAAG,EACVD,UAAU,IAAIC,KAAK,IAClBd,KAAA,CAAAgC,WAAA;QAAYP,SAAS,EAAC,MAAM;QAACQ,KAAK,EAAC,eAAe;QAAAH,QAAA,GAAC,GAChD,EAACd,CAAC,CAAC,0BAA0B,CAAC,EAAC,GAClC;MAAA,CAAY,CACb;IAAA,CACW,CAAC,GAEfd,IAAA,CAACN,UAAU;MACTW,eAAe,EAAEA,eAAgB;MACjCE,EAAE,EAAEW,OAAQ;MACZc,OAAO,EAAEzB,EAAG;MACZI,UAAU,EAAEA,UAAW;MACvBsB,IAAI,EAAErB;IAAM,CACb,CACF,EAEAN,IAAI,IAAIN,IAAA,CAACP,SAAS;MAACc,EAAE,EAAEQ,MAAO;MAACkB,IAAI,EAAE3B;IAAK,CAAE,CAAC,EAE7CO,oBAAoB,CAAC;MACpBM,eAAe;MACfZ;IACF,CAAC,CAAC,EAEDJ,YAAY,IAAIH,IAAA,CAACR,UAAU;MAACe,EAAE,EAAEU,OAAQ;MAACgB,IAAI,EAAE9B;IAAa,CAAE,CAAC;EAAA,CAClD,CAAC;AAErB,CAAC;AAED,MAAM+B,aAAa,GAAG5C,IAAI,CAACW,KAAK,CAAC;AAEjC,SAASiC,aAAa,IAAIjC,KAAK"}
1
+ {"version":3,"file":"Field.js","names":["memo","useMemo","FieldError","FieldHint","FieldLabel","Typography","useFieldset","useTranslation","useUniqueId","jsxs","_jsxs","jsx","_jsx","fieldTypeValues","Field","_ref","errorMessage","fieldType","hasVisibleLabel","hint","id","idOverride","isDisabled","isDisabledProp","isRadioGroup","isOptional","label","renderFieldComponent","t","hintId","undefined","errorId","labelId","ariaDescribedBy","join","trim","isFieldsetDisabled","_FormControl","component","disabled","error","Boolean","role","children","_FormLabel","color","inputId","text","MemoizedField","displayName"],"sources":["../src/Field.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, ReactElement, useMemo } from \"react\";\n\nimport {\n FormControl as MuiFormControl,\n FormLabel as MuiFormLabel,\n} from \"@mui/material\";\nimport { FieldError } from \"./FieldError\";\nimport { FieldHint } from \"./FieldHint\";\nimport { FieldLabel } from \"./FieldLabel\";\nimport { Typography } from \"./Typography\";\nimport { useFieldset } from \"./FieldsetContext\";\nimport { useTranslation } from \"react-i18next\";\nimport { useUniqueId } from \"./useUniqueId\";\n\nexport const fieldTypeValues = [\"single\", \"group\"] as const;\n\nexport type FieldProps = {\n /**\n * If `error` is not undefined, the `input` will indicate an error.\n */\n errorMessage?: string;\n /**\n * The field type determines how ARIA components are setup. It's important to use this to denote if you expect only one component (like a text field) or multiple (like a radio group).\n */\n fieldType: (typeof fieldTypeValues)[number];\n /**\n * If `true`, the Field label will be shown\n */\n hasVisibleLabel: boolean;\n /**\n * The helper text content.\n */\n hint?: string;\n /**\n * The id of the `input` element.\n */\n id?: string;\n /**\n * Important for narrowing down the `fieldset` role to \"radiogroup\".\n */\n isRadioGroup?: boolean;\n /**\n * Important for determining if children inherit error state\n */\n isCheckboxGroup?: boolean;\n /**\n * If `true`, the component is disabled.\n */\n isDisabled?: boolean;\n /**\n * If `true`, the `input` element is not required.\n */\n isOptional?: boolean;\n /**\n * The label for the `input` element.\n */\n label: string;\n /**\n * The short hint displayed in the `input` before the user enters a value.\n */\n placeholder?: string;\n /**\n * Render-props function that sends back ARIA props to your field component.\n */\n renderFieldComponent: ({\n ariaDescribedBy,\n id,\n }: {\n ariaDescribedBy?: string;\n id: string;\n }) => ReactElement;\n};\n\nconst Field = ({\n errorMessage,\n fieldType,\n hasVisibleLabel,\n hint,\n id: idOverride,\n isDisabled: isDisabledProp = false,\n isRadioGroup = false,\n isOptional = false,\n label,\n renderFieldComponent,\n}: FieldProps) => {\n const { t } = useTranslation();\n\n const id = useUniqueId(idOverride);\n const hintId = hint ? `${id}-hint` : undefined;\n const errorId = errorMessage ? `${id}-error` : undefined;\n const labelId = `${id}-label`;\n\n const ariaDescribedBy = useMemo(\n () => [hintId, errorId].join(\" \").trim() || undefined,\n [errorId, hintId]\n );\n\n const { isDisabled: isFieldsetDisabled } = useFieldset();\n\n const isDisabled = useMemo(\n () => isDisabledProp || isFieldsetDisabled,\n [isDisabledProp, isFieldsetDisabled]\n );\n\n return (\n <MuiFormControl\n component={fieldType === \"group\" ? \"fieldset\" : \"div\"}\n disabled={isDisabled}\n error={Boolean(errorMessage)}\n role={isRadioGroup ? \"radiogroup\" : undefined}\n >\n {fieldType === \"group\" ? (\n <MuiFormLabel component=\"legend\">\n {label}{\" \"}\n {isOptional && label && (\n <Typography component=\"span\" color=\"textSecondary\">\n ({t(\"fieldlabel.optional.text\")})\n </Typography>\n )}\n </MuiFormLabel>\n ) : (\n <FieldLabel\n hasVisibleLabel={hasVisibleLabel}\n id={labelId}\n inputId={id}\n isOptional={isOptional}\n text={label}\n />\n )}\n\n {hint && <FieldHint id={hintId} text={hint} />}\n\n {renderFieldComponent({\n ariaDescribedBy,\n id,\n })}\n\n {errorMessage && <FieldError id={errorId} text={errorMessage} />}\n </MuiFormControl>\n );\n};\n\nconst MemoizedField = memo(Field);\nMemoizedField.displayName = \"Field\";\n\nexport { MemoizedField as Field };\n"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,EAAgBC,OAAO,QAAQ,OAAO;AAAC,SAM3CC,UAAU;AAAA,SACVC,SAAS;AAAA,SACTC,UAAU;AAAA,SACVC,UAAU;AAAA,SACVC,WAAW;AACpB,SAASC,cAAc,QAAQ,eAAe;AAAC,SACtCC,WAAW;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAEpB,OAAO,MAAMC,eAAe,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU;AA2D3D,MAAMC,KAAK,GAAGC,IAAA,IAWI;EAAA,IAXH;IACbC,YAAY;IACZC,SAAS;IACTC,eAAe;IACfC,IAAI;IACJC,EAAE,EAAEC,UAAU;IACdC,UAAU,EAAEC,cAAc,GAAG,KAAK;IAClCC,YAAY,GAAG,KAAK;IACpBC,UAAU,GAAG,KAAK;IAClBC,KAAK;IACLC;EACU,CAAC,GAAAZ,IAAA;EACX,MAAM;IAAEa;EAAE,CAAC,GAAGrB,cAAc,CAAC,CAAC;EAE9B,MAAMa,EAAE,GAAGZ,WAAW,CAACa,UAAU,CAAC;EAClC,MAAMQ,MAAM,GAAGV,IAAI,GAAI,GAAEC,EAAG,OAAM,GAAGU,SAAS;EAC9C,MAAMC,OAAO,GAAGf,YAAY,GAAI,GAAEI,EAAG,QAAO,GAAGU,SAAS;EACxD,MAAME,OAAO,GAAI,GAAEZ,EAAG,QAAO;EAE7B,MAAMa,eAAe,GAAGhC,OAAO,CAC7B,MAAM,CAAC4B,MAAM,EAAEE,OAAO,CAAC,CAACG,IAAI,CAAC,GAAG,CAAC,CAACC,IAAI,CAAC,CAAC,IAAIL,SAAS,EACrD,CAACC,OAAO,EAAEF,MAAM,CAClB,CAAC;EAED,MAAM;IAAEP,UAAU,EAAEc;EAAmB,CAAC,GAAG9B,WAAW,CAAC,CAAC;EAExD,MAAMgB,UAAU,GAAGrB,OAAO,CACxB,MAAMsB,cAAc,IAAIa,kBAAkB,EAC1C,CAACb,cAAc,EAAEa,kBAAkB,CACrC,CAAC;EAED,OACE1B,KAAA,CAAA2B,YAAA;IACEC,SAAS,EAAErB,SAAS,KAAK,OAAO,GAAG,UAAU,GAAG,KAAM;IACtDsB,QAAQ,EAAEjB,UAAW;IACrBkB,KAAK,EAAEC,OAAO,CAACzB,YAAY,CAAE;IAC7B0B,IAAI,EAAElB,YAAY,GAAG,YAAY,GAAGM,SAAU;IAAAa,QAAA,GAE7C1B,SAAS,KAAK,OAAO,GACpBP,KAAA,CAAAkC,UAAA;MAAcN,SAAS,EAAC,QAAQ;MAAAK,QAAA,GAC7BjB,KAAK,EAAE,GAAG,EACVD,UAAU,IAAIC,KAAK,IAClBhB,KAAA,CAACL,UAAU;QAACiC,SAAS,EAAC,MAAM;QAACO,KAAK,EAAC,eAAe;QAAAF,QAAA,GAAC,GAChD,EAACf,CAAC,CAAC,0BAA0B,CAAC,EAAC,GAClC;MAAA,CAAY,CACb;IAAA,CACW,CAAC,GAEfhB,IAAA,CAACR,UAAU;MACTc,eAAe,EAAEA,eAAgB;MACjCE,EAAE,EAAEY,OAAQ;MACZc,OAAO,EAAE1B,EAAG;MACZK,UAAU,EAAEA,UAAW;MACvBsB,IAAI,EAAErB;IAAM,CACb,CACF,EAEAP,IAAI,IAAIP,IAAA,CAACT,SAAS;MAACiB,EAAE,EAAES,MAAO;MAACkB,IAAI,EAAE5B;IAAK,CAAE,CAAC,EAE7CQ,oBAAoB,CAAC;MACpBM,eAAe;MACfb;IACF,CAAC,CAAC,EAEDJ,YAAY,IAAIJ,IAAA,CAACV,UAAU;MAACkB,EAAE,EAAEW,OAAQ;MAACgB,IAAI,EAAE/B;IAAa,CAAE,CAAC;EAAA,CAClD,CAAC;AAErB,CAAC;AAED,MAAMgC,aAAa,GAAGhD,IAAI,CAACc,KAAK,CAAC;AACjCkC,aAAa,CAACC,WAAW,GAAG,OAAO;AAEnC,SAASD,aAAa,IAAIlC,KAAK"}
@@ -1,3 +1,4 @@
1
+ import _FormHelperText from "@mui/material/FormHelperText";
1
2
  /*!
2
3
  * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
4
  * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
@@ -11,7 +12,6 @@
11
12
  */
12
13
 
13
14
  import { memo } from "react";
14
- import { FormHelperText } from "./index.js";
15
15
  import { ScreenReaderText } from "./ScreenReaderText.js";
16
16
  import { useTranslation } from "react-i18next";
17
17
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -24,7 +24,7 @@ const FieldError = _ref => {
24
24
  const {
25
25
  t
26
26
  } = useTranslation();
27
- return _jsxs(FormHelperText, {
27
+ return _jsxs(_FormHelperText, {
28
28
  error: true,
29
29
  id: id,
30
30
  children: [_jsx(ScreenReaderText, {
@@ -33,5 +33,6 @@ const FieldError = _ref => {
33
33
  });
34
34
  };
35
35
  const MemoizedFieldError = memo(FieldError);
36
+ MemoizedFieldError.displayName = "FieldError";
36
37
  export { MemoizedFieldError as FieldError };
37
38
  //# sourceMappingURL=FieldError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldError.js","names":["memo","FormHelperText","ScreenReaderText","useTranslation","jsx","_jsx","jsxs","_jsxs","FieldError","_ref","id","text","t","error","children","MemoizedFieldError"],"sources":["../src/FieldError.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 { memo } from \"react\";\n\nimport { FormHelperText } from \".\";\nimport { ScreenReaderText } from \"./ScreenReaderText\";\nimport { useTranslation } from \"react-i18next\";\n\nexport type FieldErrorProps = {\n id?: string;\n text: string;\n};\n\nconst FieldError = ({ id, text }: FieldErrorProps) => {\n const { t } = useTranslation();\n\n return (\n <FormHelperText error id={id}>\n <ScreenReaderText>{`${t(\n \"fielderror.screenreader.text\"\n )}:`}</ScreenReaderText>\n {text}\n </FormHelperText>\n );\n};\n\nconst MemoizedFieldError = memo(FieldError);\n\nexport { MemoizedFieldError as FieldError };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAQ,OAAO;AAAC,SAEpBC,cAAc;AAAA,SACdC,gBAAgB;AACzB,SAASC,cAAc,QAAQ,eAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAO/C,MAAMC,UAAU,GAAGC,IAAA,IAAmC;EAAA,IAAlC;IAAEC,EAAE;IAAEC;EAAsB,CAAC,GAAAF,IAAA;EAC/C,MAAM;IAAEG;EAAE,CAAC,GAAGT,cAAc,CAAC,CAAC;EAE9B,OACEI,KAAA,CAACN,cAAc;IAACY,KAAK;IAACH,EAAE,EAAEA,EAAG;IAAAI,QAAA,GAC3BT,IAAA,CAACH,gBAAgB;MAAAY,QAAA,EAAG,GAAEF,CAAC,CACrB,8BACF,CAAE;IAAE,CAAmB,CAAC,EACvBD,IAAI;EAAA,CACS,CAAC;AAErB,CAAC;AAED,MAAMI,kBAAkB,GAAGf,IAAI,CAACQ,UAAU,CAAC;AAE3C,SAASO,kBAAkB,IAAIP,UAAU"}
1
+ {"version":3,"file":"FieldError.js","names":["memo","ScreenReaderText","useTranslation","jsx","_jsx","jsxs","_jsxs","FieldError","_ref","id","text","t","_FormHelperText","error","children","MemoizedFieldError","displayName"],"sources":["../src/FieldError.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 { memo } from \"react\";\n\nimport { FormHelperText } from \"@mui/material\";\nimport { ScreenReaderText } from \"./ScreenReaderText\";\nimport { useTranslation } from \"react-i18next\";\n\nexport type FieldErrorProps = {\n id?: string;\n text: string;\n};\n\nconst FieldError = ({ id, text }: FieldErrorProps) => {\n const { t } = useTranslation();\n\n return (\n <FormHelperText error id={id}>\n <ScreenReaderText>{`${t(\n \"fielderror.screenreader.text\"\n )}:`}</ScreenReaderText>\n {text}\n </FormHelperText>\n );\n};\n\nconst MemoizedFieldError = memo(FieldError);\nMemoizedFieldError.displayName = \"FieldError\";\n\nexport { MemoizedFieldError as FieldError };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAQ,OAAO;AAAC,SAGpBC,gBAAgB;AACzB,SAASC,cAAc,QAAQ,eAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAO/C,MAAMC,UAAU,GAAGC,IAAA,IAAmC;EAAA,IAAlC;IAAEC,EAAE;IAAEC;EAAsB,CAAC,GAAAF,IAAA;EAC/C,MAAM;IAAEG;EAAE,CAAC,GAAGT,cAAc,CAAC,CAAC;EAE9B,OACEI,KAAA,CAAAM,eAAA;IAAgBC,KAAK;IAACJ,EAAE,EAAEA,EAAG;IAAAK,QAAA,GAC3BV,IAAA,CAACH,gBAAgB;MAAAa,QAAA,EAAG,GAAEH,CAAC,CACrB,8BACF,CAAE;IAAE,CAAmB,CAAC,EACvBD,IAAI;EAAA,CACS,CAAC;AAErB,CAAC;AAED,MAAMK,kBAAkB,GAAGf,IAAI,CAACO,UAAU,CAAC;AAC3CQ,kBAAkB,CAACC,WAAW,GAAG,YAAY;AAE7C,SAASD,kBAAkB,IAAIR,UAAU"}
package/dist/FieldHint.js CHANGED
@@ -1,3 +1,4 @@
1
+ import _FormHelperText from "@mui/material/FormHelperText";
1
2
  /*!
2
3
  * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
4
  * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
@@ -11,18 +12,18 @@
11
12
  */
12
13
 
13
14
  import { memo } from "react";
14
- import { FormHelperText } from "./index.js";
15
15
  import { jsx as _jsx } from "react/jsx-runtime";
16
16
  const FieldHint = _ref => {
17
17
  let {
18
18
  id,
19
19
  text
20
20
  } = _ref;
21
- return _jsx(FormHelperText, {
21
+ return _jsx(_FormHelperText, {
22
22
  id: id,
23
23
  children: text
24
24
  });
25
25
  };
26
26
  const MemoizedFieldHint = memo(FieldHint);
27
+ MemoizedFieldHint.displayName = "FieldHint";
27
28
  export { MemoizedFieldHint as FieldHint };
28
29
  //# sourceMappingURL=FieldHint.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldHint.js","names":["memo","FormHelperText","jsx","_jsx","FieldHint","_ref","id","text","children","MemoizedFieldHint"],"sources":["../src/FieldHint.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 { memo } from \"react\";\n\nimport { FormHelperText } from \"./\";\n\nexport type FieldHintProps = {\n id?: string;\n text: string;\n};\n\nconst FieldHint = ({ id, text }: FieldHintProps) => {\n return <FormHelperText id={id}>{text}</FormHelperText>;\n};\n\nconst MemoizedFieldHint = memo(FieldHint);\n\nexport { MemoizedFieldHint as FieldHint };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAQ,OAAO;AAAC,SAEpBC,cAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAOvB,MAAMC,SAAS,GAAGC,IAAA,IAAkC;EAAA,IAAjC;IAAEC,EAAE;IAAEC;EAAqB,CAAC,GAAAF,IAAA;EAC7C,OAAOF,IAAA,CAACF,cAAc;IAACK,EAAE,EAAEA,EAAG;IAAAE,QAAA,EAAED;EAAI,CAAiB,CAAC;AACxD,CAAC;AAED,MAAME,iBAAiB,GAAGT,IAAI,CAACI,SAAS,CAAC;AAEzC,SAASK,iBAAiB,IAAIL,SAAS"}
1
+ {"version":3,"file":"FieldHint.js","names":["memo","jsx","_jsx","FieldHint","_ref","id","text","_FormHelperText","children","MemoizedFieldHint","displayName"],"sources":["../src/FieldHint.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 { memo } from \"react\";\n\nimport { FormHelperText } from \"@mui/material\";\n\nexport type FieldHintProps = {\n id?: string;\n text: string;\n};\n\nconst FieldHint = ({ id, text }: FieldHintProps) => {\n return <FormHelperText id={id}>{text}</FormHelperText>;\n};\n\nconst MemoizedFieldHint = memo(FieldHint);\nMemoizedFieldHint.displayName = \"FieldHint\";\n\nexport { MemoizedFieldHint as FieldHint };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAS7B,MAAMC,SAAS,GAAGC,IAAA,IAAkC;EAAA,IAAjC;IAAEC,EAAE;IAAEC;EAAqB,CAAC,GAAAF,IAAA;EAC7C,OAAOF,IAAA,CAAAK,eAAA;IAAgBF,EAAE,EAAEA,EAAG;IAAAG,QAAA,EAAEF;EAAI,CAAiB,CAAC;AACxD,CAAC;AAED,MAAMG,iBAAiB,GAAGT,IAAI,CAACG,SAAS,CAAC;AACzCM,iBAAiB,CAACC,WAAW,GAAG,WAAW;AAE3C,SAASD,iBAAiB,IAAIN,SAAS"}
@@ -13,7 +13,7 @@ import _InputLabel from "@mui/material/InputLabel";
13
13
  import { memo, useMemo } from "react";
14
14
  import { useTranslation } from "react-i18next";
15
15
  import { ScreenReaderText } from "./ScreenReaderText.js";
16
- import { Typography } from "./index.js";
16
+ import { Subordinate } from "./Typography.js";
17
17
  import { jsx as _jsx } from "react/jsx-runtime";
18
18
  import { jsxs as _jsxs } from "react/jsx-runtime";
19
19
  const FieldLabel = _ref => {
@@ -30,8 +30,9 @@ const FieldLabel = _ref => {
30
30
  const inputLabel = useMemo(() => _jsxs(_InputLabel, {
31
31
  htmlFor: inputId,
32
32
  id: id,
33
- children: [text, isOptional && _jsx(Typography, {
34
- variant: "subtitle1",
33
+ children: [_jsx("span", {
34
+ children: text
35
+ }), isOptional && _jsx(Subordinate, {
35
36
  children: t("fieldlabel.optional.text")
36
37
  })]
37
38
  }), [id, inputId, isOptional, text, t]);
@@ -40,5 +41,6 @@ const FieldLabel = _ref => {
40
41
  });
41
42
  };
42
43
  const MemoizedFieldLabel = memo(FieldLabel);
44
+ MemoizedFieldLabel.displayName = "FieldLabel";
43
45
  export { MemoizedFieldLabel as FieldLabel };
44
46
  //# sourceMappingURL=FieldLabel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldLabel.js","names":["memo","useMemo","useTranslation","ScreenReaderText","Typography","jsx","_jsx","jsxs","_jsxs","FieldLabel","_ref","hasVisibleLabel","id","inputId","isOptional","text","t","inputLabel","_InputLabel","htmlFor","children","variant","MemoizedFieldLabel"],"sources":["../src/FieldLabel.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 { InputLabel as MuiInputLabel } from \"@mui/material\";\nimport { memo, useMemo } from \"react\";\n\nimport { useTranslation } from \"react-i18next\";\nimport { ScreenReaderText } from \"./ScreenReaderText\";\nimport { Typography } from \".\";\n\nexport type FieldLabelProps = {\n hasVisibleLabel: boolean;\n id: string;\n inputId: string;\n isOptional: boolean;\n text: string;\n};\n\nconst FieldLabel = ({\n hasVisibleLabel,\n id,\n inputId,\n isOptional,\n text,\n}: FieldLabelProps) => {\n const { t } = useTranslation();\n\n const inputLabel = useMemo(\n () => (\n <MuiInputLabel htmlFor={inputId} id={id}>\n {text}\n {isOptional && (\n <Typography variant=\"subtitle1\">\n {t(\"fieldlabel.optional.text\")}\n </Typography>\n )}\n </MuiInputLabel>\n ),\n [id, inputId, isOptional, text, t]\n );\n\n return hasVisibleLabel ? (\n inputLabel\n ) : (\n <ScreenReaderText>{inputLabel}</ScreenReaderText>\n );\n};\n\nconst MemoizedFieldLabel = memo(FieldLabel);\n\nexport { MemoizedFieldLabel as FieldLabel };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,SAASA,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAErC,SAASC,cAAc,QAAQ,eAAe;AAAC,SACtCC,gBAAgB;AAAA,SAChBC,UAAU;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAUnB,MAAMC,UAAU,GAAGC,IAAA,IAMI;EAAA,IANH;IAClBC,eAAe;IACfC,EAAE;IACFC,OAAO;IACPC,UAAU;IACVC;EACe,CAAC,GAAAL,IAAA;EAChB,MAAM;IAAEM;EAAE,CAAC,GAAGd,cAAc,CAAC,CAAC;EAE9B,MAAMe,UAAU,GAAGhB,OAAO,CACxB,MACEO,KAAA,CAAAU,WAAA;IAAeC,OAAO,EAAEN,OAAQ;IAACD,EAAE,EAAEA,EAAG;IAAAQ,QAAA,GACrCL,IAAI,EACJD,UAAU,IACTR,IAAA,CAACF,UAAU;MAACiB,OAAO,EAAC,WAAW;MAAAD,QAAA,EAC5BJ,CAAC,CAAC,0BAA0B;IAAC,CACpB,CACb;EAAA,CACY,CAChB,EACD,CAACJ,EAAE,EAAEC,OAAO,EAAEC,UAAU,EAAEC,IAAI,EAAEC,CAAC,CACnC,CAAC;EAED,OAAOL,eAAe,GACpBM,UAAU,GAEVX,IAAA,CAACH,gBAAgB;IAAAiB,QAAA,EAAEH;EAAU,CAAmB,CACjD;AACH,CAAC;AAED,MAAMK,kBAAkB,GAAGtB,IAAI,CAACS,UAAU,CAAC;AAE3C,SAASa,kBAAkB,IAAIb,UAAU"}
1
+ {"version":3,"file":"FieldLabel.js","names":["memo","useMemo","useTranslation","ScreenReaderText","Subordinate","jsx","_jsx","jsxs","_jsxs","FieldLabel","_ref","hasVisibleLabel","id","inputId","isOptional","text","t","inputLabel","_InputLabel","htmlFor","children","MemoizedFieldLabel","displayName"],"sources":["../src/FieldLabel.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 { InputLabel as MuiInputLabel } from \"@mui/material\";\nimport { memo, useMemo } from \"react\";\n\nimport { useTranslation } from \"react-i18next\";\nimport { ScreenReaderText } from \"./ScreenReaderText\";\nimport { Subordinate } from \"./Typography\";\n\nexport type FieldLabelProps = {\n hasVisibleLabel: boolean;\n id: string;\n inputId: string;\n isOptional: boolean;\n text: string;\n};\n\nconst FieldLabel = ({\n hasVisibleLabel,\n id,\n inputId,\n isOptional,\n text,\n}: FieldLabelProps) => {\n const { t } = useTranslation();\n\n const inputLabel = useMemo(\n () => (\n <MuiInputLabel htmlFor={inputId} id={id}>\n <span>{text}</span>\n {isOptional && (\n <Subordinate>{t(\"fieldlabel.optional.text\")}</Subordinate>\n )}\n </MuiInputLabel>\n ),\n [id, inputId, isOptional, text, t]\n );\n\n return hasVisibleLabel ? (\n inputLabel\n ) : (\n <ScreenReaderText>{inputLabel}</ScreenReaderText>\n );\n};\n\nconst MemoizedFieldLabel = memo(FieldLabel);\nMemoizedFieldLabel.displayName = \"FieldLabel\";\n\nexport { MemoizedFieldLabel as FieldLabel };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,SAASA,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAErC,SAASC,cAAc,QAAQ,eAAe;AAAC,SACtCC,gBAAgB;AAAA,SAChBC,WAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAUpB,MAAMC,UAAU,GAAGC,IAAA,IAMI;EAAA,IANH;IAClBC,eAAe;IACfC,EAAE;IACFC,OAAO;IACPC,UAAU;IACVC;EACe,CAAC,GAAAL,IAAA;EAChB,MAAM;IAAEM;EAAE,CAAC,GAAGd,cAAc,CAAC,CAAC;EAE9B,MAAMe,UAAU,GAAGhB,OAAO,CACxB,MACEO,KAAA,CAAAU,WAAA;IAAeC,OAAO,EAAEN,OAAQ;IAACD,EAAE,EAAEA,EAAG;IAAAQ,QAAA,GACtCd,IAAA;MAAAc,QAAA,EAAOL;IAAI,CAAO,CAAC,EAClBD,UAAU,IACTR,IAAA,CAACF,WAAW;MAAAgB,QAAA,EAAEJ,CAAC,CAAC,0BAA0B;IAAC,CAAc,CAC1D;EAAA,CACY,CAChB,EACD,CAACJ,EAAE,EAAEC,OAAO,EAAEC,UAAU,EAAEC,IAAI,EAAEC,CAAC,CACnC,CAAC;EAED,OAAOL,eAAe,GACpBM,UAAU,GAEVX,IAAA,CAACH,gBAAgB;IAAAiB,QAAA,EAAEH;EAAU,CAAmB,CACjD;AACH,CAAC;AAED,MAAMI,kBAAkB,GAAGrB,IAAI,CAACS,UAAU,CAAC;AAC3CY,kBAAkB,CAACC,WAAW,GAAG,YAAY;AAE7C,SAASD,kBAAkB,IAAIZ,UAAU"}
package/dist/Fieldset.js CHANGED
@@ -1,3 +1,4 @@
1
+ import _Box from "@mui/material/Box";
1
2
  /*!
2
3
  * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
4
  * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
@@ -9,9 +10,10 @@
9
10
  *
10
11
  * See the License for the specific language governing permissions and limitations under the License.
11
12
  */
12
-
13
- import { memo } from "react";
14
- import { Box, Typography } from "./index.js";
13
+ import { memo, useMemo } from "react";
14
+ import { FieldsetContext } from "./FieldsetContext.js";
15
+ import { Legend, Subordinate } from "./Typography.js";
16
+ import { useOdysseyDesignTokens } from "./OdysseyDesignTokensContext.js";
15
17
  import { useUniqueId } from "./useUniqueId.js";
16
18
  import { jsx as _jsx } from "react/jsx-runtime";
17
19
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -20,33 +22,40 @@ const Fieldset = _ref => {
20
22
  alert,
21
23
  children,
22
24
  description,
25
+ id: idOverride,
26
+ isDisabled = false,
23
27
  legend,
24
- name,
25
- id: idOverride
28
+ name
26
29
  } = _ref;
30
+ const odysseyDesignTokens = useOdysseyDesignTokens();
27
31
  const id = useUniqueId(idOverride);
28
- return _jsxs(Box, {
32
+ const fieldsetContextValue = useMemo(() => ({
33
+ isDisabled
34
+ }), [isDisabled]);
35
+ return _jsxs(_Box, {
29
36
  component: "fieldset",
37
+ disabled: isDisabled,
30
38
  name: name,
31
39
  id: id,
32
40
  sx: {
33
- maxWidth: theme => theme.mixins.maxWidth,
34
- margin: theme => theme.spacing(0),
35
- marginBlockEnd: theme => theme.spacing(4),
36
- padding: theme => theme.spacing(0),
37
41
  border: "0",
42
+ margin: odysseyDesignTokens.Spacing0,
43
+ marginBlockEnd: odysseyDesignTokens.Spacing6,
44
+ maxWidth: odysseyDesignTokens.TypographyLineLengthMax,
45
+ padding: odysseyDesignTokens.Spacing0,
38
46
  "&:last-child": {
39
- marginBlockEnd: theme => theme.spacing(0)
47
+ marginBlockEnd: odysseyDesignTokens.Spacing0
40
48
  }
41
49
  },
42
- children: [_jsx(Typography, {
43
- variant: "legend",
44
- component: "legend",
50
+ children: [_jsx(Legend, {
45
51
  children: legend
46
- }), description && _jsx(Typography, {
47
- paragraph: true,
52
+ }), description && _jsx(Subordinate, {
53
+ component: "p",
48
54
  children: description
49
- }), alert, children]
55
+ }), alert, _jsx(FieldsetContext.Provider, {
56
+ value: fieldsetContextValue,
57
+ children: children
58
+ })]
50
59
  });
51
60
  };
52
61
  const MemoizedFieldset = memo(Fieldset);
@@ -1 +1 @@
1
- {"version":3,"file":"Fieldset.js","names":["memo","Box","Typography","useUniqueId","jsx","_jsx","jsxs","_jsxs","Fieldset","_ref","alert","children","description","legend","name","id","idOverride","component","sx","maxWidth","theme","mixins","margin","spacing","marginBlockEnd","padding","border","variant","paragraph","MemoizedFieldset","displayName"],"sources":["../src/Fieldset.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, ReactElement } from \"react\";\n\nimport { Box, Typography } from \".\";\nimport { Infobox } from \"./Infobox\";\nimport { useUniqueId } from \"./useUniqueId\";\n\nexport type FieldsetProps = {\n /**\n * The title of the Fieldset\n */\n legend: string;\n /**\n * A supplementary description\n */\n description?: string;\n /**\n * The Field components within the Fieldset\n */\n children: ReactElement | Array<ReactElement>;\n /**\n * An Infobox indicating a Fieldset-wide error or status update.\n */\n alert?: ReactElement<typeof Infobox>;\n /**\n * The name associated with the group.\n */\n name?: string;\n // /**\n // * If this Boolean attribute is set, all form controls that are descendants of the <fieldset>, are disabled, meaning they are not editable and won't be submitted along with the <form>.\n // * They won't receive any browsing events, like mouse clicks or focus-related events.\n // * Note that form elements inside the <legend> element won't be disabled.\n // */\n // NOTE: Functionality is currently disabled. This will correctly disable child <input>s, but will not pass `isDisabled` to the child components.\n // isDisabled?: boolean;\n /**\n * Defines a unique identifier (ID) which must be unique in the whole document.\n */\n id?: string;\n};\n\nconst Fieldset = ({\n alert,\n children,\n description,\n legend,\n name,\n id: idOverride,\n}: // isDisabled,\nFieldsetProps) => {\n const id = useUniqueId(idOverride);\n\n return (\n <Box\n component=\"fieldset\"\n // disabled={isDisabled}\n name={name}\n id={id}\n sx={{\n maxWidth: (theme) => theme.mixins.maxWidth,\n margin: (theme) => theme.spacing(0),\n marginBlockEnd: (theme) => theme.spacing(4),\n padding: (theme) => theme.spacing(0),\n border: \"0\",\n\n \"&:last-child\": {\n marginBlockEnd: (theme) => theme.spacing(0),\n },\n }}\n >\n <Typography variant=\"legend\" component=\"legend\">\n {legend}\n </Typography>\n {description && <Typography paragraph>{description}</Typography>}\n {alert}\n {children}\n </Box>\n );\n};\n\nconst MemoizedFieldset = memo(Fieldset);\nMemoizedFieldset.displayName = \"Fieldset\";\n\nexport { MemoizedFieldset as Fieldset };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAsB,OAAO;AAAC,SAElCC,GAAG,EAAEC,UAAU;AAAA,SAEfC,WAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAoCpB,MAAMC,QAAQ,GAAGC,IAAA,IAQC;EAAA,IARA;IAChBC,KAAK;IACLC,QAAQ;IACRC,WAAW;IACXC,MAAM;IACNC,IAAI;IACJC,EAAE,EAAEC;EAEM,CAAC,GAAAP,IAAA;EACX,MAAMM,EAAE,GAAGZ,WAAW,CAACa,UAAU,CAAC;EAElC,OACET,KAAA,CAACN,GAAG;IACFgB,SAAS,EAAC,UAAU;IAEpBH,IAAI,EAAEA,IAAK;IACXC,EAAE,EAAEA,EAAG;IACPG,EAAE,EAAE;MACFC,QAAQ,EAAGC,KAAK,IAAKA,KAAK,CAACC,MAAM,CAACF,QAAQ;MAC1CG,MAAM,EAAGF,KAAK,IAAKA,KAAK,CAACG,OAAO,CAAC,CAAC,CAAC;MACnCC,cAAc,EAAGJ,KAAK,IAAKA,KAAK,CAACG,OAAO,CAAC,CAAC,CAAC;MAC3CE,OAAO,EAAGL,KAAK,IAAKA,KAAK,CAACG,OAAO,CAAC,CAAC,CAAC;MACpCG,MAAM,EAAE,GAAG;MAEX,cAAc,EAAE;QACdF,cAAc,EAAGJ,KAAK,IAAKA,KAAK,CAACG,OAAO,CAAC,CAAC;MAC5C;IACF,CAAE;IAAAZ,QAAA,GAEFN,IAAA,CAACH,UAAU;MAACyB,OAAO,EAAC,QAAQ;MAACV,SAAS,EAAC,QAAQ;MAAAN,QAAA,EAC5CE;IAAM,CACG,CAAC,EACZD,WAAW,IAAIP,IAAA,CAACH,UAAU;MAAC0B,SAAS;MAAAjB,QAAA,EAAEC;IAAW,CAAa,CAAC,EAC/DF,KAAK,EACLC,QAAQ;EAAA,CACN,CAAC;AAEV,CAAC;AAED,MAAMkB,gBAAgB,GAAG7B,IAAI,CAACQ,QAAQ,CAAC;AACvCqB,gBAAgB,CAACC,WAAW,GAAG,UAAU;AAEzC,SAASD,gBAAgB,IAAIrB,QAAQ"}
1
+ {"version":3,"file":"Fieldset.js","names":["memo","useMemo","FieldsetContext","Legend","Subordinate","useOdysseyDesignTokens","useUniqueId","jsx","_jsx","jsxs","_jsxs","Fieldset","_ref","alert","children","description","id","idOverride","isDisabled","legend","name","odysseyDesignTokens","fieldsetContextValue","_Box","component","disabled","sx","border","margin","Spacing0","marginBlockEnd","Spacing6","maxWidth","TypographyLineLengthMax","padding","Provider","value","MemoizedFieldset","displayName"],"sources":["../src/Fieldset.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 { Box } from \"@mui/material\";\nimport { memo, ReactElement, useMemo } from \"react\";\n\nimport { Callout } from \"./Callout\";\nimport { FieldsetContext } from \"./FieldsetContext\";\nimport { Legend, Subordinate } from \"./Typography\";\nimport { useOdysseyDesignTokens } from \"./OdysseyDesignTokensContext\";\nimport { useUniqueId } from \"./useUniqueId\";\n\nexport type FieldsetProps = {\n /**\n * A Callout indicating a Fieldset-wide error or status update.\n */\n alert?: ReactElement<typeof Callout>;\n /**\n * The Field components within the Fieldset\n */\n children: ReactElement | Array<ReactElement>;\n /**\n * A supplementary description\n */\n description?: string;\n /**\n * Defines a unique identifier (ID) which must be unique in the whole document.\n */\n id?: string;\n /**\n * Disables the component and any wrapped input fields.\n */\n isDisabled?: boolean;\n /**\n * The title of the Fieldset\n */\n legend: string;\n /**\n * The name associated with the group.\n */\n name?: string;\n};\n\nconst Fieldset = ({\n alert,\n children,\n description,\n id: idOverride,\n isDisabled = false,\n legend,\n name,\n}: FieldsetProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const id = useUniqueId(idOverride);\n\n const fieldsetContextValue = useMemo(\n () => ({\n isDisabled,\n }),\n [isDisabled]\n );\n\n return (\n <Box\n component=\"fieldset\"\n disabled={isDisabled}\n name={name}\n id={id}\n sx={{\n border: \"0\",\n margin: odysseyDesignTokens.Spacing0,\n marginBlockEnd: odysseyDesignTokens.Spacing6,\n maxWidth: odysseyDesignTokens.TypographyLineLengthMax,\n padding: odysseyDesignTokens.Spacing0,\n\n \"&:last-child\": {\n marginBlockEnd: odysseyDesignTokens.Spacing0,\n },\n }}\n >\n <Legend>{legend}</Legend>\n\n {description && <Subordinate component=\"p\">{description}</Subordinate>}\n\n {alert}\n\n <FieldsetContext.Provider value={fieldsetContextValue}>\n {children}\n </FieldsetContext.Provider>\n </Box>\n );\n};\n\nconst MemoizedFieldset = memo(Fieldset);\nMemoizedFieldset.displayName = \"Fieldset\";\n\nexport { MemoizedFieldset as Fieldset };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,SAASA,IAAI,EAAgBC,OAAO,QAAQ,OAAO;AAAC,SAG3CC,eAAe;AAAA,SACfC,MAAM,EAAEC,WAAW;AAAA,SACnBC,sBAAsB;AAAA,SACtBC,WAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAiCpB,MAAMC,QAAQ,GAAGC,IAAA,IAQI;EAAA,IARH;IAChBC,KAAK;IACLC,QAAQ;IACRC,WAAW;IACXC,EAAE,EAAEC,UAAU;IACdC,UAAU,GAAG,KAAK;IAClBC,MAAM;IACNC;EACa,CAAC,GAAAR,IAAA;EACd,MAAMS,mBAAmB,GAAGhB,sBAAsB,CAAC,CAAC;EACpD,MAAMW,EAAE,GAAGV,WAAW,CAACW,UAAU,CAAC;EAElC,MAAMK,oBAAoB,GAAGrB,OAAO,CAClC,OAAO;IACLiB;EACF,CAAC,CAAC,EACF,CAACA,UAAU,CACb,CAAC;EAED,OACER,KAAA,CAAAa,IAAA;IACEC,SAAS,EAAC,UAAU;IACpBC,QAAQ,EAAEP,UAAW;IACrBE,IAAI,EAAEA,IAAK;IACXJ,EAAE,EAAEA,EAAG;IACPU,EAAE,EAAE;MACFC,MAAM,EAAE,GAAG;MACXC,MAAM,EAAEP,mBAAmB,CAACQ,QAAQ;MACpCC,cAAc,EAAET,mBAAmB,CAACU,QAAQ;MAC5CC,QAAQ,EAAEX,mBAAmB,CAACY,uBAAuB;MACrDC,OAAO,EAAEb,mBAAmB,CAACQ,QAAQ;MAErC,cAAc,EAAE;QACdC,cAAc,EAAET,mBAAmB,CAACQ;MACtC;IACF,CAAE;IAAAf,QAAA,GAEFN,IAAA,CAACL,MAAM;MAAAW,QAAA,EAAEK;IAAM,CAAS,CAAC,EAExBJ,WAAW,IAAIP,IAAA,CAACJ,WAAW;MAACoB,SAAS,EAAC,GAAG;MAAAV,QAAA,EAAEC;IAAW,CAAc,CAAC,EAErEF,KAAK,EAENL,IAAA,CAACN,eAAe,CAACiC,QAAQ;MAACC,KAAK,EAAEd,oBAAqB;MAAAR,QAAA,EACnDA;IAAQ,CACe,CAAC;EAAA,CACxB,CAAC;AAEV,CAAC;AAED,MAAMuB,gBAAgB,GAAGrC,IAAI,CAACW,QAAQ,CAAC;AACvC0B,gBAAgB,CAACC,WAAW,GAAG,UAAU;AAEzC,SAASD,gBAAgB,IAAI1B,QAAQ"}
@@ -10,9 +10,9 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { useTheme as useMuiTheme } from "@mui/material/styles";
14
-
15
- import type { OdysseyTheme } from "./OdysseyTheme";
16
-
17
- export const useTheme = (...args: Parameters<typeof useMuiTheme>) =>
18
- useMuiTheme<OdysseyTheme>(...args);
13
+ import { createContext, useContext } from "react";
14
+ export const FieldsetContext = createContext({
15
+ isDisabled: false
16
+ });
17
+ export const useFieldset = () => useContext(FieldsetContext);
18
+ //# sourceMappingURL=FieldsetContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldsetContext.js","names":["createContext","useContext","FieldsetContext","isDisabled","useFieldset"],"sources":["../src/FieldsetContext.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 { createContext, useContext } from \"react\";\n\nexport type FieldsetContextValue = {\n isDisabled: boolean;\n};\n\nexport const FieldsetContext = createContext<FieldsetContextValue>({\n isDisabled: false,\n});\n\nexport const useFieldset = () => useContext(FieldsetContext);\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,aAAa,EAAEC,UAAU,QAAQ,OAAO;AAMjD,OAAO,MAAMC,eAAe,GAAGF,aAAa,CAAuB;EACjEG,UAAU,EAAE;AACd,CAAC,CAAC;AAEF,OAAO,MAAMC,WAAW,GAAGA,CAAA,KAAMH,UAAU,CAACC,eAAe,CAAC"}
package/dist/Form.js CHANGED
@@ -1,3 +1,4 @@
1
+ import _Box from "@mui/material/Box";
1
2
  /*!
2
3
  * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
4
  * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
@@ -11,18 +12,21 @@
11
12
  */
12
13
 
13
14
  import { memo } from "react";
14
- import { Box, Typography } from "./index.js";
15
+ import { Heading4, Support } from "./Typography.js";
15
16
  import { useUniqueId } from "./useUniqueId.js";
16
17
  import { jsx as _jsx } from "react/jsx-runtime";
17
18
  import { jsxs as _jsxs } from "react/jsx-runtime";
19
+ export const formEncodingTypeValues = ["application/x-www-form-urlencoded", "application/json", "multipart/form-data", "text/plain"];
20
+ export const formAutoCompleteTypeValues = ["on", "off"];
21
+ export const formMethodValues = ["post", "get", "dialog"];
18
22
  const Form = _ref => {
19
23
  let {
20
24
  alert,
25
+ autoCompleteType,
21
26
  children,
22
27
  description,
23
28
  encodingType,
24
29
  formActions,
25
- hasAutoComplete,
26
30
  id: idOverride,
27
31
  method,
28
32
  name,
@@ -31,9 +35,9 @@ const Form = _ref => {
31
35
  title
32
36
  } = _ref;
33
37
  const id = useUniqueId(idOverride);
34
- return _jsxs(Box, {
38
+ return _jsxs(_Box, {
35
39
  component: "form",
36
- autoComplete: hasAutoComplete,
40
+ autoComplete: autoCompleteType,
37
41
  name: name,
38
42
  encType: encodingType,
39
43
  method: method,
@@ -45,19 +49,27 @@ const Form = _ref => {
45
49
  margin: theme => theme.spacing(0),
46
50
  padding: theme => theme.spacing(0)
47
51
  },
48
- children: [title && _jsx(Typography, {
49
- variant: "h4",
50
- component: "h1",
51
- children: title
52
- }), description && _jsx(Typography, {
53
- paragraph: true,
54
- children: description
55
- }), alert, children, formActions && _jsx(Box, {
52
+ children: [_jsxs(_Box, {
53
+ component: "div",
54
+ sx: {
55
+ marginBlockEnd: theme => theme.spacing(4)
56
+ },
57
+ children: [title && _jsx(Heading4, {
58
+ component: "h1",
59
+ children: title
60
+ }), description && _jsx(Support, {
61
+ children: description
62
+ }), alert]
63
+ }), _jsx(_Box, {
64
+ component: "div",
65
+ children: children
66
+ }), formActions && _jsx(_Box, {
56
67
  component: "div",
57
68
  sx: {
58
69
  display: "flex",
59
70
  justifyContent: "flex-start",
60
- gap: theme => theme.spacing(1)
71
+ gap: theme => theme.spacing(1),
72
+ marginBlockStart: theme => theme.spacing(7)
61
73
  },
62
74
  children: formActions
63
75
  })]
package/dist/Form.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Form.js","names":["memo","Box","Typography","useUniqueId","jsx","_jsx","jsxs","_jsxs","Form","_ref","alert","children","description","encodingType","formActions","hasAutoComplete","id","idOverride","method","name","noValidate","target","title","component","autoComplete","encType","sx","maxWidth","theme","mixins","margin","spacing","padding","variant","paragraph","display","justifyContent","gap","MemoizedForm","displayName"],"sources":["../src/Form.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, ReactElement } from \"react\";\n\nimport { Box, Typography } from \"./\";\nimport { Button } from \"./Button\";\nimport { Infobox } from \"./Infobox\";\nimport { useUniqueId } from \"./useUniqueId\";\n\nexport type FormProps = {\n /**\n * The title of the Form\n */\n title?: string;\n /**\n * A supplementary description\n */\n description?: string;\n /**\n * The Field or FieldSet components within the Form\n */\n children: ReactElement | Array<ReactElement>;\n /**\n * An Infobox indicating a Form-wide error or status update.\n */\n alert?: ReactElement<typeof Infobox>;\n /**\n * Indicates whether input elements can by default have their values automatically completed by the browser.\n * `autocomplete` attributes on form elements override it on <form>\n */\n hasAutoComplete?: \"on\" | \"off\" | undefined;\n /**\n * The name of the form. The value must not be the empty string, and must be unique among the form elements in the forms collection that it is in, if any.\n */\n name: string;\n /**\n * This Boolean attribute indicates that the form shouldn't be validated when submitted.\n * If this attribute is not set (and therefore the form is validated),\n * it can be overridden by a formnovalidate attribute on a <button>, <input type=\"submit\">, or <input type=\"image\"> element belonging to the form.\n */\n noValidate?: boolean;\n /**\n * If the value of the method attribute is post, enctype is the MIME type of the form submission.\n * This value can be overridden by formenctype attributes on <button>, <input type=\"submit\">, or <input type=\"image\"> elements.\n */\n encodingType?:\n | \"application/x-www-form-urlencoded\"\n | \"multipart/form-data\"\n | \"text/plain\"\n | undefined;\n /**\n * The HTTP method to submit the form with.\n * This value is overridden by formmethod attributes on <button>, <input type=\"submit\">, or <input type=\"image\"> elements.\n */\n method?: \"post\" | \"get\" | \"dialog\" | undefined;\n /**\n * Indicates where to display the response after submitting the form. It is a name/keyword for a browsing context (for example, tab, window, or iframe).\n * This value can be overridden by a formtarget attribute on a <button>, <input type=\"submit\">, or <input type=\"image\"> element.\n */\n target?: \"post\" | \"get\" | \"dialog\" | undefined;\n /**\n * The Field or FieldGroup components within the Form\n */\n formActions?:\n | ReactElement<typeof Button>\n | Array<ReactElement<typeof Button>>;\n /**\n * Defines a unique identifier (ID) which must be unique in the whole document.\n */\n id?: string;\n};\n\nconst Form = ({\n alert,\n children,\n description,\n encodingType,\n formActions,\n hasAutoComplete,\n id: idOverride,\n method,\n name,\n noValidate = false,\n target,\n title,\n}: FormProps) => {\n const id = useUniqueId(idOverride);\n\n return (\n <Box\n component=\"form\"\n autoComplete={hasAutoComplete}\n name={name}\n encType={encodingType}\n method={method}\n noValidate={noValidate}\n target={target}\n id={id}\n sx={{\n maxWidth: (theme) => theme.mixins.maxWidth,\n margin: (theme) => theme.spacing(0),\n padding: (theme) => theme.spacing(0),\n }}\n >\n {title && (\n <Typography variant=\"h4\" component=\"h1\">\n {title}\n </Typography>\n )}\n {description && <Typography paragraph>{description}</Typography>}\n {alert}\n {children}\n {formActions && (\n <Box\n component=\"div\"\n sx={{\n display: \"flex\",\n justifyContent: \"flex-start\",\n gap: (theme) => theme.spacing(1),\n }}\n >\n {formActions}\n </Box>\n )}\n </Box>\n );\n};\n\nconst MemoizedForm = memo(Form);\nMemoizedForm.displayName = \"Form\";\n\nexport { MemoizedForm as Form };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAsB,OAAO;AAAC,SAElCC,GAAG,EAAEC,UAAU;AAAA,SAGfC,WAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAiEpB,MAAMC,IAAI,GAAGC,IAAA,IAaI;EAAA,IAbH;IACZC,KAAK;IACLC,QAAQ;IACRC,WAAW;IACXC,YAAY;IACZC,WAAW;IACXC,eAAe;IACfC,EAAE,EAAEC,UAAU;IACdC,MAAM;IACNC,IAAI;IACJC,UAAU,GAAG,KAAK;IAClBC,MAAM;IACNC;EACS,CAAC,GAAAb,IAAA;EACV,MAAMO,EAAE,GAAGb,WAAW,CAACc,UAAU,CAAC;EAElC,OACEV,KAAA,CAACN,GAAG;IACFsB,SAAS,EAAC,MAAM;IAChBC,YAAY,EAAET,eAAgB;IAC9BI,IAAI,EAAEA,IAAK;IACXM,OAAO,EAAEZ,YAAa;IACtBK,MAAM,EAAEA,MAAO;IACfE,UAAU,EAAEA,UAAW;IACvBC,MAAM,EAAEA,MAAO;IACfL,EAAE,EAAEA,EAAG;IACPU,EAAE,EAAE;MACFC,QAAQ,EAAGC,KAAK,IAAKA,KAAK,CAACC,MAAM,CAACF,QAAQ;MAC1CG,MAAM,EAAGF,KAAK,IAAKA,KAAK,CAACG,OAAO,CAAC,CAAC,CAAC;MACnCC,OAAO,EAAGJ,KAAK,IAAKA,KAAK,CAACG,OAAO,CAAC,CAAC;IACrC,CAAE;IAAApB,QAAA,GAEDW,KAAK,IACJjB,IAAA,CAACH,UAAU;MAAC+B,OAAO,EAAC,IAAI;MAACV,SAAS,EAAC,IAAI;MAAAZ,QAAA,EACpCW;IAAK,CACI,CACb,EACAV,WAAW,IAAIP,IAAA,CAACH,UAAU;MAACgC,SAAS;MAAAvB,QAAA,EAAEC;IAAW,CAAa,CAAC,EAC/DF,KAAK,EACLC,QAAQ,EACRG,WAAW,IACVT,IAAA,CAACJ,GAAG;MACFsB,SAAS,EAAC,KAAK;MACfG,EAAE,EAAE;QACFS,OAAO,EAAE,MAAM;QACfC,cAAc,EAAE,YAAY;QAC5BC,GAAG,EAAGT,KAAK,IAAKA,KAAK,CAACG,OAAO,CAAC,CAAC;MACjC,CAAE;MAAApB,QAAA,EAEDG;IAAW,CACT,CACN;EAAA,CACE,CAAC;AAEV,CAAC;AAED,MAAMwB,YAAY,GAAGtC,IAAI,CAACQ,IAAI,CAAC;AAC/B8B,YAAY,CAACC,WAAW,GAAG,MAAM;AAEjC,SAASD,YAAY,IAAI9B,IAAI"}
1
+ {"version":3,"file":"Form.js","names":["memo","Heading4","Support","useUniqueId","jsx","_jsx","jsxs","_jsxs","formEncodingTypeValues","formAutoCompleteTypeValues","formMethodValues","Form","_ref","alert","autoCompleteType","children","description","encodingType","formActions","id","idOverride","method","name","noValidate","target","title","_Box","component","autoComplete","encType","sx","maxWidth","theme","mixins","margin","spacing","padding","marginBlockEnd","display","justifyContent","gap","marginBlockStart","MemoizedForm","displayName"],"sources":["../src/Form.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, ReactElement } from \"react\";\n\nimport { Box } from \"@mui/material\";\nimport { Button } from \"./Button\";\nimport { Callout } from \"./Callout\";\nimport { Heading4, Support } from \"./Typography\";\nimport { useUniqueId } from \"./useUniqueId\";\n\nexport const formEncodingTypeValues = [\n \"application/x-www-form-urlencoded\",\n \"application/json\",\n \"multipart/form-data\",\n \"text/plain\",\n] as const;\nexport const formAutoCompleteTypeValues = [\"on\", \"off\"] as const;\nexport const formMethodValues = [\"post\", \"get\", \"dialog\"] as const;\n\nexport type FormProps = {\n /**\n * A Callout indicating a Form-wide error or status update.\n */\n alert?: ReactElement<typeof Callout>;\n /**\n * Indicates whether input elements can by default have their values automatically completed by the browser.\n * `autocomplete` attributes on form elements override it on <form>\n */\n autoCompleteType?: (typeof formAutoCompleteTypeValues)[number];\n /**\n * The Field or FieldSet components within the Form\n */\n children: ReactElement | Array<ReactElement>;\n /**\n * A supplementary description\n */\n description?: string;\n /**\n * If the value of the method attribute is post, enctype is the MIME type of the form submission.\n * This value can be overridden by formenctype attributes on <button>, <input type=\"submit\">, or <input type=\"image\"> elements.\n */\n encodingType?: (typeof formEncodingTypeValues)[number];\n /**\n * The Field or FieldGroup components within the Form\n */\n formActions?:\n | ReactElement<typeof Button>\n | Array<ReactElement<typeof Button>>;\n /**\n * Defines a unique identifier (ID) which must be unique in the whole document.\n */\n id?: string;\n /**\n * The HTTP method to submit the form with.\n * This value is overridden by formmethod attributes on <button>, <input type=\"submit\">, or <input type=\"image\"> elements.\n */\n method?: (typeof formMethodValues)[number];\n /**\n * The name of the form. The value must not be the empty string, and must be unique among the form elements in the forms collection that it is in, if any.\n */\n name: string;\n /**\n * This Boolean attribute indicates that the form shouldn't be validated when submitted.\n * If this attribute is not set (and therefore the form is validated),\n * it can be overridden by a formnovalidate attribute on a <button>, <input type=\"submit\">, or <input type=\"image\"> element belonging to the form.\n */\n noValidate?: boolean;\n /**\n * Indicates where to display the response after submitting the form. It is a name/keyword for a browsing context (for example, tab, window, or iframe).\n * This value can be overridden by a formtarget attribute on a <button>, <input type=\"submit\">, or <input type=\"image\"> element.\n */\n target?: string;\n /**\n * The title of the Form\n */\n title?: string;\n};\n\nconst Form = ({\n alert,\n autoCompleteType,\n children,\n description,\n encodingType,\n formActions,\n id: idOverride,\n method,\n name,\n noValidate = false,\n target,\n title,\n}: FormProps) => {\n const id = useUniqueId(idOverride);\n\n return (\n <Box\n component=\"form\"\n autoComplete={autoCompleteType}\n name={name}\n encType={encodingType}\n method={method}\n noValidate={noValidate}\n target={target}\n id={id}\n sx={{\n maxWidth: (theme) => theme.mixins.maxWidth,\n margin: (theme) => theme.spacing(0),\n padding: (theme) => theme.spacing(0),\n }}\n >\n <Box\n component=\"div\"\n sx={{\n marginBlockEnd: (theme) => theme.spacing(4),\n }}\n >\n {title && <Heading4 component=\"h1\">{title}</Heading4>}\n {description && <Support>{description}</Support>}\n {alert}\n </Box>\n <Box component=\"div\">{children}</Box>\n {formActions && (\n <Box\n component=\"div\"\n sx={{\n display: \"flex\",\n justifyContent: \"flex-start\",\n gap: (theme) => theme.spacing(1),\n marginBlockStart: (theme) => theme.spacing(7),\n }}\n >\n {formActions}\n </Box>\n )}\n </Box>\n );\n};\n\nconst MemoizedForm = memo(Form);\nMemoizedForm.displayName = \"Form\";\n\nexport { MemoizedForm as Form };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAsB,OAAO;AAAC,SAKlCC,QAAQ,EAAEC,OAAO;AAAA,SACjBC,WAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAEpB,OAAO,MAAMC,sBAAsB,GAAG,CACpC,mCAAmC,EACnC,kBAAkB,EAClB,qBAAqB,EACrB,YAAY,CACJ;AACV,OAAO,MAAMC,0BAA0B,GAAG,CAAC,IAAI,EAAE,KAAK,CAAU;AAChE,OAAO,MAAMC,gBAAgB,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAU;AA6DlE,MAAMC,IAAI,GAAGC,IAAA,IAaI;EAAA,IAbH;IACZC,KAAK;IACLC,gBAAgB;IAChBC,QAAQ;IACRC,WAAW;IACXC,YAAY;IACZC,WAAW;IACXC,EAAE,EAAEC,UAAU;IACdC,MAAM;IACNC,IAAI;IACJC,UAAU,GAAG,KAAK;IAClBC,MAAM;IACNC;EACS,CAAC,GAAAb,IAAA;EACV,MAAMO,EAAE,GAAGhB,WAAW,CAACiB,UAAU,CAAC;EAElC,OACEb,KAAA,CAAAmB,IAAA;IACEC,SAAS,EAAC,MAAM;IAChBC,YAAY,EAAEd,gBAAiB;IAC/BQ,IAAI,EAAEA,IAAK;IACXO,OAAO,EAAEZ,YAAa;IACtBI,MAAM,EAAEA,MAAO;IACfE,UAAU,EAAEA,UAAW;IACvBC,MAAM,EAAEA,MAAO;IACfL,EAAE,EAAEA,EAAG;IACPW,EAAE,EAAE;MACFC,QAAQ,EAAGC,KAAK,IAAKA,KAAK,CAACC,MAAM,CAACF,QAAQ;MAC1CG,MAAM,EAAGF,KAAK,IAAKA,KAAK,CAACG,OAAO,CAAC,CAAC,CAAC;MACnCC,OAAO,EAAGJ,KAAK,IAAKA,KAAK,CAACG,OAAO,CAAC,CAAC;IACrC,CAAE;IAAApB,QAAA,GAEFR,KAAA,CAAAmB,IAAA;MACEC,SAAS,EAAC,KAAK;MACfG,EAAE,EAAE;QACFO,cAAc,EAAGL,KAAK,IAAKA,KAAK,CAACG,OAAO,CAAC,CAAC;MAC5C,CAAE;MAAApB,QAAA,GAEDU,KAAK,IAAIpB,IAAA,CAACJ,QAAQ;QAAC0B,SAAS,EAAC,IAAI;QAAAZ,QAAA,EAAEU;MAAK,CAAW,CAAC,EACpDT,WAAW,IAAIX,IAAA,CAACH,OAAO;QAAAa,QAAA,EAAEC;MAAW,CAAU,CAAC,EAC/CH,KAAK;IAAA,CACH,CAAC,EACNR,IAAA,CAAAqB,IAAA;MAAKC,SAAS,EAAC,KAAK;MAAAZ,QAAA,EAAEA;IAAQ,CAAM,CAAC,EACpCG,WAAW,IACVb,IAAA,CAAAqB,IAAA;MACEC,SAAS,EAAC,KAAK;MACfG,EAAE,EAAE;QACFQ,OAAO,EAAE,MAAM;QACfC,cAAc,EAAE,YAAY;QAC5BC,GAAG,EAAGR,KAAK,IAAKA,KAAK,CAACG,OAAO,CAAC,CAAC,CAAC;QAChCM,gBAAgB,EAAGT,KAAK,IAAKA,KAAK,CAACG,OAAO,CAAC,CAAC;MAC9C,CAAE;MAAApB,QAAA,EAEDG;IAAW,CACT,CACN;EAAA,CACE,CAAC;AAEV,CAAC;AAED,MAAMwB,YAAY,GAAG1C,IAAI,CAACW,IAAI,CAAC;AAC/B+B,YAAY,CAACC,WAAW,GAAG,MAAM;AAEjC,SAASD,YAAY,IAAI/B,IAAI"}