@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.esm.js
CHANGED
|
@@ -49244,7 +49244,7 @@ var EnforcementToggles = function EnforcementToggles() {
|
|
|
49244
49244
|
onChange: handleJitToggle,
|
|
49245
49245
|
disabled: !enforceEnabled
|
|
49246
49246
|
})]
|
|
49247
|
-
}), /*#__PURE__*/jsx(
|
|
49247
|
+
}), /*#__PURE__*/jsx(ConfirmDisableInline, {
|
|
49248
49248
|
pending: pendingDisable,
|
|
49249
49249
|
onCancel: function onCancel() {
|
|
49250
49250
|
return setPendingDisable(null);
|
|
@@ -49265,46 +49265,48 @@ var DISABLE_COPY = {
|
|
|
49265
49265
|
confirmLabel: "Disable prompts"
|
|
49266
49266
|
}
|
|
49267
49267
|
};
|
|
49268
|
-
|
|
49268
|
+
|
|
49269
|
+
/**
|
|
49270
|
+
* Inline confirmation prompt — rendered directly under the toggles
|
|
49271
|
+
* inside the EnforcementToggles container, NOT as a nested Modal.
|
|
49272
|
+
*
|
|
49273
|
+
* Why inline: the Settings panel itself is already a Modal, so a
|
|
49274
|
+
* nested Modal positions relative to the panel's content area rather
|
|
49275
|
+
* than the viewport, landing visibly off-center. Inline avoids the
|
|
49276
|
+
* nesting entirely; the user keeps context and the warning is
|
|
49277
|
+
* impossible to miss right where the toggle lives.
|
|
49278
|
+
*/
|
|
49279
|
+
var ConfirmDisableInline = function ConfirmDisableInline(_ref6) {
|
|
49269
49280
|
var pending = _ref6.pending,
|
|
49270
49281
|
onCancel = _ref6.onCancel,
|
|
49271
49282
|
onConfirm = _ref6.onConfirm;
|
|
49272
49283
|
if (!pending) return null;
|
|
49273
49284
|
var copy = DISABLE_COPY[pending.flag];
|
|
49274
49285
|
if (!copy) return null;
|
|
49275
|
-
return /*#__PURE__*/
|
|
49276
|
-
|
|
49277
|
-
|
|
49278
|
-
|
|
49279
|
-
|
|
49280
|
-
|
|
49281
|
-
|
|
49282
|
-
|
|
49283
|
-
className: "
|
|
49284
|
-
children:
|
|
49285
|
-
className: "flex flex-row items-center gap-2",
|
|
49286
|
-
children: [/*#__PURE__*/jsx(FontAwesomeIcon, {
|
|
49287
|
-
icon: "triangle-exclamation",
|
|
49288
|
-
className: "h-4 w-4 text-amber-500"
|
|
49289
|
-
}), /*#__PURE__*/jsx("span", {
|
|
49290
|
-
className: "text-base font-semibold text-gray-100",
|
|
49291
|
-
children: copy.title
|
|
49292
|
-
})]
|
|
49293
|
-
})
|
|
49294
|
-
}), /*#__PURE__*/jsx("div", {
|
|
49295
|
-
className: "px-5 py-4 text-xs text-gray-300 leading-relaxed",
|
|
49296
|
-
children: copy.body
|
|
49297
|
-
}), /*#__PURE__*/jsxs("div", {
|
|
49298
|
-
className: "flex justify-end gap-2 px-5 py-3 border-t border-gray-700",
|
|
49299
|
-
children: [/*#__PURE__*/jsx(Button, {
|
|
49300
|
-
title: "Cancel",
|
|
49301
|
-
onClick: onCancel
|
|
49302
|
-
}), /*#__PURE__*/jsx(Button, {
|
|
49303
|
-
title: copy.confirmLabel,
|
|
49304
|
-
onClick: onConfirm
|
|
49305
|
-
})]
|
|
49286
|
+
return /*#__PURE__*/jsxs("div", {
|
|
49287
|
+
className: "flex flex-col gap-3 border-2 border-amber-500 rounded p-3 mt-2",
|
|
49288
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
49289
|
+
className: "flex flex-row items-center gap-2",
|
|
49290
|
+
children: [/*#__PURE__*/jsx(FontAwesomeIcon, {
|
|
49291
|
+
icon: "triangle-exclamation",
|
|
49292
|
+
className: "h-4 w-4 text-amber-500"
|
|
49293
|
+
}), /*#__PURE__*/jsx("span", {
|
|
49294
|
+
className: "text-sm font-semibold text-gray-100",
|
|
49295
|
+
children: copy.title
|
|
49306
49296
|
})]
|
|
49307
|
-
})
|
|
49297
|
+
}), /*#__PURE__*/jsx("div", {
|
|
49298
|
+
className: "text-xs text-gray-300 leading-relaxed",
|
|
49299
|
+
children: copy.body
|
|
49300
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
49301
|
+
className: "flex justify-end gap-2",
|
|
49302
|
+
children: [/*#__PURE__*/jsx(Button, {
|
|
49303
|
+
title: "Cancel",
|
|
49304
|
+
onClick: onCancel
|
|
49305
|
+
}), /*#__PURE__*/jsx(Button, {
|
|
49306
|
+
title: copy.confirmLabel,
|
|
49307
|
+
onClick: onConfirm
|
|
49308
|
+
})]
|
|
49309
|
+
})]
|
|
49308
49310
|
});
|
|
49309
49311
|
};
|
|
49310
49312
|
var WidgetGrantRow = function WidgetGrantRow(_ref7) {
|