{"version":3,"file":"Box.cjs","names":["_react","require","_jsxRuntime","_interopRequireDefault","e","__esModule","default","Box","forwardRef","children","component","id","role","sx","testId","translate","ref","jsx","_Box2","MemoizedBox","exports","memo","displayName"],"sources":["../../src/Box.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Box as MuiBox, BoxProps as MuiBoxProps } from \"@mui/material\";\nimport { AriaRole, forwardRef, memo, ReactNode } from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nexport type BoxProps = {\n  /** Content rendered inside the box. */\n  children?: ReactNode;\n  /** The underlying HTML element or React component to render as the root node. */\n  component?: MuiBoxProps[\"component\"];\n  /** The HTML `id` attribute applied to the root element. */\n  id?: MuiBoxProps[\"id\"];\n  /** The ARIA role applied to the root element. */\n  role?: AriaRole;\n  /** MUI system styles applied directly to the root element via the `sx` prop. */\n  sx?: MuiBoxProps[\"sx\"];\n} & Pick<HtmlProps, \"testId\" | \"translate\">;\n\n/**\n * A generic layout primitive that renders as a `<div>` by default and supports MUI system styles via the `sx` prop. Use it as a flexible building block for spacing, alignment, and structural composition.\n */\nconst Box = forwardRef<HTMLElement, BoxProps>(\n  ({ children, component, id, role, sx, testId, translate }, ref) => (\n    <MuiBox\n      children={children}\n      component={component}\n      data-se={testId}\n      id={id}\n      ref={ref}\n      role={role}\n      sx={sx}\n      translate={translate}\n    />\n  ),\n);\n\nconst MemoizedBox = memo(Box);\nMemoizedBox.displayName = \"Box\";\n\nexport { MemoizedBox as Box };\n"],"mappings":";;;;;;;AAaA,IAAAA,MAAA,GAAAC,OAAA;AAA8D,IAAAC,WAAA,GAAAD,OAAA;AAAA,SAAAE,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAb9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAuBA,MAAMG,GAAG,GAAG,IAAAC,iBAAU,EACpB,CAAC;EAAEC,QAAQ;EAAEC,SAAS;EAAEC,EAAE;EAAEC,IAAI;EAAEC,EAAE;EAAEC,MAAM;EAAEC;AAAU,CAAC,EAAEC,GAAG,KAC5D,IAAAd,WAAA,CAAAe,GAAA,EAAAC,KAAA,CAAAZ,OAAA;EACEG,QAAQ,EAAEA,QAAS;EACnBC,SAAS,EAAEA,SAAU;EACrB,WAASI,MAAO;EAChBH,EAAE,EAAEA,EAAG;EACPK,GAAG,EAAEA,GAAI;EACTJ,IAAI,EAAEA,IAAK;EACXC,EAAE,EAAEA,EAAG;EACPE,SAAS,EAAEA;AAAU,CACtB,CAEL,CAAC;AAED,MAAMI,WAAW,GAAAC,OAAA,CAAAb,GAAA,GAAG,IAAAc,WAAI,EAACd,GAAG,CAAC;AAC7BY,WAAW,CAACG,WAAW,qCAAQ","ignoreList":[]}