nuxt-glorious 1.2.9-8 → 1.2.9-8-0

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "nuxt-glorious",
3
3
  "configKey": "glorious",
4
- "version": "1.2.9-8"
4
+ "version": "1.2.9-8-0"
5
5
  }
@@ -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">{{ props.title }}</span>
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,6 +30,12 @@ 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
41
  {{ selectValue }}
@@ -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
- }}</span>
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,4 +1,9 @@
1
1
  declare const _default: {
2
+ required: {
3
+ required: boolean;
4
+ default: boolean;
5
+ type: BooleanConstructor;
6
+ };
2
7
  size: {
3
8
  required: boolean;
4
9
  default: import("../../../types").sizes;
@@ -1,9 +1,18 @@
1
- import { color, placeholder, title, text, size, error } from "./common/index.mjs";
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
  };
@@ -29,6 +29,11 @@ declare const _default: {
29
29
  default: boolean;
30
30
  type: BooleanConstructor;
31
31
  };
32
+ required: {
33
+ required: boolean;
34
+ default: boolean;
35
+ type: BooleanConstructor;
36
+ };
32
37
  options: {
33
38
  required: boolean;
34
39
  default: never[];
@@ -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",
@@ -37,6 +37,11 @@ declare const _default: {
37
37
  default: string;
38
38
  type: StringConstructor;
39
39
  };
40
+ required: {
41
+ required: boolean;
42
+ default: boolean;
43
+ type: BooleanConstructor;
44
+ };
40
45
  color: {
41
46
  required: boolean;
42
47
  default: string;
@@ -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,
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  default: string;
15
15
  type: StringConstructor;
16
16
  };
17
+ required: {
18
+ required: boolean;
19
+ default: boolean;
20
+ type: BooleanConstructor;
21
+ };
17
22
  size: {
18
23
  required: boolean;
19
24
  default: import("../../../types").sizes;
@@ -1,9 +1,18 @@
1
- import { color, placeholder, title, size, error, disabled } from "./common/index.mjs";
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: {
@@ -159,3 +159,10 @@ export declare const value: () => {
159
159
  type: StringConstructor;
160
160
  };
161
161
  };
162
+ export declare const required: () => {
163
+ required: {
164
+ required: boolean;
165
+ default: boolean;
166
+ type: BooleanConstructor;
167
+ };
168
+ };
@@ -145,3 +145,10 @@ export const value = () => ({
145
145
  type: String
146
146
  }
147
147
  });
148
+ export const required = () => ({
149
+ required: {
150
+ required: false,
151
+ default: false,
152
+ type: Boolean
153
+ }
154
+ });
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.9-8",
2
+ "version": "1.2.9-8-0",
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",