@volverjs/ui-vue 0.0.10-beta.20 → 0.0.10-beta.22
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/dist/components/VvAccordion/VvAccordion.vue.d.ts +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +1 -1
- package/dist/components/VvAction/VvAction.vue.d.ts +1 -1
- package/dist/components/VvAlert/VvAlert.vue.d.ts +1 -1
- package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +1 -1
- package/dist/components/VvAvatar/VvAvatar.vue.d.ts +1 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +1 -1
- package/dist/components/VvBadge/VvBadge.vue.d.ts +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +1 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +1 -1
- package/dist/components/VvCard/VvCard.vue.d.ts +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +67 -67
- package/dist/components/VvCombobox/index.d.ts +8 -8
- package/dist/components/VvDialog/VvDialog.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +70 -70
- package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +1 -1
- package/dist/components/VvDropdown/index.d.ts +8 -8
- package/dist/components/VvIcon/VvIcon.vue.d.ts +1 -1
- package/dist/components/VvIcon/index.d.ts +12 -0
- package/dist/components/VvInputFile/VvInputFile.es.js +231 -67
- package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
- package/dist/components/VvInputFile/VvInputFile.vue.d.ts +152 -29
- package/dist/components/VvInputFile/index.d.ts +119 -14
- package/dist/components/VvInputText/VvInputClearAction.d.ts +6 -4
- package/dist/components/VvInputText/VvInputPasswordAction.d.ts +10 -8
- package/dist/components/VvInputText/VvInputStepAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputText.es.js +73 -65
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +10 -10
- package/dist/components/VvInputText/index.d.ts +6 -15
- package/dist/components/VvNav/VvNav.vue.d.ts +1 -1
- package/dist/components/VvNav/VvNavItem.vue.d.ts +1 -1
- package/dist/components/VvNav/VvNavSeparator.vue.d.ts +1 -1
- package/dist/components/VvProgress/VvProgress.vue.d.ts +1 -1
- package/dist/components/VvRadio/VvRadio.vue.d.ts +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +1 -1
- package/dist/components/VvSelect/VvSelect.vue.d.ts +1 -1
- package/dist/components/VvTab/VvTab.vue.d.ts +1 -1
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +1 -1
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +1 -1
- package/dist/components/common/HintSlot.d.ts +1 -1
- package/dist/components/index.es.js +247 -96
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/alert/useAlert.d.ts +1 -1
- package/dist/composables/dropdown/useProvideDropdown.d.ts +1 -1
- package/dist/icons.es.js +210 -210
- package/dist/icons.umd.js +1 -1
- package/dist/index.es.js +20 -12
- package/dist/index.umd.js +1 -1
- package/dist/props/index.d.ts +8 -14
- package/dist/resolvers/unplugin.es.js +20 -12
- package/dist/resolvers/unplugin.umd.js +1 -1
- package/dist/stories/InputFile/InputFile.stories.d.ts +1 -2
- package/dist/stories/InputFile/{InputFileModifiers.stories.d.ts → InputFileDropArea.stories.d.ts} +4 -4
- package/dist/stories/InputFile/InputFileIconPosition.stories.d.ts +8 -0
- package/dist/stories/InputFile/InputFileSlots.stories.d.ts +1 -0
- package/dist/types/input-file.d.ts +2 -0
- package/package.json +49 -49
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvIcon/index.ts +13 -0
- package/src/components/VvInputFile/VvInputFile.vue +108 -40
- package/src/components/VvInputFile/index.ts +88 -10
- package/src/components/VvInputText/VvInputClearAction.ts +10 -6
- package/src/components/VvInputText/VvInputPasswordAction.ts +13 -9
- package/src/components/VvInputText/VvInputText.vue +6 -6
- package/src/components/VvInputText/index.ts +7 -15
- package/src/stories/InputFile/InputFile.settings.ts +1 -1
- package/src/stories/InputFile/InputFile.stories.ts +7 -16
- package/src/stories/InputFile/{InputFileModifiers.stories.ts → InputFileDropArea.stories.ts} +18 -13
- package/src/stories/InputFile/InputFileIconPosition.stories.ts +43 -0
- package/src/stories/InputFile/InputFileSlots.stories.ts +11 -3
- package/src/types/input-file.ts +4 -2
package/src/stories/InputFile/{InputFileModifiers.stories.ts → InputFileDropArea.stories.ts}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
2
|
import VvInputFile from '@/components/VvInputFile/VvInputFile.vue'
|
|
3
|
-
import { Default } from './InputFile.stories'
|
|
3
|
+
import { Default as DefaultStory } from './InputFile.stories'
|
|
4
4
|
import { argTypes, defaultArgs } from './InputFile.settings'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvInputFile> = {
|
|
7
|
-
title: 'Components/InputFile/
|
|
7
|
+
title: 'Components/InputFile/DropArea',
|
|
8
8
|
component: VvInputFile,
|
|
9
9
|
args: defaultArgs,
|
|
10
10
|
argTypes,
|
|
@@ -14,38 +14,43 @@ export default meta
|
|
|
14
14
|
|
|
15
15
|
type Story = StoryObj<typeof VvInputFile>
|
|
16
16
|
|
|
17
|
-
export const
|
|
18
|
-
...
|
|
17
|
+
export const Default: Story = {
|
|
18
|
+
...DefaultStory,
|
|
19
19
|
args: {
|
|
20
|
-
...
|
|
20
|
+
...DefaultStory.args,
|
|
21
21
|
label: 'Drop area',
|
|
22
|
-
|
|
22
|
+
dropArea: true,
|
|
23
23
|
},
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export const
|
|
26
|
+
export const InputHidden: Story = {
|
|
27
27
|
...Default,
|
|
28
28
|
args: {
|
|
29
29
|
...Default.args,
|
|
30
|
-
label: 'Drop area hidden',
|
|
31
|
-
|
|
30
|
+
label: 'Drop area hidden input',
|
|
31
|
+
dropArea: true,
|
|
32
|
+
modifiers: 'hidden',
|
|
32
33
|
},
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
export const
|
|
36
|
+
export const Square: Story = {
|
|
36
37
|
...Default,
|
|
37
38
|
args: {
|
|
38
39
|
...Default.args,
|
|
40
|
+
class: 'max-w-192',
|
|
39
41
|
label: 'Drop area square',
|
|
40
|
-
|
|
42
|
+
dropArea: true,
|
|
43
|
+
modifiers: 'square hidden',
|
|
41
44
|
},
|
|
42
45
|
}
|
|
43
46
|
|
|
44
|
-
export const
|
|
47
|
+
export const Circle: Story = {
|
|
45
48
|
...Default,
|
|
46
49
|
args: {
|
|
47
50
|
...Default.args,
|
|
51
|
+
class: 'max-w-192',
|
|
48
52
|
label: 'Drop area circle',
|
|
49
|
-
|
|
53
|
+
dropArea: true,
|
|
54
|
+
modifiers: 'circle hidden',
|
|
50
55
|
},
|
|
51
56
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
+
import VvInputFile from '@/components/VvInputFile/VvInputFile.vue'
|
|
3
|
+
import { Default } from './InputFile.stories'
|
|
4
|
+
import { defaultArgs, argTypes } from './InputFile.settings'
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof VvInputFile> = {
|
|
7
|
+
title: 'Components/InputFile/Icon',
|
|
8
|
+
component: VvInputFile,
|
|
9
|
+
args: defaultArgs,
|
|
10
|
+
argTypes,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default meta
|
|
14
|
+
|
|
15
|
+
type Story = StoryObj<typeof VvInputFile>
|
|
16
|
+
|
|
17
|
+
export const DefaultPosition: Story = {
|
|
18
|
+
...Default,
|
|
19
|
+
args: {
|
|
20
|
+
...Default.args,
|
|
21
|
+
icon: 'heart',
|
|
22
|
+
},
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const After: Story = {
|
|
26
|
+
...Default,
|
|
27
|
+
args: {
|
|
28
|
+
...Default.args,
|
|
29
|
+
icon: 'heart',
|
|
30
|
+
iconPosition: 'after',
|
|
31
|
+
},
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const Src: Story = {
|
|
35
|
+
...Default,
|
|
36
|
+
args: {
|
|
37
|
+
...Default.args,
|
|
38
|
+
icon: {
|
|
39
|
+
name: 'engineering',
|
|
40
|
+
src: 'https://raw.githubusercontent.com/google/material-design-icons/master/src/social/engineering/materialicons/24px.svg',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
}
|
|
@@ -18,8 +18,16 @@ export const DropArea: Story = {
|
|
|
18
18
|
...DefaultStory,
|
|
19
19
|
args: {
|
|
20
20
|
...DefaultStory.args,
|
|
21
|
-
'
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
class: 'max-w-320',
|
|
22
|
+
'drop-area': 'Drag one or more files to this drop zone.',
|
|
23
|
+
dropArea: true,
|
|
24
|
+
},
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const Hint: Story = {
|
|
28
|
+
...DefaultStory,
|
|
29
|
+
args: {
|
|
30
|
+
...DefaultStory.args,
|
|
31
|
+
hint: 'Hint <em class="italic">slot!</em>',
|
|
24
32
|
},
|
|
25
33
|
}
|
package/src/types/input-file.ts
CHANGED
|
@@ -4,13 +4,15 @@ export type UploadedFile<Source = undefined> = Source extends undefined
|
|
|
4
4
|
size: number
|
|
5
5
|
type: string
|
|
6
6
|
url: string
|
|
7
|
+
thumbnailUrl?: string
|
|
7
8
|
lastModified?: number
|
|
8
|
-
|
|
9
|
+
}
|
|
9
10
|
: {
|
|
10
11
|
name: string
|
|
11
12
|
size: number
|
|
12
13
|
type: string
|
|
13
14
|
url: string
|
|
15
|
+
thumbnailUrl?: string
|
|
14
16
|
lastModified?: number
|
|
15
17
|
source: Source
|
|
16
|
-
|
|
18
|
+
}
|