@gem-sdk/components 2.0.0-dev.452 → 2.0.0-dev.453
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.
|
@@ -8,6 +8,7 @@ var core = require('@gem-sdk/core');
|
|
|
8
8
|
var React = require('react');
|
|
9
9
|
|
|
10
10
|
const ChildrenDroppable = ({ className, styles })=>{
|
|
11
|
+
const { t } = core.useI18nStore();
|
|
11
12
|
const [isHover, setIsHover] = React.useState(false);
|
|
12
13
|
const [isShowIconOnly, setIsShowIconOnly] = React.useState(false);
|
|
13
14
|
const slotChildren = React.useRef(null);
|
|
@@ -68,7 +69,7 @@ const ChildrenDroppable = ({ className, styles })=>{
|
|
|
68
69
|
}
|
|
69
70
|
}),
|
|
70
71
|
!isShowIconOnly && /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
71
|
-
children:
|
|
72
|
+
children: t('Drop element here')
|
|
72
73
|
})
|
|
73
74
|
]
|
|
74
75
|
})
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { useEditorMode, cls } from '@gem-sdk/core';
|
|
3
|
+
import { useI18nStore, useEditorMode, cls } from '@gem-sdk/core';
|
|
4
4
|
import { useState, useRef, useEffect } from 'react';
|
|
5
5
|
|
|
6
6
|
const ChildrenDroppable = ({ className, styles })=>{
|
|
7
|
+
const { t } = useI18nStore();
|
|
7
8
|
const [isHover, setIsHover] = useState(false);
|
|
8
9
|
const [isShowIconOnly, setIsShowIconOnly] = useState(false);
|
|
9
10
|
const slotChildren = useRef(null);
|
|
@@ -64,7 +65,7 @@ const ChildrenDroppable = ({ className, styles })=>{
|
|
|
64
65
|
}
|
|
65
66
|
}),
|
|
66
67
|
!isShowIconOnly && /*#__PURE__*/ jsx("div", {
|
|
67
|
-
children:
|
|
68
|
+
children: t('Drop element here')
|
|
68
69
|
})
|
|
69
70
|
]
|
|
70
71
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.453",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"update-img-src-3rd": "node ./scripts/update-img-src-3rd.js"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
26
|
+
"@gem-sdk/core": "2.0.0-dev.453",
|
|
27
27
|
"@gem-sdk/styles": "2.0.0-dev.381",
|
|
28
28
|
"@gem-sdk/system": "2.0.0-dev.451",
|
|
29
29
|
"@types/react-transition-group": "^4.4.5"
|