@fixefy/fixefy-ui-components 0.3.83 → 0.3.85

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.
@@ -78,20 +78,6 @@ const PublicIcon = ({ icon, width, height, onClick, variant, fontSize, backgroun
78
78
  })
79
79
  });
80
80
  }
81
- //TODO: delete in next version just a test
82
- const processImageSrc = ({ src }, assetUrl)=>{
83
- const transformedSrc = src.split('/');
84
- const new_item = transformedSrc[transformedSrc.length - 1].split(/(?=[A-Z])/).join('_').toLowerCase();
85
- transformedSrc.splice(transformedSrc.length - 1, 1, new_item);
86
- const url = transformedSrc.join('/');
87
- // Use provided assetUrl or fallback to environment variable for backward compatibility
88
- const baseUrl = assetUrl || process.env.NEXT_PUBLIC_ASSET_URL;
89
- return `${baseUrl}/${url}`;
90
- };
91
- console.log('assetUrl (FXICON)', assetUrl);
92
- console.log('processed image src', processImageSrc({
93
- src: icon
94
- }, assetUrl));
95
81
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
96
82
  alt: "",
97
83
  width: width,
@@ -1,4 +1,4 @@
1
- export declare const FxStyledButton: ({ btnValue, btnType, disabled, onClick, startIcon, endIcon, iconSize, sx, variant, }: {
1
+ export declare const FxStyledButton: ({ btnValue, btnType, disabled, onClick, startIcon, endIcon, iconSize, sx, variant, assetUrl, }: {
2
2
  btnValue?: string;
3
3
  btnType?: "text" | "icon";
4
4
  disabled?: boolean;
@@ -8,4 +8,5 @@ export declare const FxStyledButton: ({ btnValue, btnType, disabled, onClick, st
8
8
  iconSize?: number;
9
9
  sx?: any;
10
10
  variant?: "contained" | "outlined" | "text" | "contained:rounded";
11
+ assetUrl?: string;
11
12
  }) => any;
@@ -19,7 +19,7 @@ function _interop_require_default(obj) {
19
19
  default: obj
20
20
  };
21
21
  }
22
- const FxStyledButton = ({ btnValue, btnType = 'text', disabled, onClick, startIcon, endIcon, iconSize, sx, variant })=>{
22
+ const FxStyledButton = ({ btnValue, btnType = 'text', disabled, onClick, startIcon, endIcon, iconSize, sx, variant, assetUrl })=>{
23
23
  return btnType == 'text' ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_Button.default, {
24
24
  disabled: disabled,
25
25
  sx: sx,
@@ -30,12 +30,14 @@ const FxStyledButton = ({ btnValue, btnType = 'text', disabled, onClick, startIc
30
30
  startIcon: startIcon && iconSize ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
31
31
  width: iconSize,
32
32
  height: iconSize,
33
- icon: startIcon
33
+ icon: startIcon,
34
+ assetUrl: assetUrl
34
35
  }) : null,
35
36
  endIcon: endIcon && iconSize ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
36
37
  width: iconSize,
37
38
  height: iconSize,
38
- icon: endIcon
39
+ icon: endIcon,
40
+ assetUrl: assetUrl
39
41
  }) : null,
40
42
  children: (0, _fixefyuiutils.titleCase)(btnValue)
41
43
  }) : btnType == 'icon' && startIcon && iconSize && /*#__PURE__*/ (0, _jsxruntime.jsxs)(_IconButton.default, {
@@ -46,7 +48,8 @@ const FxStyledButton = ({ btnValue, btnType = 'text', disabled, onClick, startIc
46
48
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
47
49
  icon: startIcon,
48
50
  width: iconSize,
49
- height: iconSize
51
+ height: iconSize,
52
+ assetUrl: assetUrl
50
53
  }),
51
54
  ' '
52
55
  ]
package/package.json CHANGED
@@ -71,5 +71,5 @@
71
71
  "require": "./dist/index.js"
72
72
  }
73
73
  },
74
- "version": "0.3.83"
74
+ "version": "0.3.85"
75
75
  }