Skip to content

Commit

Permalink
[DTO-4950][BpkBadge] Clean up & Make BpkBadgeV2 the default (#3156)
Browse files Browse the repository at this point in the history
* Make BpkBadgeV2 the default

* Fix missing CSS file

---------

Co-authored-by: Iain Cattermole <iaincattermole@skyscanner.net>
  • Loading branch information
Iain530 and Iain530 authored Feb 15, 2024
1 parent dcd419a commit b680bc0
Show file tree
Hide file tree
Showing 16 changed files with 12 additions and 876 deletions.
54 changes: 0 additions & 54 deletions examples/bpk-component-badge-v2/BadgeLayout.js

This file was deleted.

18 changes: 0 additions & 18 deletions examples/bpk-component-badge-v2/BpkBadgeLayout.module.css

This file was deleted.

34 changes: 0 additions & 34 deletions examples/bpk-component-badge-v2/BpkBadgeLayout.module.scss

This file was deleted.

160 changes: 0 additions & 160 deletions examples/bpk-component-badge-v2/examples.js

This file was deleted.

56 changes: 0 additions & 56 deletions examples/bpk-component-badge-v2/stories.js

This file was deleted.

5 changes: 1 addition & 4 deletions packages/bpk-component-badge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@

import component, { BADGE_TYPES, type Props } from './src/BpkBadge';
import themeAttributes from './src/themeAttributes';
import BpkBadgeV2 from './src/BpkBadgeV2/BpkBadge';

;

export type BpkBadgeProps = Props;
export default component;
export { BADGE_TYPES, themeAttributes, BpkBadgeV2 };
export { BADGE_TYPES, themeAttributes };
2 changes: 1 addition & 1 deletion packages/bpk-component-badge/src/BpkBadge.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-badge{display:inline-flex;padding:0.25rem 0.5rem;align-items:center;border-radius:.25rem;margin:0;font-size:.75rem;line-height:1rem;font-weight:400}.bpk-badge--centered{vertical-align:text-bottom}.bpk-badge--docked-right{position:absolute;top:0;right:0;border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0}html[dir='rtl'] .bpk-badge--docked-right{right:inherit;left:0;border-bottom-left-radius:0;border-bottom-right-radius:.25rem}.bpk-badge--docked-left{position:absolute;top:0;left:0;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0}html[dir='rtl'] .bpk-badge--docked-left{right:0;left:inherit;border-bottom-left-radius:.25rem;border-bottom-right-radius:0}.bpk-badge--warning{background-color:#fff7cf;color:#161616;fill:#161616}.bpk-badge--success{background-color:#d4fff2;color:#161616;fill:#161616}.bpk-badge--critical{background-color:#ffe9f9;color:#161616;fill:#161616}.bpk-badge--normal{background-color:#e0e3e5;color:#161616;fill:#161616}.bpk-badge--inverse{background-color:#fff;color:#161616;fill:#161616}.bpk-badge--outline{background-color:transparent;color:#fff;box-shadow:inset 0 0 0 1px #fff;fill:#fff}.bpk-badge--strong{background-color:#05203c;color:#fff;fill:#fff}.bpk-badge--brand{background-color:#0062e3;color:#fff;fill:#fff}
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-badge{display:inline-flex;padding:0.25rem 0.5rem;align-items:center;border-radius:.25rem;margin:0;font-size:.875rem;line-height:1.25rem;font-weight:400}.bpk-badge--centered{vertical-align:text-bottom}.bpk-badge--docked-right{position:absolute;top:0;right:0;border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0}html[dir='rtl'] .bpk-badge--docked-right{right:inherit;left:0;border-bottom-left-radius:0;border-bottom-right-radius:.25rem}.bpk-badge--docked-left{position:absolute;top:0;left:0;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0}html[dir='rtl'] .bpk-badge--docked-left{right:0;left:inherit;border-bottom-left-radius:.25rem;border-bottom-right-radius:0}.bpk-badge--warning{background-color:#eff1f2;color:#161616;fill:#f55d42}.bpk-badge--success{background-color:#eff1f2;color:#161616;fill:#0c838a}.bpk-badge--critical{background-color:#eff1f2;color:#161616;fill:#e70866}.bpk-badge--normal{background-color:#eff1f2;color:#161616;fill:#161616}.bpk-badge--inverse{background-color:#fff;color:#161616;fill:#161616}.bpk-badge--outline{background-color:transparent;color:#fff;box-shadow:inset 0 0 0 1px #fff;fill:#fff}.bpk-badge--strong{background-color:#05203c;color:#fff;fill:#fff}.bpk-badge--brand{background-color:#0062e3;color:#fff;fill:#fff}
Loading

0 comments on commit b680bc0

Please sign in to comment.