@star-insure/sdk 3.2.10 → 3.2.11
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/sdk.cjs.development.js +24 -6
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +24 -6
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +4 -3
- package/src/components/filter/Action.tsx +22 -9
|
@@ -13,6 +13,7 @@ var react$1 = require('@headlessui/react');
|
|
|
13
13
|
var cn = _interopDefault(require('classnames'));
|
|
14
14
|
var lodash = require('lodash');
|
|
15
15
|
var hi2 = require('react-icons/hi2');
|
|
16
|
+
var reactTooltip = require('react-tooltip');
|
|
16
17
|
var Select = _interopDefault(require('react-select'));
|
|
17
18
|
var core = require('@inertiajs/core');
|
|
18
19
|
|
|
@@ -2418,6 +2419,8 @@ function Action(_ref) {
|
|
|
2418
2419
|
shortcutKey = _ref.shortcutKey;
|
|
2419
2420
|
|
|
2420
2421
|
var className = 'bg-white rounded-full font-bold px-4 py-1.5 text-sm whitespace-nowrap hover:bg-gray-100 hover:border-gray-400 transition-colors border border-gray-300';
|
|
2422
|
+
var tooltipId = "action-" + title;
|
|
2423
|
+
var tooltipContent = shortcutKey ? "Ctrl + " + shortcutKey : undefined;
|
|
2421
2424
|
|
|
2422
2425
|
function runAction() {
|
|
2423
2426
|
if (as === 'Link' && href) {
|
|
@@ -2451,33 +2454,48 @@ function Action(_ref) {
|
|
|
2451
2454
|
}, [shortcutKey]);
|
|
2452
2455
|
|
|
2453
2456
|
if (as === 'Link' && href) {
|
|
2454
|
-
return React__default.createElement(
|
|
2457
|
+
return React__default.createElement(React__default.Fragment, null, tooltipContent && React__default.createElement(reactTooltip.Tooltip, {
|
|
2458
|
+
id: tooltipId,
|
|
2459
|
+
className: "z-10"
|
|
2460
|
+
}), React__default.createElement(react.Link, {
|
|
2461
|
+
"data-tooltip-id": tooltipId,
|
|
2462
|
+
"data-tooltip-content": tooltipContent,
|
|
2455
2463
|
className: className,
|
|
2456
2464
|
href: href,
|
|
2457
2465
|
onClick: function onClick() {
|
|
2458
2466
|
return _onClick();
|
|
2459
2467
|
}
|
|
2460
|
-
}, title);
|
|
2468
|
+
}, title));
|
|
2461
2469
|
}
|
|
2462
2470
|
|
|
2463
2471
|
if (as === 'a' && href) {
|
|
2464
|
-
return React__default.createElement(
|
|
2472
|
+
return React__default.createElement(React__default.Fragment, null, tooltipContent && React__default.createElement(reactTooltip.Tooltip, {
|
|
2473
|
+
id: tooltipId,
|
|
2474
|
+
className: "z-10"
|
|
2475
|
+
}), React__default.createElement("a", {
|
|
2476
|
+
"data-tooltip-id": tooltipId,
|
|
2477
|
+
"data-tooltip-content": tooltipContent,
|
|
2465
2478
|
className: className,
|
|
2466
2479
|
target: target,
|
|
2467
2480
|
href: href,
|
|
2468
2481
|
onClick: function onClick() {
|
|
2469
2482
|
return _onClick();
|
|
2470
2483
|
}
|
|
2471
|
-
}, title);
|
|
2484
|
+
}, title));
|
|
2472
2485
|
}
|
|
2473
2486
|
|
|
2474
|
-
return React__default.createElement(
|
|
2487
|
+
return React__default.createElement(React__default.Fragment, null, tooltipContent && React__default.createElement(reactTooltip.Tooltip, {
|
|
2488
|
+
id: tooltipId,
|
|
2489
|
+
className: "z-10"
|
|
2490
|
+
}), React__default.createElement("button", {
|
|
2491
|
+
"data-tooltip-id": tooltipId,
|
|
2492
|
+
"data-tooltip-content": tooltipContent,
|
|
2475
2493
|
className: className,
|
|
2476
2494
|
type: type,
|
|
2477
2495
|
onClick: function onClick() {
|
|
2478
2496
|
return _onClick();
|
|
2479
2497
|
}
|
|
2480
|
-
}, title);
|
|
2498
|
+
}, title));
|
|
2481
2499
|
}
|
|
2482
2500
|
|
|
2483
2501
|
function Dropdown(_ref) {
|