@luscii-healthtech/web-ui 2.70.2 → 2.70.4
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/components/Container/types/FlexContainerProps.type.d.ts +5 -0
- package/dist/web-ui.cjs.development.js +11 -8
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +11 -8
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -11,6 +11,11 @@ declare type FlexContainerBase = {
|
|
|
11
11
|
*/
|
|
12
12
|
hasPadding?: boolean;
|
|
13
13
|
backgroundColor?: string;
|
|
14
|
+
/**
|
|
15
|
+
* If `true`, will make the flexbox full width and not size it relative to its content.
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
stretch?: boolean;
|
|
14
19
|
};
|
|
15
20
|
export declare type FlexContainerBaseProps = FlexContainerBase & {
|
|
16
21
|
children: React.ReactNode;
|
|
@@ -481,9 +481,11 @@ var FlexContainer = function FlexContainer(props) {
|
|
|
481
481
|
position = _props$position === void 0 ? "" : _props$position,
|
|
482
482
|
type = props.type,
|
|
483
483
|
_props$backgroundColo = props.backgroundColor,
|
|
484
|
-
backgroundColor = _props$backgroundColo === void 0 ? "bg-transparent" : _props$backgroundColo
|
|
484
|
+
backgroundColor = _props$backgroundColo === void 0 ? "bg-transparent" : _props$backgroundColo,
|
|
485
|
+
_props$stretch = props.stretch,
|
|
486
|
+
stretch = _props$stretch === void 0 ? true : _props$stretch;
|
|
485
487
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
486
|
-
className: classNames("flex
|
|
488
|
+
className: classNames("flex", backgroundColor, {
|
|
487
489
|
"flex-row": type === "row",
|
|
488
490
|
"flex-col": type === "column",
|
|
489
491
|
relative: position === "relative",
|
|
@@ -506,7 +508,8 @@ var FlexContainer = function FlexContainer(props) {
|
|
|
506
508
|
"space-y-2": verticalSpacing === "small",
|
|
507
509
|
"space-y-4": verticalSpacing === "medium",
|
|
508
510
|
"space-y-8": verticalSpacing === "large",
|
|
509
|
-
"p-4": hasPadding
|
|
511
|
+
"p-4": hasPadding,
|
|
512
|
+
"w-full": stretch
|
|
510
513
|
})
|
|
511
514
|
}, children);
|
|
512
515
|
};
|
|
@@ -2993,7 +2996,9 @@ var Input = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
2993
2996
|
var isClearIconVisible = clearable && innerValue;
|
|
2994
2997
|
return /*#__PURE__*/React__default.createElement(FlexRow, {
|
|
2995
2998
|
spacing: "none",
|
|
2996
|
-
"data-test-id": "input-component-container"
|
|
2999
|
+
"data-test-id": "input-component-container",
|
|
3000
|
+
position: "relative",
|
|
3001
|
+
stretch: false
|
|
2997
3002
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
2998
3003
|
className: classNames("h-11 border-t border-b border-solid border-input-border", {
|
|
2999
3004
|
hidden: hasNoExtraContent,
|
|
@@ -3010,9 +3015,7 @@ var Input = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
3010
3015
|
}, /*#__PURE__*/React__default.createElement(IconComponentOrKey, {
|
|
3011
3016
|
name: icon,
|
|
3012
3017
|
className: "w-6 h-6 text-slate-300"
|
|
3013
|
-
})), /*#__PURE__*/React__default.createElement("
|
|
3014
|
-
className: "relative"
|
|
3015
|
-
}, /*#__PURE__*/React__default.createElement("input", _extends({}, otherProps, {
|
|
3018
|
+
})), /*#__PURE__*/React__default.createElement("input", _extends({}, otherProps, {
|
|
3016
3019
|
"data-test-id": "input-" + name,
|
|
3017
3020
|
name: name,
|
|
3018
3021
|
value: innerValue,
|
|
@@ -3059,7 +3062,7 @@ var Input = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
3059
3062
|
hidden: !isClearIconVisible
|
|
3060
3063
|
}),
|
|
3061
3064
|
onClick: clearField
|
|
3062
|
-
})))
|
|
3065
|
+
})));
|
|
3063
3066
|
});
|
|
3064
3067
|
|
|
3065
3068
|
var SearchInput = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|