@teammodlr/ui-kit 2.1.49 → 2.1.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/avatar/Avatar.vue.d.ts +1 -1
- package/lib/components/badge/style/Badge.css.d.ts +2 -2
- package/lib/components/button/Button.vue.d.ts +4 -4
- package/lib/components/button/style/Button.css.d.ts +3 -3
- package/lib/components/checkbox/Checkbox.vue.d.ts +4 -4
- package/lib/components/configprovider/ConfigProvider.vue.d.ts +12 -11
- package/lib/components/confirm/ConfirmProvider.vue.d.ts +10 -10
- package/lib/components/dropdown/DropdownItem.vue.d.ts +2 -2
- package/lib/components/dropdown/style/Dropdown.css.d.ts +1 -1
- package/lib/components/input/Input.vue.d.ts +6 -6
- package/lib/components/link/Link.vue.d.ts +2 -2
- package/lib/components/messageprovider/Message.vue.d.ts +2 -2
- package/lib/components/messageprovider/MessageProvider.vue.d.ts +5 -5
- package/lib/components/messageprovider/style/Message.css.d.ts +1 -1
- package/lib/components/modal/Modal.vue.d.ts +1 -1
- package/lib/components/radio/Radio.vue.d.ts +6 -6
- package/lib/components/radiobutton/RadioButton.vue.d.ts +4 -4
- package/lib/components/renderer/renderer.d.ts +1 -1
- package/lib/components/select/Select.vue.d.ts +21 -20
- package/lib/components/switch/Switch.vue.d.ts +4 -4
- package/lib/components/tab/Tab.vue.d.ts +4 -6
- package/lib/components/tab/TabGroup.vue.d.ts +17 -3
- package/lib/components/tab/style/Tab.css.d.ts +7 -0
- package/lib/components/tab/style/index.d.ts +1 -0
- package/lib/components/table/Table.vue.d.ts +2 -2
- package/lib/components/textarea/Textarea.vue.d.ts +5 -5
- package/lib/composables/useInput.d.ts +1 -1
- package/lib/index.cjs.js +10 -13
- package/lib/index.es.js +2386 -2432
- package/lib/install.d.ts +1 -1
- package/lib/style.css +1 -1
- package/package.json +75 -89
- package/src/components/avatar/examples/index.stories.ts +25 -25
- package/src/components/avatargroup/examples/index.stories.ts +19 -19
- package/src/components/badge/examples/index.stories.ts +19 -19
- package/src/components/breadcrumb/examples/index.stories.ts +16 -16
- package/src/components/button/examples/index.stories.ts +37 -37
- package/src/components/buttongroup/examples/index.stories.ts +17 -17
- package/src/components/checkbox/examples/index.stories.ts +16 -16
- package/src/components/colorpicker/examples/index.stories.ts +12 -12
- package/src/components/configprovider/ConfigProvider.vue +38 -38
- package/src/components/confirm/ConfirmProvider.vue +82 -82
- package/src/components/confirm/examples/index.stories.ts +26 -26
- package/src/components/dialog/examples/index.stories.ts +14 -14
- package/src/components/dropdown/examples/index.stories.ts +26 -26
- package/src/components/form/examples/index.stories.ts +23 -23
- package/src/components/image/examples/index.stories.ts +10 -10
- package/src/components/input/examples/index.stories.ts +26 -26
- package/src/components/link/examples/index.stories.ts +15 -15
- package/src/components/messageprovider/examples/index.stories.ts +26 -26
- package/src/components/modal/examples/index.stories.ts +16 -16
- package/src/components/pagination/examples/index.stories.ts +11 -11
- package/src/components/radio/examples/index.stories.ts +16 -16
- package/src/components/radiobuttongroup/examples/index.stories.ts +18 -18
- package/src/components/renderer/examlpes/index.stories.ts +14 -14
- package/src/components/select/Select.vue +755 -755
- package/src/components/select/examples/basic.vue +26 -26
- package/src/components/select/examples/index.stories.ts +16 -16
- package/src/components/select/types.ts +27 -27
- package/src/components/skeleton/examples/index.stories.ts +13 -13
- package/src/components/switch/examples/index.stories.ts +15 -15
- package/src/components/switch/style/Switch.css.ts +135 -135
- package/src/components/tab/Tab.vue +85 -98
- package/src/components/tab/TabGroup.vue +96 -90
- package/src/components/tab/examples/index.stories.ts +21 -10
- package/src/components/tab/style/Tab.css.ts +137 -0
- package/src/components/tab/style/index.ts +1 -0
- package/src/components/table/examples/index.stories.ts +17 -17
- package/src/components/tag/examples/index.stories.ts +16 -16
- package/src/components/textarea/examples/index.stories.ts +14 -14
- package/src/components/tooltip/examples/index.stories.ts +17 -17
- package/src/components/transfer/examples/index.stories.ts +12 -12
- package/src/components/tree/examples/index.stories.ts +12 -12
- package/src/components/virtualscroll/examples/index.stories.ts +11 -11
- package/src/composables/useCachedUid.ts +15 -15
- package/src/composables/useInput.ts +151 -151
- package/src/examples/cards/cards.stories.ts +9 -9
- package/src/examples/modal/modal.stories.ts +9 -9
- package/src/types/props.ts +21 -21
- package/src/utils/call.ts +34 -34
- package/src/utils/injection.ts +45 -45
- package/src/components/tab/Tab.css +0 -113
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import MLink from '../Link.vue';
|
|
2
|
-
|
|
3
|
-
import { MLinkBasic } from './index';
|
|
4
|
-
|
|
5
|
-
import { createStory, colorArgType } from '../../../__storybook__';
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
component: MLink,
|
|
9
|
-
title: 'Components/Link',
|
|
10
|
-
argTypes: {
|
|
11
|
-
...colorArgType()
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export const Basic = createStory(MLinkBasic);
|
|
1
|
+
import MLink from '../Link.vue';
|
|
2
|
+
|
|
3
|
+
import { MLinkBasic } from './index';
|
|
4
|
+
|
|
5
|
+
import { createStory, colorArgType } from '../../../__storybook__';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
component: MLink,
|
|
9
|
+
title: 'Components/Link',
|
|
10
|
+
argTypes: {
|
|
11
|
+
...colorArgType()
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const Basic = createStory(MLinkBasic);
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import MMessageProvider from '../MessageProvider.vue';
|
|
2
|
-
import { MMessageProviderBasic } from './index';
|
|
3
|
-
|
|
4
|
-
const Template = (args: any) => ({
|
|
5
|
-
components: {
|
|
6
|
-
MMessageProvider,
|
|
7
|
-
MMessageProviderBasic
|
|
8
|
-
},
|
|
9
|
-
setup() {
|
|
10
|
-
return {
|
|
11
|
-
args
|
|
12
|
-
};
|
|
13
|
-
},
|
|
14
|
-
template: `
|
|
15
|
-
<m-message-provider v-bind="args">
|
|
16
|
-
<MMessageProviderBasic />
|
|
17
|
-
</m-message-provider>
|
|
18
|
-
`
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
export default {
|
|
22
|
-
component: MMessageProvider,
|
|
23
|
-
title: 'Components/MessageProvider'
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export const Primary = Template.bind({});
|
|
1
|
+
import MMessageProvider from '../MessageProvider.vue';
|
|
2
|
+
import { MMessageProviderBasic } from './index';
|
|
3
|
+
|
|
4
|
+
const Template = (args: any) => ({
|
|
5
|
+
components: {
|
|
6
|
+
MMessageProvider,
|
|
7
|
+
MMessageProviderBasic
|
|
8
|
+
},
|
|
9
|
+
setup() {
|
|
10
|
+
return {
|
|
11
|
+
args
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
template: `
|
|
15
|
+
<m-message-provider v-bind="args">
|
|
16
|
+
<MMessageProviderBasic />
|
|
17
|
+
</m-message-provider>
|
|
18
|
+
`
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
component: MMessageProvider,
|
|
23
|
+
title: 'Components/MessageProvider'
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const Primary = Template.bind({});
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import MModal from '../Modal.vue';
|
|
2
|
-
import { MModalBasic, MModalForm, MModalSidebar } from './index';
|
|
3
|
-
|
|
4
|
-
import { createStory, sizeArgType } from '../../../__storybook__';
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
component: MModal,
|
|
8
|
-
title: 'Components/Modal',
|
|
9
|
-
argTypes: {
|
|
10
|
-
...sizeArgType()
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export const Basic = createStory(MModalBasic);
|
|
15
|
-
export const ModalForm = createStory(MModalForm);
|
|
16
|
-
export const ModalSidebar = createStory(MModalSidebar);
|
|
1
|
+
import MModal from '../Modal.vue';
|
|
2
|
+
import { MModalBasic, MModalForm, MModalSidebar } from './index';
|
|
3
|
+
|
|
4
|
+
import { createStory, sizeArgType } from '../../../__storybook__';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: MModal,
|
|
8
|
+
title: 'Components/Modal',
|
|
9
|
+
argTypes: {
|
|
10
|
+
...sizeArgType()
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const Basic = createStory(MModalBasic);
|
|
15
|
+
export const ModalForm = createStory(MModalForm);
|
|
16
|
+
export const ModalSidebar = createStory(MModalSidebar);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import MPagination from '../Pagination.vue';
|
|
2
|
-
import { MPaginationBasic } from './index';
|
|
3
|
-
|
|
4
|
-
import { createStory } from '../../../__storybook__';
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
component: MPagination,
|
|
8
|
-
title: 'Components/Pagination'
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export const Basic = createStory(MPaginationBasic);
|
|
1
|
+
import MPagination from '../Pagination.vue';
|
|
2
|
+
import { MPaginationBasic } from './index';
|
|
3
|
+
|
|
4
|
+
import { createStory } from '../../../__storybook__';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: MPagination,
|
|
8
|
+
title: 'Components/Pagination'
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const Basic = createStory(MPaginationBasic);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import MRadio from '../Radio.vue';
|
|
2
|
-
import { MRadioBasic, MRadioGroup } from './index';
|
|
3
|
-
|
|
4
|
-
import { createStory, sizeArgType, colorArgType } from '../../../__storybook__';
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
component: MRadio,
|
|
8
|
-
title: 'Components/Radio',
|
|
9
|
-
argTypes: {
|
|
10
|
-
...sizeArgType(),
|
|
11
|
-
...colorArgType()
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export const Basic = createStory(MRadioBasic);
|
|
16
|
-
export const Group = createStory(MRadioGroup);
|
|
1
|
+
import MRadio from '../Radio.vue';
|
|
2
|
+
import { MRadioBasic, MRadioGroup } from './index';
|
|
3
|
+
|
|
4
|
+
import { createStory, sizeArgType, colorArgType } from '../../../__storybook__';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: MRadio,
|
|
8
|
+
title: 'Components/Radio',
|
|
9
|
+
argTypes: {
|
|
10
|
+
...sizeArgType(),
|
|
11
|
+
...colorArgType()
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const Basic = createStory(MRadioBasic);
|
|
16
|
+
export const Group = createStory(MRadioGroup);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import MRadioButtonGroup from '../RadioButtonGroup.vue';
|
|
2
|
-
import MRadioButton from '../../radiobutton/RadioButton.vue';
|
|
3
|
-
import { MRadioButtonGroupBasic } from './index';
|
|
4
|
-
|
|
5
|
-
import { createStory, sizeArgType, colorArgType } from '../../../__storybook__';
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
component: MRadioButtonGroup,
|
|
9
|
-
subcomponents: {
|
|
10
|
-
MRadioButton
|
|
11
|
-
},
|
|
12
|
-
title: 'Components/Radio Button Group',
|
|
13
|
-
argTypes: {
|
|
14
|
-
...sizeArgType()
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const Basic = createStory(MRadioButtonGroupBasic);
|
|
1
|
+
import MRadioButtonGroup from '../RadioButtonGroup.vue';
|
|
2
|
+
import MRadioButton from '../../radiobutton/RadioButton.vue';
|
|
3
|
+
import { MRadioButtonGroupBasic } from './index';
|
|
4
|
+
|
|
5
|
+
import { createStory, sizeArgType, colorArgType } from '../../../__storybook__';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
component: MRadioButtonGroup,
|
|
9
|
+
subcomponents: {
|
|
10
|
+
MRadioButton
|
|
11
|
+
},
|
|
12
|
+
title: 'Components/Radio Button Group',
|
|
13
|
+
argTypes: {
|
|
14
|
+
...sizeArgType()
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const Basic = createStory(MRadioButtonGroupBasic);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import MRenderer from '../renderer';
|
|
2
|
-
import { MRendererBasic } from './index';
|
|
3
|
-
|
|
4
|
-
import { createStory, sizeArgType } from '../../../__storybook__';
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
component: MRenderer,
|
|
8
|
-
title: 'Components/Renderer',
|
|
9
|
-
argTypes: {
|
|
10
|
-
...sizeArgType()
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export const Basic = createStory(MRendererBasic);
|
|
1
|
+
import MRenderer from '../renderer';
|
|
2
|
+
import { MRendererBasic } from './index';
|
|
3
|
+
|
|
4
|
+
import { createStory, sizeArgType } from '../../../__storybook__';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: MRenderer,
|
|
8
|
+
title: 'Components/Renderer',
|
|
9
|
+
argTypes: {
|
|
10
|
+
...sizeArgType()
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const Basic = createStory(MRendererBasic);
|