@teammodlr/ui-kit 1.0.5 → 1.0.7
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/package.json +1 -1
- package/src/components/button/Button.vue +1 -1
- package/src/components/buttongroup/ButtonGroup.vue +1 -1
- package/src/components/checkbox/Checkbox.vue +2 -2
- package/src/components/dropdown/Dropdown.vue +1 -1
- package/src/components/input/Input.vue +3 -3
- package/src/components/link/Link.vue +1 -1
- package/src/components/messageprovider/MessageProvider.vue +1 -1
- package/src/components/select/Select.vue +3 -3
- package/src/components/tab/TabGroup.vue +1 -1
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<script lang="ts">
|
|
16
16
|
import { computed, defineComponent, inject } from "vue";
|
|
17
17
|
import type { PropType } from 'vue';
|
|
18
|
-
import type { Color, Size } from "
|
|
18
|
+
import type { Color, Size } from "../../types/props";
|
|
19
19
|
|
|
20
20
|
export default defineComponent({
|
|
21
21
|
name: "MButton",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
|
|
30
30
|
<script lang="ts">
|
|
31
31
|
import { defineComponent, toRef, ref, type PropType, watch, computed } from 'vue';
|
|
32
|
-
import { useInput } from '
|
|
33
|
-
import type { Size, Color } from '
|
|
32
|
+
import { useInput } from '../../composables/useInput';
|
|
33
|
+
import type { Size, Color } from '../../types/props';
|
|
34
34
|
|
|
35
35
|
export default defineComponent({
|
|
36
36
|
name: "Checkbox",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</template>
|
|
21
21
|
|
|
22
22
|
<script lang="ts">
|
|
23
|
-
import { usePopper } from '
|
|
23
|
+
import { usePopper } from '../../composables/usePopper';
|
|
24
24
|
import type { Placement, VirtualElement } from '@popperjs/core';
|
|
25
25
|
import { defineComponent, inject, ref, type PropType, provide, watch, onMounted, nextTick, computed, Teleport, toRef, onUnmounted } from 'vue';
|
|
26
26
|
import { onClickOutside, useEventListener } from '@vueuse/core';
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
|
|
38
38
|
<script lang="ts">
|
|
39
39
|
import type { PropType } from "vue";
|
|
40
|
-
import type { Size } from "
|
|
40
|
+
import type { Size } from "../../types/props";
|
|
41
41
|
import {
|
|
42
42
|
defineComponent,
|
|
43
43
|
ref,
|
|
44
44
|
computed,
|
|
45
45
|
toRef,
|
|
46
46
|
} from "vue";
|
|
47
|
-
import { useInput } from "
|
|
47
|
+
import { useInput } from "../../composables/useInput";
|
|
48
48
|
export default defineComponent({
|
|
49
49
|
name: 'MInput',
|
|
50
50
|
emits: useInput.emits(),
|
|
@@ -60,7 +60,7 @@ export default defineComponent({
|
|
|
60
60
|
type: {
|
|
61
61
|
type: String,
|
|
62
62
|
default: 'text',
|
|
63
|
-
validator: (value: string) => ['text', 'password', 'number'].includes(value)
|
|
63
|
+
validator: (value: string) => ['text', 'password', 'number', 'email'].includes(value)
|
|
64
64
|
},
|
|
65
65
|
placeholder: {
|
|
66
66
|
type: String,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
import type { MessageType, MessageReactive, MessageOptions, MessageApiInjection, ContentType } from './types';
|
|
31
31
|
import type { PropType } from 'vue';
|
|
32
32
|
import MMessage from './Message.vue';
|
|
33
|
-
import { useCachedUid } from '
|
|
33
|
+
import { useCachedUid } from '../../composables/useCachedUid';
|
|
34
34
|
|
|
35
35
|
export type MessageProviderInst = MessageApiInjection;
|
|
36
36
|
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
</template>
|
|
54
54
|
|
|
55
55
|
<script lang="ts">
|
|
56
|
-
import { useInput } from "
|
|
57
|
-
import { usePopper, type Placement } from "
|
|
58
|
-
import type { Size } from "
|
|
56
|
+
import { useInput } from "../../composables/useInput";
|
|
57
|
+
import { usePopper, type Placement } from "../../composables/usePopper";
|
|
58
|
+
import type { Size } from "../../types/props";
|
|
59
59
|
import { onClickOutside, useEventListener } from '@vueuse/core';
|
|
60
60
|
import {
|
|
61
61
|
computed,
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
20
|
<script lang="ts">
|
|
21
|
-
import type { Size } from '
|
|
21
|
+
import type { Size } from '../../types/props';
|
|
22
22
|
import { computed, defineComponent, provide, reactive, ref, watchEffect, type PropType } from 'vue';
|
|
23
23
|
|
|
24
24
|
export default defineComponent({
|