Skip to content

Commit 2e1d149

Browse files
added dependencies to story for buttons (#786)
* added dependencies to story for buttons * fix for all
1 parent 48414b5 commit 2e1d149

File tree

26 files changed

+83
-4
lines changed

26 files changed

+83
-4
lines changed

packages/ui-library/src/components/actions/buttons/icon-button/index.stories.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
/* eslint-disable no-console */
22
import { html } from 'lit';
3-
import { BlrIconButtonType } from './index';
3+
import type { BlrIconButtonType } from './index';
4+
45
import { BlrIconButtonRenderFunction } from './renderFunction';
56
import { PureIconKeys } from '@boiler/icons';
67
import { ActionVariants, ActionSizes } from '../../../../globals/constants';
78
import { Themes } from '../../../../foundation/_tokens-generated/index.themes';
89

10+
// this loads the all components instances and registers their html tags
11+
import '../../../../index';
12+
913
// Shared Style inside the Stories
1014
const sharedStyles = html`
1115
<style>

packages/ui-library/src/components/actions/buttons/text-button/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import { PureIconKeys } from '@boiler/icons';
66
import { ActionSizes, ActionVariants, IconPositionVariant, ButtonDisplayOptions } from '../../../../globals/constants';
77
import { Themes } from '../../../../foundation/_tokens-generated/index.themes';
88

9+
// this loads the all components instances and registers their html tags
10+
import '../../../../index';
11+
912
// Shared Style inside the Stories
1013
const sharedStyles = html`
1114
<style>

packages/ui-library/src/components/feedback/loader/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { FeedbackSizes, FeedbackVariants } from '../../../globals/constants';
44
import { Themes } from '../../../foundation/_tokens-generated/index.themes';
55
import { html } from 'lit-html';
66

7+
// this loads the all components instances and registers their html tags
8+
import '../../../index';
9+
710
// Shared Style inside the Stories
811
const sharedStyles = html`
912
<style>

packages/ui-library/src/components/feedback/tooltip/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import { FormSizesType } from '../../../globals/types';
1010
import { Placement as PlacementType } from '@floating-ui/dom';
1111
import { BlrTooltipBubbleRenderFunction } from './tooltip-bubble/renderFunction';
1212

13+
// this loads the all components instances and registers their html tags
14+
import '../../../index';
15+
1316
export default {
1417
title: 'Design System/Web Components/Feedback/Tooltip/Tooltip',
1518
argTypes: {

packages/ui-library/src/components/feedback/tooltip/tooltip-bubble/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { BlrTooltipBubbleType } from '.';
33
import { BlrTooltipBubbleRenderFunction } from './renderFunction';
44
import { Themes } from '../../../../foundation/_tokens-generated/index.themes';
55

6+
// this loads the all components instances and registers their html tags
7+
import '../../../../index';
8+
69
export default {
710
title: 'Design System/Web Components/Feedback/Tooltip/TooltipBubble',
811
argTypes: {

packages/ui-library/src/components/forms/checkbox/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import { InputSizes } from '../../../globals/constants';
66
import { PureIconKeys } from '@boiler/icons';
77
import { Themes } from '../../../foundation/_tokens-generated/index.themes';
88

9+
// this loads the all components instances and registers their html tags
10+
import '../../../index';
11+
912
// Shared Style inside the Stories
1013
const sharedStyles = html`
1114
<style>

packages/ui-library/src/components/forms/number-input/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import { PureIconKeys } from '@boiler/icons/icons-optimized';
77
import { html } from 'lit-html';
88
import { action } from '@storybook/addon-actions';
99

10+
// this loads the all components instances and registers their html tags
11+
import '../../../index';
12+
1013
const sharedStyles = html`
1114
<style>
1215
.wrapper {

packages/ui-library/src/components/forms/radio/radio-input-group/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { getIconName } from '../../../../utils/get-icon-name';
55
import { IconKeys } from '@boiler/icons';
66
import { Themes } from '../../../../foundation/_tokens-generated/index.themes';
77

8+
// this loads the all components instances and registers their html tags
9+
import '../../../../index';
10+
811
export default {
912
title: 'Design System/Web Components/Forms/RadioGroup',
1013
argTypes: {

packages/ui-library/src/components/forms/radio/radio-input/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import { Themes } from '../../../../foundation/_tokens-generated/index.themes';
66
import { html } from 'lit-html';
77
import { action } from '@storybook/addon-actions';
88

9+
// this loads the all components instances and registers their html tags
10+
import '../../../../index';
11+
912
const sharedStyles = html`
1013
<style>
1114
.wrapper {

packages/ui-library/src/components/forms/select/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import { FormSizes } from '../../../globals/constants';
66
import { PureIconKeys } from '@boiler/icons';
77
import { Themes } from '../../../foundation/_tokens-generated/index.themes';
88

9+
// this loads the all components instances and registers their html tags
10+
import '../../../index';
11+
912
// Shared Style inside the Stories
1013
const sharedStyles = html`
1114
<style>

packages/ui-library/src/components/forms/slider/slider-single-value/range-legend-slider/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { Sizes } from '../../../../../globals/constants';
55
import { PureIconKeys } from '@boiler/icons';
66
import { Themes } from '../../../../../foundation/_tokens-generated/index.themes';
77

8+
// this loads the all components instances and registers their html tags
9+
import '../../../../../index';
10+
811
export default {
912
title: 'Design System/Web Components/Forms/Slider/SliderSingleValue',
1013
argTypes: {

packages/ui-library/src/components/forms/slider/slider-single-value/range-slider/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import { Sizes } from '../../../../../globals/constants';
66
import { PureIconKeys } from '@boiler/icons';
77
import { Themes } from '../../../../../foundation/_tokens-generated/index.themes';
88

9+
// this loads the all components instances and registers their html tags
10+
import '../../../../../index';
11+
912
export default {
1013
title: 'Design System/Web Components/Forms/Slider/SliderSingleValue',
1114
argTypes: {

packages/ui-library/src/components/forms/slider/slider-two-values/range-legend-min-max-slider/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { Sizes } from '../../../../../globals/constants';
55
import { PureIconKeys } from '@boiler/icons';
66
import { Themes } from '../../../../../foundation/_tokens-generated/index.themes';
77

8+
// this loads the all components instances and registers their html tags
9+
import '../../../../../index';
10+
811
export default {
912
title: 'Design System/Web Components/Forms/Slider/SliderTwoValues',
1013
argTypes: {

packages/ui-library/src/components/forms/slider/slider-two-values/range-min-max-slider/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { Sizes } from '../../../../../globals/constants';
55
import { PureIconKeys } from '@boiler/icons';
66
import { Themes } from '../../../../../foundation/_tokens-generated/index.themes';
77

8+
// this loads the all components instances and registers their html tags
9+
import '../../../../../index';
10+
811
export default {
912
title: 'Design System/Web Components/Forms/Slider/SliderTwoValues',
1013
argTypes: {

packages/ui-library/src/components/forms/text-input/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import { Themes } from '../../../foundation/_tokens-generated/index.themes';
77
import { action } from '@storybook/addon-actions';
88
import { html } from 'lit-html';
99

10+
// this loads the all components instances and registers their html tags
11+
import '../../../index';
12+
1013
// Shared Style inside the Stories
1114
const sharedStyles = html`
1215
<style>

packages/ui-library/src/components/forms/textarea/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import { action } from '@storybook/addon-actions';
77
import { Themes } from '../../../foundation/_tokens-generated/index.themes';
88
import { PureIconKeys } from '@boiler/icons';
99

10+
// this loads the all components instances and registers their html tags
11+
import '../../../index';
12+
1013
// Shared Style inside the Stories
1114
const sharedStyles = html`
1215
<style>

packages/ui-library/src/components/forms/toggle-switch/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { PureIconKeys } from '@boiler/icons';
55
import { FormSizes, IconPositionVariant } from '../../../globals/constants';
66
import { Themes } from '../../../foundation/_tokens-generated/index.themes';
77

8+
// this loads the all components instances and registers their html tags
9+
import '../../../index';
10+
811
export default {
912
title: 'Design System/Web Components/Forms/ToggleSwitch',
1013
argTypes: {

packages/ui-library/src/components/internal-components/counter/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { html } from 'lit-html';
55
import { BlrCounterType } from './index';
66
import { BlrCounterRenderFunction } from './renderFunction';
77

8+
// this loads the all components instances and registers their html tags
9+
import '../../../index';
10+
811
// Shared Style inside the Stories
912
const sharedStyles = html`
1013
<style>

packages/ui-library/src/components/internal-components/form-caption-group/form-caption/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { BlrFormCaptionType } from './index';
55
import { BlrFormCaptionRenderFunction } from './renderFunction';
66
import { Themes } from '../../../../foundation/_tokens-generated/index.themes';
77

8+
// this loads the all components instances and registers their html tags
9+
import '../../../../index';
10+
811
export default {
912
title: 'Design System/Web Components/Internal Components/FormCaptionGroup/FormCaption',
1013
argTypes: {

packages/ui-library/src/components/internal-components/form-caption-group/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { html } from 'lit-html';
44
import { BlrFormCaptionRenderFunction } from './form-caption/renderFunction';
55
import { FormSizes } from '../../../globals/constants';
66

7+
// this loads the all components instances and registers their html tags
8+
import '../../../index';
9+
710
export default {
811
title: 'Design System/Web Components/Internal Components/FormCaptionGroup',
912
argTypes: {

packages/ui-library/src/components/internal-components/form-label/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { BlrFormLabelType } from './index';
55
import { BlrFormLabelRenderFunction } from './renderFunction';
66
import { html } from 'lit-html';
77

8+
// this loads the all components instances and registers their html tags
9+
import '../../../index';
10+
811
const sharedStyles = html`
912
<style>
1013
.stories-form-label {

packages/ui-library/src/components/navigation/tab-bar/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import {
1111
} from '../../../globals/constants';
1212
import { Themes } from '../../../foundation/_tokens-generated/index.themes';
1313

14+
// this loads the all components instances and registers their html tags
15+
import '../../../index';
16+
1417
export default {
1518
title: 'Design System/Web Components/Navigation/TabBar',
1619
argTypes: {

packages/ui-library/src/components/ui/button-group/index.stories.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
/* eslint-disable no-console */
22
import { BlrButtonGroupType } from './index';
3-
import { BlrButtonGroupFunction } from './renderFunction';
3+
import { BlrButtonGroupRenderFunction } from './renderFunction';
44
import { BlrTextButtonRenderFunction } from '../../actions/buttons/text-button/renderFunction';
55
import { BlrIconButtonRenderFunction } from '../../actions/buttons/icon-button/renderFunction';
66
import { html } from 'lit';
77
import { ButtonGroupAlignmentVariants, ButtonGroupSizes } from '../../../globals/constants';
88

9+
// this loads the all components instances and registers their html tags
10+
import '../../../index';
11+
912
export default {
1013
title: 'Design System/Web Components/UI/Button Group',
1114
argTypes: {
@@ -72,8 +75,8 @@ const contentTextButtons = html`
7275
`;
7376

7477
export const BlrButtonGroup = (params: BlrButtonGroupType) => html`
75-
Text-Buttons ${BlrButtonGroupFunction(params, contentTextButtons)} Icon-Buttons
76-
${BlrButtonGroupFunction(params, contentIconButtons)}
78+
Text-Buttons ${BlrButtonGroupRenderFunction(params, contentTextButtons)} Icon-Buttons
79+
${BlrButtonGroupRenderFunction(params, contentIconButtons)}
7780
`;
7881

7982
BlrButtonGroup.storyName = 'BlrButtonGroup';

packages/ui-library/src/components/ui/divider/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { BlrDividerRenderFunction } from './renderFunction';
44
import { DividerVariations } from '../../../globals/constants';
55
import { Themes } from '../../../foundation/_tokens-generated/index.themes';
66

7+
// this loads the all components instances and registers their html tags
8+
import '../../../index';
9+
710
export default {
811
title: 'Design System/Web Components/UI/Divider',
912
argTypes: {

packages/ui-library/src/components/ui/icon/icon-link/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { PureIconKeys } from '@boiler/icons';
55
import { ActionVariants, ActionSizes } from '../../../../globals/constants';
66
import { Themes } from '../../../../foundation/_tokens-generated/index.themes';
77

8+
// this loads the all components instances and registers their html tags
9+
import '../../../../index';
10+
811
export default {
912
title: 'Design System/Web Components/UI/Icon',
1013
argTypes: {

packages/ui-library/src/components/ui/icon/index.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import { calculateIconName } from '../../../utils/calculate-icon-name';
1010
import { classMap } from 'lit/directives/class-map.js';
1111
import { SizesType } from '../../../globals/types';
1212

13+
// this loads the all components instances and registers their html tags
14+
import '../../../index';
15+
1316
export default {
1417
title: 'Design System/Web Components/UI/Icon',
1518
argTypes: {

0 commit comments

Comments
 (0)