vueless 1.4.7-beta.1 → 1.4.7-beta.2
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/icons/storybook/cloud_sync.svg +1 -0
- package/icons/storybook/date_range.svg +1 -0
- package/icons/storybook/event.svg +1 -0
- package/icons/storybook/folder.svg +1 -0
- package/icons/storybook/format_quote.svg +1 -0
- package/icons/storybook/local_shipping.svg +1 -0
- package/icons/storybook/location_city.svg +1 -0
- package/icons/storybook/mark_email_unread.svg +1 -0
- package/icons/storybook/notifications.svg +1 -0
- package/icons/storybook/shield.svg +1 -0
- package/icons/storybook/workspace_premium.svg +1 -0
- package/package.json +1 -1
- package/ui.form-checkbox/UCheckbox.vue +0 -5
- package/ui.form-checkbox/storybook/stories.ts +56 -18
- package/ui.form-checkbox/tests/UCheckbox.test.ts +0 -17
- package/ui.form-checkbox-group/storybook/stories.ts +61 -0
- package/ui.form-date-picker/storybook/stories.ts +85 -37
- package/ui.form-date-picker-range/storybook/stories.ts +97 -38
- package/ui.form-input/storybook/stories.ts +75 -37
- package/ui.form-input-file/storybook/stories.ts +44 -5
- package/ui.form-input-number/storybook/stories.ts +66 -28
- package/ui.form-input-password/storybook/stories.ts +94 -50
- package/ui.form-input-search/storybook/stories.ts +40 -4
- package/ui.form-label/ULabel.vue +0 -6
- package/ui.form-label/storybook/stories.ts +46 -24
- package/ui.form-label/tests/ULabel.test.ts +0 -12
- package/ui.form-radio/URadio.vue +0 -5
- package/ui.form-radio/storybook/stories.ts +65 -25
- package/ui.form-radio/tests/URadio.test.ts +0 -17
- package/ui.form-radio-group/storybook/stories.ts +67 -0
- package/ui.form-select/storybook/stories.ts +99 -44
- package/ui.form-switch/storybook/stories.ts +35 -11
- package/ui.form-textarea/storybook/stories.ts +61 -20
- package/ui.text-files/storybook/stories.ts +30 -13
|
@@ -8,7 +8,10 @@ import {
|
|
|
8
8
|
|
|
9
9
|
import UFiles from "../../ui.text-files/UFiles.vue";
|
|
10
10
|
import URow from "../../ui.container-row/URow.vue";
|
|
11
|
+
import UCol from "../../ui.container-col/UCol.vue";
|
|
11
12
|
import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
13
|
+
import UText from "../../ui.text-block/UText.vue";
|
|
14
|
+
import ULink from "../../ui.button-link/ULink.vue";
|
|
12
15
|
|
|
13
16
|
import type { Meta, StoryFn } from "@storybook/vue3-vite";
|
|
14
17
|
import type { Props } from "../types";
|
|
@@ -80,25 +83,39 @@ export const Sizes = EnumTemplate.bind({});
|
|
|
80
83
|
Sizes.args = { enum: "size" };
|
|
81
84
|
|
|
82
85
|
export const Slots: StoryFn<UFilesArgs> = (args) => ({
|
|
83
|
-
components: { UFiles, URow, UIcon },
|
|
86
|
+
components: { UFiles, URow, UCol, UIcon, UText, ULink },
|
|
84
87
|
setup() {
|
|
85
88
|
return { args };
|
|
86
89
|
},
|
|
87
90
|
template: `
|
|
88
|
-
<
|
|
89
|
-
<
|
|
90
|
-
<
|
|
91
|
-
<
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
<UCol gap="3xl">
|
|
92
|
+
<URow block>
|
|
93
|
+
<UFiles v-bind="args">
|
|
94
|
+
<template #before-file="{ index }">
|
|
95
|
+
<UIcon v-if="index === 0" name="info" color="warning" size="xs" />
|
|
96
|
+
<UIcon v-if="index === 1" name="check_circle" color="success" size="xs" />
|
|
97
|
+
</template>
|
|
98
|
+
</UFiles>
|
|
95
99
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
<UFiles v-bind="args">
|
|
101
|
+
<template #after-file="{ index }">
|
|
102
|
+
<UIcon v-if="index === 0" name="info" color="warning" size="xs" />
|
|
103
|
+
<UIcon v-if="index === 1" name="check_circle" color="success" size="xs" />
|
|
104
|
+
</template>
|
|
105
|
+
</UFiles>
|
|
106
|
+
</URow>
|
|
107
|
+
|
|
108
|
+
<UFiles v-bind="args" label="Documents">
|
|
109
|
+
<template #description>
|
|
110
|
+
<URow align="center" gap="2xs" class="text-neutral">
|
|
111
|
+
<UIcon name="folder" size="xs" class="mt-0.5" color="primary" />
|
|
112
|
+
<UText size="sm">
|
|
113
|
+
Files are read-only here.
|
|
114
|
+
<ULink label="Manage in storage" underlined size="sm" />.
|
|
115
|
+
</UText>
|
|
116
|
+
</URow>
|
|
100
117
|
</template>
|
|
101
118
|
</UFiles>
|
|
102
|
-
</
|
|
119
|
+
</UCol>
|
|
103
120
|
`,
|
|
104
121
|
});
|