@trops/dash-core 0.1.498 → 0.1.499
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/index.esm.js +36 -34
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +36 -34
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49262,7 +49262,7 @@ var EnforcementToggles = function EnforcementToggles() {
|
|
|
49262
49262
|
onChange: handleJitToggle,
|
|
49263
49263
|
disabled: !enforceEnabled
|
|
49264
49264
|
})]
|
|
49265
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
49265
|
+
}), /*#__PURE__*/jsxRuntime.jsx(ConfirmDisableInline, {
|
|
49266
49266
|
pending: pendingDisable,
|
|
49267
49267
|
onCancel: function onCancel() {
|
|
49268
49268
|
return setPendingDisable(null);
|
|
@@ -49283,46 +49283,48 @@ var DISABLE_COPY = {
|
|
|
49283
49283
|
confirmLabel: "Disable prompts"
|
|
49284
49284
|
}
|
|
49285
49285
|
};
|
|
49286
|
-
|
|
49286
|
+
|
|
49287
|
+
/**
|
|
49288
|
+
* Inline confirmation prompt — rendered directly under the toggles
|
|
49289
|
+
* inside the EnforcementToggles container, NOT as a nested Modal.
|
|
49290
|
+
*
|
|
49291
|
+
* Why inline: the Settings panel itself is already a Modal, so a
|
|
49292
|
+
* nested Modal positions relative to the panel's content area rather
|
|
49293
|
+
* than the viewport, landing visibly off-center. Inline avoids the
|
|
49294
|
+
* nesting entirely; the user keeps context and the warning is
|
|
49295
|
+
* impossible to miss right where the toggle lives.
|
|
49296
|
+
*/
|
|
49297
|
+
var ConfirmDisableInline = function ConfirmDisableInline(_ref6) {
|
|
49287
49298
|
var pending = _ref6.pending,
|
|
49288
49299
|
onCancel = _ref6.onCancel,
|
|
49289
49300
|
onConfirm = _ref6.onConfirm;
|
|
49290
49301
|
if (!pending) return null;
|
|
49291
49302
|
var copy = DISABLE_COPY[pending.flag];
|
|
49292
49303
|
if (!copy) return null;
|
|
49293
|
-
return /*#__PURE__*/jsxRuntime.
|
|
49294
|
-
|
|
49295
|
-
|
|
49296
|
-
|
|
49297
|
-
|
|
49298
|
-
|
|
49299
|
-
|
|
49300
|
-
|
|
49301
|
-
className: "
|
|
49302
|
-
children:
|
|
49303
|
-
className: "flex flex-row items-center gap-2",
|
|
49304
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
49305
|
-
icon: "triangle-exclamation",
|
|
49306
|
-
className: "h-4 w-4 text-amber-500"
|
|
49307
|
-
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
49308
|
-
className: "text-base font-semibold text-gray-100",
|
|
49309
|
-
children: copy.title
|
|
49310
|
-
})]
|
|
49311
|
-
})
|
|
49312
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
49313
|
-
className: "px-5 py-4 text-xs text-gray-300 leading-relaxed",
|
|
49314
|
-
children: copy.body
|
|
49315
|
-
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
49316
|
-
className: "flex justify-end gap-2 px-5 py-3 border-t border-gray-700",
|
|
49317
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
|
|
49318
|
-
title: "Cancel",
|
|
49319
|
-
onClick: onCancel
|
|
49320
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
|
|
49321
|
-
title: copy.confirmLabel,
|
|
49322
|
-
onClick: onConfirm
|
|
49323
|
-
})]
|
|
49304
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
49305
|
+
className: "flex flex-col gap-3 border-2 border-amber-500 rounded p-3 mt-2",
|
|
49306
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
49307
|
+
className: "flex flex-row items-center gap-2",
|
|
49308
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
49309
|
+
icon: "triangle-exclamation",
|
|
49310
|
+
className: "h-4 w-4 text-amber-500"
|
|
49311
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
49312
|
+
className: "text-sm font-semibold text-gray-100",
|
|
49313
|
+
children: copy.title
|
|
49324
49314
|
})]
|
|
49325
|
-
})
|
|
49315
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
49316
|
+
className: "text-xs text-gray-300 leading-relaxed",
|
|
49317
|
+
children: copy.body
|
|
49318
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
49319
|
+
className: "flex justify-end gap-2",
|
|
49320
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
|
|
49321
|
+
title: "Cancel",
|
|
49322
|
+
onClick: onCancel
|
|
49323
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
|
|
49324
|
+
title: copy.confirmLabel,
|
|
49325
|
+
onClick: onConfirm
|
|
49326
|
+
})]
|
|
49327
|
+
})]
|
|
49326
49328
|
});
|
|
49327
49329
|
};
|
|
49328
49330
|
var WidgetGrantRow = function WidgetGrantRow(_ref7) {
|