{"version":3,"file":"MenuButton.cjs","names":["_react","require","_BaseMenuButton","_jsxRuntime","MenuButton","props","jsx","BaseMenuButton","MemoizedMenuButton","exports","memo","displayName"],"sources":["../../../src/Buttons/MenuButton.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { memo } from \"react\";\n\nimport {\n  AdditionalBaseMenuButtonProps,\n  BaseMenuButton,\n  BaseMenuButtonProps,\n} from \"./BaseMenuButton.js\";\n\nexport type MenuButtonProps = Omit<\n  BaseMenuButtonProps,\n  \"buttonChildren\" | \"omitEndIcon\"\n> &\n  AdditionalBaseMenuButtonProps;\n\n/**\n * A button that opens a dropdown menu of actions when clicked. Renders a labeled trigger button with a chevron icon and manages the open/close state of the associated menu.\n */\nconst MenuButton = (props: MenuButtonProps) => {\n  return <BaseMenuButton {...props} />;\n};\n\nconst MemoizedMenuButton = memo(MenuButton);\nMemoizedMenuButton.displayName = \"MenuButton\";\n\nexport { MemoizedMenuButton as MenuButton };\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAD,OAAA;AAI6B,IAAAE,WAAA,GAAAF,OAAA;AAlB7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAmBA,MAAMG,UAAU,GAAIC,KAAsB,IAAK;EAC7C,OAAO,IAAAF,WAAA,CAAAG,GAAA,EAACJ,eAAA,CAAAK,cAAc;IAAA,GAAKF;EAAK,CAAG,CAAC;AACtC,CAAC;AAED,MAAMG,kBAAkB,GAAAC,OAAA,CAAAL,UAAA,GAAG,IAAAM,WAAI,EAACN,UAAU,CAAC;AAC3CI,kBAAkB,CAACG,WAAW,4CAAe","ignoreList":[]}