@fewangsit/wangsvue-gsts 1.0.0-alpha.1 → 1.0.0-alpha.3

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.
@@ -1,10 +1,26 @@
1
1
  import { Slot } from 'vue';
2
2
  import { BadgeProps } from 'lib/components/badge/Badge.vue.d';
3
- import { ClassComponent } from '../ts-helpers.d';
3
+ import { ClassComponent, HintedString } from '../ts-helpers.d';
4
+
5
+ export type ObjectBadge = {
6
+ text: string;
7
+ severity: 'success' | 'danger' | 'warning' | 'dark' | 'primary';
8
+ };
4
9
 
5
10
  export interface BadgeGroupProps
6
11
  extends Omit<BadgeProps, 'label' | 'disabled' | 'removable'> {
7
- labels: string[];
12
+ /**
13
+ * Support data type object to determine severity for specific text
14
+ */
15
+ labels: string[] | ObjectBadge[];
16
+ /**
17
+ * Determine whether severity of text "more" is customizable
18
+ *
19
+ * @default undefined
20
+ */
21
+ textMoreSeverity?: HintedString<
22
+ 'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'contrast'
23
+ >;
8
24
  /**
9
25
  * The text shown on the more button
10
26
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue-gsts",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.3",
4
4
  "author": "fewangsit",
5
5
  "description": "Global Settings Tagsamurai VueJS Component Library",
6
6
  "type": "module",