This commit is contained in:
Jesper Møller Jensen
2023-05-15 17:26:38 +12:00
parent 0cc75bbaf5
commit 10963eea19
2 changed files with 21 additions and 22 deletions

View File

@@ -3,28 +3,27 @@ import './input-user-group.element';
import type { UmbInputPickerUserGroupElement } from './input-user-group.element';
const meta: Meta<UmbInputPickerUserGroupElement> = {
title: 'Components/Inputs/User Group',
component: 'umb-input-user-group',
argTypes: {
modalType: {
control: 'inline-radio',
options: ['dialog', 'sidebar'],
defaultValue: 'sidebar',
description: 'The type of modal to use when selecting user groups',
},
modalSize:{
control: 'select',
options: ['small', 'medium', 'large', 'full'],
defaultValue: 'small',
description: 'The size of the modal to use when selecting user groups, only applicable to sidebar not dialog',
}
}
title: 'Components/Inputs/User Group',
component: 'umb-user-group-input',
argTypes: {
modalType: {
control: 'inline-radio',
options: ['dialog', 'sidebar'],
defaultValue: 'sidebar',
description: 'The type of modal to use when selecting user groups',
},
modalSize: {
control: 'select',
options: ['small', 'medium', 'large', 'full'],
defaultValue: 'small',
description: 'The size of the modal to use when selecting user groups, only applicable to sidebar not dialog',
},
},
};
export default meta;
type Story = StoryObj<UmbInputPickerUserGroupElement>;
export const Overview: Story = {
args: {
}
};
args: {},
};

View File

@@ -6,7 +6,7 @@ import { expect, fixture, html } from '@open-wc/testing';
// describe('UmbPickerLayoutUserGroupElement', () => {
// let element: UmbPickerUserGroupElement;
// beforeEach(async () => {
// element = await fixture(html`<umb-input-user-group></umb-input-user-group>`);
// element = await fixture(html`<umb-user-group-input></umb-user-group-input>`);
// });
// it('is defined with its own instance', () => {