nuxt-glorious 1.2.9-8 → 1.2.9-8-1
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/module.json +1 -1
- package/dist/runtime/components/G/File.vue +9 -1
- package/dist/runtime/components/G/Input.vue +6 -0
- package/dist/runtime/components/G/Select.vue +6 -1
- package/dist/runtime/components/G/textarea.vue +9 -3
- package/dist/runtime/components/props/File.d.ts +5 -0
- package/dist/runtime/components/props/File.mjs +11 -2
- package/dist/runtime/components/props/Input.d.ts +5 -0
- package/dist/runtime/components/props/Input.mjs +3 -1
- package/dist/runtime/components/props/Select.d.ts +5 -0
- package/dist/runtime/components/props/Select.mjs +3 -1
- package/dist/runtime/components/props/Textarea.d.ts +5 -0
- package/dist/runtime/components/props/Textarea.mjs +10 -1
- package/dist/runtime/components/props/common/index.d.ts +7 -0
- package/dist/runtime/components/props/common/index.mjs +7 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
@@ -18,7 +18,15 @@ const deleteFile = (event: any) => {
|
|
18
18
|
</script>
|
19
19
|
<template>
|
20
20
|
<div class="flex flex-col">
|
21
|
-
<span class="text-sm font-medium text-gray-500">
|
21
|
+
<span class="text-sm font-medium text-gray-500">
|
22
|
+
{{ props.title }}
|
23
|
+
<span
|
24
|
+
v-if="props.required"
|
25
|
+
class="text-red-500"
|
26
|
+
>
|
27
|
+
*
|
28
|
+
</span>
|
29
|
+
</span>
|
22
30
|
<label
|
23
31
|
:class="[`glorious-file-${props.color}`]"
|
24
32
|
class="flex items-center gap-3 text-gray-500"
|
@@ -120,6 +120,12 @@ const gs = GloriousStore()
|
|
120
120
|
<div class="flex flex-col">
|
121
121
|
<span class="glorious-title text-sm font-medium text-gray-500">
|
122
122
|
{{ props.title }}
|
123
|
+
<span
|
124
|
+
v-if="props.required"
|
125
|
+
class="text-red-500"
|
126
|
+
>
|
127
|
+
*
|
128
|
+
</span>
|
123
129
|
</span>
|
124
130
|
|
125
131
|
<div
|
@@ -30,9 +30,14 @@ const firstVal = selectValue.value
|
|
30
30
|
<div class="flex flex-col">
|
31
31
|
<span class="glorious-title text-sm font-medium text-gray-500">
|
32
32
|
{{ props.title }}
|
33
|
+
<span
|
34
|
+
v-if="props.required"
|
35
|
+
class="text-red-500"
|
36
|
+
>
|
37
|
+
*
|
38
|
+
</span>
|
33
39
|
</span>
|
34
40
|
<div class="grow flex relative">
|
35
|
-
{{ selectValue }}
|
36
41
|
<select
|
37
42
|
v-model="selectValue"
|
38
43
|
aria-label="glorious select"
|
@@ -18,9 +18,15 @@ watch(
|
|
18
18
|
|
19
19
|
<template>
|
20
20
|
<div class="flex flex-col">
|
21
|
-
<span class="glorious-title text-sm font-medium text-gray-500">
|
22
|
-
props.title
|
23
|
-
|
21
|
+
<span class="glorious-title text-sm font-medium text-gray-500">
|
22
|
+
{{ props.title }}
|
23
|
+
<span
|
24
|
+
v-if="props.required"
|
25
|
+
class="text-red-500"
|
26
|
+
>
|
27
|
+
*
|
28
|
+
</span>
|
29
|
+
</span>
|
24
30
|
<div class="glorious-textarea">
|
25
31
|
<textarea
|
26
32
|
v-model="inputValue"
|
@@ -1,9 +1,18 @@
|
|
1
|
-
import {
|
1
|
+
import {
|
2
|
+
color,
|
3
|
+
placeholder,
|
4
|
+
title,
|
5
|
+
text,
|
6
|
+
size,
|
7
|
+
error,
|
8
|
+
required
|
9
|
+
} from "./common/index.mjs";
|
2
10
|
export default {
|
3
11
|
...error,
|
4
12
|
...color,
|
5
13
|
...placeholder("choose file"),
|
6
14
|
...title("file"),
|
7
15
|
...text("No file has been selected"),
|
8
|
-
...size()
|
16
|
+
...size(),
|
17
|
+
...required()
|
9
18
|
};
|
@@ -6,7 +6,8 @@ import {
|
|
6
6
|
error,
|
7
7
|
icon,
|
8
8
|
disabled,
|
9
|
-
options
|
9
|
+
options,
|
10
|
+
required
|
10
11
|
} from "./common/index.mjs";
|
11
12
|
export default {
|
12
13
|
...color(),
|
@@ -17,6 +18,7 @@ export default {
|
|
17
18
|
...icon,
|
18
19
|
...disabled,
|
19
20
|
...options,
|
21
|
+
...required(),
|
20
22
|
type: {
|
21
23
|
required: false,
|
22
24
|
default: "text",
|
@@ -5,13 +5,15 @@ import {
|
|
5
5
|
title,
|
6
6
|
error,
|
7
7
|
disabled,
|
8
|
-
placeholder
|
8
|
+
placeholder,
|
9
|
+
required
|
9
10
|
} from "./common/index.mjs";
|
10
11
|
export default {
|
11
12
|
...size(),
|
12
13
|
...title(),
|
13
14
|
...placeholder(),
|
14
15
|
...color(),
|
16
|
+
...required(),
|
15
17
|
...error,
|
16
18
|
...disabled,
|
17
19
|
...options,
|
@@ -1,9 +1,18 @@
|
|
1
|
-
import {
|
1
|
+
import {
|
2
|
+
color,
|
3
|
+
placeholder,
|
4
|
+
title,
|
5
|
+
size,
|
6
|
+
error,
|
7
|
+
disabled,
|
8
|
+
required
|
9
|
+
} from "./common/index.mjs";
|
2
10
|
export default {
|
3
11
|
...color(),
|
4
12
|
...placeholder(),
|
5
13
|
...title(),
|
6
14
|
...size(),
|
15
|
+
...required(),
|
7
16
|
...error,
|
8
17
|
...disabled,
|
9
18
|
rows: {
|
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "1.2.9-8",
|
2
|
+
"version": "1.2.9-8-1",
|
3
3
|
"name": "nuxt-glorious",
|
4
4
|
"description": "This package provides many things needed by a project, including server requests and authentication, SEO and other requirements of a project.",
|
5
5
|
"repository": "sajadhzj/nuxt-glorious",
|