{"version":3,"file":"SideNavItemContentContext.cjs","names":["_react","require","SideNavItemContentContext","exports","createContext","isCompact","isSortable","depth","useSideNavItemContent","useContext"],"sources":["../../../../src/ui-shell/SideNav/SideNavItemContentContext.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2024-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 { createContext, useContext } from \"react\";\n\nexport type SideNavItemContentContextValue = {\n  absolutePaddingStart?: string;\n  depth: number;\n  isCompact?: boolean;\n  isSortable?: boolean;\n  /**\n   * If `true`, the item is rendered inside a `SortableItem`, which already supplies the list item (`<li>`) element. The item content must then render a non-`<li>` root to avoid nesting a one-item list inside every row.\n   */\n  isWithinSortableList?: boolean;\n};\n\nexport const SideNavItemContentContext =\n  createContext<SideNavItemContentContextValue>({\n    isCompact: false,\n    isSortable: false,\n    depth: 1,\n  });\n\nexport const useSideNavItemContent = () =>\n  useContext(SideNavItemContentContext);\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAeO,MAAMC,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA,GACpC,IAAAE,oBAAa,EAAiC;EAC5CC,SAAS,EAAE,KAAK;EAChBC,UAAU,EAAE,KAAK;EACjBC,KAAK,EAAE;AACT,CAAC,CAAC;AAEG,MAAMC,qBAAqB,GAAGA,CAAA,KACnC,IAAAC,iBAAU,EAACP,yBAAyB,CAAC;AAACC,OAAA,CAAAK,qBAAA,GAAAA,qBAAA","ignoreList":[]}