dce-reactkit 3.7.15 → 3.7.16

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.
@@ -9,6 +9,8 @@ type Props = {
9
9
  children: React.ReactNode;
10
10
  className?: string;
11
11
  wrapButtonsAndAddGaps?: boolean;
12
+ isAdminFeature?: boolean;
13
+ noMarginOnBottom?: boolean;
12
14
  };
13
15
  declare const ButtonInputGroup: React.FC<Props>;
14
16
  export default ButtonInputGroup;
package/dist/esm/index.js CHANGED
@@ -1543,21 +1543,21 @@ const ButtonInputGroup = (props) => {
1543
1543
  /*------------------------------------------------------------------------*/
1544
1544
  /* -------------- Props ------------- */
1545
1545
  // Destructure all props
1546
- const { label, minLabelWidth, children, className, wrapButtonsAndAddGaps, } = props;
1546
+ const { label, minLabelWidth, children, className, wrapButtonsAndAddGaps, isAdminFeature, noMarginOnBottom, } = props;
1547
1547
  /*------------------------------------------------------------------------*/
1548
1548
  /* ------------------------------- Render ------------------------------- */
1549
1549
  /*------------------------------------------------------------------------*/
1550
1550
  /*----------------------------------------*/
1551
1551
  /* --------------- Main UI -------------- */
1552
1552
  /*----------------------------------------*/
1553
- return (React__default.createElement("div", { className: `input-group ${className !== null && className !== void 0 ? className : ''}` },
1553
+ return (React__default.createElement("div", { className: `input-group ${className !== null && className !== void 0 ? className : ''} ${noMarginOnBottom ? '' : 'mb-2'}` },
1554
1554
  React__default.createElement("div", { className: "input-group-prepend d-flex w-100" },
1555
- React__default.createElement("span", { className: "input-group-text", style: {
1555
+ React__default.createElement("span", { className: `input-group-text ${isAdminFeature ? 'border border-success progress-bar-striped bg-success text-white fw-bold' : ''}`, style: {
1556
1556
  minWidth: (minLabelWidth !== null && minLabelWidth !== void 0 ? minLabelWidth : undefined),
1557
1557
  borderTopRightRadius: 0,
1558
1558
  borderBottomRightRadius: 0,
1559
1559
  } }, label),
1560
- React__default.createElement("span", { className: "input-group-text flex-grow-1 rounded-right d-flex flex-wrap", style: {
1560
+ React__default.createElement("span", { className: `input-group-text flex-grow-1 ${isAdminFeature ? 'border-success ' : ''}rounded-right d-flex flex-wrap`, style: {
1561
1561
  backgroundColor: 'white',
1562
1562
  borderTopLeftRadius: 0,
1563
1563
  borderBottomLeftRadius: 0,