@fixefy/fixefy-ui-utils 0.2.61 → 0.2.63
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/images/index.d.ts
CHANGED
package/dist/images/index.js
CHANGED
|
@@ -2,16 +2,33 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
createImageLoader: function() {
|
|
13
|
+
return createImageLoader;
|
|
14
|
+
},
|
|
15
|
+
imageLoader: function() {
|
|
8
16
|
return imageLoader;
|
|
9
17
|
}
|
|
10
18
|
});
|
|
11
|
-
|
|
19
|
+
// Internal function that handles the asset URL logic
|
|
20
|
+
const processImageSrc = ({ src }, assetUrl)=>{
|
|
12
21
|
const transformedSrc = src.split('/');
|
|
13
22
|
const new_item = transformedSrc[transformedSrc.length - 1].split(/(?=[A-Z])/).join('_').toLowerCase();
|
|
14
23
|
transformedSrc.splice(transformedSrc.length - 1, 1, new_item);
|
|
15
24
|
const url = transformedSrc.join('/');
|
|
16
|
-
|
|
25
|
+
// Use provided assetUrl or fallback to environment variable for backward compatibility
|
|
26
|
+
const baseUrl = assetUrl || process.env.NEXT_PUBLIC_ASSET_URL;
|
|
27
|
+
return `${baseUrl}/${url}`;
|
|
28
|
+
};
|
|
29
|
+
const imageLoader = (params)=>{
|
|
30
|
+
return processImageSrc(params);
|
|
31
|
+
};
|
|
32
|
+
const createImageLoader = (assetUrl)=>{
|
|
33
|
+
return (params)=>processImageSrc(params, assetUrl);
|
|
17
34
|
};
|
|
@@ -251,6 +251,7 @@ declare module '@mui/material/styles' {
|
|
|
251
251
|
in_review: StatusColorOption;
|
|
252
252
|
no_pricing: StatusColorOption;
|
|
253
253
|
pending: StatusColorOption;
|
|
254
|
+
pending_review: StatusColorOption;
|
|
254
255
|
pending_refund: StatusColorOption;
|
|
255
256
|
resolved: StatusColorOption;
|
|
256
257
|
submitted_for_billing: StatusColorOption;
|
|
@@ -266,6 +267,7 @@ declare module '@mui/material/styles' {
|
|
|
266
267
|
paid: StatusColorOption;
|
|
267
268
|
paid_and_refunded: StatusColorOption;
|
|
268
269
|
pending: StatusColorOption;
|
|
270
|
+
pending_review: StatusColorOption;
|
|
269
271
|
pending_refund: StatusColorOption;
|
|
270
272
|
closed: StatusColorOption;
|
|
271
273
|
refunded: StatusColorOption;
|
|
@@ -283,6 +285,7 @@ declare module '@mui/material/styles' {
|
|
|
283
285
|
paid: StatusColorOption;
|
|
284
286
|
paid_and_refunded: StatusColorOption;
|
|
285
287
|
pending: StatusColorOption;
|
|
288
|
+
pending_review: StatusColorOption;
|
|
286
289
|
pending_refund: StatusColorOption;
|
|
287
290
|
closed: StatusColorOption;
|
|
288
291
|
submitted_for_billing: StatusColorOption;
|
|
@@ -364,6 +364,10 @@ const palette = {
|
|
|
364
364
|
border: '#ECC631',
|
|
365
365
|
background: '#FEFDF3'
|
|
366
366
|
},
|
|
367
|
+
pending_review: {
|
|
368
|
+
border: '#2D9CDB',
|
|
369
|
+
background: '#F1FBFE'
|
|
370
|
+
},
|
|
367
371
|
pending_refund: {
|
|
368
372
|
border: '#2D9CDB',
|
|
369
373
|
background: '#F1FBFE',
|
|
@@ -391,6 +395,10 @@ const palette = {
|
|
|
391
395
|
border: '#ECC631',
|
|
392
396
|
background: '#ECC631'
|
|
393
397
|
},
|
|
398
|
+
pending_review: {
|
|
399
|
+
border: '#2D9CDB',
|
|
400
|
+
background: '#2D9CDB'
|
|
401
|
+
},
|
|
394
402
|
credited: {
|
|
395
403
|
border: '#BB6BD9',
|
|
396
404
|
background: '#BB6BD9'
|
|
@@ -491,6 +499,11 @@ const palette = {
|
|
|
491
499
|
background: '#ECC631',
|
|
492
500
|
light: '#FEFCEE'
|
|
493
501
|
},
|
|
502
|
+
pending_review: {
|
|
503
|
+
border: '#2D9CDB',
|
|
504
|
+
background: '#2D9CDB',
|
|
505
|
+
light: '#F1FBFE'
|
|
506
|
+
},
|
|
494
507
|
pending_refund: {
|
|
495
508
|
border: '#88C00D',
|
|
496
509
|
background: '#88C00D',
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"csvtojson": ">=2.0.10",
|
|
14
14
|
"date-fns": ">=3.6.0",
|
|
15
15
|
"graphql-tag": ">=2.12.6",
|
|
16
|
-
"jss": ">=10.
|
|
16
|
+
"jss": ">=10.10.0",
|
|
17
17
|
"next": ">=14.2.26",
|
|
18
18
|
"nookies": ">=2.5.2",
|
|
19
19
|
"pluralize": ">=8.0.0",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"require": "./dist/index.js"
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
|
-
"version": "0.2.
|
|
69
|
+
"version": "0.2.63"
|
|
70
70
|
}
|