nuance-ui 0.1.36 → 0.1.37

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
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^4.0.0"
6
6
  },
7
- "version": "0.1.36",
7
+ "version": "0.1.37",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
@@ -10,8 +10,6 @@ export interface BadgeProps extends BoxProps {
10
10
  radius?: NuanceRadius;
11
11
  /** Key of `theme.colors` or any valid CSS color @default `theme.primaryColor` */
12
12
  color?: NuanceColor | string;
13
- /** Key of `theme.colors` or any valid CSS color @default `theme.primaryColor` */
14
- dotColor?: NuanceColor | string;
15
13
  /** Gradient configuration used when `variant=\"gradient\"` @default `theme.defaultGradient` */
16
14
  gradient?: NuanceGradient;
17
15
  /** Determines whether Badge should take 100% of its parent width @default `false` */
@@ -8,7 +8,6 @@ const {
8
8
  size = "md",
9
9
  radius = "sm",
10
10
  color,
11
- dotColor,
12
11
  fullWidth = false,
13
12
  circle,
14
13
  icon
@@ -18,7 +17,6 @@ const {
18
17
  circle: { type: Boolean, required: false },
19
18
  radius: { type: [String, Number], required: false },
20
19
  color: { type: null, required: false },
21
- dotColor: { type: null, required: false },
22
20
  gradient: { type: Object, required: false },
23
21
  fullWidth: { type: Boolean, required: false },
24
22
  icon: { type: String, required: false },
@@ -28,7 +26,7 @@ const {
28
26
  const style = computed(() => useStyleResolver((theme) => {
29
27
  const { background, border, text } = createVariantColorResolver({
30
28
  theme,
31
- variant,
29
+ variant: variant === "dot" ? "default" : variant,
32
30
  color
33
31
  });
34
32
  return {
@@ -39,14 +37,16 @@ const style = computed(() => useStyleResolver((theme) => {
39
37
  "--badge-bg": color || variant ? background : void 0,
40
38
  "--badge-color": color || variant ? text : void 0,
41
39
  "--badge-bd": color || variant ? border : void 0,
42
- "--badge-dot-color": variant === "dot" && dotColor ? getThemeColor(dotColor, theme) : void 0
40
+ "--badge-dot-color": variant === "dot" ? getThemeColor(color, theme) : void 0
43
41
  };
44
42
  }));
45
43
  </script>
46
44
 
47
45
  <template>
48
46
  <Box
49
- :style :class='$style.root' :mod='[
47
+ :style
48
+ :class='$style.root'
49
+ :mod='[
50
50
  {
51
51
  "block": fullWidth,
52
52
  circle,
@@ -10,8 +10,6 @@ export interface BadgeProps extends BoxProps {
10
10
  radius?: NuanceRadius;
11
11
  /** Key of `theme.colors` or any valid CSS color @default `theme.primaryColor` */
12
12
  color?: NuanceColor | string;
13
- /** Key of `theme.colors` or any valid CSS color @default `theme.primaryColor` */
14
- dotColor?: NuanceColor | string;
15
13
  /** Gradient configuration used when `variant=\"gradient\"` @default `theme.defaultGradient` */
16
14
  gradient?: NuanceGradient;
17
15
  /** Determines whether Badge should take 100% of its parent width @default `false` */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuance-ui",
3
- "version": "0.1.36",
3
+ "version": "0.1.37",
4
4
  "description": "A UI Library for Modern Web Apps, powered by Vue.",
5
5
  "repository": {
6
6
  "type": "git",