@weni/unnnic-system 2.0.8 → 2.0.9

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weni/unnnic-system",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "type": "commonjs",
5
5
  "files": [
6
6
  "dist",
@@ -12,8 +12,8 @@
12
12
  v-if="showValue"
13
13
  class="rating-title"
14
14
  >
15
- <span class="highlight">{{ value.toFixed(1) }}</span
16
- >/5.0
15
+ <span class="highlight"> {{ modelValue.toFixed(1) }} </span>
16
+ /5.0
17
17
  </div>
18
18
  </div>
19
19
  </template>
@@ -27,7 +27,7 @@ export default {
27
27
  },
28
28
 
29
29
  props: {
30
- value: {
30
+ modelValue: {
31
31
  type: Number,
32
32
  },
33
33
 
@@ -46,7 +46,7 @@ export default {
46
46
 
47
47
  methods: {
48
48
  starScheme(star) {
49
- return star <= this.value ? 'feedback-yellow' : 'neutral-clean';
49
+ return star <= this.modelValue ? 'feedback-yellow' : 'neutral-clean';
50
50
  },
51
51
  },
52
52
  };
@@ -17,6 +17,8 @@
17
17
  :size="iconSize"
18
18
  :scheme="iconScheme"
19
19
  :lineHeight="iconLineHeight"
20
+ :disabled="disabled"
21
+ :clickable="!disabled"
20
22
  @click="toggleState"
21
23
  />
22
24
 
@@ -1,15 +1,15 @@
1
- {
2
- "upload_area": {
3
- "title": {
4
- "text": "Drag your file here or",
5
- "highlight": "search it"
6
- },
7
- "invalid": {
8
- "subtitle": "File not supported, select supported formats:"
9
- },
10
- "subtitle": "Supported formats:"
11
- },
12
- "import_card": {
13
- "importing": "Importing"
14
- }
15
- }
1
+ {
2
+ "upload_area": {
3
+ "title": {
4
+ "text": "Drag your file here or",
5
+ "highlight": "search it"
6
+ },
7
+ "invalid": {
8
+ "subtitle": "File not supported, select supported formats:"
9
+ },
10
+ "subtitle": "Supported formats:"
11
+ },
12
+ "import_card": {
13
+ "importing": "Importing"
14
+ }
15
+ }
@@ -1,15 +1,15 @@
1
- {
2
- "upload_area": {
3
- "title": {
4
- "text": "Arrastra tu archivo aquí o",
5
- "highlight": "búscalo"
6
- },
7
- "invalid": {
8
- "subtitle": "Archivo no compatible, seleccione los formatos compatibles:"
9
- },
10
- "subtitle": "Formatos compatibles:"
11
- },
12
- "import_card": {
13
- "importing": "Importando"
14
- }
15
- }
1
+ {
2
+ "upload_area": {
3
+ "title": {
4
+ "text": "Arrastra tu archivo aquí o",
5
+ "highlight": "búscalo"
6
+ },
7
+ "invalid": {
8
+ "subtitle": "Archivo no compatible, seleccione los formatos compatibles:"
9
+ },
10
+ "subtitle": "Formatos compatibles:"
11
+ },
12
+ "import_card": {
13
+ "importing": "Importando"
14
+ }
15
+ }
@@ -1,15 +1,15 @@
1
- {
2
- "upload_area": {
3
- "title": {
4
- "text": "Arraste seu arquivo aqui, ou",
5
- "highlight": "procure-o"
6
- },
7
- "invalid": {
8
- "subtitle": "Arquivo não compatível, selecione formatos suportados:"
9
- },
10
- "subtitle": "Formatos suportados:"
11
- },
12
- "import_card": {
13
- "importing": "Importando"
14
- }
15
- }
1
+ {
2
+ "upload_area": {
3
+ "title": {
4
+ "text": "Arraste seu arquivo aqui, ou",
5
+ "highlight": "procure-o"
6
+ },
7
+ "invalid": {
8
+ "subtitle": "Arquivo não compatível, selecione formatos suportados:"
9
+ },
10
+ "subtitle": "Formatos suportados:"
11
+ },
12
+ "import_card": {
13
+ "importing": "Importando"
14
+ }
15
+ }
@@ -4,7 +4,8 @@ export default {
4
4
  title: 'Rating/StarRating',
5
5
  component: unnnicStarRating,
6
6
  argTypes: {
7
- value: { control: { type: 'number', min: 0, max: 5, step: 0.1 } },
7
+ showValue: { control: { type: 'boolean' } },
8
+ readonly: { control: { type: 'boolean' } },
8
9
  },
9
10
  };
10
11
 
@@ -15,10 +16,16 @@ const Template = (args, { argTypes }) => ({
15
16
  unnnicStarRating,
16
17
  },
17
18
 
19
+ data() {
20
+ return {
21
+ value: 4,
22
+ };
23
+ },
24
+
18
25
  template: `
19
26
  <div>
20
27
  <pre>v-model: {{ value }}</pre>
21
- <unnnic-star-rating v-bind="$props">
28
+ <unnnic-star-rating v-model="value" showValue readonly>
22
29
  </unnnic-star-rating>
23
30
  </div>
24
31
  `,