@community-release/nx-ui 0.0.24 → 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.24"
4
+ "version": "0.0.26"
5
5
  }
@@ -0,0 +1,61 @@
1
+ <template>
2
+ <label class="component-ui-label" :class="[`tag-size-${size}`, `tag-weight-${weight}`]">
3
+ <span class="component-ui-label--text">{{ text }}</span>
4
+ <slot></slot>
5
+ </label>
6
+ </template>
7
+
8
+ <script setup>
9
+ // Import
10
+ import comProps from '#build/ui.label.mjs';
11
+
12
+ // Date
13
+ const props = defineProps({
14
+ text: {
15
+ default: '',
16
+ },
17
+ size: {
18
+ type: String,
19
+ default: comProps.size,
20
+ },
21
+ weight: {
22
+ type: [String, Number],
23
+ default: comProps.weight,
24
+ },
25
+ });
26
+ </script>
27
+
28
+ <style lang="less">
29
+ @com-space-micro: var(--ui-space-micro);
30
+ @com-color-header-text: var(--ui-color-header-text);
31
+ @com-font-weight-medium: var(--ui-font-weight-medium);
32
+
33
+ @com-text-big: var(--ui-text-big);
34
+ @com-text-medium: var(--ui-text-medium);
35
+ @com-text-default: var(--ui-text-default);
36
+ @com-text-small: var(--ui-text-small);
37
+
38
+ .component-ui-label {
39
+ display: block;
40
+
41
+ .component-ui-label--text {
42
+ display: block;
43
+ padding-bottom: @com-space-micro;
44
+ font-weight: @com-font-weight-medium;
45
+ font-size: @com-text-default;
46
+ color: @com-color-header-text;
47
+ }
48
+
49
+ // Text size
50
+ &.tag-size-big .component-ui-label--text { font-size: @com-text-big; }
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; }
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; }
60
+ }
61
+ </style>
@@ -0,0 +1,4 @@
1
+ {
2
+ "size": "",
3
+ "weight": "700"
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@community-release/nx-ui",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "description": "nx-ui - Nuxt UI library",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,33 +0,0 @@
1
- <template>
2
- <label class="component-ui-label">
3
- <span class="component-ui-label--text">{{ text }}</span>
4
- <slot></slot>
5
- </label>
6
- </template>
7
-
8
- <script setup>
9
- const props = defineProps({
10
- text: {
11
- default: ''
12
- }
13
- });
14
- </script>
15
-
16
- <style lang="less">
17
- @com-space-micro: var(--ui-space-micro);
18
- @com-font-weight-medium: var(--ui-font-weight-medium);
19
- @com-text-medium: var(--ui-text-medium);
20
- @com-color-header-text: var(--ui-color-header-text);
21
-
22
- .component-ui-label {
23
- display: block;
24
-
25
- .component-ui-label--text {
26
- display: block;
27
- padding-bottom: @com-space-micro;
28
- font-weight: @com-font-weight-medium;
29
- font-size: @com-text-medium;
30
- color: @com-color-header-text;
31
- }
32
- }
33
- </style>