{"version":3,"file":"Stack.cjs","names":["_react","require","_jsxRuntime","_interopRequireDefault","e","__esModule","default","stackSpacingValues","exports","stackDirectionValues","Stack","children","direction","spacing","jsx","_Stack2","MemoizedStack","memo","displayName"],"sources":["../../src/Stack.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 { Stack as MuiStack, StackProps as MuiStackProps } from \"@mui/material\";\nimport { memo } from \"react\";\n\nexport const stackSpacingValues = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] as const;\nexport const stackDirectionValues = [\n  \"row\",\n  \"row-reverse\",\n  \"column\",\n  \"column-reverse\",\n] as const;\n\nexport type OdysseyStackProps = {\n  /** The content to render inside the stack. */\n  children?: MuiStackProps[\"children\"];\n  /**\n   * The component used for the root node. Either a string to use a HTML element or a component.\n   */\n  component?: MuiStackProps[\"component\"];\n  /**\n   * Defines the flex-direction style property. It is applied for all screen sizes.\n   * @default \"column\"\n   */\n  direction?: (typeof stackDirectionValues)[number];\n  /**\n   * Defines the space between immediate children.\n   * @default 2\n   */\n  spacing?: (typeof stackSpacingValues)[number];\n};\n\n/**\n * A layout component that arranges its children in a one-dimensional row or column with consistent spacing between them.\n */\nconst Stack = ({\n  children,\n  direction = \"column\",\n  spacing = 2,\n}: OdysseyStackProps) => {\n  return (\n    <MuiStack direction={direction} spacing={spacing}>\n      {children}\n    </MuiStack>\n  );\n};\n\nconst MemoizedStack = memo(Stack);\nMemoizedStack.displayName = \"Stack\";\n\nexport { MemoizedStack as Stack };\n"],"mappings":";;;;;;;AAaA,IAAAA,MAAA,GAAAC,OAAA;AAA6B,IAAAC,WAAA,GAAAD,OAAA;AAAA,SAAAE,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAb7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKO,MAAMG,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAU;AAClE,MAAME,oBAAoB,GAAAD,OAAA,CAAAC,oBAAA,GAAG,CAClC,KAAK,EACL,aAAa,EACb,QAAQ,EACR,gBAAgB,CACR;AAwBV,MAAMC,KAAK,GAAGA,CAAC;EACbC,QAAQ;EACRC,SAAS,GAAG,QAAQ;EACpBC,OAAO,GAAG;AACO,CAAC,KAAK;EACvB,OACE,IAAAX,WAAA,CAAAY,GAAA,EAAAC,OAAA,CAAAT,OAAA;IAAUM,SAAS,EAAEA,SAAU;IAACC,OAAO,EAAEA,OAAQ;IAAAF,QAAA,EAC9CA;EAAQ,CACD,CAAC;AAEf,CAAC;AAED,MAAMK,aAAa,GAAAR,OAAA,CAAAE,KAAA,GAAG,IAAAO,WAAI,EAACP,KAAK,CAAC;AACjCM,aAAa,CAACE,WAAW,uCAAU","ignoreList":[]}