@lowdefy/client 0.0.0-experimental-20250702125311 → 0.0.0-experimental-20250910140832
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/createIcon.js +5 -1
- package/package.json +6 -6
package/dist/createIcon.js
CHANGED
|
@@ -35,6 +35,10 @@ const lowdefyProps = [
|
|
|
35
35
|
const createIcon = (Icons)=>{
|
|
36
36
|
const AiOutlineLoading3Quarters = Icons['AiOutlineLoading3Quarters'];
|
|
37
37
|
const AiOutlineExclamationCircle = Icons['AiOutlineExclamationCircle'];
|
|
38
|
+
const formatTitle = (title)=>{
|
|
39
|
+
let spacedTitle = title.replace(/([A-Z])/g, ' $1').trim();
|
|
40
|
+
return spacedTitle.substring(spacedTitle.indexOf(' ') + 1);
|
|
41
|
+
};
|
|
38
42
|
const IconBlock = ({ blockId, events, methods, onClick, properties, ...props })=>{
|
|
39
43
|
const propertiesObj = type.isString(properties) ? {
|
|
40
44
|
name: properties
|
|
@@ -53,7 +57,7 @@ const createIcon = (Icons)=>{
|
|
|
53
57
|
}),
|
|
54
58
|
rotate: propertiesObj.rotate,
|
|
55
59
|
color: propertiesObj.color,
|
|
56
|
-
title: propertiesObj.name,
|
|
60
|
+
title: propertiesObj.title ?? formatTitle(propertiesObj.name),
|
|
57
61
|
size: propertiesObj.size,
|
|
58
62
|
// twoToneColor: propertiesObj.color, // TODO: track https://github.com/react-icons/react-icons/issues/508
|
|
59
63
|
...omit(props, lowdefyProps)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/client",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-20250910140832",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Lowdefy Client",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@ant-design/icons": "4.8.0",
|
|
37
|
-
"@lowdefy/block-utils": "0.0.0-experimental-
|
|
38
|
-
"@lowdefy/engine": "0.0.0-experimental-
|
|
39
|
-
"@lowdefy/helpers": "0.0.0-experimental-
|
|
40
|
-
"@lowdefy/layout": "0.0.0-experimental-
|
|
37
|
+
"@lowdefy/block-utils": "0.0.0-experimental-20250910140832",
|
|
38
|
+
"@lowdefy/engine": "0.0.0-experimental-20250910140832",
|
|
39
|
+
"@lowdefy/helpers": "0.0.0-experimental-20250910140832",
|
|
40
|
+
"@lowdefy/layout": "0.0.0-experimental-20250910140832",
|
|
41
41
|
"classnames": "2.3.2",
|
|
42
42
|
"react": "18.2.0",
|
|
43
43
|
"react-dom": "18.2.0"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@emotion/jest": "11.10.5",
|
|
47
47
|
"@jest/globals": "28.1.3",
|
|
48
|
-
"@lowdefy/jest-yaml-transform": "0.0.0-experimental-
|
|
48
|
+
"@lowdefy/jest-yaml-transform": "0.0.0-experimental-20250910140832",
|
|
49
49
|
"@swc/cli": "0.1.63",
|
|
50
50
|
"@swc/core": "1.3.99",
|
|
51
51
|
"@swc/jest": "0.2.29",
|