@gingkoo/pandora-metabase 1.0.111 → 1.0.112
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.
|
@@ -383,9 +383,25 @@ var NextDom = function NextDom(props) {
|
|
|
383
383
|
children: sortList(available).filter(function (v) {
|
|
384
384
|
return ~store.toolbar.indexOf(v);
|
|
385
385
|
}).map(function (v) {
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
386
|
+
var info = IconTypeMap.get(v);
|
|
387
|
+
return (0, _jsxRuntime.jsx)(_pandora.Tooltip, {
|
|
388
|
+
title: size === IconSIzeEnum.SMALL ? info.name : '',
|
|
389
|
+
placement: 'top',
|
|
390
|
+
children: (0, _jsxRuntime.jsx)("button", {
|
|
391
|
+
className: (0, _classnames["default"])("Sqb-button ".concat(info.className || ''), {
|
|
392
|
+
small: size === IconSIzeEnum.SMALL,
|
|
393
|
+
large: size === IconSIzeEnum.LARGE
|
|
394
|
+
}),
|
|
395
|
+
onClick: function onClick() {
|
|
396
|
+
return handleClick(v);
|
|
397
|
+
},
|
|
398
|
+
children: (0, _jsxRuntime.jsxs)("div", {
|
|
399
|
+
children: [info.icon, size === IconSIzeEnum.LARGE ? (0, _jsxRuntime.jsx)("div", {
|
|
400
|
+
children: info.name
|
|
401
|
+
}) : '']
|
|
402
|
+
})
|
|
403
|
+
})
|
|
404
|
+
});
|
|
389
405
|
})
|
|
390
406
|
})]
|
|
391
407
|
});
|
|
@@ -373,9 +373,25 @@ var NextDom = function NextDom(props) {
|
|
|
373
373
|
children: sortList(available).filter(function (v) {
|
|
374
374
|
return ~store.toolbar.indexOf(v);
|
|
375
375
|
}).map(function (v) {
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
376
|
+
var info = IconTypeMap.get(v);
|
|
377
|
+
return _jsx(Tooltip, {
|
|
378
|
+
title: size === IconSIzeEnum.SMALL ? info.name : '',
|
|
379
|
+
placement: 'top',
|
|
380
|
+
children: _jsx("button", {
|
|
381
|
+
className: cx("Sqb-button ".concat(info.className || ''), {
|
|
382
|
+
small: size === IconSIzeEnum.SMALL,
|
|
383
|
+
large: size === IconSIzeEnum.LARGE
|
|
384
|
+
}),
|
|
385
|
+
onClick: function onClick() {
|
|
386
|
+
return handleClick(v);
|
|
387
|
+
},
|
|
388
|
+
children: _jsxs("div", {
|
|
389
|
+
children: [info.icon, size === IconSIzeEnum.LARGE ? _jsx("div", {
|
|
390
|
+
children: info.name
|
|
391
|
+
}) : '']
|
|
392
|
+
})
|
|
393
|
+
})
|
|
394
|
+
});
|
|
379
395
|
})
|
|
380
396
|
})]
|
|
381
397
|
});
|