{"version":3,"sources":["../src/step-context.tsx"],"sourcesContent":["import { createContext } from \"@chakra-ui/react-context\"\nimport { createStylesContext } from \"@chakra-ui/system\"\n\nexport type StepStatusType = \"active\" | \"complete\" | \"incomplete\"\n\nexport type Orientation = \"horizontal\" | \"vertical\"\n\nexport interface StepContext {\n  /**\n   * The status of the step\n   * @type \"active\" | \"complete\" | \"incomplete\"\n   */\n  status: StepStatusType\n  /**\n   * The total number of steps\n   */\n  count: number\n  /**\n   * The index of the step\n   */\n  index: number\n  /**\n   * The orientation of the stepper\n   */\n  orientation: Orientation\n  /**\n   * Whether the step is the last step\n   */\n  isLast: boolean\n  /**\n   * Whether the step is the first step\n   */\n  isFirst: boolean\n  /**\n   * Whether to show or not the last separator while in vertical orientation\n   */\n  showLastSeparator?: boolean\n}\n\nexport const [StepContextProvider, useStepContext] = createContext<StepContext>(\n  { name: \"StepContext\" },\n)\n\nexport const [StepperStylesProvider, useStepperStyles] =\n  createStylesContext(\"Stepper\")\n"],"mappings":";;;AAAA,SAAS,qBAAqB;AAC9B,SAAS,2BAA2B;AAsC7B,IAAM,CAAC,qBAAqB,cAAc,IAAI;AAAA,EACnD,EAAE,MAAM,cAAc;AACxB;AAEO,IAAM,CAAC,uBAAuB,gBAAgB,IACnD,oBAAoB,SAAS;","names":[]}