Skip to content

Commit

Permalink
fix(storybook): clean up (#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
bar-tay authored and larserbach committed Feb 19, 2024
1 parent 3b300a2 commit 9926402
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 25 deletions.
2 changes: 1 addition & 1 deletion packages/ui-library/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
parameters: {
options: {
storySort: {
method: 'alphabetical', // Sort alphabetically
method: 'alphabetical',
order: ['Foundation', 'Components'],
locales: 'en-US',
},
Expand Down
2 changes: 0 additions & 2 deletions packages/ui-library/src/components/counter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ import { classMap } from 'lit/directives/class-map.js';
import { CounterVariantType, FormSizesType } from '../../globals/types';
import { ThemeType } from '../../foundation/_tokens-generated/index.themes';
import { counterLight, counterDark } from './index.css';

import { TAG_NAME } from './renderFunction';

//
export class BlrCounter extends LitElement {
static styles = [];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { html } from 'lit-html';
import { BlrDividerType } from './index';
import { BlrDividerRenderFunction } from './renderFunction';

import '../../index';
import { Themes } from '../../foundation/_tokens-generated/index.themes';
import { DividerVariations } from '../../globals/constants';
Expand Down
2 changes: 0 additions & 2 deletions packages/ui-library/src/components/divider/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { LitElement, html } from 'lit';
import { property } from 'lit/decorators.js';

import { classMap } from 'lit/directives/class-map.js';
import { dividerDark, dividerLight } from './index.css';

import { TAG_NAME } from './renderFunction';
import { ThemeType } from '../../foundation/_tokens-generated/index.themes';
import { DividerVariationTypes } from '../../globals/types';
Expand Down
19 changes: 0 additions & 19 deletions packages/ui-library/src/components/icon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,23 +74,4 @@ if (!customElements.get(TAG_NAME)) {
customElements.define(TAG_NAME, BlrIcon);
}

// BlrIconType is a new Type containing all properties of BlrIcon without the properties of LitElement
// and some additional properties which are not part of the component, so we dont use the generic render function

/*
if (!customElements.get(TAG_NAME)) {
customElements.define(TAG_NAME, BlrIconLink);
}
export type BlrIconType = Partial<Omit<BlrIcon, keyof LitElement>> & {
classMap?: DirectiveResult<typeof ClassMapDirective>;
onClick?: HTMLElement['onclick'];
hideAria?: boolean;
name?: string;
disablePointerEvents?: boolean;
};
*/

export type BlrIconType = Partial<Omit<BlrIcon, keyof LitElement>>;

0 comments on commit 9926402

Please sign in to comment.