@luscii-healthtech/web-ui 2.12.2 → 2.12.3
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 -4
- package/dist/web-ui-tailwind.css +12 -0
- package/dist/web-ui.cjs.development.js +24 -18
- 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 +24 -18
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/web-ui.esm.js
CHANGED
|
@@ -78,8 +78,10 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
78
78
|
var FlexContainer = function FlexContainer(props) {
|
|
79
79
|
var children = props.children,
|
|
80
80
|
alignItems = props.alignItems,
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
_props$verticalSpacin = props.verticalSpacing,
|
|
82
|
+
verticalSpacing = _props$verticalSpacin === void 0 ? "none" : _props$verticalSpacin,
|
|
83
|
+
_props$horizontalSpac = props.horizontalSpacing,
|
|
84
|
+
horizontalSpacing = _props$horizontalSpac === void 0 ? "none" : _props$horizontalSpac,
|
|
83
85
|
justifyContent = props.justifyContent,
|
|
84
86
|
hasPadding = props.hasPadding,
|
|
85
87
|
_props$position = props.position,
|
|
@@ -89,11 +91,11 @@ var FlexContainer = function FlexContainer(props) {
|
|
|
89
91
|
className: classNames("flex w-full", {
|
|
90
92
|
"flex-row": type === "row",
|
|
91
93
|
"flex-col": type === "column",
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
relative: position === "relative",
|
|
95
|
+
absolute: position === "absolute",
|
|
96
|
+
static: position === "static",
|
|
97
|
+
fixed: position === "fixed",
|
|
98
|
+
sticky: position === "sticky",
|
|
97
99
|
"justify-center": justifyContent === "center",
|
|
98
100
|
"justify-start": justifyContent === "start",
|
|
99
101
|
"justify-end": justifyContent === "end",
|
|
@@ -101,14 +103,18 @@ var FlexContainer = function FlexContainer(props) {
|
|
|
101
103
|
"items-start": alignItems === "start",
|
|
102
104
|
"items-center": alignItems === "center",
|
|
103
105
|
"items-end": alignItems === "end",
|
|
104
|
-
"space-x-
|
|
105
|
-
"space-
|
|
106
|
+
"space-x-2": horizontalSpacing === "small",
|
|
107
|
+
"space-x-4": horizontalSpacing === "medium",
|
|
108
|
+
"space-x-8": horizontalSpacing === "large",
|
|
109
|
+
"space-y-2": verticalSpacing === "small",
|
|
110
|
+
"space-y-4": verticalSpacing === "medium",
|
|
111
|
+
"space-y-8": verticalSpacing === "large",
|
|
106
112
|
"p-4": hasPadding
|
|
107
113
|
})
|
|
108
114
|
}, children);
|
|
109
115
|
};
|
|
110
116
|
|
|
111
|
-
var _excluded = ["children", "
|
|
117
|
+
var _excluded = ["children", "spacing"];
|
|
112
118
|
/**
|
|
113
119
|
* Container to be used for layouting instead of divs around the project.
|
|
114
120
|
* The spacing here has been coded according to our guidelines.
|
|
@@ -116,17 +122,17 @@ var _excluded = ["children", "spaced"];
|
|
|
116
122
|
|
|
117
123
|
var FlexColumn = function FlexColumn(props) {
|
|
118
124
|
var children = props.children,
|
|
119
|
-
_props$
|
|
120
|
-
|
|
125
|
+
_props$spacing = props.spacing,
|
|
126
|
+
spacing = _props$spacing === void 0 ? "medium" : _props$spacing,
|
|
121
127
|
rest = _objectWithoutPropertiesLoose(props, _excluded);
|
|
122
128
|
|
|
123
129
|
return /*#__PURE__*/React__default.createElement(FlexContainer, _extends({}, rest, {
|
|
124
130
|
type: "column",
|
|
125
|
-
|
|
131
|
+
verticalSpacing: spacing
|
|
126
132
|
}), children);
|
|
127
133
|
};
|
|
128
134
|
|
|
129
|
-
var _excluded$1 = ["children", "
|
|
135
|
+
var _excluded$1 = ["children", "spacing"];
|
|
130
136
|
/**
|
|
131
137
|
* Container to be used for layouting instead of divs around the project.
|
|
132
138
|
* The spacing here has been coded according to our guidelines.
|
|
@@ -134,13 +140,13 @@ var _excluded$1 = ["children", "spaced"];
|
|
|
134
140
|
|
|
135
141
|
var FlexRow = function FlexRow(props) {
|
|
136
142
|
var children = props.children,
|
|
137
|
-
_props$
|
|
138
|
-
|
|
143
|
+
_props$spacing = props.spacing,
|
|
144
|
+
spacing = _props$spacing === void 0 ? "medium" : _props$spacing,
|
|
139
145
|
rest = _objectWithoutPropertiesLoose(props, _excluded$1);
|
|
140
146
|
|
|
141
147
|
return /*#__PURE__*/React__default.createElement(FlexContainer, _extends({}, rest, {
|
|
142
148
|
type: "row",
|
|
143
|
-
|
|
149
|
+
horizontalSpacing: spacing
|
|
144
150
|
}), children);
|
|
145
151
|
};
|
|
146
152
|
|
|
@@ -1029,7 +1035,7 @@ var Input = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
1029
1035
|
|
|
1030
1036
|
var isClearIconVisible = clearable && value;
|
|
1031
1037
|
return /*#__PURE__*/React__default.createElement(FlexRow, {
|
|
1032
|
-
|
|
1038
|
+
spacing: "none",
|
|
1033
1039
|
"data-test-id": "input-component-container",
|
|
1034
1040
|
position: "relative"
|
|
1035
1041
|
}, /*#__PURE__*/React__default.createElement("span", {
|