import{w as m,e as d}from"./index-BJMTVygn.js";import{O as u}from"./OdysseyStorybookThemeDecorator-BuDiOG2V.js";import{M as g}from"./CircularProgress-DPxwxglU.js";import"./jsx-runtime-CnH95YSl.js";import"./index-NdkWRN8K.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./OdysseyThemeProvider-Bh0Bu-2o.js";import"./index-BJTM6NaI.js";import"./OdysseyProvider-qIn9QVYS.js";import"./CircularProgress-HbIdZLBB.js";/*!
 * Copyright (c) 2021-present, Okta, Inc. and/or its affiliates. All rights reserved.
 * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
 *
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *
 * See the License for the specific language governing permissions and limitations under the License.
 */const C={component:g,decorators:[u],tags:["autodocs"],argTypes:{value:{control:{type:"number"}},ariaLabel:{control:{type:"text"}}}},e={parameters:{docs:{description:{story:"If the component `value` is undefined or `0`, the component will spin indefinitely."}}},args:{ariaLabel:"progress"},play:async({canvasElement:c,step:p})=>{await p("Circular Aria-Label",()=>{const l=m(c).getByLabelText("progress");d(l).toHaveAttribute("role","progressbar")})}},r={parameters:{docs:{description:{story:"If the component has a set `value`, it will show as a static circular progress bar with that value filled as a percentage."}}},args:{value:70,ariaLabel:"progress"}};var a,t,s;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`{
  parameters: {
    docs: {
      description: {
        story: "If the component \`value\` is undefined or \`0\`, the component will spin indefinitely."
      }
    }
  },
  args: {
    ariaLabel: "progress"
  },
  play: async ({
    canvasElement,
    step
  }) => {
    await step("Circular Aria-Label", () => {
      const canvas = within(canvasElement);
      const circular = canvas.getByLabelText("progress");
      expect(circular).toHaveAttribute("role", "progressbar");
    });
  }
}`,...(s=(t=e.parameters)==null?void 0:t.docs)==null?void 0:s.source}}};var o,n,i;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`{
  parameters: {
    docs: {
      description: {
        story: "If the component has a set \`value\`, it will show as a static circular progress bar with that value filled as a percentage."
      }
    }
  },
  args: {
    value: 70,
    ariaLabel: "progress"
  }
}`,...(i=(n=r.parameters)==null?void 0:n.docs)==null?void 0:i.source}}};const D=["Indeterminate","Determinate"];export{r as Determinate,e as Indeterminate,D as __namedExportsOrder,C as default};
