dtable-ui-component 6.0.113-amd.3 → 6.0.113-amf.2
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/lib/Comment/footer/btns/index.js +7 -7
- package/lib/DTableFiltersPopover/index.js +5 -4
- package/lib/DTableIcon/index.js +2 -2
- package/lib/DTableModalHeader/index.js +6 -12
- package/lib/DeleteTip/index.js +6 -4
- package/lib/DigitalSignEditor/pc-editor/index.js +5 -5
- package/lib/DtableCustomButton/index.css +243 -0
- package/lib/DtableCustomButton/index.js +66 -0
- package/lib/DtableIconButton/index.css +126 -0
- package/lib/DtableIconButton/index.js +75 -0
- package/lib/GeolocationEditor/pc-editor/location-editor.js +5 -4
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +5 -4
- package/lib/NotificationPopover/index.js +6 -5
- package/lib/RowExpandDialog/header/index.js +7 -7
- package/lib/RowExpandDialog/index.js +5 -4
- package/lib/assets/icons/access-permissions.svg +17 -0
- package/lib/assets/icons/activities.svg +23 -0
- package/lib/assets/icons/app-achievement-distribution.svg +21 -0
- package/lib/assets/icons/app-address-book.svg +22 -0
- package/lib/assets/icons/app-ai-agent.svg +23 -0
- package/lib/assets/icons/app-ai.svg +13 -0
- package/lib/assets/icons/app-airplane.svg +11 -0
- package/lib/assets/icons/app-award.svg +11 -0
- package/lib/assets/icons/app-bank.svg +11 -0
- package/lib/assets/icons/app-bell.svg +11 -0
- package/lib/assets/icons/app-book.svg +11 -0
- package/lib/assets/icons/app-bookmark.svg +12 -0
- package/lib/assets/icons/app-brush.svg +13 -0
- package/lib/assets/icons/app-buildings.svg +12 -0
- package/lib/assets/icons/app-bus.svg +12 -0
- package/lib/assets/icons/app-calendar.svg +26 -0
- package/lib/assets/icons/app-capsule.svg +11 -0
- package/lib/assets/icons/app-car.svg +12 -0
- package/lib/assets/icons/app-chat.svg +11 -0
- package/lib/assets/icons/app-clock.svg +14 -0
- package/lib/assets/icons/app-cloud.svg +11 -0
- package/lib/assets/icons/app-code.svg +13 -0
- package/lib/assets/icons/app-coin.svg +12 -0
- package/lib/assets/icons/app-compass.svg +11 -0
- package/lib/assets/icons/app-contract.svg +24 -0
- package/lib/assets/icons/app-credit.svg +11 -0
- package/lib/assets/icons/app-crosshair.svg +11 -0
- package/lib/assets/icons/app-cursor.svg +11 -0
- package/lib/assets/icons/app-database.svg +17 -0
- package/lib/assets/icons/app-design.svg +15 -0
- package/lib/assets/icons/app-dile-person.svg +11 -0
- package/lib/assets/icons/app-distribution.svg +29 -0
- package/lib/assets/icons/app-edit.svg +20 -0
- package/lib/assets/icons/app-email.svg +16 -0
- package/lib/assets/icons/app-external-links.svg +18 -0
- package/lib/assets/icons/app-faq.svg +10 -0
- package/lib/assets/icons/app-flag.svg +12 -0
- package/lib/assets/icons/app-flex-item.svg +26 -0
- package/lib/assets/icons/app-folder.svg +24 -0
- package/lib/assets/icons/app-form.svg +17 -0
- package/lib/assets/icons/app-gallery.svg +24 -0
- package/lib/assets/icons/app-geo.svg +13 -0
- package/lib/assets/icons/app-globe.svg +12 -0
- package/lib/assets/icons/app-hammer.svg +11 -0
- package/lib/assets/icons/app-history.svg +21 -0
- package/lib/assets/icons/app-home.svg +20 -0
- package/lib/assets/icons/app-icon-theme.svg +19 -0
- package/lib/assets/icons/app-individual-bill.svg +22 -0
- package/lib/assets/icons/app-information.svg +15 -0
- package/lib/assets/icons/app-inquire.svg +14 -0
- package/lib/assets/icons/app-invoice.svg +19 -0
- package/lib/assets/icons/app-label.svg +26 -0
- package/lib/assets/icons/app-leave.svg +17 -0
- package/lib/assets/icons/app-link.svg +19 -0
- package/lib/assets/icons/app-logistics.svg +23 -0
- package/lib/assets/icons/app-luggage.svg +11 -0
- package/lib/assets/icons/app-map.svg +19 -0
- package/lib/assets/icons/app-matter.svg +17 -0
- package/lib/assets/icons/app-module.svg +23 -0
- package/lib/assets/icons/app-monitor.svg +11 -0
- package/lib/assets/icons/app-moon.svg +11 -0
- package/lib/assets/icons/app-page.svg +22 -0
- package/lib/assets/icons/app-people.svg +11 -0
- package/lib/assets/icons/app-personnel.svg +24 -0
- package/lib/assets/icons/app-pin-map.svg +12 -0
- package/lib/assets/icons/app-post-sale.svg +20 -0
- package/lib/assets/icons/app-product-library.svg +18 -0
- package/lib/assets/icons/app-purchase.svg +20 -0
- package/lib/assets/icons/app-qr-code.svg +5 -0
- package/lib/assets/icons/app-rules-and-regulations.svg +18 -0
- package/lib/assets/icons/app-scan.svg +17 -0
- package/lib/assets/icons/app-shop.svg +11 -0
- package/lib/assets/icons/app-sign-left.svg +13 -0
- package/lib/assets/icons/app-sign-right.svg +13 -0
- package/lib/assets/icons/app-signpost.svg +11 -0
- package/lib/assets/icons/app-snow.svg +11 -0
- package/lib/assets/icons/app-star-mark.svg +28 -0
- package/lib/assets/icons/app-statistics.svg +20 -0
- package/lib/assets/icons/app-sun.svg +11 -0
- package/lib/assets/icons/app-table.svg +14 -0
- package/lib/assets/icons/app-task.svg +14 -0
- package/lib/assets/icons/app-telephone.svg +11 -0
- package/lib/assets/icons/app-thermometer-cold.svg +11 -0
- package/lib/assets/icons/app-thermometer-hot.svg +11 -0
- package/lib/assets/icons/app-trophy.svg +12 -0
- package/lib/assets/icons/app-vedio.svg +11 -0
- package/lib/assets/icons/app-version.svg +16 -0
- package/lib/assets/icons/app-view.svg +15 -0
- package/lib/assets/icons/app-wrench.svg +11 -0
- package/lib/assets/icons/arrow-down.svg +3 -0
- package/lib/assets/icons/btn-send.svg +3 -0
- package/lib/assets/icons/cancel-task.svg +23 -0
- package/lib/assets/icons/check.svg +4 -1
- package/lib/assets/icons/clear.svg +3 -0
- package/lib/assets/icons/close.svg +3 -0
- package/lib/assets/icons/column-read-only.svg +14 -0
- package/lib/assets/icons/comment.svg +19 -0
- package/lib/assets/icons/copy.svg +5 -0
- package/lib/assets/icons/cross.svg +4 -1
- package/lib/assets/icons/custom-element-card.svg +13 -0
- package/lib/assets/icons/custom-page-narrow.svg +17 -0
- package/lib/assets/icons/custom-page-wide.svg +17 -0
- package/lib/assets/icons/delete.svg +6 -0
- package/lib/assets/icons/descending-order.svg +19 -0
- package/lib/assets/icons/dot copy.svg +12 -0
- package/lib/assets/icons/dot.svg +4 -1
- package/lib/assets/icons/download.svg +4 -0
- package/lib/assets/icons/expand.svg +4 -0
- package/lib/assets/icons/external-apps.svg +22 -0
- package/lib/assets/icons/eye.svg +4 -0
- package/lib/assets/icons/field-set.svg +20 -0
- package/lib/assets/icons/go-to-base.svg +16 -0
- package/lib/assets/icons/html.svg +19 -0
- package/lib/assets/icons/initiation-time.svg +22 -0
- package/lib/assets/icons/inline-code.svg +5 -0
- package/lib/assets/icons/leave-app.svg +15 -0
- package/lib/assets/icons/mark-all-as-read.svg +6 -0
- package/lib/assets/icons/more.svg +5 -0
- package/lib/assets/icons/move-to.svg +20 -0
- package/lib/assets/icons/navigation-unfold.svg +17 -0
- package/lib/assets/icons/new-chat.svg +4 -0
- package/lib/assets/icons/nodes.svg +14 -0
- package/lib/assets/icons/novice-guide.svg +20 -0
- package/lib/assets/icons/page-break.svg +20 -0
- package/lib/assets/icons/pause-btn.svg +3 -0
- package/lib/assets/icons/problem-solving.svg +25 -0
- package/lib/assets/icons/promoter.svg +24 -0
- package/lib/assets/icons/publish.svg +7 -0
- package/lib/assets/icons/qr-code.svg +23 -0
- package/lib/assets/icons/refresh.svg +3 -0
- package/lib/assets/icons/remove-from-folder.svg +17 -0
- package/lib/assets/icons/reservation-resources.svg +17 -0
- package/lib/assets/icons/resubmit-task.svg +24 -0
- package/lib/assets/icons/send-arrow.svg +3 -0
- package/lib/assets/icons/send.svg +11 -0
- package/lib/assets/icons/separator.svg +18 -0
- package/lib/assets/icons/set-as-read.svg +18 -0
- package/lib/assets/icons/sort.svg +17 -0
- package/lib/assets/icons/switch-icon.svg +17 -0
- package/lib/assets/icons/upload.svg +16 -0
- package/lib/assets/icons/worksheet.svg +19 -0
- package/lib/index.js +15 -1
- package/package.json +1 -1
|
@@ -7,11 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _reactstrap = require("reactstrap");
|
|
11
10
|
var _FileUploader = _interopRequireDefault(require("../../../FileUploader"));
|
|
12
11
|
var _DTablePopover = _interopRequireDefault(require("../../../DTablePopover"));
|
|
13
12
|
var _Loading = _interopRequireDefault(require("../../../Loading"));
|
|
14
13
|
var _lang = require("../../../lang");
|
|
14
|
+
var _DtableCustomButton = _interopRequireDefault(require("../../../DtableCustomButton"));
|
|
15
15
|
require("./index.css");
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
class Btns extends _react.default.Component {
|
|
@@ -101,16 +101,16 @@ class Btns extends _react.default.Component {
|
|
|
101
101
|
onClick: this.onHandleCollaboratorTip,
|
|
102
102
|
children: "@"
|
|
103
103
|
})]
|
|
104
|
-
}), isAdding ? /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
104
|
+
}), isAdding ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_DtableCustomButton.default, {
|
|
105
105
|
className: "dtable-ui-comment-submit",
|
|
106
|
-
|
|
107
|
-
size: "
|
|
106
|
+
variant: "primary",
|
|
107
|
+
size: "middle",
|
|
108
108
|
disabled: true,
|
|
109
109
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.default, {})
|
|
110
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
110
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_DtableCustomButton.default, {
|
|
111
111
|
className: "dtable-ui-comment-submit",
|
|
112
|
-
|
|
113
|
-
size: "
|
|
112
|
+
variant: "primary",
|
|
113
|
+
size: "middle",
|
|
114
114
|
onClick: this.onSubmit,
|
|
115
115
|
tabIndex: -1,
|
|
116
116
|
children: (0, _lang.getLocale)('Submit')
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _reactstrap = require("reactstrap");
|
|
11
10
|
var _dtableUtils = require("dtable-utils");
|
|
12
11
|
var _DTableCommonAddTool = _interopRequireDefault(require("../DTableCommonAddTool"));
|
|
13
12
|
var _utils = require("./utils");
|
|
@@ -15,6 +14,7 @@ var _filterList = _interopRequireDefault(require("./widgets/filter-list"));
|
|
|
15
14
|
var _DTablePopover = _interopRequireDefault(require("../DTablePopover"));
|
|
16
15
|
var _constants = require("./constants");
|
|
17
16
|
var _lang = require("../lang");
|
|
17
|
+
var _DtableCustomButton = _interopRequireDefault(require("../DtableCustomButton"));
|
|
18
18
|
require("./index.css");
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
/**
|
|
@@ -191,14 +191,15 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
191
191
|
})]
|
|
192
192
|
}), this.isNeedSubmit && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
193
193
|
className: "filter-popover-footer",
|
|
194
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
194
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_DtableCustomButton.default, {
|
|
195
|
+
variant: "secondary",
|
|
195
196
|
disabled: readOnly,
|
|
196
197
|
className: "mr-2",
|
|
197
198
|
onClick: this.onClosePopover,
|
|
198
199
|
children: (0, _lang.getLocale)('Cancel')
|
|
199
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
200
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_DtableCustomButton.default, {
|
|
200
201
|
disabled: this.state.isSubmitDisabled || readOnly,
|
|
201
|
-
|
|
202
|
+
variant: "primary",
|
|
202
203
|
onClick: this.onSubmitFilters,
|
|
203
204
|
children: (0, _lang.getLocale)('Submit')
|
|
204
205
|
})]
|
package/lib/DTableIcon/index.js
CHANGED
|
@@ -25,9 +25,9 @@ const DTableIcon = _ref => {
|
|
|
25
25
|
customProps['aria-hidden'] = ariaHidden;
|
|
26
26
|
}
|
|
27
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("i", (0, _objectSpread2.default)({
|
|
28
|
-
className: (0, _classnames.default)(
|
|
28
|
+
className: (0, _classnames.default)(className, {
|
|
29
29
|
'dtable-font': !symbol.includes('dtable-font')
|
|
30
|
-
}),
|
|
30
|
+
}, symbol),
|
|
31
31
|
style: {
|
|
32
32
|
color
|
|
33
33
|
}
|
|
@@ -9,7 +9,7 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/
|
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _reactstrap = require("reactstrap");
|
|
12
|
-
var
|
|
12
|
+
var _DtableIconButton = _interopRequireDefault(require("../DtableIconButton"));
|
|
13
13
|
var _lang = require("../lang");
|
|
14
14
|
require("./index.css");
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -19,17 +19,11 @@ const DTableModalHeader = _ref => {
|
|
|
19
19
|
children
|
|
20
20
|
} = _ref,
|
|
21
21
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
22
|
-
const customCloseBtn = /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
onClick: props.toggle,
|
|
28
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, {
|
|
29
|
-
icon: "x",
|
|
30
|
-
className: "dtable-modal-close-inner",
|
|
31
|
-
title: (0, _lang.getLocale)('Close')
|
|
32
|
-
})
|
|
22
|
+
const customCloseBtn = /*#__PURE__*/(0, _jsxRuntime.jsx)(_DtableIconButton.default, {
|
|
23
|
+
symbol: "dtable-icon-x",
|
|
24
|
+
tooltip: (0, _lang.getLocale)('Close'),
|
|
25
|
+
"aria-label": (0, _lang.getLocale)('Close'),
|
|
26
|
+
onClick: props.toggle
|
|
33
27
|
});
|
|
34
28
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.ModalHeader, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
35
29
|
close: customCloseBtn,
|
package/lib/DeleteTip/index.js
CHANGED
|
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _ClickOutside = _interopRequireDefault(require("../ClickOutside"));
|
|
10
10
|
var _ModalPortal = _interopRequireDefault(require("../ModalPortal"));
|
|
11
11
|
var _lang = require("../lang");
|
|
12
|
+
var _DtableCustomButton = _interopRequireDefault(require("../DtableCustomButton"));
|
|
12
13
|
require("./index.css");
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
class DeleteTip extends _react.default.Component {
|
|
@@ -42,12 +43,13 @@ class DeleteTip extends _react.default.Component {
|
|
|
42
43
|
children: deleteTip
|
|
43
44
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
44
45
|
className: "d-flex justify-content-end",
|
|
45
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
46
|
-
|
|
46
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_DtableCustomButton.default, {
|
|
47
|
+
variant: "secondary",
|
|
48
|
+
className: "mr-2",
|
|
47
49
|
onClick: toggle,
|
|
48
50
|
children: (0, _lang.getLocale)('Cancel')
|
|
49
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
50
|
-
|
|
51
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_DtableCustomButton.default, {
|
|
52
|
+
variant: "primary",
|
|
51
53
|
onClick: handleDelete,
|
|
52
54
|
children: (0, _lang.getLocale)('Delete')
|
|
53
55
|
})]
|
|
@@ -8,7 +8,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _reactstrap = require("reactstrap");
|
|
12
11
|
var _DTableCustomFooter = _interopRequireDefault(require("../../DTableCustomFooter"));
|
|
13
12
|
var _signatureBoard = _interopRequireDefault(require("../signature-board"));
|
|
14
13
|
var _service = _interopRequireDefault(require("../service"));
|
|
@@ -17,6 +16,7 @@ var _url = require("../../utils/url");
|
|
|
17
16
|
var _toaster = _interopRequireDefault(require("../../toaster"));
|
|
18
17
|
var _lang = require("../../lang");
|
|
19
18
|
var _utils2 = require("../../utils/utils");
|
|
19
|
+
var _DtableCustomButton = _interopRequireDefault(require("../../DtableCustomButton"));
|
|
20
20
|
require("./index.css");
|
|
21
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
22
|
class PCDigitalSignEditor extends _react.Component {
|
|
@@ -177,13 +177,13 @@ class PCDigitalSignEditor extends _react.Component {
|
|
|
177
177
|
signImageUrl: signImageUrl
|
|
178
178
|
})
|
|
179
179
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_DTableCustomFooter.default, {
|
|
180
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
180
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_DtableCustomButton.default, {
|
|
181
181
|
onClick: this.props.onCommitCancel,
|
|
182
|
-
|
|
182
|
+
variant: "secondary",
|
|
183
183
|
children: (0, _lang.getLocale)('Cancel')
|
|
184
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
184
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_DtableCustomButton.default, {
|
|
185
185
|
onClick: this.saveSignature,
|
|
186
|
-
|
|
186
|
+
variant: "primary",
|
|
187
187
|
disabled: saving,
|
|
188
188
|
children: (0, _lang.getLocale)(saving ? 'Saving' : 'Save')
|
|
189
189
|
})]
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
.dtable-custom-button {
|
|
2
|
+
display: inline-flex ;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
gap: 8px;
|
|
6
|
+
padding: 0 12px ;
|
|
7
|
+
min-height: 32px;
|
|
8
|
+
font-size: 14px;
|
|
9
|
+
font-weight: normal;
|
|
10
|
+
border-radius: 4px;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
transition: all 0.3s ease;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
outline: none;
|
|
15
|
+
font-family: inherit;
|
|
16
|
+
border: 1px solid transparent ;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.dtable-custom-button:focus {
|
|
20
|
+
outline: none;
|
|
21
|
+
box-shadow: none ;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.dtable-custom-button:active:focus {
|
|
25
|
+
box-shadow: none ;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.dtable-custom-button__text {
|
|
29
|
+
display: inline-block;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.dtable-custom-button__icon {
|
|
33
|
+
display: inline-block;
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
line-height: 1;
|
|
36
|
+
margin: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* ============ Size Variants ============ */
|
|
40
|
+
|
|
41
|
+
.dtable-custom-button--max {
|
|
42
|
+
min-height: 40px ;
|
|
43
|
+
padding: 0 16px ;
|
|
44
|
+
font-size: 14px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.dtable-custom-button--max .dtable-custom-button__icon {
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.dtable-custom-button--large {
|
|
52
|
+
min-height: 38px ;
|
|
53
|
+
padding: 0 16px ;
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.dtable-custom-button--large .dtable-custom-button__icon {
|
|
58
|
+
font-size: 14px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.dtable-custom-button--middle {
|
|
62
|
+
min-height: 32px ;
|
|
63
|
+
padding: 0 12px ;
|
|
64
|
+
font-size: 14px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.dtable-custom-button--middle .dtable-custom-button__icon {
|
|
68
|
+
font-size: 14px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.dtable-custom-button--small {
|
|
72
|
+
min-height: 26px ;
|
|
73
|
+
padding: 0 8px ;
|
|
74
|
+
font-size: 12px;
|
|
75
|
+
gap: 4px ;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.dtable-custom-button--small .dtable-custom-button__icon {
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* ============ Color Variants - Primary ============ */
|
|
83
|
+
|
|
84
|
+
.dtable-custom-button--primary {
|
|
85
|
+
background-color: #FF8000 !important;
|
|
86
|
+
color: #FFFFFF !important;
|
|
87
|
+
border: 1px solid #FF8000 !important;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.dtable-custom-button--primary:hover:not(:disabled) {
|
|
91
|
+
background-color: #ED7109 !important;
|
|
92
|
+
border-color: #ED7109 !important;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.dtable-custom-button--primary:active:not(:disabled) {
|
|
96
|
+
background-color: #E16B09 !important;
|
|
97
|
+
border-color: #E16B09 !important;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* ============ Color Variants - Default ============ */
|
|
101
|
+
|
|
102
|
+
.dtable-custom-button--default {
|
|
103
|
+
background-color: #FFFFFF;
|
|
104
|
+
color: #ED7109 !important;
|
|
105
|
+
border: 1px solid #ED7109;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.dtable-custom-button--default:hover:not(:disabled) {
|
|
109
|
+
background-color: #ED7109 !important;
|
|
110
|
+
color: #FFFFFF !important;
|
|
111
|
+
border-color: #ED7109 !important;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.dtable-custom-button--default:active:not(:disabled) {
|
|
115
|
+
background-color: #E16B09 !important;
|
|
116
|
+
color: #FFFFFF !important;
|
|
117
|
+
border-color: #E16B09 !important;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* ============ Color Variants - Secondary ============ */
|
|
121
|
+
|
|
122
|
+
.dtable-custom-button--secondary {
|
|
123
|
+
background-color: #FFFFFF !important;
|
|
124
|
+
color: #212529 !important;
|
|
125
|
+
border: 1px solid rgba(0, 40, 100, 0.12) !important;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.dtable-custom-button--secondary:hover:not(:disabled) {
|
|
129
|
+
background-color: rgba(0, 0, 0, 0.04) !important;
|
|
130
|
+
border-color: rgba(0, 40, 100, 0.12) !important;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.dtable-custom-button--secondary:active:not(:disabled) {
|
|
134
|
+
background-color: #E9E9E9 !important;
|
|
135
|
+
border-color: rgba(0, 40, 100, 0.12) !important;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* ============ Color Variants - Secondary Filled ============ */
|
|
139
|
+
|
|
140
|
+
.dtable-custom-button--secondary-filled {
|
|
141
|
+
background-color: #F5F5F5 !important;
|
|
142
|
+
color: #212529 !important;
|
|
143
|
+
border: none !important;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.dtable-custom-button--secondary-filled:hover:not(:disabled) {
|
|
147
|
+
background-color: #EBEBEB !important;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.dtable-custom-button--secondary-filled:active:not(:disabled) {
|
|
151
|
+
background-color: #DDDDDD !important;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* ============ State: Disabled ============ */
|
|
155
|
+
|
|
156
|
+
.dtable-custom-button:disabled {
|
|
157
|
+
opacity: 0.65 !important;
|
|
158
|
+
cursor: not-allowed !important;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* ============ Block Mode ============ */
|
|
162
|
+
|
|
163
|
+
.dtable-custom-button--block {
|
|
164
|
+
display: flex !important;
|
|
165
|
+
width: 100% !important;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* ============ Inline Mode ============ */
|
|
169
|
+
|
|
170
|
+
.dtable-custom-button--inline {
|
|
171
|
+
height: 32px;
|
|
172
|
+
display: inline-flex ;
|
|
173
|
+
padding: 0 8px;
|
|
174
|
+
font-size: 14px;
|
|
175
|
+
border-radius: 2px;
|
|
176
|
+
border: 1px solid rgba(0, 40, 100, 0.12) ;
|
|
177
|
+
background-color: #FFFFFF;
|
|
178
|
+
color: #212529;
|
|
179
|
+
gap: 4px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.dtable-custom-button--inline:hover:not(:disabled) {
|
|
183
|
+
background-color: rgba(0, 0, 0, 0.04) !important;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.dtable-custom-button--inline:active:not(:disabled) {
|
|
187
|
+
background-color: rgba(0, 0, 0, 0.08) !important;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* ============ With Icon ============ */
|
|
191
|
+
|
|
192
|
+
.dtable-custom-button--with-icon {
|
|
193
|
+
gap: 8px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* Icon color adjustments for different variants(default,secondary,secondary-filled) */
|
|
197
|
+
.dtable-custom-button--default.dtable-custom-button--with-icon .dtable-custom-button__icon {
|
|
198
|
+
color: #ED7109 !important;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.dtable-custom-button--default:hover:not(:disabled).dtable-custom-button--with-icon .dtable-custom-button__icon {
|
|
202
|
+
color: #FFFFFF !important;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.dtable-custom-button--default:active:not(:disabled).dtable-custom-button--with-icon .dtable-custom-button__icon {
|
|
206
|
+
color: #FFFFFF !important;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.dtable-custom-button--default:disabled.dtable-custom-button--with-icon .dtable-custom-button__icon {
|
|
210
|
+
color: #ED7109 !important;
|
|
211
|
+
opacity: 0.65;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.dtable-custom-button--secondary.dtable-custom-button--with-icon .dtable-custom-button__icon,
|
|
215
|
+
.dtable-custom-button--secondary-filled.dtable-custom-button--with-icon .dtable-custom-button__icon,
|
|
216
|
+
.dtable-custom-button--secondary:active:not(:disabled).dtable-custom-button--with-icon .dtable-custom-button__icon,
|
|
217
|
+
.dtable-custom-button--secondary-filled:active:not(:disabled).dtable-custom-button--with-icon .dtable-custom-button__icon,
|
|
218
|
+
.dtable-custom-button--secondary:hover:not(:disabled).dtable-custom-button--with-icon .dtable-custom-button__icon,
|
|
219
|
+
.dtable-custom-button--secondary-filled:hover:not(:disabled).dtable-custom-button--with-icon .dtable-custom-button__icon {
|
|
220
|
+
color: #666666 !important;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.secondary-filled-dtable,
|
|
224
|
+
.secondary-filled-dtable .dtable-custom-button__text,
|
|
225
|
+
.secondary-filled-dtable:hover:not(:disabled).dtable-custom-button--with-icon .dtable-custom-button__icon,
|
|
226
|
+
.secondary-filled-dtable:active:not(:disabled).dtable-custom-button--with-icon .dtable-custom-button__icon {
|
|
227
|
+
color: #ED7109 !important;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.secondary-filled-dtable:disabled.dtable-custom-button--with-icon .dtable-custom-button__icon {
|
|
231
|
+
color: #ED7109 !important;
|
|
232
|
+
opacity: 0.65;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.dtable-custom-button--secondary:disabled.dtable-custom-button--with-icon .dtable-custom-button__icon,
|
|
236
|
+
.dtable-custom-button--secondary-filled:disabled.dtable-custom-button--with-icon .dtable-custom-button__icon {
|
|
237
|
+
color: #666666 !important;
|
|
238
|
+
opacity: 0.65;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.dtable-custom-button--no-outline {
|
|
242
|
+
border: none !important;
|
|
243
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _reactstrap = require("reactstrap");
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
var _DTableIcon = _interopRequireDefault(require("../DTableIcon"));
|
|
14
|
+
require("./index.css");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
const _excluded = ["variant", "size", "block", "inline", "disabled", "icon", "iconPosition", "className", "children", "fillColor", "isOutline"];
|
|
17
|
+
const DtableCustomButton = _ref => {
|
|
18
|
+
let {
|
|
19
|
+
variant = 'default',
|
|
20
|
+
size = 'large',
|
|
21
|
+
block = false,
|
|
22
|
+
inline = false,
|
|
23
|
+
disabled = false,
|
|
24
|
+
icon = null,
|
|
25
|
+
iconPosition = 'left',
|
|
26
|
+
className = '',
|
|
27
|
+
children,
|
|
28
|
+
fillColor = false,
|
|
29
|
+
isOutline = true
|
|
30
|
+
} = _ref,
|
|
31
|
+
otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
32
|
+
const getReactstrapColor = variant => {
|
|
33
|
+
const colorMap = {
|
|
34
|
+
'primary': 'warning',
|
|
35
|
+
'default': 'light',
|
|
36
|
+
'secondary': 'light',
|
|
37
|
+
'secondary-filled': 'light'
|
|
38
|
+
};
|
|
39
|
+
return colorMap[variant] || 'light';
|
|
40
|
+
};
|
|
41
|
+
const btnClassNames = (0, _classnames.default)('dtable-custom-button', "dtable-custom-button--".concat(variant), "dtable-custom-button--".concat(size), "".concat(fillColor && variant === 'secondary-filled' ? 'secondary-filled-dtable' : ''), {
|
|
42
|
+
'dtable-custom-button--block': block,
|
|
43
|
+
'dtable-custom-button--inline': inline,
|
|
44
|
+
'dtable-custom-button--with-icon': icon,
|
|
45
|
+
'dtable-custom-button--icon-right': icon && iconPosition === 'right',
|
|
46
|
+
'dtable-custom-button--no-outline': !isOutline
|
|
47
|
+
}, className);
|
|
48
|
+
const iconElement = icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
|
|
49
|
+
symbol: icon,
|
|
50
|
+
className: "dtable-custom-button__icon",
|
|
51
|
+
ariaHidden: true
|
|
52
|
+
});
|
|
53
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.Button, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
54
|
+
className: btnClassNames,
|
|
55
|
+
color: getReactstrapColor(variant),
|
|
56
|
+
outline: isOutline,
|
|
57
|
+
disabled: disabled,
|
|
58
|
+
block: block
|
|
59
|
+
}, otherProps), {}, {
|
|
60
|
+
children: [icon && iconPosition === 'left' && iconElement, children && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
61
|
+
className: "dtable-custom-button__text",
|
|
62
|
+
children: children
|
|
63
|
+
}), icon && iconPosition === 'right' && iconElement]
|
|
64
|
+
}));
|
|
65
|
+
};
|
|
66
|
+
var _default = exports.default = DtableCustomButton;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
.dtable-icon-btn {
|
|
2
|
+
display: inline-flex !important;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
padding: 0 !important;
|
|
6
|
+
border: none !important;
|
|
7
|
+
background-color: transparent !important;
|
|
8
|
+
color: #666666 !important;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
transition: all 0.3s ease;
|
|
11
|
+
outline: none;
|
|
12
|
+
border-radius: 4px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.dtable-icon-btn:focus {
|
|
16
|
+
outline: none;
|
|
17
|
+
box-shadow: none !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dtable-icon-btn__icon {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
line-height: 1;
|
|
23
|
+
margin: 0;
|
|
24
|
+
font-weight: normal;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.dtable-icon-btn--16px {
|
|
28
|
+
min-width: 24px;
|
|
29
|
+
min-height: 24px;
|
|
30
|
+
width: 24px;
|
|
31
|
+
height: 24px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.dtable-icon-btn--16px .dtable-icon-btn__icon {
|
|
35
|
+
font-size: 16px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.dtable-icon-btn--14px {
|
|
39
|
+
min-width: 24px;
|
|
40
|
+
min-height: 24px;
|
|
41
|
+
width: 24px;
|
|
42
|
+
height: 24px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.dtable-icon-btn--14px .dtable-icon-btn__icon {
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.dtable-icon-btn--12px {
|
|
50
|
+
min-width: 24px;
|
|
51
|
+
min-height: 24px;
|
|
52
|
+
width: 24px;
|
|
53
|
+
height: 24px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.dtable-icon-btn--12px .dtable-icon-btn__icon {
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.dtable-icon-btn--32px {
|
|
61
|
+
min-width: 32px;
|
|
62
|
+
min-height: 32px;
|
|
63
|
+
width: 32px;
|
|
64
|
+
height: 32px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.dtable-icon-btn--32px .dtable-icon-btn__icon {
|
|
68
|
+
font-size: 32px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.dtable-icon-btn--solid {
|
|
72
|
+
background-color: transparent !important;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.dtable-icon-btn--solid:hover:not(:disabled) {
|
|
76
|
+
background-color: rgba(0, 0, 0, 0.04) !important;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.dtable-icon-btn--solid:active:not(:disabled) {
|
|
80
|
+
background-color: rgba(0, 0, 0, 0.08) !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* ============ No Background Style ============ */
|
|
84
|
+
|
|
85
|
+
.dtable-icon-btn--no-background:hover:not(:disabled) {
|
|
86
|
+
background-color: transparent !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.dtable-icon-btn--no-background:active:not(:disabled) {
|
|
90
|
+
background-color: transparent !important;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* ============ Outlined Style ============ */
|
|
94
|
+
|
|
95
|
+
.dtable-icon-btn--outlined {
|
|
96
|
+
min-width: 32px;
|
|
97
|
+
min-height: 32px;
|
|
98
|
+
width: 32px;
|
|
99
|
+
height: 32px;
|
|
100
|
+
background-color: #FFFFFF !important;
|
|
101
|
+
border: 1px solid rgba(0, 40, 100, 0.12) !important;
|
|
102
|
+
color: #666666 !important;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.dtable-icon-btn--outlined:hover:not(:disabled) {
|
|
106
|
+
min-width: 32px;
|
|
107
|
+
min-height: 32px;
|
|
108
|
+
width: 32px;
|
|
109
|
+
height: 32px;
|
|
110
|
+
background-color: rgba(0, 0, 0, 0.04) !important;
|
|
111
|
+
border-color: rgba(0, 40, 100, 0.12) !important;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.dtable-icon-btn--outlined:active:not(:disabled) {
|
|
115
|
+
min-width: 32px;
|
|
116
|
+
min-height: 32px;
|
|
117
|
+
width: 32px;
|
|
118
|
+
height: 32px;
|
|
119
|
+
background-color: rgba(0, 0, 0, 0.08) !important;
|
|
120
|
+
border-color: rgba(0, 40, 100, 0.12) !important;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.dtable-icon-btn:disabled {
|
|
124
|
+
opacity: 0.65 !important;
|
|
125
|
+
cursor: not-allowed !important;
|
|
126
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _reactstrap = require("reactstrap");
|
|
13
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
|
+
var _DTableIcon = _interopRequireDefault(require("../DTableIcon"));
|
|
15
|
+
var _DTableToolTip = _interopRequireDefault(require("../DTableToolTip"));
|
|
16
|
+
var _dtableUtils = require("dtable-utils");
|
|
17
|
+
require("./index.css");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
const _excluded = ["noDisplayBac", "color", "size", "outline", "disabled", "className", "symbol", "tooltip", "tooltipPlacement", "shortcut"];
|
|
20
|
+
const DtableIconButton = _ref => {
|
|
21
|
+
let {
|
|
22
|
+
noDisplayBac = false,
|
|
23
|
+
color,
|
|
24
|
+
size = 'large',
|
|
25
|
+
outline = false,
|
|
26
|
+
disabled = false,
|
|
27
|
+
className = '',
|
|
28
|
+
symbol,
|
|
29
|
+
tooltip,
|
|
30
|
+
tooltipPlacement,
|
|
31
|
+
shortcut
|
|
32
|
+
} = _ref,
|
|
33
|
+
otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
34
|
+
const buttonIdRef = (0, _react.useRef)("dtable-icon-button-".concat((0, _dtableUtils.generatorBase64Code)(8)));
|
|
35
|
+
const buttonRef = (0, _react.useRef)(null);
|
|
36
|
+
const [mounted, setMounted] = (0, _react.useState)(false);
|
|
37
|
+
(0, _react.useEffect)(() => {
|
|
38
|
+
setMounted(true);
|
|
39
|
+
}, []);
|
|
40
|
+
const sizeMap = {
|
|
41
|
+
large: '16px',
|
|
42
|
+
middle: '14px',
|
|
43
|
+
small: '12px',
|
|
44
|
+
largest: '32px'
|
|
45
|
+
};
|
|
46
|
+
const normalizedSize = sizeMap[size] || size;
|
|
47
|
+
const iconElement = symbol && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
|
|
48
|
+
symbol: symbol,
|
|
49
|
+
className: "dtable-icon-btn__icon",
|
|
50
|
+
ariaHidden: true,
|
|
51
|
+
color: color
|
|
52
|
+
});
|
|
53
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
54
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
55
|
+
ref: buttonRef,
|
|
56
|
+
className: (0, _classnames.default)('dtable-icon-btn', "dtable-icon-btn--".concat(normalizedSize), {
|
|
57
|
+
'dtable-icon-btn--outlined': outline,
|
|
58
|
+
'dtable-icon-btn--solid': !outline
|
|
59
|
+
}, {
|
|
60
|
+
'dtable-icon-btn--no-background': noDisplayBac
|
|
61
|
+
}, className),
|
|
62
|
+
outline: outline,
|
|
63
|
+
disabled: disabled,
|
|
64
|
+
id: buttonIdRef.current
|
|
65
|
+
}, otherProps), {}, {
|
|
66
|
+
children: iconElement
|
|
67
|
+
})), tooltip && mounted && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableToolTip.default, {
|
|
68
|
+
target: buttonIdRef.current,
|
|
69
|
+
placement: tooltipPlacement || 'bottom',
|
|
70
|
+
shortcut: shortcut,
|
|
71
|
+
children: tooltip
|
|
72
|
+
})]
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
var _default = exports.default = DtableIconButton;
|