+ Divide like-elements (tables, tool groups, elements within a panel, + etc.) +
+ `, +}; diff --git a/second-gen/packages/swc/components/progress-circle/ProgressCircle.ts b/second-gen/packages/swc/components/progress-circle/ProgressCircle.ts new file mode 100644 index 00000000000..7efe578bde3 --- /dev/null +++ b/second-gen/packages/swc/components/progress-circle/ProgressCircle.ts @@ -0,0 +1,128 @@ +/** + * Copyright 2025 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with 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 REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import { CSSResultArray, html, TemplateResult } from 'lit'; +import { property } from 'lit/decorators.js'; +import { classMap } from 'lit/directives/class-map.js'; + +import { + PROGRESS_CIRCLE_STATIC_COLORS_S2, + ProgressCircleBase, + type ProgressCircleStaticColorS2, +} from '@swc/core/components/progress-circle'; + +import progressCircleStyles from './progress-circle.css'; + +function capitalize(str?: string): string { + if (typeof str !== 'string') { + return ''; + } + return str.charAt(0).toUpperCase() + str.slice(1); +} +/** + * A progress circle component that visually represents the completion progress of a task. + * Can be used in both determinate (with specific progress value) and indeterminate (loading) states. + * + * @element swc-progress-circle + * + * @prop {string} static-color - Static color variant for use on different backgrounds. + * @prop {number} progress - Progress value between 0 and 100. + * @prop {boolean} indeterminate - Indeterminate state for loading. + * @prop {string} size - Size of the component. + * @prop {string} label - Label for the component. + * + * @example + *