@okta/odyssey-react-mui 0.14.1 → 0.14.4

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 (260) hide show
  1. package/.svgrrc.cjs +13 -0
  2. package/CHANGELOG.md +37 -0
  3. package/babel.config.cjs +2 -2
  4. package/dist/components/Icon/Add.d.ts +16 -0
  5. package/dist/components/Icon/Add.d.ts.map +1 -0
  6. package/dist/components/Icon/Add.js +34 -0
  7. package/dist/components/Icon/Add.js.map +1 -0
  8. package/dist/components/Icon/AddCircle.d.ts +16 -0
  9. package/dist/components/Icon/AddCircle.d.ts.map +1 -0
  10. package/dist/components/Icon/AddCircle.js +34 -0
  11. package/dist/components/Icon/AddCircle.js.map +1 -0
  12. package/dist/components/Icon/AlertCircle.d.ts +16 -0
  13. package/dist/components/Icon/AlertCircle.d.ts.map +1 -0
  14. package/dist/components/Icon/AlertCircle.js +34 -0
  15. package/dist/components/Icon/AlertCircle.js.map +1 -0
  16. package/dist/components/Icon/AlertCircleFilled.d.ts +16 -0
  17. package/dist/components/Icon/AlertCircleFilled.d.ts.map +1 -0
  18. package/dist/components/Icon/AlertCircleFilled.js +34 -0
  19. package/dist/components/Icon/AlertCircleFilled.js.map +1 -0
  20. package/dist/components/Icon/AlertTriangleFilled.d.ts +16 -0
  21. package/dist/components/Icon/AlertTriangleFilled.d.ts.map +1 -0
  22. package/dist/components/Icon/AlertTriangleFilled.js +34 -0
  23. package/dist/components/Icon/AlertTriangleFilled.js.map +1 -0
  24. package/dist/components/Icon/Anchor.d.ts +16 -0
  25. package/dist/components/Icon/Anchor.d.ts.map +1 -0
  26. package/dist/components/Icon/Anchor.js +36 -0
  27. package/dist/components/Icon/Anchor.js.map +1 -0
  28. package/dist/components/Icon/ArrowDown.d.ts +16 -0
  29. package/dist/components/Icon/ArrowDown.d.ts.map +1 -0
  30. package/dist/components/Icon/ArrowDown.js +34 -0
  31. package/dist/components/Icon/ArrowDown.js.map +1 -0
  32. package/dist/components/Icon/ArrowLeft.d.ts +16 -0
  33. package/dist/components/Icon/ArrowLeft.d.ts.map +1 -0
  34. package/dist/components/Icon/ArrowLeft.js +34 -0
  35. package/dist/components/Icon/ArrowLeft.js.map +1 -0
  36. package/dist/components/Icon/ArrowRight.d.ts +16 -0
  37. package/dist/components/Icon/ArrowRight.d.ts.map +1 -0
  38. package/dist/components/Icon/ArrowRight.js +34 -0
  39. package/dist/components/Icon/ArrowRight.js.map +1 -0
  40. package/dist/components/Icon/ArrowUp.d.ts +16 -0
  41. package/dist/components/Icon/ArrowUp.d.ts.map +1 -0
  42. package/dist/components/Icon/ArrowUp.js +34 -0
  43. package/dist/components/Icon/ArrowUp.js.map +1 -0
  44. package/dist/components/Icon/Calendar.d.ts +16 -0
  45. package/dist/components/Icon/Calendar.d.ts.map +1 -0
  46. package/dist/components/Icon/Calendar.js +34 -0
  47. package/dist/components/Icon/Calendar.js.map +1 -0
  48. package/dist/components/Icon/Check.d.ts +16 -0
  49. package/dist/components/Icon/Check.d.ts.map +1 -0
  50. package/dist/components/Icon/Check.js +34 -0
  51. package/dist/components/Icon/Check.js.map +1 -0
  52. package/dist/components/Icon/CheckCircleFilled.d.ts +16 -0
  53. package/dist/components/Icon/CheckCircleFilled.d.ts.map +1 -0
  54. package/dist/components/Icon/CheckCircleFilled.js +34 -0
  55. package/dist/components/Icon/CheckCircleFilled.js.map +1 -0
  56. package/dist/components/Icon/ChevronDown.d.ts +16 -0
  57. package/dist/components/Icon/ChevronDown.d.ts.map +1 -0
  58. package/dist/components/Icon/ChevronDown.js +34 -0
  59. package/dist/components/Icon/ChevronDown.js.map +1 -0
  60. package/dist/components/Icon/ChevronUp.d.ts +16 -0
  61. package/dist/components/Icon/ChevronUp.d.ts.map +1 -0
  62. package/dist/components/Icon/ChevronUp.js +34 -0
  63. package/dist/components/Icon/ChevronUp.js.map +1 -0
  64. package/dist/components/Icon/Close.d.ts +16 -0
  65. package/dist/components/Icon/Close.d.ts.map +1 -0
  66. package/dist/components/Icon/Close.js +34 -0
  67. package/dist/components/Icon/Close.js.map +1 -0
  68. package/dist/components/Icon/CloseCircleFilled.d.ts +16 -0
  69. package/dist/components/Icon/CloseCircleFilled.d.ts.map +1 -0
  70. package/dist/components/Icon/CloseCircleFilled.js +34 -0
  71. package/dist/components/Icon/CloseCircleFilled.js.map +1 -0
  72. package/dist/components/Icon/Copy.d.ts +16 -0
  73. package/dist/components/Icon/Copy.d.ts.map +1 -0
  74. package/dist/components/Icon/Copy.js +34 -0
  75. package/dist/components/Icon/Copy.js.map +1 -0
  76. package/dist/components/Icon/Delete.d.ts +16 -0
  77. package/dist/components/Icon/Delete.d.ts.map +1 -0
  78. package/dist/components/Icon/Delete.js +34 -0
  79. package/dist/components/Icon/Delete.js.map +1 -0
  80. package/dist/components/Icon/Download.d.ts +16 -0
  81. package/dist/components/Icon/Download.d.ts.map +1 -0
  82. package/dist/components/Icon/Download.js +34 -0
  83. package/dist/components/Icon/Download.js.map +1 -0
  84. package/dist/components/Icon/DragHandle.d.ts +16 -0
  85. package/dist/components/Icon/DragHandle.d.ts.map +1 -0
  86. package/dist/components/Icon/DragHandle.js +34 -0
  87. package/dist/components/Icon/DragHandle.js.map +1 -0
  88. package/dist/components/Icon/Edit.d.ts +16 -0
  89. package/dist/components/Icon/Edit.d.ts.map +1 -0
  90. package/dist/components/Icon/Edit.js +34 -0
  91. package/dist/components/Icon/Edit.js.map +1 -0
  92. package/dist/components/Icon/ExternalLink.d.ts +16 -0
  93. package/dist/components/Icon/ExternalLink.d.ts.map +1 -0
  94. package/dist/components/Icon/ExternalLink.js +34 -0
  95. package/dist/components/Icon/ExternalLink.js.map +1 -0
  96. package/dist/components/Icon/Eye.d.ts +16 -0
  97. package/dist/components/Icon/Eye.d.ts.map +1 -0
  98. package/dist/components/Icon/Eye.js +34 -0
  99. package/dist/components/Icon/Eye.js.map +1 -0
  100. package/dist/components/Icon/EyeOff.d.ts +16 -0
  101. package/dist/components/Icon/EyeOff.d.ts.map +1 -0
  102. package/dist/components/Icon/EyeOff.js +34 -0
  103. package/dist/components/Icon/EyeOff.js.map +1 -0
  104. package/dist/components/Icon/Filter.d.ts +16 -0
  105. package/dist/components/Icon/Filter.d.ts.map +1 -0
  106. package/dist/components/Icon/Filter.js +34 -0
  107. package/dist/components/Icon/Filter.js.map +1 -0
  108. package/dist/components/Icon/Globe.d.ts +16 -0
  109. package/dist/components/Icon/Globe.d.ts.map +1 -0
  110. package/dist/components/Icon/Globe.js +34 -0
  111. package/dist/components/Icon/Globe.js.map +1 -0
  112. package/dist/components/Icon/Home.d.ts +16 -0
  113. package/dist/components/Icon/Home.d.ts.map +1 -0
  114. package/dist/components/Icon/Home.js +34 -0
  115. package/dist/components/Icon/Home.js.map +1 -0
  116. package/dist/components/Icon/Icon.d.ts +28 -0
  117. package/dist/components/Icon/Icon.d.ts.map +1 -0
  118. package/dist/components/Icon/Icon.js +29 -0
  119. package/dist/components/Icon/Icon.js.map +1 -0
  120. package/dist/components/Icon/InformationCircle.d.ts +16 -0
  121. package/dist/components/Icon/InformationCircle.d.ts.map +1 -0
  122. package/dist/components/Icon/InformationCircle.js +34 -0
  123. package/dist/components/Icon/InformationCircle.js.map +1 -0
  124. package/dist/components/Icon/InformationCircleFilled.d.ts +16 -0
  125. package/dist/components/Icon/InformationCircleFilled.d.ts.map +1 -0
  126. package/dist/components/Icon/InformationCircleFilled.js +34 -0
  127. package/dist/components/Icon/InformationCircleFilled.js.map +1 -0
  128. package/dist/components/Icon/Notification.d.ts +16 -0
  129. package/dist/components/Icon/Notification.d.ts.map +1 -0
  130. package/dist/components/Icon/Notification.js +34 -0
  131. package/dist/components/Icon/Notification.js.map +1 -0
  132. package/dist/components/Icon/OverflowVertical.d.ts +16 -0
  133. package/dist/components/Icon/OverflowVertical.d.ts.map +1 -0
  134. package/dist/components/Icon/OverflowVertical.js +34 -0
  135. package/dist/components/Icon/OverflowVertical.js.map +1 -0
  136. package/dist/components/Icon/QuestionCircle.d.ts +16 -0
  137. package/dist/components/Icon/QuestionCircle.d.ts.map +1 -0
  138. package/dist/components/Icon/QuestionCircle.js +34 -0
  139. package/dist/components/Icon/QuestionCircle.js.map +1 -0
  140. package/dist/components/Icon/QuestionCircleFilled.d.ts +16 -0
  141. package/dist/components/Icon/QuestionCircleFilled.d.ts.map +1 -0
  142. package/dist/components/Icon/QuestionCircleFilled.js +34 -0
  143. package/dist/components/Icon/QuestionCircleFilled.js.map +1 -0
  144. package/dist/components/Icon/Search.d.ts +16 -0
  145. package/dist/components/Icon/Search.d.ts.map +1 -0
  146. package/dist/components/Icon/Search.js +34 -0
  147. package/dist/components/Icon/Search.js.map +1 -0
  148. package/dist/components/Icon/Settings.d.ts +16 -0
  149. package/dist/components/Icon/Settings.d.ts.map +1 -0
  150. package/dist/components/Icon/Settings.js +32 -0
  151. package/dist/components/Icon/Settings.js.map +1 -0
  152. package/dist/components/Icon/Subtract.d.ts +16 -0
  153. package/dist/components/Icon/Subtract.d.ts.map +1 -0
  154. package/dist/components/Icon/Subtract.js +34 -0
  155. package/dist/components/Icon/Subtract.js.map +1 -0
  156. package/dist/components/Icon/SvgIcon.d.ts +14 -0
  157. package/dist/components/Icon/SvgIcon.d.ts.map +1 -0
  158. package/dist/components/Icon/SvgIcon.js +14 -0
  159. package/dist/components/Icon/SvgIcon.js.map +1 -0
  160. package/dist/components/Icon/User.d.ts +16 -0
  161. package/dist/components/Icon/User.d.ts.map +1 -0
  162. package/dist/components/Icon/User.js +34 -0
  163. package/dist/components/Icon/User.js.map +1 -0
  164. package/dist/components/Icon/index.d.ts +91 -0
  165. package/dist/components/Icon/index.d.ts.map +1 -0
  166. package/dist/components/Icon/index.js +129 -0
  167. package/dist/components/Icon/index.js.map +1 -0
  168. package/dist/components/Icon/types.d.ts +19 -0
  169. package/dist/components/Icon/types.d.ts.map +1 -0
  170. package/dist/components/Icon/types.js +2 -0
  171. package/dist/components/Icon/types.js.map +1 -0
  172. package/dist/components/Link/Link.d.ts +2 -2
  173. package/dist/components/Link/Link.d.ts.map +1 -1
  174. package/dist/components/Link/Link.js +21 -14
  175. package/dist/components/Link/Link.js.map +1 -1
  176. package/dist/components/PasswordInput/PasswordInput.d.ts +1 -2
  177. package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -1
  178. package/dist/components/PasswordInput/PasswordInput.js +29 -23
  179. package/dist/components/PasswordInput/PasswordInput.js.map +1 -1
  180. package/dist/components/index.d.ts +1 -0
  181. package/dist/components/index.d.ts.map +1 -1
  182. package/dist/components/index.js +1 -0
  183. package/dist/components/index.js.map +1 -1
  184. package/dist/themes/odyssey/components.d.ts.map +1 -1
  185. package/dist/themes/odyssey/components.js +501 -169
  186. package/dist/themes/odyssey/components.js.map +1 -1
  187. package/dist/themes/odyssey/components.types.d.ts +37 -28
  188. package/dist/themes/odyssey/components.types.d.ts.map +1 -1
  189. package/dist/themes/odyssey/components.types.js.map +1 -1
  190. package/dist/themes/odyssey/palette.d.ts.map +1 -1
  191. package/dist/themes/odyssey/palette.js +45 -39
  192. package/dist/themes/odyssey/palette.js.map +1 -1
  193. package/dist/themes/odyssey/palette.types.d.ts +21 -0
  194. package/dist/themes/odyssey/palette.types.d.ts.map +1 -0
  195. package/dist/themes/odyssey/palette.types.js +13 -0
  196. package/dist/themes/odyssey/palette.types.js.map +1 -0
  197. package/dist/themes/odyssey/theme.d.ts +1 -0
  198. package/dist/themes/odyssey/theme.d.ts.map +1 -1
  199. package/dist/themes/odyssey/theme.js +1 -0
  200. package/dist/themes/odyssey/theme.js.map +1 -1
  201. package/dist/themes/odyssey/typography.d.ts.map +1 -1
  202. package/dist/themes/odyssey/typography.js +9 -15
  203. package/dist/themes/odyssey/typography.js.map +1 -1
  204. package/package.json +6 -6
  205. package/scripts/resolveIconSrcPath.cjs +20 -0
  206. package/src/components/Icon/Add.tsx +42 -0
  207. package/src/components/Icon/AddCircle.tsx +44 -0
  208. package/src/components/Icon/AlertCircle.tsx +44 -0
  209. package/src/components/Icon/AlertCircleFilled.tsx +45 -0
  210. package/src/components/Icon/AlertTriangleFilled.tsx +45 -0
  211. package/src/components/Icon/Anchor.tsx +46 -0
  212. package/src/components/Icon/ArrowDown.tsx +44 -0
  213. package/src/components/Icon/ArrowLeft.tsx +44 -0
  214. package/src/components/Icon/ArrowRight.tsx +44 -0
  215. package/src/components/Icon/ArrowUp.tsx +44 -0
  216. package/src/components/Icon/Calendar.tsx +44 -0
  217. package/src/components/Icon/Check.tsx +44 -0
  218. package/src/components/Icon/CheckCircleFilled.tsx +45 -0
  219. package/src/components/Icon/ChevronDown.tsx +44 -0
  220. package/src/components/Icon/ChevronUp.tsx +44 -0
  221. package/src/components/Icon/Close.tsx +44 -0
  222. package/src/components/Icon/CloseCircleFilled.tsx +45 -0
  223. package/src/components/Icon/Copy.tsx +44 -0
  224. package/src/components/Icon/Delete.tsx +44 -0
  225. package/src/components/Icon/Download.tsx +44 -0
  226. package/src/components/Icon/DragHandle.tsx +44 -0
  227. package/src/components/Icon/Edit.tsx +44 -0
  228. package/src/components/Icon/ExternalLink.tsx +45 -0
  229. package/src/components/Icon/Eye.tsx +42 -0
  230. package/src/components/Icon/EyeOff.tsx +44 -0
  231. package/src/components/Icon/Filter.tsx +44 -0
  232. package/src/components/Icon/Globe.tsx +44 -0
  233. package/src/components/Icon/Home.tsx +44 -0
  234. package/src/components/Icon/Icon.test.tsx +51 -0
  235. package/src/components/Icon/Icon.tsx +40 -0
  236. package/src/components/Icon/InformationCircle.tsx +45 -0
  237. package/src/components/Icon/InformationCircleFilled.tsx +45 -0
  238. package/src/components/Icon/Notification.tsx +45 -0
  239. package/src/components/Icon/OverflowVertical.tsx +45 -0
  240. package/src/components/Icon/QuestionCircle.tsx +45 -0
  241. package/src/components/Icon/QuestionCircleFilled.tsx +45 -0
  242. package/src/components/Icon/Search.tsx +44 -0
  243. package/src/components/Icon/Settings.tsx +42 -0
  244. package/src/components/Icon/Subtract.tsx +44 -0
  245. package/src/components/Icon/SvgIcon.ts +14 -0
  246. package/src/components/Icon/User.tsx +44 -0
  247. package/src/components/Icon/index.tsx +170 -0
  248. package/src/components/Icon/types.ts +20 -0
  249. package/src/components/Link/Link.tsx +1 -1
  250. package/src/components/PasswordInput/PasswordInput.test.tsx +0 -1
  251. package/src/components/PasswordInput/PasswordInput.tsx +1 -1
  252. package/src/components/index.ts +1 -0
  253. package/src/themes/odyssey/components.ts +465 -179
  254. package/src/themes/odyssey/components.types.ts +41 -28
  255. package/src/themes/odyssey/palette.ts +45 -41
  256. package/src/themes/odyssey/palette.types.ts +22 -0
  257. package/src/themes/odyssey/theme.ts +1 -0
  258. package/src/themes/odyssey/typography.ts +8 -14
  259. package/tsconfig.json +4 -1
  260. package/tsconfig.production.json +2 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,cAAc,QAAQ,CAAC;AAGvB,cAAc,aAAa,CAAC;AAG5B,cAAc,OAAO,CAAC;AAGtB,cAAc,qBAAqB,CAAC;AAGpC,cAAc,eAAe,CAAC;AAG9B,cAAc,uBAAuB,CAAC;AAGtC,cAAc,UAAU,CAAC;AAGzB,cAAc,aAAa,CAAC;AAG5B,cAAc,aAAa,CAAC;AAG5B,cAAc,cAAc,CAAC;AAG7B,cAAc,WAAW,CAAC;AAG1B,cAAc,YAAY,CAAC;AAG3B,cAAc,qBAAqB,CAAC;AAGpC,cAAc,SAAS,CAAC;AAGxB,cAAc,eAAe,CAAC;AAG9B,cAAc,aAAa,CAAC;AAG5B,cAAc,qBAAqB,CAAC;AAGpC,cAAc,SAAS,CAAC;AAGxB,cAAc,QAAQ,CAAC;AAGvB,cAAc,UAAU,CAAC;AAGzB,cAAc,YAAY,CAAC;AAG3B,cAAc,cAAc,CAAC;AAG7B,cAAc,QAAQ,CAAC;AAGvB,cAAc,gBAAgB,CAAC;AAG/B,cAAc,UAAU,CAAC;AAGzB,cAAc,OAAO,CAAC;AAGtB,cAAc,UAAU,CAAC;AAGzB,cAAc,SAAS,CAAC;AAGxB,cAAc,QAAQ,CAAC;AAGvB,cAAc,2BAA2B,CAAC;AAG1C,cAAc,qBAAqB,CAAC;AAGpC,cAAc,gBAAgB,CAAC;AAG/B,cAAc,oBAAoB,CAAC;AAGnC,cAAc,wBAAwB,CAAC;AAGvC,cAAc,kBAAkB,CAAC;AAGjC,cAAc,UAAU,CAAC;AAGzB,cAAc,YAAY,CAAC;AAG3B,cAAc,YAAY,CAAC;AAG3B,cAAc,QAAQ,CAAC;AAEvB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuC1B,CAAC"}
@@ -0,0 +1,129 @@
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 * from "./Icon.js";
13
+ import { AddCircleIcon } from "./AddCircle.js";
14
+ export * from "./AddCircle.js";
15
+ import { AddIcon } from "./Add.js";
16
+ export * from "./Add.js";
17
+ import { AlertCircleFilledIcon } from "./AlertCircleFilled.js";
18
+ export * from "./AlertCircleFilled.js";
19
+ import { AlertCircleIcon } from "./AlertCircle.js";
20
+ export * from "./AlertCircle.js";
21
+ import { AlertTriangleFilledIcon } from "./AlertTriangleFilled.js";
22
+ export * from "./AlertTriangleFilled.js";
23
+ import { AnchorIcon } from "./Anchor.js";
24
+ export * from "./Anchor.js";
25
+ import { ArrowDownIcon } from "./ArrowDown.js";
26
+ export * from "./ArrowDown.js";
27
+ import { ArrowLeftIcon } from "./ArrowLeft.js";
28
+ export * from "./ArrowLeft.js";
29
+ import { ArrowRightIcon } from "./ArrowRight.js";
30
+ export * from "./ArrowRight.js";
31
+ import { ArrowUpIcon } from "./ArrowUp.js";
32
+ export * from "./ArrowUp.js";
33
+ import { CalendarIcon } from "./Calendar.js";
34
+ export * from "./Calendar.js";
35
+ import { CheckCircleFilledIcon } from "./CheckCircleFilled.js";
36
+ export * from "./CheckCircleFilled.js";
37
+ import { CheckIcon } from "./Check.js";
38
+ export * from "./Check.js";
39
+ import { ChevronDownIcon } from "./ChevronDown.js";
40
+ export * from "./ChevronDown.js";
41
+ import { ChevronUpIcon } from "./ChevronUp.js";
42
+ export * from "./ChevronUp.js";
43
+ import { CloseCircleFilledIcon } from "./CloseCircleFilled.js";
44
+ export * from "./CloseCircleFilled.js";
45
+ import { CloseIcon } from "./Close.js";
46
+ export * from "./Close.js";
47
+ import { CopyIcon } from "./Copy.js";
48
+ export * from "./Copy.js";
49
+ import { DeleteIcon } from "./Delete.js";
50
+ export * from "./Delete.js";
51
+ import { DownloadIcon } from "./Download.js";
52
+ export * from "./Download.js";
53
+ import { DragHandleIcon } from "./DragHandle.js";
54
+ export * from "./DragHandle.js";
55
+ import { EditIcon } from "./Edit.js";
56
+ export * from "./Edit.js";
57
+ import { ExternalLinkIcon } from "./ExternalLink.js";
58
+ export * from "./ExternalLink.js";
59
+ import { EyeOffIcon } from "./EyeOff.js";
60
+ export * from "./EyeOff.js";
61
+ import { EyeIcon } from "./Eye.js";
62
+ export * from "./Eye.js";
63
+ import { FilterIcon } from "./Filter.js";
64
+ export * from "./Filter.js";
65
+ import { GlobeIcon } from "./Globe.js";
66
+ export * from "./Globe.js";
67
+ import { HomeIcon } from "./Home.js";
68
+ export * from "./Home.js";
69
+ import { InformationCircleFilledIcon } from "./InformationCircleFilled.js";
70
+ export * from "./InformationCircleFilled.js";
71
+ import { InformationCircleIcon } from "./InformationCircle.js";
72
+ export * from "./InformationCircle.js";
73
+ import { NotificationIcon } from "./Notification.js";
74
+ export * from "./Notification.js";
75
+ import { OverflowVerticalIcon } from "./OverflowVertical.js";
76
+ export * from "./OverflowVertical.js";
77
+ import { QuestionCircleFilledIcon } from "./QuestionCircleFilled.js";
78
+ export * from "./QuestionCircleFilled.js";
79
+ import { QuestionCircleIcon } from "./QuestionCircle.js";
80
+ export * from "./QuestionCircle.js";
81
+ import { SearchIcon } from "./Search.js";
82
+ export * from "./Search.js";
83
+ import { SettingsIcon } from "./Settings.js";
84
+ export * from "./Settings.js";
85
+ import { SubtractIcon } from "./Subtract.js";
86
+ export * from "./Subtract.js";
87
+ import { UserIcon } from "./User.js";
88
+ export * from "./User.js";
89
+ export const iconDictionary = {
90
+ "add-circle": AddCircleIcon,
91
+ add: AddIcon,
92
+ "alert-circle-filled": AlertCircleFilledIcon,
93
+ "alert-circle": AlertCircleIcon,
94
+ "alert-triangle-filled": AlertTriangleFilledIcon,
95
+ anchor: AnchorIcon,
96
+ "arrow-down": ArrowDownIcon,
97
+ "arrow-left": ArrowLeftIcon,
98
+ "arrow-right": ArrowRightIcon,
99
+ "arrow-up": ArrowUpIcon,
100
+ calendar: CalendarIcon,
101
+ "check-circle-filled": CheckCircleFilledIcon,
102
+ check: CheckIcon,
103
+ "chevron-down": ChevronDownIcon,
104
+ "chevron-up": ChevronUpIcon,
105
+ "close-circle-filled": CloseCircleFilledIcon,
106
+ close: CloseIcon,
107
+ copy: CopyIcon,
108
+ delete: DeleteIcon,
109
+ download: DownloadIcon,
110
+ "drag-handle": DragHandleIcon,
111
+ edit: EditIcon,
112
+ "external-link": ExternalLinkIcon,
113
+ "eye-off": EyeOffIcon,
114
+ eye: EyeIcon,
115
+ filter: FilterIcon,
116
+ globe: GlobeIcon,
117
+ home: HomeIcon,
118
+ "information-circle-filled": InformationCircleFilledIcon,
119
+ "information-circle": InformationCircleIcon,
120
+ notification: NotificationIcon,
121
+ "overflow-vertical": OverflowVerticalIcon,
122
+ "question-circle-filled": QuestionCircleFilledIcon,
123
+ "question-circle": QuestionCircleIcon,
124
+ search: SearchIcon,
125
+ settings: SettingsIcon,
126
+ subtract: SubtractIcon,
127
+ user: UserIcon
128
+ };
129
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Icon/index.tsx"],"names":["AddCircleIcon","AddIcon","AlertCircleFilledIcon","AlertCircleIcon","AlertTriangleFilledIcon","AnchorIcon","ArrowDownIcon","ArrowLeftIcon","ArrowRightIcon","ArrowUpIcon","CalendarIcon","CheckCircleFilledIcon","CheckIcon","ChevronDownIcon","ChevronUpIcon","CloseCircleFilledIcon","CloseIcon","CopyIcon","DeleteIcon","DownloadIcon","DragHandleIcon","EditIcon","ExternalLinkIcon","EyeOffIcon","EyeIcon","FilterIcon","GlobeIcon","HomeIcon","InformationCircleFilledIcon","InformationCircleIcon","NotificationIcon","OverflowVerticalIcon","QuestionCircleFilledIcon","QuestionCircleIcon","SearchIcon","SettingsIcon","SubtractIcon","UserIcon","iconDictionary","add","anchor","calendar","check","close","copy","delete","download","edit","eye","filter","globe","home","notification","search","settings","subtract","user"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;SAMSA,a;;SAGAC,O;;SAGAC,qB;;SAGAC,e;;SAGAC,uB;;SAGAC,U;;SAGAC,a;;SAGAC,a;;SAGAC,c;;SAGAC,W;;SAGAC,Y;;SAGAC,qB;;SAGAC,S;;SAGAC,e;;SAGAC,a;;SAGAC,qB;;SAGAC,S;;SAGAC,Q;;SAGAC,U;;SAGAC,Y;;SAGAC,c;;SAGAC,Q;;SAGAC,gB;;SAGAC,U;;SAGAC,O;;SAGAC,U;;SAGAC,S;;SAGAC,Q;;SAGAC,2B;;SAGAC,qB;;SAGAC,gB;;SAGAC,oB;;SAGAC,wB;;SAGAC,kB;;SAGAC,U;;SAGAC,Y;;SAGAC,Y;;SAGAC,Q;;AAGT,OAAO,MAAMC,cAAc,GAAG;AAC5B,gBAActC,aADc;AAE5BuC,EAAAA,GAAG,EAAEtC,OAFuB;AAG5B,yBAAuBC,qBAHK;AAI5B,kBAAgBC,eAJY;AAK5B,2BAAyBC,uBALG;AAM5BoC,EAAAA,MAAM,EAAEnC,UANoB;AAO5B,gBAAcC,aAPc;AAQ5B,gBAAcC,aARc;AAS5B,iBAAeC,cATa;AAU5B,cAAYC,WAVgB;AAW5BgC,EAAAA,QAAQ,EAAE/B,YAXkB;AAY5B,yBAAuBC,qBAZK;AAa5B+B,EAAAA,KAAK,EAAE9B,SAbqB;AAc5B,kBAAgBC,eAdY;AAe5B,gBAAcC,aAfc;AAgB5B,yBAAuBC,qBAhBK;AAiB5B4B,EAAAA,KAAK,EAAE3B,SAjBqB;AAkB5B4B,EAAAA,IAAI,EAAE3B,QAlBsB;AAmB5B4B,EAAAA,MAAM,EAAE3B,UAnBoB;AAoB5B4B,EAAAA,QAAQ,EAAE3B,YApBkB;AAqB5B,iBAAeC,cArBa;AAsB5B2B,EAAAA,IAAI,EAAE1B,QAtBsB;AAuB5B,mBAAiBC,gBAvBW;AAwB5B,aAAWC,UAxBiB;AAyB5ByB,EAAAA,GAAG,EAAExB,OAzBuB;AA0B5ByB,EAAAA,MAAM,EAAExB,UA1BoB;AA2B5ByB,EAAAA,KAAK,EAAExB,SA3BqB;AA4B5ByB,EAAAA,IAAI,EAAExB,QA5BsB;AA6B5B,+BAA6BC,2BA7BD;AA8B5B,wBAAsBC,qBA9BM;AA+B5BuB,EAAAA,YAAY,EAAEtB,gBA/Bc;AAgC5B,uBAAqBC,oBAhCO;AAiC5B,4BAA0BC,wBAjCE;AAkC5B,qBAAmBC,kBAlCS;AAmC5BoB,EAAAA,MAAM,EAAEnB,UAnCoB;AAoC5BoB,EAAAA,QAAQ,EAAEnB,YApCkB;AAqC5BoB,EAAAA,QAAQ,EAAEnB,YArCkB;AAsC5BoB,EAAAA,IAAI,EAAEnB;AAtCsB,CAAvB","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\n// Code automatically generated by svgr; DO NOT EDIT.\n\nexport * from \"./Icon\";\n\nimport { AddCircleIcon } from \"./AddCircle\";\nexport * from \"./AddCircle\";\n\nimport { AddIcon } from \"./Add\";\nexport * from \"./Add\";\n\nimport { AlertCircleFilledIcon } from \"./AlertCircleFilled\";\nexport * from \"./AlertCircleFilled\";\n\nimport { AlertCircleIcon } from \"./AlertCircle\";\nexport * from \"./AlertCircle\";\n\nimport { AlertTriangleFilledIcon } from \"./AlertTriangleFilled\";\nexport * from \"./AlertTriangleFilled\";\n\nimport { AnchorIcon } from \"./Anchor\";\nexport * from \"./Anchor\";\n\nimport { ArrowDownIcon } from \"./ArrowDown\";\nexport * from \"./ArrowDown\";\n\nimport { ArrowLeftIcon } from \"./ArrowLeft\";\nexport * from \"./ArrowLeft\";\n\nimport { ArrowRightIcon } from \"./ArrowRight\";\nexport * from \"./ArrowRight\";\n\nimport { ArrowUpIcon } from \"./ArrowUp\";\nexport * from \"./ArrowUp\";\n\nimport { CalendarIcon } from \"./Calendar\";\nexport * from \"./Calendar\";\n\nimport { CheckCircleFilledIcon } from \"./CheckCircleFilled\";\nexport * from \"./CheckCircleFilled\";\n\nimport { CheckIcon } from \"./Check\";\nexport * from \"./Check\";\n\nimport { ChevronDownIcon } from \"./ChevronDown\";\nexport * from \"./ChevronDown\";\n\nimport { ChevronUpIcon } from \"./ChevronUp\";\nexport * from \"./ChevronUp\";\n\nimport { CloseCircleFilledIcon } from \"./CloseCircleFilled\";\nexport * from \"./CloseCircleFilled\";\n\nimport { CloseIcon } from \"./Close\";\nexport * from \"./Close\";\n\nimport { CopyIcon } from \"./Copy\";\nexport * from \"./Copy\";\n\nimport { DeleteIcon } from \"./Delete\";\nexport * from \"./Delete\";\n\nimport { DownloadIcon } from \"./Download\";\nexport * from \"./Download\";\n\nimport { DragHandleIcon } from \"./DragHandle\";\nexport * from \"./DragHandle\";\n\nimport { EditIcon } from \"./Edit\";\nexport * from \"./Edit\";\n\nimport { ExternalLinkIcon } from \"./ExternalLink\";\nexport * from \"./ExternalLink\";\n\nimport { EyeOffIcon } from \"./EyeOff\";\nexport * from \"./EyeOff\";\n\nimport { EyeIcon } from \"./Eye\";\nexport * from \"./Eye\";\n\nimport { FilterIcon } from \"./Filter\";\nexport * from \"./Filter\";\n\nimport { GlobeIcon } from \"./Globe\";\nexport * from \"./Globe\";\n\nimport { HomeIcon } from \"./Home\";\nexport * from \"./Home\";\n\nimport { InformationCircleFilledIcon } from \"./InformationCircleFilled\";\nexport * from \"./InformationCircleFilled\";\n\nimport { InformationCircleIcon } from \"./InformationCircle\";\nexport * from \"./InformationCircle\";\n\nimport { NotificationIcon } from \"./Notification\";\nexport * from \"./Notification\";\n\nimport { OverflowVerticalIcon } from \"./OverflowVertical\";\nexport * from \"./OverflowVertical\";\n\nimport { QuestionCircleFilledIcon } from \"./QuestionCircleFilled\";\nexport * from \"./QuestionCircleFilled\";\n\nimport { QuestionCircleIcon } from \"./QuestionCircle\";\nexport * from \"./QuestionCircle\";\n\nimport { SearchIcon } from \"./Search\";\nexport * from \"./Search\";\n\nimport { SettingsIcon } from \"./Settings\";\nexport * from \"./Settings\";\n\nimport { SubtractIcon } from \"./Subtract\";\nexport * from \"./Subtract\";\n\nimport { UserIcon } from \"./User\";\nexport * from \"./User\";\n\nexport const iconDictionary = {\n \"add-circle\": AddCircleIcon,\n add: AddIcon,\n \"alert-circle-filled\": AlertCircleFilledIcon,\n \"alert-circle\": AlertCircleIcon,\n \"alert-triangle-filled\": AlertTriangleFilledIcon,\n anchor: AnchorIcon,\n \"arrow-down\": ArrowDownIcon,\n \"arrow-left\": ArrowLeftIcon,\n \"arrow-right\": ArrowRightIcon,\n \"arrow-up\": ArrowUpIcon,\n calendar: CalendarIcon,\n \"check-circle-filled\": CheckCircleFilledIcon,\n check: CheckIcon,\n \"chevron-down\": ChevronDownIcon,\n \"chevron-up\": ChevronUpIcon,\n \"close-circle-filled\": CloseCircleFilledIcon,\n close: CloseIcon,\n copy: CopyIcon,\n delete: DeleteIcon,\n download: DownloadIcon,\n \"drag-handle\": DragHandleIcon,\n edit: EditIcon,\n \"external-link\": ExternalLinkIcon,\n \"eye-off\": EyeOffIcon,\n eye: EyeIcon,\n filter: FilterIcon,\n globe: GlobeIcon,\n home: HomeIcon,\n \"information-circle-filled\": InformationCircleFilledIcon,\n \"information-circle\": InformationCircleIcon,\n notification: NotificationIcon,\n \"overflow-vertical\": OverflowVerticalIcon,\n \"question-circle-filled\": QuestionCircleFilledIcon,\n \"question-circle\": QuestionCircleIcon,\n search: SearchIcon,\n settings: SettingsIcon,\n subtract: SubtractIcon,\n user: UserIcon,\n};\n"],"file":"index.js"}
@@ -0,0 +1,19 @@
1
+ /*!
2
+ * Copyright (c) 2021-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 type { SvgIconProps } from "./SvgIcon";
13
+ export interface SvgIconNoChildrenProps extends Omit<SvgIconProps, "children"> {
14
+ /**
15
+ * Children are never rendered.
16
+ */
17
+ children?: never;
18
+ }
19
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC;IAC5E;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"types.js"}
@@ -9,10 +9,10 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
- import React, { ReactElement } from "react";
12
+ import { ReactElement } from "react";
13
13
  import type { LinkProps as MuiLinkProps } from "@mui/material";
14
14
  export interface LinkProps extends MuiLinkProps {
15
15
  icon?: ReactElement;
16
16
  }
17
- export declare const Link: React.ForwardRefExoticComponent<Pick<LinkProps, "type" | "defaultValue" | "classes" | "children" | "onChange" | "onKeyUp" | "onKeyDown" | "onBlur" | "onFocus" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "margin" | "sx" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "key" | "media" | "target" | "href" | "download" | "hrefLang" | "ping" | "rel" | "referrerPolicy" | "align" | "noWrap" | "variant" | "gutterBottom" | "paragraph" | "variantMapping" | "TypographyClasses" | "underline" | "icon"> & React.RefAttributes<HTMLAnchorElement | HTMLLinkElement>>;
17
+ export declare const Link: import("react").ForwardRefExoticComponent<Pick<LinkProps, "type" | "defaultValue" | "classes" | "children" | "onChange" | "onKeyUp" | "onKeyDown" | "onBlur" | "onFocus" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "margin" | "sx" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "key" | "media" | "target" | "href" | "download" | "hrefLang" | "ping" | "rel" | "referrerPolicy" | "align" | "noWrap" | "variant" | "gutterBottom" | "paragraph" | "variantMapping" | "TypographyClasses" | "underline" | "icon"> & import("react").RefAttributes<HTMLAnchorElement | HTMLLinkElement>>;
18
18
  //# sourceMappingURL=Link.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Link/Link.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,EAAc,YAAY,EAAE,MAAM,OAAO,CAAC;AAGxD,OAAO,KAAK,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,eAAe,CAAC;AAE/D,MAAM,WAAW,SAAU,SAAQ,YAAY;IAC7C,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED,eAAO,MAAM,IAAI,igMAsBhB,CAAC"}
1
+ {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Link/Link.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAc,YAAY,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,KAAK,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,eAAe,CAAC;AAE/D,MAAM,WAAW,SAAU,SAAQ,YAAY;IAC7C,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED,eAAO,MAAM,IAAI,qhMAsBhB,CAAC"}
@@ -12,25 +12,32 @@ import _SvgIcon from "@mui/material/SvgIcon";
12
12
  *
13
13
  * See the License for the specific language governing permissions and limitations under the License.
14
14
  */
15
- import React, { forwardRef } from "react";
15
+ import { forwardRef } from "react";
16
+ import { jsx as _jsx } from "react/jsx-runtime";
17
+ import { jsxs as _jsxs } from "react/jsx-runtime";
16
18
  export const Link = forwardRef(props => {
17
19
  const {
18
20
  icon,
19
21
  children,
20
22
  target
21
23
  } = props;
22
- return React.createElement(_Link, props, React.createElement("span", {
23
- className: "Link-icon"
24
- }, icon), children, target === "_blank" && React.createElement("span", {
25
- className: "Link-indicator",
26
- role: "presentation"
27
- }, React.createElement(_SvgIcon, {
28
- viewBox: "0 0 16 16"
29
- }, React.createElement("path", {
30
- fillRule: "evenodd",
31
- clipRule: "evenodd",
32
- d: "M13.2929 2H7.99998V1H14.5C14.7761 1 15 1.22386 15 1.5V8H14V2.70711L6.35353 10.3536L5.64642 9.64645L13.2929 2ZM1.5 4H1V4.5V14.5V15H1.5H11.5H12V14.5V8H11V14H2V5H8V4H1.5Z",
33
- fill: "currentColor"
34
- }))));
24
+ return _jsxs(_Link, { ...props,
25
+ children: [_jsx("span", {
26
+ className: "Link-icon",
27
+ children: icon
28
+ }), children, target === "_blank" && _jsx("span", {
29
+ className: "Link-indicator",
30
+ role: "presentation",
31
+ children: _jsx(_SvgIcon, {
32
+ viewBox: "0 0 16 16",
33
+ children: _jsx("path", {
34
+ fillRule: "evenodd",
35
+ clipRule: "evenodd",
36
+ d: "M13.2929 2H7.99998V1H14.5C14.7761 1 15 1.22386 15 1.5V8H14V2.70711L6.35353 10.3536L5.64642 9.64645L13.2929 2ZM1.5 4H1V4.5V14.5V15H1.5H11.5H12V14.5V8H11V14H2V5H8V4H1.5Z",
37
+ fill: "currentColor"
38
+ })
39
+ })
40
+ })]
41
+ });
35
42
  });
36
43
  //# sourceMappingURL=Link.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Link/Link.tsx"],"names":["React","forwardRef","Link","props","icon","children","target"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,OAAOA,KAAP,IAAgBC,UAAhB,QAAgD,OAAhD;AASA,OAAO,MAAMC,IAAI,GAAGD,UAAU,CAC3BE,KAAD,IAAW;AACT,QAAM;AAAEC,IAAAA,IAAF;AAAQC,IAAAA,QAAR;AAAkBC,IAAAA;AAAlB,MAA6BH,KAAnC;AACA,SACE,2BAAaA,KAAb,EACE;AAAM,IAAA,SAAS,EAAC;AAAhB,KAA6BC,IAA7B,CADF,EAEGC,QAFH,EAGGC,MAAM,KAAK,QAAX,IACC;AAAM,IAAA,SAAS,EAAC,gBAAhB;AAAiC,IAAA,IAAI,EAAC;AAAtC,KACE;AAAS,IAAA,OAAO,EAAC;AAAjB,KACE;AACE,IAAA,QAAQ,EAAC,SADX;AAEE,IAAA,QAAQ,EAAC,SAFX;AAGE,IAAA,CAAC,EAAC,yKAHJ;AAIE,IAAA,IAAI,EAAC;AAJP,IADF,CADF,CAJJ,CADF;AAkBD,CArB2B,CAAvB","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 React, { forwardRef, ReactElement } from \"react\";\n\nimport { Link as MuiLink, SvgIcon } from \"@mui/material\";\nimport type { LinkProps as MuiLinkProps } from \"@mui/material\";\n\nexport interface LinkProps extends MuiLinkProps {\n icon?: ReactElement;\n}\n\nexport const Link = forwardRef<HTMLLinkElement | HTMLAnchorElement, LinkProps>(\n (props) => {\n const { icon, children, target } = props;\n return (\n <MuiLink {...props}>\n <span className=\"Link-icon\">{icon}</span>\n {children}\n {target === \"_blank\" && (\n <span className=\"Link-indicator\" role=\"presentation\">\n <SvgIcon viewBox=\"0 0 16 16\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M13.2929 2H7.99998V1H14.5C14.7761 1 15 1.22386 15 1.5V8H14V2.70711L6.35353 10.3536L5.64642 9.64645L13.2929 2ZM1.5 4H1V4.5V14.5V15H1.5H11.5H12V14.5V8H11V14H2V5H8V4H1.5Z\"\n fill=\"currentColor\"\n />\n </SvgIcon>\n </span>\n )}\n </MuiLink>\n );\n }\n);\n"],"file":"Link.js"}
1
+ {"version":3,"sources":["../../../src/components/Link/Link.tsx"],"names":["forwardRef","Link","props","icon","children","target"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,UAAT,QAAyC,OAAzC;;;AASA,OAAO,MAAMC,IAAI,GAAGD,UAAU,CAC3BE,KAAD,IAAW;AACT,QAAM;AAAEC,IAAAA,IAAF;AAAQC,IAAAA,QAAR;AAAkBC,IAAAA;AAAlB,MAA6BH,KAAnC;AACA,SACE,kBAAaA,KAAb;AAAA,eACE;AAAM,MAAA,SAAS,EAAC,WAAhB;AAAA,gBAA6BC;AAA7B,MADF,EAEGC,QAFH,EAGGC,MAAM,KAAK,QAAX,IACC;AAAM,MAAA,SAAS,EAAC,gBAAhB;AAAiC,MAAA,IAAI,EAAC,cAAtC;AAAA,gBACE;AAAS,QAAA,OAAO,EAAC,WAAjB;AAAA,kBACE;AACE,UAAA,QAAQ,EAAC,SADX;AAEE,UAAA,QAAQ,EAAC,SAFX;AAGE,UAAA,CAAC,EAAC,yKAHJ;AAIE,UAAA,IAAI,EAAC;AAJP;AADF;AADF,MAJJ;AAAA,IADF;AAkBD,CArB2B,CAAvB","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 { forwardRef, ReactElement } from \"react\";\n\nimport { Link as MuiLink, SvgIcon } from \"@mui/material\";\nimport type { LinkProps as MuiLinkProps } from \"@mui/material\";\n\nexport interface LinkProps extends MuiLinkProps {\n icon?: ReactElement;\n}\n\nexport const Link = forwardRef<HTMLLinkElement | HTMLAnchorElement, LinkProps>(\n (props) => {\n const { icon, children, target } = props;\n return (\n <MuiLink {...props}>\n <span className=\"Link-icon\">{icon}</span>\n {children}\n {target === \"_blank\" && (\n <span className=\"Link-indicator\" role=\"presentation\">\n <SvgIcon viewBox=\"0 0 16 16\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M13.2929 2H7.99998V1H14.5C14.7761 1 15 1.22386 15 1.5V8H14V2.70711L6.35353 10.3536L5.64642 9.64645L13.2929 2ZM1.5 4H1V4.5V14.5V15H1.5H11.5H12V14.5V8H11V14H2V5H8V4H1.5Z\"\n fill=\"currentColor\"\n />\n </SvgIcon>\n </span>\n )}\n </MuiLink>\n );\n }\n);\n"],"file":"Link.js"}
@@ -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
- import React from "react";
13
12
  import type { Ref } from "react";
14
13
  import type { OutlinedInputProps, TooltipProps } from "@mui/material";
15
14
  export interface PasswordInputProps extends Omit<OutlinedInputProps, "type" | "label" | "defaultValue" | "ref"> {
@@ -18,5 +17,5 @@ export interface PasswordInputProps extends Omit<OutlinedInputProps, "type" | "l
18
17
  label: string;
19
18
  tooltipLabel?: TooltipProps["title"] | ((isHidden: boolean) => TooltipProps["title"]);
20
19
  }
21
- export declare const PasswordInput: React.ForwardRefExoticComponent<Pick<PasswordInputProps, "label" | "defaultValue" | "classes" | "onChange" | "onKeyUp" | "onKeyDown" | "onBlur" | "onFocus" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoComplete" | "autoFocus" | "components" | "componentsProps" | "disabled" | "disableInjectingGlobalStyles" | "endAdornment" | "error" | "fullWidth" | "inputComponent" | "inputProps" | "inputRef" | "margin" | "multiline" | "name" | "readOnly" | "required" | "renderSuffix" | "rows" | "maxRows" | "minRows" | "size" | "startAdornment" | "sx" | "value" | "notched" | "tooltipLabel"> & React.RefAttributes<HTMLInputElement>>;
20
+ export declare const PasswordInput: import("react").ForwardRefExoticComponent<Pick<PasswordInputProps, "label" | "defaultValue" | "classes" | "onChange" | "onKeyUp" | "onKeyDown" | "onBlur" | "onFocus" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoComplete" | "autoFocus" | "components" | "componentsProps" | "disabled" | "disableInjectingGlobalStyles" | "endAdornment" | "error" | "fullWidth" | "inputComponent" | "inputProps" | "inputRef" | "margin" | "multiline" | "name" | "readOnly" | "required" | "renderSuffix" | "rows" | "maxRows" | "minRows" | "size" | "startAdornment" | "sx" | "value" | "notched" | "tooltipLabel"> & import("react").RefAttributes<HTMLInputElement>>;
22
21
  //# sourceMappingURL=PasswordInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordInput.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordInput/PasswordInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAwC,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,GAAG,EAA2B,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAiBtE,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,GAAG,cAAc,GAAG,KAAK,CAAC;IAC3E,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EACT,YAAY,CAAC,OAAO,CAAC,GACrB,CAAC,CAAC,QAAQ,EAAE,OAAO,KAAK,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;CACpD;AAED,eAAO,MAAM,aAAa,09JAqEzB,CAAC"}
1
+ {"version":3,"file":"PasswordInput.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordInput/PasswordInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,GAAG,EAA2B,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAiBtE,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,GAAG,cAAc,GAAG,KAAK,CAAC;IAC3E,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EACT,YAAY,CAAC,OAAO,CAAC,GACrB,CAAC,CAAC,QAAQ,EAAE,OAAO,KAAK,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;CACpD;AAED,eAAO,MAAM,aAAa,8+JAqEzB,CAAC"}
@@ -7,8 +7,6 @@ import _Visibility from "@mui/icons-material/Visibility";
7
7
  import _VisibilityOff from "@mui/icons-material/VisibilityOff";
8
8
  import _InputLabel from "@mui/material/InputLabel";
9
9
 
10
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
11
-
12
10
  /*!
13
11
  * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
14
12
  * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
@@ -20,8 +18,10 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
20
18
  *
21
19
  * See the License for the specific language governing permissions and limitations under the License.
22
20
  */
23
- import React, { forwardRef, useState, useMemo } from "react";
21
+ import { forwardRef, useState, useMemo } from "react";
24
22
  import { useOid } from "../../utils/index.js";
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { jsxs as _jsxs } from "react/jsx-runtime";
25
25
  export const PasswordInput = forwardRef((props, ref) => {
26
26
  const {
27
27
  tooltipLabel,
@@ -59,25 +59,31 @@ export const PasswordInput = forwardRef((props, ref) => {
59
59
  return typeof tooltipLabel === "function" ? tooltipLabel(values.showPassword === false) : tooltipLabel;
60
60
  }, [values, tooltipLabel]);
61
61
  const oid = useOid(id);
62
- return React.createElement(_Box, null, React.createElement(_InputLabel, {
63
- htmlFor: oid
64
- }, label), React.createElement(_OutlinedInput, _extends({}, rest, {
65
- id: oid,
66
- inputProps: inputProps,
67
- inputRef: ref,
68
- onChange: handlePasswordChange,
69
- type: values.showPassword ? "text" : "password",
70
- value: values.password,
71
- endAdornment: React.createElement(_InputAdornment, {
72
- position: "end"
73
- }, React.createElement(_Tooltip, {
74
- title: tooltipTitle
75
- }, React.createElement(_IconButton, {
76
- "aria-label": "toggle password visibility",
77
- onClick: handleClickShowPassword,
78
- onMouseDown: handleMouseDownPassword,
79
- edge: "end"
80
- }, values.showPassword ? React.createElement(_VisibilityOff, null) : React.createElement(_Visibility, null))))
81
- })));
62
+ return _jsxs(_Box, {
63
+ children: [_jsx(_InputLabel, {
64
+ htmlFor: oid,
65
+ children: label
66
+ }), _jsx(_OutlinedInput, { ...rest,
67
+ id: oid,
68
+ inputProps: inputProps,
69
+ inputRef: ref,
70
+ onChange: handlePasswordChange,
71
+ type: values.showPassword ? "text" : "password",
72
+ value: values.password,
73
+ endAdornment: _jsx(_InputAdornment, {
74
+ position: "end",
75
+ children: _jsx(_Tooltip, {
76
+ title: tooltipTitle,
77
+ children: _jsx(_IconButton, {
78
+ "aria-label": "toggle password visibility",
79
+ onClick: handleClickShowPassword,
80
+ onMouseDown: handleMouseDownPassword,
81
+ edge: "end",
82
+ children: values.showPassword ? _jsx(_VisibilityOff, {}) : _jsx(_Visibility, {})
83
+ })
84
+ })
85
+ })
86
+ })]
87
+ });
82
88
  });
83
89
  //# sourceMappingURL=PasswordInput.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/PasswordInput/PasswordInput.tsx"],"names":["React","forwardRef","useState","useMemo","useOid","PasswordInput","props","ref","tooltipLabel","id","label","defaultValue","password","inputProps","rest","values","setValues","showPassword","handlePasswordChange","event","target","value","onChange","handleClickShowPassword","handleMouseDownPassword","preventDefault","tooltipTitle","oid"],"mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,OAAOA,KAAP,IAAgBC,UAAhB,EAA4BC,QAA5B,EAAsCC,OAAtC,QAAqD,OAArD;SAYSC,M;AAiBT,OAAO,MAAMC,aAAa,GAAGJ,UAAU,CACrC,CAACK,KAAD,EAAQC,GAAR,KAAgB;AACd,QAAM;AACJC,IAAAA,YADI;AAEJC,IAAAA,EAFI;AAGJC,IAAAA,KAHI;AAIJC,IAAAA,YAAY,EAAEC,QAAQ,GAAG,EAJrB;AAKJC,IAAAA,UALI;AAMJ,OAAGC;AANC,MAOFR,KAPJ;AASA,QAAM,CAACS,MAAD,EAASC,SAAT,IAAsBd,QAAQ,CAAQ;AAC1CU,IAAAA,QAD0C;AAE1CK,IAAAA,YAAY,EAAE;AAF4B,GAAR,CAApC;;AAKA,QAAMC,oBAAoB,GAAIC,KAAD,IAA0C;AAAA;;AACrEH,IAAAA,SAAS,CAAC,EAAE,GAAGD,MAAL;AAAaH,MAAAA,QAAQ,EAAEO,KAAK,CAACC,MAAN,CAAaC;AAApC,KAAD,CAAT;AACA,uBAAAf,KAAK,CAACgB,QAAN,yEAAAhB,KAAK,EAAYa,KAAZ,CAAL;AACD,GAHD;;AAKA,QAAMI,uBAAuB,GAAG,MAAM;AACpCP,IAAAA,SAAS,CAAC,EACR,GAAGD,MADK;AAERE,MAAAA,YAAY,EAAE,CAACF,MAAM,CAACE;AAFd,KAAD,CAAT;AAID,GALD;;AAOA,QAAMO,uBAAuB,GAAIL,KAAD,IAA0C;AACxEA,IAAAA,KAAK,CAACM,cAAN;AACD,GAFD;;AAIA,QAAMC,YAAY,GAAGvB,OAAO,CAAC,MAAM;AACjC,WAAO,OAAOK,YAAP,KAAwB,UAAxB,GACHA,YAAY,CAACO,MAAM,CAACE,YAAP,KAAwB,KAAzB,CADT,GAEHT,YAFJ;AAGD,GAJ2B,EAIzB,CAACO,MAAD,EAASP,YAAT,CAJyB,CAA5B;AAMA,QAAMmB,GAAG,GAAGvB,MAAM,CAACK,EAAD,CAAlB;AAEA,SACE,gCACE;AAAY,IAAA,OAAO,EAAEkB;AAArB,KAA2BjB,KAA3B,CADF,EAEE,iDACMI,IADN;AAEE,IAAA,EAAE,EAAEa,GAFN;AAGE,IAAA,UAAU,EAAEd,UAHd;AAIE,IAAA,QAAQ,EAAEN,GAJZ;AAKE,IAAA,QAAQ,EAAEW,oBALZ;AAME,IAAA,IAAI,EAAEH,MAAM,CAACE,YAAP,GAAsB,MAAtB,GAA+B,UANvC;AAOE,IAAA,KAAK,EAAEF,MAAM,CAACH,QAPhB;AAQE,IAAA,YAAY,EACV;AAAgB,MAAA,QAAQ,EAAC;AAAzB,OACE;AAAS,MAAA,KAAK,EAAEc;AAAhB,OACE;AACE,oBAAW,4BADb;AAEE,MAAA,OAAO,EAAEH,uBAFX;AAGE,MAAA,WAAW,EAAEC,uBAHf;AAIE,MAAA,IAAI,EAAC;AAJP,OAMGT,MAAM,CAACE,YAAP,GAAsB,yCAAtB,GAA0C,sCAN7C,CADF,CADF;AATJ,KAFF,CADF;AA4BD,CApEoC,CAAhC","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 React, { forwardRef, useState, useMemo } from \"react\";\nimport type { Ref, ChangeEvent, MouseEvent } from \"react\";\nimport type { OutlinedInputProps, TooltipProps } from \"@mui/material\";\nimport {\n Tooltip,\n IconButton,\n Box,\n InputLabel,\n OutlinedInput,\n InputAdornment,\n} from \"@mui/material\";\nimport { Visibility, VisibilityOff } from \"@mui/icons-material\";\nimport { useOid } from \"../../utils\";\n\ninterface State {\n password: string;\n showPassword: boolean;\n}\n\nexport interface PasswordInputProps\n extends Omit<OutlinedInputProps, \"type\" | \"label\" | \"defaultValue\" | \"ref\"> {\n ref?: Ref<HTMLInputElement>;\n defaultValue?: string;\n label: string;\n tooltipLabel?:\n | TooltipProps[\"title\"]\n | ((isHidden: boolean) => TooltipProps[\"title\"]);\n}\n\nexport const PasswordInput = forwardRef<HTMLInputElement, PasswordInputProps>(\n (props, ref) => {\n const {\n tooltipLabel,\n id,\n label,\n defaultValue: password = \"\",\n inputProps,\n ...rest\n } = props;\n\n const [values, setValues] = useState<State>({\n password,\n showPassword: false,\n });\n\n const handlePasswordChange = (event: ChangeEvent<HTMLInputElement>) => {\n setValues({ ...values, password: event.target.value });\n props.onChange?.(event);\n };\n\n const handleClickShowPassword = () => {\n setValues({\n ...values,\n showPassword: !values.showPassword,\n });\n };\n\n const handleMouseDownPassword = (event: MouseEvent<HTMLButtonElement>) => {\n event.preventDefault();\n };\n\n const tooltipTitle = useMemo(() => {\n return typeof tooltipLabel === \"function\"\n ? tooltipLabel(values.showPassword === false)\n : tooltipLabel;\n }, [values, tooltipLabel]);\n\n const oid = useOid(id);\n\n return (\n <Box>\n <InputLabel htmlFor={oid}>{label}</InputLabel>\n <OutlinedInput\n {...rest}\n id={oid}\n inputProps={inputProps}\n inputRef={ref}\n onChange={handlePasswordChange}\n type={values.showPassword ? \"text\" : \"password\"}\n value={values.password}\n endAdornment={\n <InputAdornment position=\"end\">\n <Tooltip title={tooltipTitle}>\n <IconButton\n aria-label=\"toggle password visibility\"\n onClick={handleClickShowPassword}\n onMouseDown={handleMouseDownPassword}\n edge=\"end\"\n >\n {values.showPassword ? <VisibilityOff /> : <Visibility />}\n </IconButton>\n </Tooltip>\n </InputAdornment>\n }\n />\n </Box>\n );\n }\n);\n"],"file":"PasswordInput.js"}
1
+ {"version":3,"sources":["../../../src/components/PasswordInput/PasswordInput.tsx"],"names":["forwardRef","useState","useMemo","useOid","PasswordInput","props","ref","tooltipLabel","id","label","defaultValue","password","inputProps","rest","values","setValues","showPassword","handlePasswordChange","event","target","value","onChange","handleClickShowPassword","handleMouseDownPassword","preventDefault","tooltipTitle","oid"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,UAAT,EAAqBC,QAArB,EAA+BC,OAA/B,QAA8C,OAA9C;SAYSC,M;;;AAiBT,OAAO,MAAMC,aAAa,GAAGJ,UAAU,CACrC,CAACK,KAAD,EAAQC,GAAR,KAAgB;AACd,QAAM;AACJC,IAAAA,YADI;AAEJC,IAAAA,EAFI;AAGJC,IAAAA,KAHI;AAIJC,IAAAA,YAAY,EAAEC,QAAQ,GAAG,EAJrB;AAKJC,IAAAA,UALI;AAMJ,OAAGC;AANC,MAOFR,KAPJ;AASA,QAAM,CAACS,MAAD,EAASC,SAAT,IAAsBd,QAAQ,CAAQ;AAC1CU,IAAAA,QAD0C;AAE1CK,IAAAA,YAAY,EAAE;AAF4B,GAAR,CAApC;;AAKA,QAAMC,oBAAoB,GAAIC,KAAD,IAA0C;AAAA;;AACrEH,IAAAA,SAAS,CAAC,EAAE,GAAGD,MAAL;AAAaH,MAAAA,QAAQ,EAAEO,KAAK,CAACC,MAAN,CAAaC;AAApC,KAAD,CAAT;AACA,uBAAAf,KAAK,CAACgB,QAAN,yEAAAhB,KAAK,EAAYa,KAAZ,CAAL;AACD,GAHD;;AAKA,QAAMI,uBAAuB,GAAG,MAAM;AACpCP,IAAAA,SAAS,CAAC,EACR,GAAGD,MADK;AAERE,MAAAA,YAAY,EAAE,CAACF,MAAM,CAACE;AAFd,KAAD,CAAT;AAID,GALD;;AAOA,QAAMO,uBAAuB,GAAIL,KAAD,IAA0C;AACxEA,IAAAA,KAAK,CAACM,cAAN;AACD,GAFD;;AAIA,QAAMC,YAAY,GAAGvB,OAAO,CAAC,MAAM;AACjC,WAAO,OAAOK,YAAP,KAAwB,UAAxB,GACHA,YAAY,CAACO,MAAM,CAACE,YAAP,KAAwB,KAAzB,CADT,GAEHT,YAFJ;AAGD,GAJ2B,EAIzB,CAACO,MAAD,EAASP,YAAT,CAJyB,CAA5B;AAMA,QAAMmB,GAAG,GAAGvB,MAAM,CAACK,EAAD,CAAlB;AAEA,SACE;AAAA,eACE;AAAY,MAAA,OAAO,EAAEkB,GAArB;AAAA,gBAA2BjB;AAA3B,MADF,EAEE,0BACMI,IADN;AAEE,MAAA,EAAE,EAAEa,GAFN;AAGE,MAAA,UAAU,EAAEd,UAHd;AAIE,MAAA,QAAQ,EAAEN,GAJZ;AAKE,MAAA,QAAQ,EAAEW,oBALZ;AAME,MAAA,IAAI,EAAEH,MAAM,CAACE,YAAP,GAAsB,MAAtB,GAA+B,UANvC;AAOE,MAAA,KAAK,EAAEF,MAAM,CAACH,QAPhB;AAQE,MAAA,YAAY,EACV;AAAgB,QAAA,QAAQ,EAAC,KAAzB;AAAA,kBACE;AAAS,UAAA,KAAK,EAAEc,YAAhB;AAAA,oBACE;AACE,0BAAW,4BADb;AAEE,YAAA,OAAO,EAAEH,uBAFX;AAGE,YAAA,WAAW,EAAEC,uBAHf;AAIE,YAAA,IAAI,EAAC,KAJP;AAAA,sBAMGT,MAAM,CAACE,YAAP,GAAsB,wBAAtB,GAA0C;AAN7C;AADF;AADF;AATJ,MAFF;AAAA,IADF;AA4BD,CApEoC,CAAhC","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 { forwardRef, useState, useMemo } from \"react\";\nimport type { Ref, ChangeEvent, MouseEvent } from \"react\";\nimport type { OutlinedInputProps, TooltipProps } from \"@mui/material\";\nimport {\n Tooltip,\n IconButton,\n Box,\n InputLabel,\n OutlinedInput,\n InputAdornment,\n} from \"@mui/material\";\nimport { Visibility, VisibilityOff } from \"@mui/icons-material\";\nimport { useOid } from \"../../utils\";\n\ninterface State {\n password: string;\n showPassword: boolean;\n}\n\nexport interface PasswordInputProps\n extends Omit<OutlinedInputProps, \"type\" | \"label\" | \"defaultValue\" | \"ref\"> {\n ref?: Ref<HTMLInputElement>;\n defaultValue?: string;\n label: string;\n tooltipLabel?:\n | TooltipProps[\"title\"]\n | ((isHidden: boolean) => TooltipProps[\"title\"]);\n}\n\nexport const PasswordInput = forwardRef<HTMLInputElement, PasswordInputProps>(\n (props, ref) => {\n const {\n tooltipLabel,\n id,\n label,\n defaultValue: password = \"\",\n inputProps,\n ...rest\n } = props;\n\n const [values, setValues] = useState<State>({\n password,\n showPassword: false,\n });\n\n const handlePasswordChange = (event: ChangeEvent<HTMLInputElement>) => {\n setValues({ ...values, password: event.target.value });\n props.onChange?.(event);\n };\n\n const handleClickShowPassword = () => {\n setValues({\n ...values,\n showPassword: !values.showPassword,\n });\n };\n\n const handleMouseDownPassword = (event: MouseEvent<HTMLButtonElement>) => {\n event.preventDefault();\n };\n\n const tooltipTitle = useMemo(() => {\n return typeof tooltipLabel === \"function\"\n ? tooltipLabel(values.showPassword === false)\n : tooltipLabel;\n }, [values, tooltipLabel]);\n\n const oid = useOid(id);\n\n return (\n <Box>\n <InputLabel htmlFor={oid}>{label}</InputLabel>\n <OutlinedInput\n {...rest}\n id={oid}\n inputProps={inputProps}\n inputRef={ref}\n onChange={handlePasswordChange}\n type={values.showPassword ? \"text\" : \"password\"}\n value={values.password}\n endAdornment={\n <InputAdornment position=\"end\">\n <Tooltip title={tooltipTitle}>\n <IconButton\n aria-label=\"toggle password visibility\"\n onClick={handleClickShowPassword}\n onMouseDown={handleMouseDownPassword}\n edge=\"end\"\n >\n {values.showPassword ? <VisibilityOff /> : <Visibility />}\n </IconButton>\n </Tooltip>\n </InputAdornment>\n }\n />\n </Box>\n );\n }\n);\n"],"file":"PasswordInput.js"}
@@ -11,4 +11,5 @@
11
11
  */
12
12
  export * from "./PasswordInput";
13
13
  export * from "./Link";
14
+ export * from "./Icon";
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
@@ -11,4 +11,5 @@
11
11
  */
12
12
  export * from "./PasswordInput/index.js";
13
13
  export * from "./Link/index.js";
14
+ export * from "./Icon/index.js";
14
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport * from \"./PasswordInput\";\nexport * from \"./Link\";\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport * from \"./PasswordInput\";\nexport * from \"./Link\";\nexport * from \"./Icon\";\n"],"file":"index.js"}
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,YAAY,CAkTjD,CAAC"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAGlD,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,YAAY,CA+kBjD,CAAC"}