diff --git a/.changeset/remove-basespinner.md b/.changeset/remove-basespinner.md new file mode 100644 index 0000000000..5b4a325b4e --- /dev/null +++ b/.changeset/remove-basespinner.md @@ -0,0 +1,4 @@ +--- +"@patternfly/elements": major +--- +``: Removed `BaseSpinner` class. Reimplement (recommended) or extend `PfSpinner`. diff --git a/elements/package.json b/elements/package.json index 0cd47fe88f..f5039179b9 100644 --- a/elements/package.json +++ b/elements/package.json @@ -42,7 +42,6 @@ "./pf-progress-stepper/pf-progress-step.js": "./pf-progress-stepper/pf-progress-step.js", "./pf-progress-stepper/pf-progress-stepper.js": "./pf-progress-stepper/pf-progress-stepper.js", "./pf-progress/pf-progress.js": "./pf-progress/pf-progress.js", - "./pf-spinner/BaseSpinner.js": "./pf-spinner/BaseSpinner.js", "./pf-spinner/pf-spinner.js": "./pf-spinner/pf-spinner.js", "./pf-switch/BaseSwitch.js": "./pf-switch/BaseSwitch.js", "./pf-switch/pf-switch.js": "./pf-switch/pf-switch.js", diff --git a/elements/pf-spinner/BaseSpinner.css b/elements/pf-spinner/BaseSpinner.css deleted file mode 100644 index ef5b8cde05..0000000000 --- a/elements/pf-spinner/BaseSpinner.css +++ /dev/null @@ -1,20 +0,0 @@ -:host { - display: inline-block; - width: min-content; - min-height: 0; - aspect-ratio: 1 / 1; -} - -svg { - overflow: hidden; -} - -circle { - width: 100%; - height: 100%; - transform-origin: 50% 50%; - stroke-linecap: round; - stroke-dasharray: 283; - stroke-dashoffset: 280; -} - diff --git a/elements/pf-spinner/BaseSpinner.ts b/elements/pf-spinner/BaseSpinner.ts deleted file mode 100644 index 5cbb3c3b9c..0000000000 --- a/elements/pf-spinner/BaseSpinner.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { LitElement, html } from 'lit'; -import { property } from 'lit/decorators/property.js'; - -import styles from './BaseSpinner.css'; - -export type SpinnerSize = ( - | 'sm' - | 'md' - | 'lg' - | 'xl' -); - -/** - * Base spinner class - * - * @cssprop {} --pf-c-spinner--diameter {@default `3.375rem`} - * @cssprop {} --pf-c-spinner--Width {@default `3.375rem`} - * @cssprop {} --pf-c-spinner--Height {@default `3.375rem`} - * @cssprop {} --pf-c-spinner--Color {@default `#06c`} - * @cssprop {} --pf-c-spinner--m-sm--diameter {@default `0.625rem`} - * @cssprop {} --pf-c-spinner--m-md--diameter {@default `1.125rem`} - * @cssprop {} --pf-c-spinner--m-lg--diameter {@default `1.5rem`} - * @cssprop {} --pf-c-spinner--m-xl--diameter {@default `3.375rem`} - * @cssprop {