@okta/odyssey-react-mui 0.15.1 → 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 (111) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +33 -9
  3. package/dist/components/Icon/Add.d.ts +1 -1
  4. package/dist/components/Icon/AddCircle.d.ts +1 -1
  5. package/dist/components/Icon/AlertCircle.d.ts +1 -1
  6. package/dist/components/Icon/AlertCircleFilled.d.ts +1 -1
  7. package/dist/components/Icon/AlertTriangleFilled.d.ts +1 -1
  8. package/dist/components/Icon/Anchor.d.ts +1 -1
  9. package/dist/components/Icon/ArrowDown.d.ts +1 -1
  10. package/dist/components/Icon/ArrowLeft.d.ts +1 -1
  11. package/dist/components/Icon/ArrowRight.d.ts +1 -1
  12. package/dist/components/Icon/ArrowUp.d.ts +1 -1
  13. package/dist/components/Icon/ArrowUpDown.d.ts +1 -1
  14. package/dist/components/Icon/Calendar.d.ts +1 -1
  15. package/dist/components/Icon/Check.d.ts +1 -1
  16. package/dist/components/Icon/CheckCircleFilled.d.ts +1 -1
  17. package/dist/components/Icon/ChevronDown.d.ts +1 -1
  18. package/dist/components/Icon/ChevronUp.d.ts +1 -1
  19. package/dist/components/Icon/Close.d.ts +1 -1
  20. package/dist/components/Icon/CloseCircleFilled.d.ts +1 -1
  21. package/dist/components/Icon/Copy.d.ts +1 -1
  22. package/dist/components/Icon/Delete.d.ts +1 -1
  23. package/dist/components/Icon/Download.d.ts +1 -1
  24. package/dist/components/Icon/DragHandle.d.ts +1 -1
  25. package/dist/components/Icon/Edit.d.ts +1 -1
  26. package/dist/components/Icon/ExternalLink.d.ts +1 -1
  27. package/dist/components/Icon/Eye.d.ts +1 -1
  28. package/dist/components/Icon/EyeOff.d.ts +1 -1
  29. package/dist/components/Icon/Filter.d.ts +1 -1
  30. package/dist/components/Icon/Globe.d.ts +1 -1
  31. package/dist/components/Icon/Home.d.ts +1 -1
  32. package/dist/components/Icon/Icon.d.ts +1 -1
  33. package/dist/components/Icon/InformationCircle.d.ts +1 -1
  34. package/dist/components/Icon/InformationCircleFilled.d.ts +1 -1
  35. package/dist/components/Icon/Notification.d.ts +1 -1
  36. package/dist/components/Icon/OverflowVertical.d.ts +1 -1
  37. package/dist/components/Icon/QuestionCircle.d.ts +1 -1
  38. package/dist/components/Icon/QuestionCircleFilled.d.ts +1 -1
  39. package/dist/components/Icon/Search.d.ts +1 -1
  40. package/dist/components/Icon/Settings.d.ts +1 -1
  41. package/dist/components/Icon/Subtract.d.ts +1 -1
  42. package/dist/components/Icon/User.d.ts +1 -1
  43. package/dist/components/Icon/UserGroup.d.ts +1 -1
  44. package/dist/components/Icon/index.d.ts +40 -40
  45. package/dist/components/Link/Link.d.ts +1 -1
  46. package/dist/components/Link/Link.js +1 -1
  47. package/dist/components/Link/Link.js.map +1 -1
  48. package/dist/components/PasswordInput/PasswordInput.d.ts +1 -1
  49. package/dist/components/PasswordInput/PasswordInput.js +4 -4
  50. package/dist/components/PasswordInput/PasswordInput.js.map +1 -1
  51. package/dist/components/ThemeProvider/ThemeProvider.d.ts +16 -0
  52. package/dist/components/ThemeProvider/ThemeProvider.d.ts.map +1 -0
  53. package/dist/components/ThemeProvider/ThemeProvider.js +24 -0
  54. package/dist/components/ThemeProvider/ThemeProvider.js.map +1 -0
  55. package/dist/components/ThemeProvider/index.d.ts +13 -0
  56. package/dist/components/ThemeProvider/index.d.ts.map +1 -0
  57. package/dist/components/ThemeProvider/index.js +13 -0
  58. package/dist/components/ThemeProvider/index.js.map +1 -0
  59. package/dist/components/index.d.ts +3 -2
  60. package/dist/components/index.d.ts.map +1 -1
  61. package/dist/components/index.js +3 -2
  62. package/dist/components/index.js.map +1 -1
  63. package/dist/index.d.ts +7 -0
  64. package/dist/index.d.ts.map +1 -1
  65. package/dist/index.js +5 -0
  66. package/dist/index.js.map +1 -1
  67. package/dist/themes/odyssey/components.d.ts.map +1 -1
  68. package/dist/themes/odyssey/components.js +123 -10
  69. package/dist/themes/odyssey/components.js.map +1 -1
  70. package/dist/themes/odyssey/components.types.d.ts +5 -0
  71. package/dist/themes/odyssey/components.types.d.ts.map +1 -1
  72. package/dist/themes/odyssey/components.types.js.map +1 -1
  73. package/dist/themes/odyssey/shape.d.ts.map +1 -1
  74. package/dist/themes/odyssey/shape.js +2 -1
  75. package/dist/themes/odyssey/shape.js.map +1 -1
  76. package/dist/themes/odyssey/theme.d.ts +2 -2
  77. package/dist/themes/odyssey/theme.d.ts.map +1 -1
  78. package/dist/themes/odyssey/theme.js +8 -8
  79. package/dist/themes/odyssey/theme.js.map +1 -1
  80. package/dist/themes/odyssey/typography.js +6 -6
  81. package/dist/themes/odyssey/typography.js.map +1 -1
  82. package/dist/utils/{oid.d.ts → createUniqueId.d.ts} +3 -4
  83. package/dist/utils/createUniqueId.d.ts.map +1 -0
  84. package/dist/utils/{oid.js → createUniqueId.js} +3 -9
  85. package/dist/utils/createUniqueId.js.map +1 -0
  86. package/dist/utils/index.d.ts +2 -1
  87. package/dist/utils/index.d.ts.map +1 -1
  88. package/dist/utils/index.js +2 -1
  89. package/dist/utils/index.js.map +1 -1
  90. package/dist/utils/useUniqueId.d.ts +13 -0
  91. package/dist/utils/useUniqueId.d.ts.map +1 -0
  92. package/dist/utils/useUniqueId.js +18 -0
  93. package/dist/utils/useUniqueId.js.map +1 -0
  94. package/package.json +7 -5
  95. package/src/components/Link/Link.tsx +1 -1
  96. package/src/components/PasswordInput/PasswordInput.tsx +4 -4
  97. package/src/components/ThemeProvider/ThemeProvider.tsx +20 -0
  98. package/src/components/ThemeProvider/index.ts +13 -0
  99. package/src/components/index.ts +3 -2
  100. package/src/index.ts +80 -0
  101. package/src/themes/odyssey/components.tsx +120 -5
  102. package/src/themes/odyssey/components.types.ts +6 -0
  103. package/src/themes/odyssey/shape.ts +7 -1
  104. package/src/themes/odyssey/theme.ts +7 -7
  105. package/src/themes/odyssey/typography.ts +6 -6
  106. package/src/utils/{oid.test.ts → createUniqueId.test.ts} +5 -4
  107. package/src/utils/{oid.ts → createUniqueId.ts} +4 -9
  108. package/src/utils/index.ts +2 -1
  109. package/src/utils/useUniqueId.ts +21 -0
  110. package/dist/utils/oid.d.ts.map +0 -1
  111. package/dist/utils/oid.js.map +0 -1
@@ -14,5 +14,5 @@ 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: 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>>;
17
+ export declare const Link: import("react").ForwardRefExoticComponent<Pick<LinkProps, "className" | "style" | "classes" | "children" | "color" | "fontSize" | "sx" | "p" | "slot" | "title" | "height" | "id" | "lang" | "media" | "target" | "type" | "width" | "role" | "tabIndex" | "display" | "fontFamily" | "fontStyle" | "fontWeight" | "href" | "letterSpacing" | "order" | "overflow" | "visibility" | "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" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "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" | "key" | "download" | "border" | "boxShadow" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "translate" | "whiteSpace" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "hrefLang" | "ping" | "rel" | "referrerPolicy" | "align" | "underline" | "icon" | "gutterBottom" | "noWrap" | "paragraph" | "variant" | "variantMapping" | "TypographyClasses"> & import("react").RefAttributes<HTMLAnchorElement | HTMLLinkElement>>;
18
18
  //# sourceMappingURL=Link.d.ts.map
@@ -22,7 +22,7 @@ export const Link = forwardRef(props => {
22
22
  target
23
23
  } = props;
24
24
  return _jsxs(_Link, { ...props,
25
- children: [_jsx("span", {
25
+ children: [icon && _jsx("span", {
26
26
  className: "Link-icon",
27
27
  children: icon
28
28
  }), children, target === "_blank" && _jsx("span", {
@@ -1 +1 @@
1
- {"version":3,"file":"Link.js","names":["forwardRef","Link","props","icon","children","target"],"sources":["../../../src/components/Link/Link.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { 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"],"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;EACT,MAAM;IAAEC,IAAF;IAAQC,QAAR;IAAkBC;EAAlB,IAA6BH,KAAnC;EACA,OACE,kBAAaA,KAAb;IAAA,WACE;MAAM,SAAS,EAAC,WAAhB;MAAA,UAA6BC;IAA7B,EADF,EAEGC,QAFH,EAGGC,MAAM,KAAK,QAAX,IACC;MAAM,SAAS,EAAC,gBAAhB;MAAiC,IAAI,EAAC,cAAtC;MAAA,UACE;QAAS,OAAO,EAAC,WAAjB;QAAA,UACE;UACE,QAAQ,EAAC,SADX;UAEE,QAAQ,EAAC,SAFX;UAGE,CAAC,EAAC,yKAHJ;UAIE,IAAI,EAAC;QAJP;MADF;IADF,EAJJ;EAAA,EADF;AAkBD,CArB2B,CAAvB"}
1
+ {"version":3,"file":"Link.js","names":["forwardRef","Link","props","icon","children","target"],"sources":["../../../src/components/Link/Link.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { 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 {icon && <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"],"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;EACT,MAAM;IAAEC,IAAF;IAAQC,QAAR;IAAkBC;EAAlB,IAA6BH,KAAnC;EACA,OACE,kBAAaA,KAAb;IAAA,WACGC,IAAI,IAAI;MAAM,SAAS,EAAC,WAAhB;MAAA,UAA6BA;IAA7B,EADX,EAEGC,QAFH,EAGGC,MAAM,KAAK,QAAX,IACC;MAAM,SAAS,EAAC,gBAAhB;MAAiC,IAAI,EAAC,cAAtC;MAAA,UACE;QAAS,OAAO,EAAC,WAAjB;QAAA,UACE;UACE,QAAQ,EAAC,SADX;UAEE,QAAQ,EAAC,SAFX;UAGE,CAAC,EAAC,yKAHJ;UAIE,IAAI,EAAC;QAJP;MADF;IADF,EAJJ;EAAA,EADF;AAkBD,CArB2B,CAAvB"}
@@ -17,5 +17,5 @@ export interface PasswordInputProps extends Omit<OutlinedInputProps, "type" | "l
17
17
  label: string;
18
18
  tooltipLabel?: TooltipProps["title"] | ((isHidden: boolean) => TooltipProps["title"]);
19
19
  }
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>>;
20
+ export declare const PasswordInput: import("react").ForwardRefExoticComponent<Pick<PasswordInputProps, "className" | "style" | "classes" | "color" | "sx" | "label" | "slot" | "title" | "id" | "lang" | "name" | "role" | "tabIndex" | "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" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "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" | "disabled" | "error" | "translate" | "margin" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "autoFocus" | "value" | "autoComplete" | "readOnly" | "required" | "size" | "rows" | "components" | "componentsProps" | "disableInjectingGlobalStyles" | "endAdornment" | "fullWidth" | "inputComponent" | "inputProps" | "inputRef" | "multiline" | "renderSuffix" | "maxRows" | "minRows" | "startAdornment" | "notched" | "tooltipLabel"> & import("react").RefAttributes<HTMLInputElement>>;
21
21
  //# sourceMappingURL=PasswordInput.d.ts.map
@@ -19,7 +19,7 @@ import _InputLabel from "@mui/material/InputLabel";
19
19
  * See the License for the specific language governing permissions and limitations under the License.
20
20
  */
21
21
  import { forwardRef, useState, useMemo } from "react";
22
- import { useOid } from "../../utils/index.js";
22
+ import { useUniqueId } from "../../utils/index.js";
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import { jsxs as _jsxs } from "react/jsx-runtime";
25
25
  export const PasswordInput = forwardRef((props, ref) => {
@@ -56,13 +56,13 @@ export const PasswordInput = forwardRef((props, ref) => {
56
56
  const tooltipTitle = useMemo(() => {
57
57
  return typeof tooltipLabel === "function" ? tooltipLabel(values.showPassword === false) : tooltipLabel;
58
58
  }, [values, tooltipLabel]);
59
- const oid = useOid(id);
59
+ const uniqueId = useUniqueId(id);
60
60
  return _jsxs(_Box, {
61
61
  children: [_jsx(_InputLabel, {
62
- htmlFor: oid,
62
+ htmlFor: uniqueId,
63
63
  children: label
64
64
  }), _jsx(_OutlinedInput, { ...rest,
65
- id: oid,
65
+ id: uniqueId,
66
66
  inputProps: inputProps,
67
67
  inputRef: ref,
68
68
  onChange: handlePasswordChange,
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordInput.js","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"],"sources":["../../../src/components/PasswordInput/PasswordInput.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { 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"],"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;EACd,MAAM;IACJC,YADI;IAEJC,EAFI;IAGJC,KAHI;IAIJC,YAAY,EAAEC,QAAQ,GAAG,EAJrB;IAKJC,UALI;IAMJ,GAAGC;EANC,IAOFR,KAPJ;EASA,MAAM,CAACS,MAAD,EAASC,SAAT,IAAsBd,QAAQ,CAAQ;IAC1CU,QAD0C;IAE1CK,YAAY,EAAE;EAF4B,CAAR,CAApC;;EAKA,MAAMC,oBAAoB,GAAIC,KAAD,IAA0C;IACrEH,SAAS,CAAC,EAAE,GAAGD,MAAL;MAAaH,QAAQ,EAAEO,KAAK,CAACC,MAAN,CAAaC;IAApC,CAAD,CAAT;IACAf,KAAK,CAACgB,QAAN,GAAiBH,KAAjB;EACD,CAHD;;EAKA,MAAMI,uBAAuB,GAAG,MAAM;IACpCP,SAAS,CAAC,EACR,GAAGD,MADK;MAERE,YAAY,EAAE,CAACF,MAAM,CAACE;IAFd,CAAD,CAAT;EAID,CALD;;EAOA,MAAMO,uBAAuB,GAAIL,KAAD,IAA0C;IACxEA,KAAK,CAACM,cAAN;EACD,CAFD;;EAIA,MAAMC,YAAY,GAAGvB,OAAO,CAAC,MAAM;IACjC,OAAO,OAAOK,YAAP,KAAwB,UAAxB,GACHA,YAAY,CAACO,MAAM,CAACE,YAAP,KAAwB,KAAzB,CADT,GAEHT,YAFJ;EAGD,CAJ2B,EAIzB,CAACO,MAAD,EAASP,YAAT,CAJyB,CAA5B;EAMA,MAAMmB,GAAG,GAAGvB,MAAM,CAACK,EAAD,CAAlB;EAEA,OACE;IAAA,WACE;MAAY,OAAO,EAAEkB,GAArB;MAAA,UAA2BjB;IAA3B,EADF,EAEE,0BACMI,IADN;MAEE,EAAE,EAAEa,GAFN;MAGE,UAAU,EAAEd,UAHd;MAIE,QAAQ,EAAEN,GAJZ;MAKE,QAAQ,EAAEW,oBALZ;MAME,IAAI,EAAEH,MAAM,CAACE,YAAP,GAAsB,MAAtB,GAA+B,UANvC;MAOE,KAAK,EAAEF,MAAM,CAACH,QAPhB;MAQE,YAAY,EACV;QAAgB,QAAQ,EAAC,KAAzB;QAAA,UACE;UAAS,KAAK,EAAEc,YAAhB;UAAA,UACE;YACE,cAAW,4BADb;YAEE,OAAO,EAAEH,uBAFX;YAGE,WAAW,EAAEC,uBAHf;YAIE,IAAI,EAAC,KAJP;YAAA,UAMGT,MAAM,CAACE,YAAP,GAAsB,wBAAtB,GAA0C;UAN7C;QADF;MADF;IATJ,EAFF;EAAA,EADF;AA4BD,CApEoC,CAAhC"}
1
+ {"version":3,"file":"PasswordInput.js","names":["forwardRef","useState","useMemo","useUniqueId","PasswordInput","props","ref","tooltipLabel","id","label","defaultValue","password","inputProps","rest","values","setValues","showPassword","handlePasswordChange","event","target","value","onChange","handleClickShowPassword","handleMouseDownPassword","preventDefault","tooltipTitle","uniqueId"],"sources":["../../../src/components/PasswordInput/PasswordInput.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { 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 { useUniqueId } 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 uniqueId = useUniqueId(id);\n\n return (\n <Box>\n <InputLabel htmlFor={uniqueId}>{label}</InputLabel>\n <OutlinedInput\n {...rest}\n id={uniqueId}\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"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,UAAT,EAAqBC,QAArB,EAA+BC,OAA/B,QAA8C,OAA9C;SAYSC,W;;;AAiBT,OAAO,MAAMC,aAAa,GAAGJ,UAAU,CACrC,CAACK,KAAD,EAAQC,GAAR,KAAgB;EACd,MAAM;IACJC,YADI;IAEJC,EAFI;IAGJC,KAHI;IAIJC,YAAY,EAAEC,QAAQ,GAAG,EAJrB;IAKJC,UALI;IAMJ,GAAGC;EANC,IAOFR,KAPJ;EASA,MAAM,CAACS,MAAD,EAASC,SAAT,IAAsBd,QAAQ,CAAQ;IAC1CU,QAD0C;IAE1CK,YAAY,EAAE;EAF4B,CAAR,CAApC;;EAKA,MAAMC,oBAAoB,GAAIC,KAAD,IAA0C;IACrEH,SAAS,CAAC,EAAE,GAAGD,MAAL;MAAaH,QAAQ,EAAEO,KAAK,CAACC,MAAN,CAAaC;IAApC,CAAD,CAAT;IACAf,KAAK,CAACgB,QAAN,GAAiBH,KAAjB;EACD,CAHD;;EAKA,MAAMI,uBAAuB,GAAG,MAAM;IACpCP,SAAS,CAAC,EACR,GAAGD,MADK;MAERE,YAAY,EAAE,CAACF,MAAM,CAACE;IAFd,CAAD,CAAT;EAID,CALD;;EAOA,MAAMO,uBAAuB,GAAIL,KAAD,IAA0C;IACxEA,KAAK,CAACM,cAAN;EACD,CAFD;;EAIA,MAAMC,YAAY,GAAGvB,OAAO,CAAC,MAAM;IACjC,OAAO,OAAOK,YAAP,KAAwB,UAAxB,GACHA,YAAY,CAACO,MAAM,CAACE,YAAP,KAAwB,KAAzB,CADT,GAEHT,YAFJ;EAGD,CAJ2B,EAIzB,CAACO,MAAD,EAASP,YAAT,CAJyB,CAA5B;EAMA,MAAMmB,QAAQ,GAAGvB,WAAW,CAACK,EAAD,CAA5B;EAEA,OACE;IAAA,WACE;MAAY,OAAO,EAAEkB,QAArB;MAAA,UAAgCjB;IAAhC,EADF,EAEE,0BACMI,IADN;MAEE,EAAE,EAAEa,QAFN;MAGE,UAAU,EAAEd,UAHd;MAIE,QAAQ,EAAEN,GAJZ;MAKE,QAAQ,EAAEW,oBALZ;MAME,IAAI,EAAEH,MAAM,CAACE,YAAP,GAAsB,MAAtB,GAA+B,UANvC;MAOE,KAAK,EAAEF,MAAM,CAACH,QAPhB;MAQE,YAAY,EACV;QAAgB,QAAQ,EAAC,KAAzB;QAAA,UACE;UAAS,KAAK,EAAEc,YAAhB;UAAA,UACE;YACE,cAAW,4BADb;YAEE,OAAO,EAAEH,uBAFX;YAGE,WAAW,EAAEC,uBAHf;YAIE,IAAI,EAAC,KAJP;YAAA,UAMGT,MAAM,CAACE,YAAP,GAAsB,wBAAtB,GAA0C;UAN7C;QADF;MADF;IATJ,EAFF;EAAA,EADF;AA4BD,CApEoC,CAAhC"}
@@ -0,0 +1,16 @@
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 { ReactElement } from "react";
13
+ export declare const ThemeProvider: ({ children }: {
14
+ children: ReactElement;
15
+ }) => JSX.Element;
16
+ //# sourceMappingURL=ThemeProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/components/ThemeProvider/ThemeProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAIrC,eAAO,MAAM,aAAa;cAA8B,YAAY;iBAEnE,CAAC"}
@@ -0,0 +1,24 @@
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 { ThemeProvider as MuiThemeProvider } from "@mui/material/styles";
13
+ import { odysseyTheme } from "../../themes/index.js";
14
+ import { jsx as _jsx } from "react/jsx-runtime";
15
+ export const ThemeProvider = _ref => {
16
+ let {
17
+ children
18
+ } = _ref;
19
+ return _jsx(MuiThemeProvider, {
20
+ theme: odysseyTheme,
21
+ children: children
22
+ });
23
+ };
24
+ //# sourceMappingURL=ThemeProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeProvider.js","names":["ThemeProvider","MuiThemeProvider","odysseyTheme","children"],"sources":["../../../src/components/ThemeProvider/ThemeProvider.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { ThemeProvider as MuiThemeProvider } from \"@mui/material/styles\";\nimport { ReactElement } from \"react\";\n\nimport { odysseyTheme } from \"../../themes\";\n\nexport const ThemeProvider = ({ children }: { children: ReactElement }) => (\n <MuiThemeProvider theme={odysseyTheme}>{children}</MuiThemeProvider>\n);\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,aAAa,IAAIC,gBAA1B,QAAkD,sBAAlD;SAGSC,Y;;AAET,OAAO,MAAMF,aAAa,GAAG;EAAA,IAAC;IAAEG;EAAF,CAAD;EAAA,OAC3B,KAAC,gBAAD;IAAkB,KAAK,EAAED,YAAzB;IAAA,UAAwCC;EAAxC,EAD2B;AAAA,CAAtB"}
@@ -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 * from "./ThemeProvider";
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ThemeProvider/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,cAAc,iBAAiB,CAAC"}
@@ -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 * from "./ThemeProvider.js";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/ThemeProvider/index.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport * from \"./ThemeProvider\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
@@ -9,7 +9,8 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
- export * from "./PasswordInput";
13
- export * from "./Link";
14
12
  export * from "./Icon";
13
+ export * from "./Link";
14
+ export * from "./PasswordInput";
15
+ export * from "./ThemeProvider";
15
16
  //# 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;AACvB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
@@ -9,7 +9,8 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
- export * from "./PasswordInput/index.js";
13
- export * from "./Link/index.js";
14
12
  export * from "./Icon/index.js";
13
+ export * from "./Link/index.js";
14
+ export * from "./PasswordInput/index.js";
15
+ export * from "./ThemeProvider/index.js";
15
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/components/index.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport * from \"./PasswordInput\";\nexport * from \"./Link\";\nexport * from \"./Icon\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/components/index.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport * from \"./Icon\";\nexport * from \"./Link\";\nexport * from \"./PasswordInput\";\nexport * from \"./ThemeProvider\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
package/dist/index.d.ts CHANGED
@@ -9,6 +9,13 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
+ export { Alert, AlertTitle, Box, Button, Checkbox, CircularProgress, CssBaseline, FormControl, FormControlLabel, FormGroup, FormHelperText, FormLabel, InputAdornment, InputLabel, OutlinedInput, Radio, RadioGroup, Select, Snackbar, Stack, SvgIcon, Tab, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, TableSortLabel, ThemeProvider as MuiThemeProvider, Tooltip, Typography, useTheme, } from "@mui/material";
13
+ export type { AlertProps, AlertTitleProps, BoxProps, ButtonProps, CheckboxProps, CircularProgressProps, CssBaselineProps, FormControlLabelProps, FormControlProps, FormGroupProps, FormHelperTextProps, FormLabelProps, InputAdornmentProps, InputLabelProps, OutlinedInputProps, RadioGroupProps, RadioProps, SelectProps, SnackbarProps, StackProps, SvgIconProps, TabProps, TableBodyProps, TableCellProps, TableContainerProps, TableHeadProps, TableProps, TableRowProps, TableSortLabelProps, TooltipProps, TypographyProps, useThemeProps, } from "@mui/material";
14
+ export { TabContext, TabList, TabPanel } from "@mui/lab";
15
+ export type { TabContextProps, TabListProps, TabPanelProps } from "@mui/lab";
16
+ export { Favorite as FavoriteIcon } from "@mui/icons-material";
17
+ export { visuallyHidden } from "@mui/utils";
12
18
  export * from "./components";
13
19
  export * from "./themes";
20
+ export * from "./utils";
14
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,KAAK,EACL,UAAU,EACV,GAAG,EACH,MAAM,EACN,QAAQ,EACR,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,cAAc,EACd,SAAS,EACT,cAAc,EACd,UAAU,EACV,aAAa,EACb,KAAK,EACL,UAAU,EACV,MAAM,EACN,QAAQ,EACR,KAAK,EACL,OAAO,EACP,GAAG,EACH,KAAK,EACL,SAAS,EACT,SAAS,EACT,cAAc,EACd,SAAS,EACT,QAAQ,EACR,cAAc,EACd,aAAa,IAAI,gBAAgB,EACjC,OAAO,EACP,UAAU,EACV,QAAQ,GACT,MAAM,eAAe,CAAC;AAEvB,YAAY,EACV,UAAU,EACV,eAAe,EACf,QAAQ,EACR,WAAW,EACX,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,UAAU,EACV,WAAW,EACX,aAAa,EACb,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,eAAe,EACf,aAAa,GACd,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzD,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE7E,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
package/dist/index.js CHANGED
@@ -9,6 +9,11 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
+ export { Alert, AlertTitle, Box, Button, Checkbox, CircularProgress, CssBaseline, FormControl, FormControlLabel, FormGroup, FormHelperText, FormLabel, InputAdornment, InputLabel, OutlinedInput, Radio, RadioGroup, Select, Snackbar, Stack, SvgIcon, Tab, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, TableSortLabel, ThemeProvider as MuiThemeProvider, Tooltip, Typography, useTheme } from "@mui/material";
13
+ export { TabContext, TabList, TabPanel } from "@mui/lab";
14
+ export { Favorite as FavoriteIcon } from "@mui/icons-material";
15
+ export { visuallyHidden } from "@mui/utils";
12
16
  export * from "./components/index.js";
13
17
  export * from "./themes/index.js";
18
+ export * from "./utils/index.js";
14
19
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport * from \"./components\";\nexport * from \"./themes\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
1
+ {"version":3,"file":"index.js","names":["Alert","AlertTitle","Box","Button","Checkbox","CircularProgress","CssBaseline","FormControl","FormControlLabel","FormGroup","FormHelperText","FormLabel","InputAdornment","InputLabel","OutlinedInput","Radio","RadioGroup","Select","Snackbar","Stack","SvgIcon","Tab","Table","TableBody","TableCell","TableContainer","TableHead","TableRow","TableSortLabel","ThemeProvider","MuiThemeProvider","Tooltip","Typography","useTheme","TabContext","TabList","TabPanel","Favorite","FavoriteIcon","visuallyHidden"],"sources":["../src/index.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport {\n Alert,\n AlertTitle,\n Box,\n Button,\n Checkbox,\n CircularProgress,\n CssBaseline,\n FormControl,\n FormControlLabel,\n FormGroup,\n FormHelperText,\n FormLabel,\n InputAdornment,\n InputLabel,\n OutlinedInput,\n Radio,\n RadioGroup,\n Select,\n Snackbar,\n Stack,\n SvgIcon,\n Tab,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n TableSortLabel,\n ThemeProvider as MuiThemeProvider,\n Tooltip,\n Typography,\n useTheme,\n} from \"@mui/material\";\n\nexport type {\n AlertProps,\n AlertTitleProps,\n BoxProps,\n ButtonProps,\n CheckboxProps,\n CircularProgressProps,\n CssBaselineProps,\n FormControlLabelProps,\n FormControlProps,\n FormGroupProps,\n FormHelperTextProps,\n FormLabelProps,\n InputAdornmentProps,\n InputLabelProps,\n OutlinedInputProps,\n RadioGroupProps,\n RadioProps,\n SelectProps,\n SnackbarProps,\n StackProps,\n SvgIconProps,\n TabProps,\n TableBodyProps,\n TableCellProps,\n TableContainerProps,\n TableHeadProps,\n TableProps,\n TableRowProps,\n TableSortLabelProps,\n TooltipProps,\n TypographyProps,\n useThemeProps,\n} from \"@mui/material\";\n\nexport { TabContext, TabList, TabPanel } from \"@mui/lab\";\n\nexport type { TabContextProps, TabListProps, TabPanelProps } from \"@mui/lab\";\n\nexport { Favorite as FavoriteIcon } from \"@mui/icons-material\";\n\nexport { visuallyHidden } from \"@mui/utils\";\n\nexport * from \"./components\";\nexport * from \"./themes\";\nexport * from \"./utils\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SACEA,KADF,EAEEC,UAFF,EAGEC,GAHF,EAIEC,MAJF,EAKEC,QALF,EAMEC,gBANF,EAOEC,WAPF,EAQEC,WARF,EASEC,gBATF,EAUEC,SAVF,EAWEC,cAXF,EAYEC,SAZF,EAaEC,cAbF,EAcEC,UAdF,EAeEC,aAfF,EAgBEC,KAhBF,EAiBEC,UAjBF,EAkBEC,MAlBF,EAmBEC,QAnBF,EAoBEC,KApBF,EAqBEC,OArBF,EAsBEC,GAtBF,EAuBEC,KAvBF,EAwBEC,SAxBF,EAyBEC,SAzBF,EA0BEC,cA1BF,EA2BEC,SA3BF,EA4BEC,QA5BF,EA6BEC,cA7BF,EA8BEC,aAAa,IAAIC,gBA9BnB,EA+BEC,OA/BF,EAgCEC,UAhCF,EAiCEC,QAjCF,QAkCO,eAlCP;AAuEA,SAASC,UAAT,EAAqBC,OAArB,EAA8BC,QAA9B,QAA8C,UAA9C;AAIA,SAASC,QAAQ,IAAIC,YAArB,QAAyC,qBAAzC;AAEA,SAASC,cAAT,QAA+B,YAA/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAelD,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,YAAY,CAwgCjD,CAAC"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAiBlD,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,YAAY,CAynCjD,CAAC"}
@@ -15,6 +15,7 @@ import { tableCellClasses } from "@mui/material/TableCell";
15
15
  import { tableHeadClasses } from "@mui/material/TableHead";
16
16
  import { tableRowClasses } from "@mui/material/TableRow";
17
17
  import { tableSortLabelClasses } from "@mui/material/TableSortLabel";
18
+ import { tooltipClasses } from "@mui/material/Tooltip";
18
19
  import { AlertTriangleFilledIcon, ArrowDownIcon, CheckCircleFilledIcon, InformationCircleFilledIcon } from "../../components/Icon/index.js";
19
20
  import { jsx as _jsx } from "react/jsx-runtime";
20
21
  export const components = {
@@ -45,19 +46,22 @@ export const components = {
45
46
  position: "relative",
46
47
  justifyContent: "center",
47
48
  alignItems: "center",
48
- borderWidth: 0
49
+ borderWidth: 0,
50
+ borderRadius: 0
49
51
  }),
50
52
  ...(ownerState.variant === "infobox" && {
51
- borderStyle: "solid",
52
- borderWidth: 1,
53
+ borderStyle: theme.mixins.borderStyle,
54
+ borderWidth: theme.mixins.borderWidth,
55
+ borderRadius: theme.mixins.borderRadius,
53
56
  "&:not(:last-child)": {
54
57
  marginBottom: theme.spacing(4)
55
58
  }
56
59
  }),
57
60
  ...(ownerState.variant === "toast" && {
58
61
  maxWidth: theme.mixins.maxWidth,
59
- borderStyle: "solid",
60
- borderWidth: 1,
62
+ borderStyle: theme.mixins.borderStyle,
63
+ borderWidth: theme.mixins.borderWidth,
64
+ borderRadius: theme.mixins.borderRadius,
61
65
  position: "relative",
62
66
  alignItems: "start"
63
67
  })
@@ -143,6 +147,7 @@ export const components = {
143
147
  },
144
148
  MuiButton: {
145
149
  defaultProps: {
150
+ variant: "primary",
146
151
  disableElevation: true
147
152
  },
148
153
  variants: [{
@@ -335,6 +340,7 @@ export const components = {
335
340
  transitionTimingFunction: "linear",
336
341
  borderWidth: theme.mixins.borderWidth,
337
342
  borderStyle: theme.mixins.borderStyle,
343
+ borderRadius: theme.mixins.borderRadius,
338
344
  outlineColor: "transparent",
339
345
  outlineOffset: "0",
340
346
  fontSize: theme.typography.body1.fontSize,
@@ -919,6 +925,13 @@ export const components = {
919
925
  }
920
926
  }
921
927
  },
928
+ MuiTabPanel: {
929
+ styleOverrides: {
930
+ root: {
931
+ padding: 0
932
+ }
933
+ }
934
+ },
922
935
  MuiTable: {
923
936
  styleOverrides: {
924
937
  root: _ref33 => {
@@ -962,6 +975,9 @@ export const components = {
962
975
  paddingBlock: theme.spacing(4),
963
976
  paddingInline: theme.spacing(4),
964
977
  overflowWrap: "break-word",
978
+ [`.${tableRowClasses.root}:hover &[rowspan]`]: {
979
+ backgroundColor: theme.palette.common.white
980
+ },
965
981
  [`.${tableBodyClasses.root} .${tableRowClasses.root}:last-of-type &`]: {
966
982
  borderBottom: 0
967
983
  },
@@ -1051,7 +1067,7 @@ export const components = {
1051
1067
  } = _ref36;
1052
1068
  return {
1053
1069
  verticalAlign: "unset",
1054
- [`&.${tableRowClasses.hover}:hover`]: {
1070
+ [`&.${tableRowClasses.root}:hover`]: {
1055
1071
  backgroundColor: theme.palette.grey[50]
1056
1072
  },
1057
1073
  [`&.${tableRowClasses.selected}`]: {
@@ -1154,6 +1170,103 @@ export const components = {
1154
1170
  }
1155
1171
  }
1156
1172
  },
1173
+ MuiTooltip: {
1174
+ defaultProps: {
1175
+ arrow: true,
1176
+ enterDelay: 500,
1177
+ enterNextDelay: 250,
1178
+ placement: "top"
1179
+ },
1180
+ styleOverrides: {
1181
+ tooltip: _ref41 => {
1182
+ let {
1183
+ theme,
1184
+ ownerState
1185
+ } = _ref41;
1186
+ return {
1187
+ maxWidth: `calc(${theme.mixins.maxWidth} / 2)`,
1188
+ paddingBlock: theme.spacing(2),
1189
+ paddingInline: theme.spacing(3),
1190
+ backgroundColor: theme.palette.grey[900],
1191
+ color: theme.palette.common.white,
1192
+ fontSize: theme.typography.subtitle1.fontSize,
1193
+ lineHeight: theme.typography.subtitle1.lineHeight,
1194
+ ...(ownerState.touch === true && {
1195
+ paddingBlock: theme.spacing(2),
1196
+ paddingInline: theme.spacing(3),
1197
+ fontSize: theme.typography.subtitle1.fontSize,
1198
+ lineHeight: theme.typography.subtitle1.lineHeight,
1199
+ fontWeight: theme.typography.fontWeightRegular
1200
+ }),
1201
+ [`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]: {
1202
+ transformOrigin: "right center",
1203
+ ...(ownerState.isRtl ? {
1204
+ marginLeft: theme.spacing(3),
1205
+ ...(ownerState.touch === true && {
1206
+ marginLeft: theme.spacing(4)
1207
+ })
1208
+ } : {
1209
+ marginRight: theme.spacing(3),
1210
+ ...(ownerState.touch === true && {
1211
+ marginRight: theme.spacing(4)
1212
+ })
1213
+ })
1214
+ },
1215
+ [`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]: {
1216
+ transformOrigin: "left center",
1217
+ ...(ownerState.isRtl ? {
1218
+ marginRight: theme.spacing(3),
1219
+ ...(ownerState.touch === true && {
1220
+ marginRight: theme.spacing(4)
1221
+ })
1222
+ } : {
1223
+ marginLeft: theme.spacing(3),
1224
+ ...(ownerState.touch === true && {
1225
+ marginLeft: theme.spacing(4)
1226
+ })
1227
+ })
1228
+ },
1229
+ [`.${tooltipClasses.popper}[data-popper-placement*="top"] &`]: {
1230
+ transformOrigin: "center bottom",
1231
+ marginBottom: theme.spacing(3),
1232
+ ...(ownerState.touch === true && {
1233
+ marginBottom: theme.spacing(4)
1234
+ })
1235
+ },
1236
+ [`.${tooltipClasses.popper}[data-popper-placement*="bottom"] &`]: {
1237
+ transformOrigin: "center top",
1238
+ marginTop: theme.spacing(3),
1239
+ ...(ownerState.touch === true && {
1240
+ marginTop: theme.spacing(4)
1241
+ })
1242
+ }
1243
+ };
1244
+ },
1245
+ arrow: _ref42 => {
1246
+ let {
1247
+ theme
1248
+ } = _ref42;
1249
+ return {
1250
+ color: theme.palette.grey[900],
1251
+ "&::before": {
1252
+ borderRadius: "0"
1253
+ },
1254
+ [`.${tooltipClasses.popper}[data-popper-placement*="top"] &::before`]: {
1255
+ borderRadius: `0 0 3px 0`
1256
+ },
1257
+ [`.${tooltipClasses.popper}[data-popper-placement*="right"] &::before`]: {
1258
+ borderRadius: `0 0 0 3px`
1259
+ },
1260
+ [`.${tooltipClasses.popper}[data-popper-placement*="bottom"] &::before`]: {
1261
+ borderRadius: `3px 0 0 0`
1262
+ },
1263
+ [`.${tooltipClasses.popper}[data-popper-placement*="left"] &::before`]: {
1264
+ borderRadius: `0 3px 0 0`
1265
+ }
1266
+ };
1267
+ }
1268
+ }
1269
+ },
1157
1270
  MuiTypography: {
1158
1271
  defaultProps: {
1159
1272
  fontFamily: "'Public Sans', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', 'Noto Sans Arabic', sans-serif",
@@ -1172,19 +1285,19 @@ export const components = {
1172
1285
  }
1173
1286
  },
1174
1287
  styleOverrides: {
1175
- paragraph: _ref41 => {
1288
+ paragraph: _ref43 => {
1176
1289
  let {
1177
1290
  theme
1178
- } = _ref41;
1291
+ } = _ref43;
1179
1292
  return {
1180
1293
  marginBottom: theme.spacing(4)
1181
1294
  };
1182
1295
  },
1183
- root: _ref42 => {
1296
+ root: _ref44 => {
1184
1297
  let {
1185
1298
  theme,
1186
1299
  ownerState
1187
- } = _ref42;
1300
+ } = _ref44;
1188
1301
  return { ...(ownerState.variant === "kbd" && {
1189
1302
  display: "inline-block",
1190
1303
  minWidth: `calc(${theme.typography.subtitle1.fontSize} * ${theme.typography.h5.lineHeight})`,