{"version":3,"file":"FieldsetContext.cjs","names":["_react","require","FieldsetContext","exports","createContext","isDisabled","useFieldset","useContext"],"sources":["../../src/FieldsetContext.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 { createContext, useContext } from \"react\";\n\nexport type FieldsetContextValue = {\n  /**\n   * If `true`, all inputs within the fieldset are disabled.\n   */\n  isDisabled: boolean;\n};\n\nexport const FieldsetContext = createContext<FieldsetContextValue>({\n  isDisabled: false,\n});\n\nexport const useFieldset = () => useContext(FieldsetContext);\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAWO,MAAMC,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,IAAAE,oBAAa,EAAuB;EACjEC,UAAU,EAAE;AACd,CAAC,CAAC;AAEK,MAAMC,WAAW,GAAGA,CAAA,KAAM,IAAAC,iBAAU,EAACL,eAAe,CAAC;AAACC,OAAA,CAAAG,WAAA,GAAAA,WAAA","ignoreList":[]}