@okta/odyssey-react-mui 0.15.0 → 0.15.2

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 (176) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/README.md +33 -9
  3. package/dist/components/Icon/Add.d.ts +1 -1
  4. package/dist/components/Icon/Add.js.map +1 -1
  5. package/dist/components/Icon/AddCircle.d.ts +1 -1
  6. package/dist/components/Icon/AddCircle.js.map +1 -1
  7. package/dist/components/Icon/AlertCircle.d.ts +1 -1
  8. package/dist/components/Icon/AlertCircle.js.map +1 -1
  9. package/dist/components/Icon/AlertCircleFilled.d.ts +1 -1
  10. package/dist/components/Icon/AlertCircleFilled.js.map +1 -1
  11. package/dist/components/Icon/AlertTriangleFilled.d.ts +1 -1
  12. package/dist/components/Icon/AlertTriangleFilled.js.map +1 -1
  13. package/dist/components/Icon/Anchor.d.ts +1 -1
  14. package/dist/components/Icon/Anchor.js.map +1 -1
  15. package/dist/components/Icon/ArrowDown.d.ts +1 -1
  16. package/dist/components/Icon/ArrowDown.js.map +1 -1
  17. package/dist/components/Icon/ArrowLeft.d.ts +1 -1
  18. package/dist/components/Icon/ArrowLeft.js.map +1 -1
  19. package/dist/components/Icon/ArrowRight.d.ts +1 -1
  20. package/dist/components/Icon/ArrowRight.js.map +1 -1
  21. package/dist/components/Icon/ArrowUp.d.ts +1 -1
  22. package/dist/components/Icon/ArrowUp.js.map +1 -1
  23. package/dist/components/Icon/ArrowUpDown.d.ts +16 -0
  24. package/dist/components/Icon/ArrowUpDown.d.ts.map +1 -0
  25. package/dist/components/Icon/ArrowUpDown.js +34 -0
  26. package/dist/components/Icon/ArrowUpDown.js.map +1 -0
  27. package/dist/components/Icon/Calendar.d.ts +1 -1
  28. package/dist/components/Icon/Calendar.js.map +1 -1
  29. package/dist/components/Icon/Check.d.ts +1 -1
  30. package/dist/components/Icon/Check.js.map +1 -1
  31. package/dist/components/Icon/CheckCircleFilled.d.ts +1 -1
  32. package/dist/components/Icon/CheckCircleFilled.js.map +1 -1
  33. package/dist/components/Icon/ChevronDown.d.ts +1 -1
  34. package/dist/components/Icon/ChevronDown.js.map +1 -1
  35. package/dist/components/Icon/ChevronUp.d.ts +1 -1
  36. package/dist/components/Icon/ChevronUp.js.map +1 -1
  37. package/dist/components/Icon/Close.d.ts +1 -1
  38. package/dist/components/Icon/Close.js.map +1 -1
  39. package/dist/components/Icon/CloseCircleFilled.d.ts +1 -1
  40. package/dist/components/Icon/CloseCircleFilled.js.map +1 -1
  41. package/dist/components/Icon/Copy.d.ts +1 -1
  42. package/dist/components/Icon/Copy.js.map +1 -1
  43. package/dist/components/Icon/Delete.d.ts +1 -1
  44. package/dist/components/Icon/Delete.js.map +1 -1
  45. package/dist/components/Icon/Download.d.ts +1 -1
  46. package/dist/components/Icon/Download.js.map +1 -1
  47. package/dist/components/Icon/DragHandle.d.ts +1 -1
  48. package/dist/components/Icon/DragHandle.js.map +1 -1
  49. package/dist/components/Icon/Edit.d.ts +1 -1
  50. package/dist/components/Icon/Edit.js.map +1 -1
  51. package/dist/components/Icon/ExternalLink.d.ts +1 -1
  52. package/dist/components/Icon/ExternalLink.js.map +1 -1
  53. package/dist/components/Icon/Eye.d.ts +1 -1
  54. package/dist/components/Icon/Eye.js.map +1 -1
  55. package/dist/components/Icon/EyeOff.d.ts +1 -1
  56. package/dist/components/Icon/EyeOff.js.map +1 -1
  57. package/dist/components/Icon/Filter.d.ts +1 -1
  58. package/dist/components/Icon/Filter.js.map +1 -1
  59. package/dist/components/Icon/Globe.d.ts +1 -1
  60. package/dist/components/Icon/Globe.js.map +1 -1
  61. package/dist/components/Icon/Home.d.ts +1 -1
  62. package/dist/components/Icon/Home.js.map +1 -1
  63. package/dist/components/Icon/Icon.d.ts +1 -1
  64. package/dist/components/Icon/Icon.js +6 -5
  65. package/dist/components/Icon/Icon.js.map +1 -1
  66. package/dist/components/Icon/InformationCircle.d.ts +1 -1
  67. package/dist/components/Icon/InformationCircle.js.map +1 -1
  68. package/dist/components/Icon/InformationCircleFilled.d.ts +1 -1
  69. package/dist/components/Icon/InformationCircleFilled.js.map +1 -1
  70. package/dist/components/Icon/Notification.d.ts +1 -1
  71. package/dist/components/Icon/Notification.js.map +1 -1
  72. package/dist/components/Icon/OverflowVertical.d.ts +1 -1
  73. package/dist/components/Icon/OverflowVertical.js.map +1 -1
  74. package/dist/components/Icon/QuestionCircle.d.ts +1 -1
  75. package/dist/components/Icon/QuestionCircle.js.map +1 -1
  76. package/dist/components/Icon/QuestionCircleFilled.d.ts +1 -1
  77. package/dist/components/Icon/QuestionCircleFilled.js.map +1 -1
  78. package/dist/components/Icon/Search.d.ts +1 -1
  79. package/dist/components/Icon/Search.js.map +1 -1
  80. package/dist/components/Icon/Settings.d.ts +1 -1
  81. package/dist/components/Icon/Settings.js.map +1 -1
  82. package/dist/components/Icon/Subtract.d.ts +1 -1
  83. package/dist/components/Icon/Subtract.js.map +1 -1
  84. package/dist/components/Icon/SvgIcon.js.map +1 -1
  85. package/dist/components/Icon/User.d.ts +1 -1
  86. package/dist/components/Icon/User.js.map +1 -1
  87. package/dist/components/Icon/UserGroup.d.ts +1 -1
  88. package/dist/components/Icon/UserGroup.js.map +1 -1
  89. package/dist/components/Icon/index.d.ts +41 -39
  90. package/dist/components/Icon/index.d.ts.map +1 -1
  91. package/dist/components/Icon/index.js +3 -0
  92. package/dist/components/Icon/index.js.map +1 -1
  93. package/dist/components/Icon/types.js.map +1 -1
  94. package/dist/components/Link/Link.d.ts +1 -1
  95. package/dist/components/Link/Link.js +1 -1
  96. package/dist/components/Link/Link.js.map +1 -1
  97. package/dist/components/Link/index.js.map +1 -1
  98. package/dist/components/PasswordInput/PasswordInput.d.ts +1 -1
  99. package/dist/components/PasswordInput/PasswordInput.js +5 -7
  100. package/dist/components/PasswordInput/PasswordInput.js.map +1 -1
  101. package/dist/components/PasswordInput/index.js.map +1 -1
  102. package/dist/components/ThemeProvider/ThemeProvider.d.ts +16 -0
  103. package/dist/components/ThemeProvider/ThemeProvider.d.ts.map +1 -0
  104. package/dist/components/ThemeProvider/ThemeProvider.js +24 -0
  105. package/dist/components/ThemeProvider/ThemeProvider.js.map +1 -0
  106. package/dist/components/ThemeProvider/index.d.ts +13 -0
  107. package/dist/components/ThemeProvider/index.d.ts.map +1 -0
  108. package/dist/components/ThemeProvider/index.js +13 -0
  109. package/dist/components/ThemeProvider/index.js.map +1 -0
  110. package/dist/components/index.d.ts +3 -2
  111. package/dist/components/index.d.ts.map +1 -1
  112. package/dist/components/index.js +3 -2
  113. package/dist/components/index.js.map +1 -1
  114. package/dist/index.d.ts +7 -0
  115. package/dist/index.d.ts.map +1 -1
  116. package/dist/index.js +5 -0
  117. package/dist/index.js.map +1 -1
  118. package/dist/themes/index.js.map +1 -1
  119. package/dist/themes/odyssey/components.d.ts.map +1 -1
  120. package/dist/themes/odyssey/components.js +1068 -600
  121. package/dist/themes/odyssey/components.js.map +1 -1
  122. package/dist/themes/odyssey/components.types.d.ts +15 -1
  123. package/dist/themes/odyssey/components.types.d.ts.map +1 -1
  124. package/dist/themes/odyssey/components.types.js.map +1 -1
  125. package/dist/themes/odyssey/index.js.map +1 -1
  126. package/dist/themes/odyssey/mixins.js.map +1 -1
  127. package/dist/themes/odyssey/mixins.types.js.map +1 -1
  128. package/dist/themes/odyssey/palette.js.map +1 -1
  129. package/dist/themes/odyssey/palette.types.js.map +1 -1
  130. package/dist/themes/odyssey/shape.d.ts.map +1 -1
  131. package/dist/themes/odyssey/shape.js +2 -1
  132. package/dist/themes/odyssey/shape.js.map +1 -1
  133. package/dist/themes/odyssey/spacing.js.map +1 -1
  134. package/dist/themes/odyssey/theme.d.ts +2 -2
  135. package/dist/themes/odyssey/theme.d.ts.map +1 -1
  136. package/dist/themes/odyssey/theme.js +8 -8
  137. package/dist/themes/odyssey/theme.js.map +1 -1
  138. package/dist/themes/odyssey/typography.js +6 -6
  139. package/dist/themes/odyssey/typography.js.map +1 -1
  140. package/dist/themes/odyssey/typography.types.d.ts +0 -1
  141. package/dist/themes/odyssey/typography.types.d.ts.map +1 -1
  142. package/dist/themes/odyssey/typography.types.js.map +1 -1
  143. package/dist/utils/{oid.d.ts → createUniqueId.d.ts} +3 -4
  144. package/dist/utils/createUniqueId.d.ts.map +1 -0
  145. package/dist/utils/{oid.js → createUniqueId.js} +3 -9
  146. package/dist/utils/createUniqueId.js.map +1 -0
  147. package/dist/utils/index.d.ts +2 -1
  148. package/dist/utils/index.d.ts.map +1 -1
  149. package/dist/utils/index.js +2 -1
  150. package/dist/utils/index.js.map +1 -1
  151. package/dist/utils/useUniqueId.d.ts +13 -0
  152. package/dist/utils/useUniqueId.d.ts.map +1 -0
  153. package/dist/utils/useUniqueId.js +18 -0
  154. package/dist/utils/useUniqueId.js.map +1 -0
  155. package/jest.config.cjs +1 -0
  156. package/package.json +8 -5
  157. package/src/components/Icon/ArrowUpDown.tsx +44 -0
  158. package/src/components/Icon/index.tsx +4 -0
  159. package/src/components/Link/Link.tsx +1 -1
  160. package/src/components/PasswordInput/PasswordInput.tsx +4 -4
  161. package/src/components/ThemeProvider/ThemeProvider.tsx +20 -0
  162. package/src/components/ThemeProvider/index.ts +13 -0
  163. package/src/components/index.ts +3 -2
  164. package/src/index.ts +80 -0
  165. package/src/themes/odyssey/components.tsx +362 -10
  166. package/src/themes/odyssey/components.types.ts +17 -1
  167. package/src/themes/odyssey/shape.ts +7 -1
  168. package/src/themes/odyssey/theme.ts +7 -7
  169. package/src/themes/odyssey/typography.ts +6 -6
  170. package/src/themes/odyssey/typography.types.ts +4 -5
  171. package/src/utils/{oid.test.ts → createUniqueId.test.ts} +5 -4
  172. package/src/utils/{oid.ts → createUniqueId.ts} +4 -9
  173. package/src/utils/index.ts +2 -1
  174. package/src/utils/useUniqueId.ts +21 -0
  175. package/dist/utils/oid.d.ts.map +0 -1
  176. package/dist/utils/oid.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/themes/odyssey/typography.ts"],"names":["Tokens","typography","htmlFontSize","fontFamily","FontFamilyBase","fontSize","fontWeightLight","fontWeightRegular","Number","FontWeightNormal","fontWeightMedium","fontWeightBold","FontWeightBold","allVariants","fontFeatureSettings","fontVariant","letterSpacing","h1","fontWeight","FontSizeHeading1","lineHeight","FontLineHeightHeading1","marginBottom","SpaceScale1","h2","FontSizeHeading2","FontLineHeightHeading2","h3","FontSizeHeading3","FontLineHeightHeading3","h4","FontSizeHeading4","FontLineHeightHeading4","h5","FontSizeHeading5","FontLineHeightHeading5","h6","FontScale2","FontLineHeightHeading6","subtitle1","FontScale0","FontLineHeightBody","subtitle2","undefined","body1","FontScale1","body2","button","overline","legend","padding"],"mappings":"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","sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\nimport * as Tokens from \"@okta/odyssey-design-tokens\";\n\nexport const typography: ThemeOptions[\"typography\"] = {\n htmlFontSize: 16,\n fontFamily: Tokens.FontFamilyBase,\n fontSize: 14,\n fontWeightLight: 300,\n fontWeightRegular: Number(Tokens.FontWeightNormal),\n fontWeightMedium: 500,\n fontWeightBold: Number(Tokens.FontWeightBold),\n allVariants: {\n fontFamily: Tokens.FontFamilyBase,\n fontFeatureSettings: \"'lnum', 'pnum'\",\n fontVariant: \"normal\",\n letterSpacing: 0,\n },\n h1: {\n fontWeight: Tokens.FontWeightBold,\n fontSize: Tokens.FontSizeHeading1,\n lineHeight: Tokens.FontLineHeightHeading1,\n marginBottom: Tokens.SpaceScale1,\n },\n h2: {\n fontWeight: Tokens.FontWeightBold,\n fontSize: Tokens.FontSizeHeading2,\n lineHeight: Tokens.FontLineHeightHeading2,\n marginBottom: Tokens.SpaceScale1,\n },\n h3: {\n fontWeight: Tokens.FontWeightBold,\n fontSize: Tokens.FontSizeHeading3,\n lineHeight: Tokens.FontLineHeightHeading3,\n marginBottom: Tokens.SpaceScale1,\n },\n h4: {\n fontWeight: Tokens.FontWeightBold,\n fontSize: Tokens.FontSizeHeading4,\n lineHeight: Tokens.FontLineHeightHeading4,\n marginBottom: Tokens.SpaceScale1,\n },\n h5: {\n fontWeight: Tokens.FontWeightBold,\n fontSize: Tokens.FontSizeHeading5,\n lineHeight: Tokens.FontLineHeightHeading5,\n marginBottom: Tokens.SpaceScale1,\n },\n h6: {\n fontWeight: Tokens.FontWeightBold,\n fontSize: Tokens.FontScale2,\n lineHeight: Tokens.FontLineHeightHeading6,\n marginBottom: Tokens.SpaceScale1,\n },\n subtitle1: {\n fontWeight: Tokens.FontWeightNormal,\n fontSize: Tokens.FontScale0,\n lineHeight: Tokens.FontLineHeightBody,\n },\n subtitle2: undefined,\n body1: {\n fontFamily: Tokens.FontFamilyBase,\n fontWeight: Number(Tokens.FontWeightNormal),\n fontSize: Tokens.FontScale1,\n fontFeatureSettings: \"'lnum', 'pnum'\",\n fontVariant: \"normal\",\n lineHeight: Tokens.FontLineHeightBody,\n letterSpacing: \"initial\",\n },\n body2: undefined,\n button: undefined,\n overline: undefined,\n legend: {\n padding: 0,\n fontWeight: Number(Tokens.FontWeightBold),\n fontSize: Tokens.FontScale2,\n lineHeight: Tokens.FontLineHeightHeading6,\n marginBottom: Tokens.SpaceScale1,\n },\n};\n"],"file":"typography.js"}
1
+ {"version":3,"file":"typography.js","names":["Tokens","typography","htmlFontSize","fontFamily","FontFamilyBase","fontSize","fontWeightLight","fontWeightRegular","Number","FontWeightNormal","fontWeightMedium","fontWeightBold","FontWeightBold","allVariants","fontFeatureSettings","fontVariant","letterSpacing","h1","fontWeight","FontSizeHeading1","lineHeight","FontLineHeightHeading1","marginBottom","SpaceScale1","h2","FontSizeHeading2","FontLineHeightHeading2","h3","FontSizeHeading3","FontLineHeightHeading3","h4","FontSizeHeading4","FontLineHeightHeading4","h5","FontSizeHeading5","FontLineHeightHeading5","h6","FontScale2","FontLineHeightHeading6","subtitle1","FontScale0","FontLineHeightBody","subtitle2","undefined","body1","FontScale1","body2","button","overline","legend","padding"],"sources":["../../../src/themes/odyssey/typography.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\nimport * as Tokens from \"@okta/odyssey-design-tokens\";\n\nexport const typography: ThemeOptions[\"typography\"] = {\n htmlFontSize: 16,\n fontFamily: Tokens.FontFamilyBase,\n fontSize: 14,\n fontWeightLight: 300,\n fontWeightRegular: Number(Tokens.FontWeightNormal),\n fontWeightMedium: 500,\n fontWeightBold: Number(Tokens.FontWeightBold),\n allVariants: {\n fontFamily: Tokens.FontFamilyBase,\n fontFeatureSettings: \"'lnum', 'pnum'\",\n fontVariant: \"normal\",\n letterSpacing: 0,\n },\n h1: {\n fontWeight: Number(Tokens.FontWeightBold),\n fontSize: Tokens.FontSizeHeading1,\n lineHeight: Tokens.FontLineHeightHeading1,\n marginBottom: Tokens.SpaceScale1,\n },\n h2: {\n fontWeight: Number(Tokens.FontWeightBold),\n fontSize: Tokens.FontSizeHeading2,\n lineHeight: Tokens.FontLineHeightHeading2,\n marginBottom: Tokens.SpaceScale1,\n },\n h3: {\n fontWeight: Number(Tokens.FontWeightBold),\n fontSize: Tokens.FontSizeHeading3,\n lineHeight: Tokens.FontLineHeightHeading3,\n marginBottom: Tokens.SpaceScale1,\n },\n h4: {\n fontWeight: Number(Tokens.FontWeightBold),\n fontSize: Tokens.FontSizeHeading4,\n lineHeight: Tokens.FontLineHeightHeading4,\n marginBottom: Tokens.SpaceScale1,\n },\n h5: {\n fontWeight: Number(Tokens.FontWeightBold),\n fontSize: Tokens.FontSizeHeading5,\n lineHeight: Tokens.FontLineHeightHeading5,\n marginBottom: Tokens.SpaceScale1,\n },\n h6: {\n fontWeight: Number(Tokens.FontWeightBold),\n fontSize: Tokens.FontScale2,\n lineHeight: Tokens.FontLineHeightHeading6,\n marginBottom: Tokens.SpaceScale1,\n },\n subtitle1: {\n fontWeight: Tokens.FontWeightNormal,\n fontSize: Tokens.FontScale0,\n lineHeight: Tokens.FontLineHeightBody,\n },\n subtitle2: undefined,\n body1: {\n fontFamily: Tokens.FontFamilyBase,\n fontWeight: Number(Tokens.FontWeightNormal),\n fontSize: Tokens.FontScale1,\n fontFeatureSettings: \"'lnum', 'pnum'\",\n fontVariant: \"normal\",\n lineHeight: Tokens.FontLineHeightBody,\n letterSpacing: \"initial\",\n },\n body2: undefined,\n button: undefined,\n overline: undefined,\n legend: {\n padding: 0,\n fontWeight: Number(Tokens.FontWeightBold),\n fontSize: Tokens.FontScale2,\n lineHeight: Tokens.FontLineHeightHeading6,\n marginBottom: Tokens.SpaceScale1,\n },\n};\n"],"mappings":"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"}
@@ -24,7 +24,6 @@ declare module "@mui/material/Typography" {
24
24
  interface TypographyPropsVariantOverrides {
25
25
  body1: true;
26
26
  body2: false;
27
- body: true;
28
27
  button: false;
29
28
  kbd: true;
30
29
  legend: true;
@@ -1 +1 @@
1
- {"version":3,"file":"typography.types.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/typography.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,kBAAkB;QAC1B,GAAG,EAAE,aAAa,CAAC;QACnB,MAAM,EAAE,aAAa,CAAC;KACvB;IACD,UAAU,yBAAyB;QACjC,GAAG,CAAC,EAAE,aAAa,CAAC;QACpB,MAAM,CAAC,EAAE,aAAa,CAAC;KACxB;CACF;AAED,OAAO,QAAQ,0BAA0B,CAAC;IACxC,UAAU,+BAA+B;QACvC,KAAK,EAAE,IAAI,CAAC;QACZ,KAAK,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,IAAI,CAAC;QACX,MAAM,EAAE,KAAK,CAAC;QACd,GAAG,EAAE,IAAI,CAAC;QACV,MAAM,EAAE,IAAI,CAAC;QACb,QAAQ,EAAE,KAAK,CAAC;QAChB,SAAS,EAAE,IAAI,CAAC;QAChB,SAAS,EAAE,KAAK,CAAC;QACjB,OAAO,EAAE,IAAI,CAAC;QACd,UAAU,EAAE,IAAI,CAAC;KAClB;CACF;AAED,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"typography.types.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/typography.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,kBAAkB;QAC1B,GAAG,EAAE,aAAa,CAAC;QACnB,MAAM,EAAE,aAAa,CAAC;KACvB;IACD,UAAU,yBAAyB;QACjC,GAAG,CAAC,EAAE,aAAa,CAAC;QACpB,MAAM,CAAC,EAAE,aAAa,CAAC;KACxB;CACF;AAED,OAAO,QAAQ,0BAA0B,CAAC;IACxC,UAAU,+BAA+B;QACvC,KAAK,EAAE,IAAI,CAAC;QACZ,KAAK,EAAE,KAAK,CAAC;QACb,MAAM,EAAE,KAAK,CAAC;QACd,GAAG,EAAE,IAAI,CAAC;QACV,MAAM,EAAE,IAAI,CAAC;QACb,QAAQ,EAAE,KAAK,CAAC;QAChB,SAAS,EAAE,IAAI,CAAC;QAChB,SAAS,EAAE,KAAK,CAAC;QACjB,OAAO,EAAE,IAAI,CAAC;QACd,UAAU,EAAE,IAAI,CAAC;KAClB;CACF;AAED,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/themes/odyssey/typography.types.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA+BA","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 { CSSProperties } from \"react\";\n\ndeclare module \"@mui/material/styles\" {\n interface TypographyVariants {\n kbd: CSSProperties;\n legend: CSSProperties;\n }\n interface TypographyVariantsOptions {\n kbd?: CSSProperties;\n legend?: CSSProperties;\n }\n}\n\ndeclare module \"@mui/material/Typography\" {\n interface TypographyPropsVariantOverrides {\n body1: true;\n body2: false;\n body: true;\n button: false;\n kbd: true;\n legend: true;\n overline: false;\n subtitle1: true;\n subtitle2: false;\n default: true; // used by Link\n monochrome: true; // used by Link\n }\n}\n\nexport {};\n"],"file":"typography.types.js"}
1
+ {"version":3,"file":"typography.types.js","names":[],"sources":["../../../src/themes/odyssey/typography.types.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { CSSProperties } from \"react\";\n\ndeclare module \"@mui/material/styles\" {\n interface TypographyVariants {\n kbd: CSSProperties;\n legend: CSSProperties;\n }\n interface TypographyVariantsOptions {\n kbd?: CSSProperties;\n legend?: CSSProperties;\n }\n}\n\ndeclare module \"@mui/material/Typography\" {\n interface TypographyPropsVariantOverrides {\n body1: true; // Design may refer to this as \"body\"\n body2: false;\n button: false;\n kbd: true;\n legend: true;\n overline: false;\n subtitle1: true; // Design may refer to this as \"caption\"\n subtitle2: false;\n default: true; // used by <Link>\n monochrome: true; // used by <Link>\n }\n}\n\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA8BA"}
@@ -9,7 +9,6 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
- export declare const length = 6;
13
- export declare const oid: () => string;
14
- export declare const useOid: (id?: string | undefined) => string;
15
- //# sourceMappingURL=oid.d.ts.map
12
+ export declare const uniqueIdLength = 6;
13
+ export declare const createUniqueId: () => string;
14
+ //# sourceMappingURL=createUniqueId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createUniqueId.d.ts","sourceRoot":"","sources":["../../src/utils/createUniqueId.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC,eAAO,MAAM,cAAc,QAAO,MACiB,CAAC"}
@@ -9,12 +9,6 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
- import { useMemo } from "react";
13
- export const length = 6;
14
- export const oid = () => Math.random().toString(36).slice(-length);
15
- export const useOid = id => {
16
- const _oid = useMemo(oid, [oid]);
17
-
18
- return id || _oid;
19
- };
20
- //# sourceMappingURL=oid.js.map
12
+ export const uniqueIdLength = 6;
13
+ export const createUniqueId = () => Math.random().toString(36).slice(-uniqueIdLength);
14
+ //# sourceMappingURL=createUniqueId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createUniqueId.js","names":["uniqueIdLength","createUniqueId","Math","random","toString","slice"],"sources":["../../src/utils/createUniqueId.ts"],"sourcesContent":["/*!\n * Copyright (c) 2021-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\n// This is a random number chosen to shrink down the unique ID to an arbitrary length.\nexport const uniqueIdLength = 6;\n\nexport const createUniqueId = (): string =>\n Math.random().toString(36).slice(-uniqueIdLength);\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,OAAO,MAAMA,cAAc,GAAG,CAAvB;AAEP,OAAO,MAAMC,cAAc,GAAG,MAC5BC,IAAI,CAACC,MAAL,GAAcC,QAAd,CAAuB,EAAvB,EAA2BC,KAA3B,CAAiC,CAACL,cAAlC,CADK"}
@@ -9,5 +9,6 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
- export { oid, useOid } from "./oid";
12
+ export * from "./createUniqueId";
13
+ export * from "./useUniqueId";
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
@@ -9,5 +9,6 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
- export { oid, useOid } from "./oid.js";
12
+ export * from "./createUniqueId.js";
13
+ export * from "./useUniqueId.js";
13
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/utils/index.ts"],"names":["oid","useOid"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;SAESA,G,EAAKC,M","sourcesContent":["/*!\n * Copyright (c) 2021-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport { oid, useOid } from \"./oid\";\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/utils/index.ts"],"sourcesContent":["/*!\n * Copyright (c) 2021-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport * from \"./createUniqueId\";\nexport * from \"./useUniqueId\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
4
+ *
5
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
6
+ * Unless required by applicable law or agreed to in writing, software
7
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
8
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
+ *
10
+ * See the License for the specific language governing permissions and limitations under the License.
11
+ */
12
+ export declare const useUniqueId: (id?: string) => string;
13
+ //# sourceMappingURL=useUniqueId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUniqueId.d.ts","sourceRoot":"","sources":["../../src/utils/useUniqueId.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAMH,eAAO,MAAM,WAAW,QAAS,MAAM,KAAG,MAIzC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /*!
2
+ * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
4
+ *
5
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
6
+ * Unless required by applicable law or agreed to in writing, software
7
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
8
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
+ *
10
+ * See the License for the specific language governing permissions and limitations under the License.
11
+ */
12
+ import { useMemo } from "react";
13
+ import { createUniqueId } from "./createUniqueId.js";
14
+ export const useUniqueId = id => {
15
+ const uniqueId = useMemo(() => createUniqueId(), []);
16
+ return id || uniqueId;
17
+ };
18
+ //# sourceMappingURL=useUniqueId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUniqueId.js","names":["useMemo","createUniqueId","useUniqueId","id","uniqueId"],"sources":["../../src/utils/useUniqueId.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useMemo } from \"react\";\n\nimport { createUniqueId } from \"./createUniqueId\";\n\nexport const useUniqueId = (id?: string): string => {\n const uniqueId = useMemo(() => createUniqueId(), []);\n\n return id || uniqueId;\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,OAAT,QAAwB,OAAxB;SAESC,c;AAET,OAAO,MAAMC,WAAW,GAAIC,EAAD,IAAyB;EAClD,MAAMC,QAAQ,GAAGJ,OAAO,CAAC,MAAMC,cAAc,EAArB,EAAyB,EAAzB,CAAxB;EAEA,OAAOE,EAAE,IAAIC,QAAb;AACD,CAJM"}
package/jest.config.cjs CHANGED
@@ -12,4 +12,5 @@
12
12
 
13
13
  module.exports = {
14
14
  setupFilesAfterEnv: ["./jest.setup.js"],
15
+ testEnvironment: "jsdom",
15
16
  };
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@okta/odyssey-react-mui",
3
- "version": "0.15.0",
3
+ "version": "0.15.2",
4
4
  "description": "React MUI components for Odyssey, Okta's design system",
5
5
  "author": "Okta, Inc.",
6
6
  "license": "Apache-2.0",
7
+ "sideEffects": false,
7
8
  "main": "dist/index.js",
8
9
  "module": "dist/index.js",
9
10
  "types": "dist/index.d.ts",
@@ -18,15 +19,17 @@
18
19
  "directory": "packages/odyssey-react-mui"
19
20
  },
20
21
  "dependencies": {
21
- "@okta/odyssey-design-tokens": "^0.15.0"
22
+ "@mui/icons-material": "^5.10.3",
23
+ "@mui/lab": "^5.0.0-alpha.103",
24
+ "@mui/material": "^5.10.5",
25
+ "@mui/utils": "^5.10.3",
26
+ "@okta/odyssey-design-tokens": "^0.15.2"
22
27
  },
23
28
  "peerDependencies": {
24
29
  "@emotion/react": "^11",
25
30
  "@emotion/styled": "^11",
26
- "@mui/icons-material": "^5",
27
- "@mui/material": "^5.9.0",
28
31
  "react": ">=17 <19",
29
32
  "react-dom": ">=17 <19"
30
33
  },
31
- "gitHead": "0b9b95e150ac14ec2d65e74d97353ee8b869536b"
34
+ "gitHead": "fadeba32af958366b356d424c7a0a8dfcdf7a3f3"
32
35
  }
@@ -0,0 +1,44 @@
1
+ /*!
2
+ * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
4
+ *
5
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
6
+ * Unless required by applicable law or agreed to in writing, software
7
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
8
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
+ *
10
+ * See the License for the specific language governing permissions and limitations under the License.
11
+ */
12
+
13
+ // Code automatically generated by svgr; DO NOT EDIT.
14
+
15
+ import { forwardRef } from "react";
16
+ import { SvgIcon } from "./SvgIcon";
17
+ import type { SvgIconNoChildrenProps } from "./types";
18
+
19
+ export type ArrowUpDownIconProps = SvgIconNoChildrenProps;
20
+
21
+ export const ArrowUpDownIcon = forwardRef<SVGSVGElement, ArrowUpDownIconProps>(
22
+ (props, ref) => {
23
+ return (
24
+ <SvgIcon
25
+ viewBox="0 0 16 16"
26
+ fill="none"
27
+ xmlns="http://www.w3.org/2000/svg"
28
+ ref={ref}
29
+ {...props}
30
+ >
31
+ <>
32
+ <path
33
+ fillRule="evenodd"
34
+ clipRule="evenodd"
35
+ d="M5.00001 12V3.70711L7.64645 6.35355L8.35356 5.64645L4.85356 2.14645C4.6583 1.95118 4.34172 1.95118 4.14646 2.14645L0.646454 5.64645L1.35356 6.35355L4.00001 3.70711L4.00001 12H5.00001ZM11 4L11 12.2929L8.35357 9.64644L7.64647 10.3536L11.1465 13.8536C11.3417 14.0488 11.6583 14.0488 11.8536 13.8536L15.3536 10.3536L14.6465 9.64644L12 12.2929L12 4L11 4Z"
36
+ fill="currentColor"
37
+ />
38
+ </>
39
+ </SvgIcon>
40
+ );
41
+ }
42
+ );
43
+
44
+ ArrowUpDownIcon.displayName = "ArrowUpDownIcon";
@@ -41,6 +41,9 @@ export * from "./ArrowLeft";
41
41
  import { ArrowRightIcon } from "./ArrowRight";
42
42
  export * from "./ArrowRight";
43
43
 
44
+ import { ArrowUpDownIcon } from "./ArrowUpDown";
45
+ export * from "./ArrowUpDown";
46
+
44
47
  import { ArrowUpIcon } from "./ArrowUp";
45
48
  export * from "./ArrowUp";
46
49
 
@@ -141,6 +144,7 @@ export const iconDictionary = {
141
144
  "arrow-down": ArrowDownIcon,
142
145
  "arrow-left": ArrowLeftIcon,
143
146
  "arrow-right": ArrowRightIcon,
147
+ "arrow-up-down": ArrowUpDownIcon,
144
148
  "arrow-up": ArrowUpIcon,
145
149
  calendar: CalendarIcon,
146
150
  "check-circle-filled": CheckCircleFilledIcon,
@@ -24,7 +24,7 @@ export const Link = forwardRef<HTMLLinkElement | HTMLAnchorElement, LinkProps>(
24
24
  const { icon, children, target } = props;
25
25
  return (
26
26
  <MuiLink {...props}>
27
- <span className="Link-icon">{icon}</span>
27
+ {icon && <span className="Link-icon">{icon}</span>}
28
28
  {children}
29
29
  {target === "_blank" && (
30
30
  <span className="Link-indicator" role="presentation">
@@ -22,7 +22,7 @@ import {
22
22
  InputAdornment,
23
23
  } from "@mui/material";
24
24
  import { Visibility, VisibilityOff } from "@mui/icons-material";
25
- import { useOid } from "../../utils";
25
+ import { useUniqueId } from "../../utils";
26
26
 
27
27
  interface State {
28
28
  password: string;
@@ -77,14 +77,14 @@ export const PasswordInput = forwardRef<HTMLInputElement, PasswordInputProps>(
77
77
  : tooltipLabel;
78
78
  }, [values, tooltipLabel]);
79
79
 
80
- const oid = useOid(id);
80
+ const uniqueId = useUniqueId(id);
81
81
 
82
82
  return (
83
83
  <Box>
84
- <InputLabel htmlFor={oid}>{label}</InputLabel>
84
+ <InputLabel htmlFor={uniqueId}>{label}</InputLabel>
85
85
  <OutlinedInput
86
86
  {...rest}
87
- id={oid}
87
+ id={uniqueId}
88
88
  inputProps={inputProps}
89
89
  inputRef={ref}
90
90
  onChange={handlePasswordChange}
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
4
+ *
5
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
6
+ * Unless required by applicable law or agreed to in writing, software
7
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
8
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
+ *
10
+ * See the License for the specific language governing permissions and limitations under the License.
11
+ */
12
+
13
+ import { ThemeProvider as MuiThemeProvider } from "@mui/material/styles";
14
+ import { ReactElement } from "react";
15
+
16
+ import { odysseyTheme } from "../../themes";
17
+
18
+ export const ThemeProvider = ({ children }: { children: ReactElement }) => (
19
+ <MuiThemeProvider theme={odysseyTheme}>{children}</MuiThemeProvider>
20
+ );
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
4
+ *
5
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
6
+ * Unless required by applicable law or agreed to in writing, software
7
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
8
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
+ *
10
+ * See the License for the specific language governing permissions and limitations under the License.
11
+ */
12
+
13
+ export * from "./ThemeProvider";
@@ -10,6 +10,7 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- export * from "./PasswordInput";
14
- export * from "./Link";
15
13
  export * from "./Icon";
14
+ export * from "./Link";
15
+ export * from "./PasswordInput";
16
+ export * from "./ThemeProvider";
package/src/index.ts CHANGED
@@ -10,5 +10,85 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
 
13
+ export {
14
+ Alert,
15
+ AlertTitle,
16
+ Box,
17
+ Button,
18
+ Checkbox,
19
+ CircularProgress,
20
+ CssBaseline,
21
+ FormControl,
22
+ FormControlLabel,
23
+ FormGroup,
24
+ FormHelperText,
25
+ FormLabel,
26
+ InputAdornment,
27
+ InputLabel,
28
+ OutlinedInput,
29
+ Radio,
30
+ RadioGroup,
31
+ Select,
32
+ Snackbar,
33
+ Stack,
34
+ SvgIcon,
35
+ Tab,
36
+ Table,
37
+ TableBody,
38
+ TableCell,
39
+ TableContainer,
40
+ TableHead,
41
+ TableRow,
42
+ TableSortLabel,
43
+ ThemeProvider as MuiThemeProvider,
44
+ Tooltip,
45
+ Typography,
46
+ useTheme,
47
+ } from "@mui/material";
48
+
49
+ export type {
50
+ AlertProps,
51
+ AlertTitleProps,
52
+ BoxProps,
53
+ ButtonProps,
54
+ CheckboxProps,
55
+ CircularProgressProps,
56
+ CssBaselineProps,
57
+ FormControlLabelProps,
58
+ FormControlProps,
59
+ FormGroupProps,
60
+ FormHelperTextProps,
61
+ FormLabelProps,
62
+ InputAdornmentProps,
63
+ InputLabelProps,
64
+ OutlinedInputProps,
65
+ RadioGroupProps,
66
+ RadioProps,
67
+ SelectProps,
68
+ SnackbarProps,
69
+ StackProps,
70
+ SvgIconProps,
71
+ TabProps,
72
+ TableBodyProps,
73
+ TableCellProps,
74
+ TableContainerProps,
75
+ TableHeadProps,
76
+ TableProps,
77
+ TableRowProps,
78
+ TableSortLabelProps,
79
+ TooltipProps,
80
+ TypographyProps,
81
+ useThemeProps,
82
+ } from "@mui/material";
83
+
84
+ export { TabContext, TabList, TabPanel } from "@mui/lab";
85
+
86
+ export type { TabContextProps, TabListProps, TabPanelProps } from "@mui/lab";
87
+
88
+ export { Favorite as FavoriteIcon } from "@mui/icons-material";
89
+
90
+ export { visuallyHidden } from "@mui/utils";
91
+
13
92
  export * from "./components";
14
93
  export * from "./themes";
94
+ export * from "./utils";