@designcrowd/fe-shared-lib 1.5.5 → 1.5.6-add-shield-tick

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": "@designcrowd/fe-shared-lib",
3
- "version": "1.5.5",
3
+ "version": "1.5.6-add-shield-tick",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -0,0 +1,6 @@
1
+ <template>
2
+ <path
3
+ d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-1.41 13.59L6 10l1.41-1.41L10 11.17l6.59-6.59L18 6l-7.41 7.41z"
4
+ fill-rule="evenodd"
5
+ ></path>
6
+ </template>
@@ -43,8 +43,8 @@ const props = withDefaults(defineProps<SparkleIconProps>(), {
43
43
  animated: false,
44
44
  withSpinner: false,
45
45
  size: 'md',
46
- color: '#3F59F6',
47
- colorClass: '',
46
+ color: '',
47
+ colorClass: 'tw-text-primary-500',
48
48
  });
49
49
 
50
50
  // Generate unique ID for gradient to avoid conflicts with multiple instances
@@ -73,10 +73,10 @@ const sizeValue = computed(() => {
73
73
 
74
74
  // Computed color style - only apply inline color if no colorClass is provided
75
75
  const colorStyle = computed(() => {
76
- if (props.colorClass) {
77
- return undefined;
76
+ if (props.color) {
77
+ return { color: props.color };
78
78
  }
79
- return { color: props.color };
79
+ return undefined;
80
80
  });
81
81
 
82
82
  // Computed viewBox - use larger viewBox for spinner variant