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.
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/ButtonInputGroup.d.ts +2 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/ButtonInputGroup.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
- package/src/components/ButtonInputGroup.tsx +9 -3
package/dist/cjs/index.js
CHANGED
|
@@ -1570,21 +1570,21 @@ const ButtonInputGroup = (props) => {
|
|
|
1570
1570
|
/*------------------------------------------------------------------------*/
|
|
1571
1571
|
/* -------------- Props ------------- */
|
|
1572
1572
|
// Destructure all props
|
|
1573
|
-
const { label, minLabelWidth, children, className, wrapButtonsAndAddGaps, } = props;
|
|
1573
|
+
const { label, minLabelWidth, children, className, wrapButtonsAndAddGaps, isAdminFeature, noMarginOnBottom, } = props;
|
|
1574
1574
|
/*------------------------------------------------------------------------*/
|
|
1575
1575
|
/* ------------------------------- Render ------------------------------- */
|
|
1576
1576
|
/*------------------------------------------------------------------------*/
|
|
1577
1577
|
/*----------------------------------------*/
|
|
1578
1578
|
/* --------------- Main UI -------------- */
|
|
1579
1579
|
/*----------------------------------------*/
|
|
1580
|
-
return (React__default["default"].createElement("div", { className: `input-group ${className !== null && className !== void 0 ? className : ''}` },
|
|
1580
|
+
return (React__default["default"].createElement("div", { className: `input-group ${className !== null && className !== void 0 ? className : ''} ${noMarginOnBottom ? '' : 'mb-2'}` },
|
|
1581
1581
|
React__default["default"].createElement("div", { className: "input-group-prepend d-flex w-100" },
|
|
1582
|
-
React__default["default"].createElement("span", { className:
|
|
1582
|
+
React__default["default"].createElement("span", { className: `input-group-text ${isAdminFeature ? 'border border-success progress-bar-striped bg-success text-white fw-bold' : ''}`, style: {
|
|
1583
1583
|
minWidth: (minLabelWidth !== null && minLabelWidth !== void 0 ? minLabelWidth : undefined),
|
|
1584
1584
|
borderTopRightRadius: 0,
|
|
1585
1585
|
borderBottomRightRadius: 0,
|
|
1586
1586
|
} }, label),
|
|
1587
|
-
React__default["default"].createElement("span", { className:
|
|
1587
|
+
React__default["default"].createElement("span", { className: `input-group-text flex-grow-1 ${isAdminFeature ? 'border-success ' : ''}rounded-right d-flex flex-wrap`, style: {
|
|
1588
1588
|
backgroundColor: 'white',
|
|
1589
1589
|
borderTopLeftRadius: 0,
|
|
1590
1590
|
borderBottomLeftRadius: 0,
|