@community-release/nx-ui 0.0.25 → 0.0.26

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": "ui",
3
3
  "configKey": "ui",
4
- "version": "0.0.25"
4
+ "version": "0.0.26"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <label class="component-ui-label" :class="`tag-size-${size}`">
2
+ <label class="component-ui-label" :class="[`tag-size-${size}`, `tag-weight-${weight}`]">
3
3
  <span class="component-ui-label--text">{{ text }}</span>
4
4
  <slot></slot>
5
5
  </label>
@@ -17,7 +17,11 @@
17
17
  size: {
18
18
  type: String,
19
19
  default: comProps.size,
20
- }
20
+ },
21
+ weight: {
22
+ type: [String, Number],
23
+ default: comProps.weight,
24
+ },
21
25
  });
22
26
  </script>
23
27
 
@@ -38,13 +42,20 @@
38
42
  display: block;
39
43
  padding-bottom: @com-space-micro;
40
44
  font-weight: @com-font-weight-medium;
41
- font-size: @com-text-medium;
45
+ font-size: @com-text-default;
42
46
  color: @com-color-header-text;
43
47
  }
44
48
 
45
49
  // Text size
46
50
  &.tag-size-big .component-ui-label--text { font-size: @com-text-big; }
47
51
  &.tag-size-medium .component-ui-label--text { font-size: @com-text-medium; }
52
+ &.tag-size-default .component-ui-label--text { font-size: @com-text-default; }
48
53
  &.tag-size-small .component-ui-label--text { font-size: @com-text-small; }
54
+
55
+ // Text weight
56
+ &.tag-weight-700 .component-ui-label--text { font-weight: 700; }
57
+ &.tag-weight-600 .component-ui-label--text { font-weight: 600; }
58
+ &.tag-weight-500 .component-ui-label--text { font-weight: 500; }
59
+ &.tag-weight-400 .component-ui-label--text { font-weight: 400; }
49
60
  }
50
61
  </style>
@@ -1,3 +1,4 @@
1
1
  {
2
- "size": ""
2
+ "size": "",
3
+ "weight": "700"
3
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@community-release/nx-ui",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "nx-ui - Nuxt UI library",
5
5
  "repository": {
6
6
  "type": "git",