@webitel/ui-sdk 24.12.18 → 24.12.20

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": "@webitel/ui-sdk",
3
- "version": "24.12.18",
3
+ "version": "24.12.20",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -7,8 +7,8 @@ export const tableActionsOrder = [
7
7
  IconAction.DOWNLOAD,
8
8
  IconAction.UPLOAD,
9
9
  IconAction.FILTERS,
10
- IconAction.DELETE,
11
10
  IconAction.REFRESH,
11
+ IconAction.DELETE,
12
12
  ];
13
13
 
14
14
  // TODO
@@ -15,4 +15,7 @@
15
15
  --wt-indicator-transfer-color: var(--transfer-color);
16
16
  --wt-indicator-break-out-color: var(--warning-color);
17
17
  --wt-indicator-info-color: var(--info-color);
18
+ --wt-indicator-final-status-color: var(--green-accent-4);
19
+ --wt-indicator-other-status-color: var(--orange-accent-2);
20
+ --wt-indicator-initial-status-color: var(--red-accent-2);
18
21
  }
@@ -24,6 +24,11 @@
24
24
  export default {
25
25
  name: 'WtIndicator',
26
26
  props: {
27
+ /**
28
+ * The color variant for the component
29
+ * @values 'primary', 'secondary', 'disabled', 'success', 'error', 'transfer', 'break-out', 'info', 'final-status', 'other-status', 'initial-status'
30
+ * @example '<wt-indicator color="primary"></wt-indicator>'
31
+ */
27
32
  color: {
28
33
  type: String,
29
34
  default: 'secondary',
@@ -36,11 +41,25 @@ export default {
36
41
  'transfer',
37
42
  'break-out',
38
43
  'info',
44
+ 'final-status',
45
+ 'other-status',
46
+ 'initial-status',
39
47
  ],
40
48
  },
49
+ /**
50
+ * The text content for the component
51
+ * Can be a string or a number
52
+ * @example '<wt-indicator text="Sample Text"></wt-indicator>'
53
+ */
41
54
  text: {
42
55
  type: [String, Number],
43
56
  },
57
+ /**
58
+ * The size of the component
59
+ * @values 'sm', 'md'
60
+ * @default 'md'
61
+ * @example '<wt-indicator size="sm"></wt-indicator>'
62
+ */
44
63
  size: {
45
64
  type: String,
46
65
  default: 'md',
@@ -48,6 +67,7 @@ export default {
48
67
  },
49
68
  },
50
69
 
70
+
51
71
  computed: {
52
72
  isText() {
53
73
  return this.text !== undefined && this.text !== null && this.text !== '';
@@ -112,6 +132,18 @@ export default {
112
132
  &--info {
113
133
  background: var(--wt-indicator-info-color);
114
134
  }
135
+
136
+ &--final-status {
137
+ background: var(--wt-indicator-final-status-color);
138
+ }
139
+
140
+ &--other-status {
141
+ background: var(--wt-indicator-other-status-color);
142
+ }
143
+
144
+ &--initial-status {
145
+ background: var(--wt-indicator-initial-status-color);
146
+ }
115
147
  }
116
148
 
117
149
  .wt-indicator--size {