linear-react-components-ui 1.1.2-beta.20 → 1.1.2-beta.22
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.
|
@@ -12,19 +12,19 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
12
12
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
14
14
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
|
-
const getClass = props => "row ".concat(props.customClass, "\n ").concat(props.
|
|
15
|
+
const getClass = props => "row ".concat(props.customClass, "\n ").concat(props.withTrim && ' -withtrim', "\n ").concat(props.verticalAlign && " align-".concat(props.verticalAlign), "\n ").concat(props.horizontalAlign && " justify-content-".concat(props.horizontalAlign));
|
|
16
16
|
const GridRow = props => {
|
|
17
17
|
const {
|
|
18
18
|
style,
|
|
19
19
|
children,
|
|
20
|
-
|
|
20
|
+
verticalAlign = 'start',
|
|
21
21
|
visible = true
|
|
22
22
|
} = props;
|
|
23
23
|
if (!visible) return null;
|
|
24
24
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
25
25
|
style: style,
|
|
26
26
|
className: getClass(_objectSpread(_objectSpread({}, props), {}, {
|
|
27
|
-
|
|
27
|
+
verticalAlign
|
|
28
28
|
}))
|
|
29
29
|
}, children);
|
|
30
30
|
};
|
|
@@ -9,13 +9,12 @@ interface IGridCol {
|
|
|
9
9
|
}
|
|
10
10
|
interface IGridRow {
|
|
11
11
|
children: ReactNode | ReactNode[];
|
|
12
|
-
verticalAlign?:
|
|
12
|
+
verticalAlign?: 'start' | 'center' | 'end' | 'baseline' | 'stretch';
|
|
13
13
|
horizontalAlign?: string;
|
|
14
14
|
style?: CSSProperties;
|
|
15
15
|
withTrim?: boolean;
|
|
16
16
|
visible?: boolean;
|
|
17
17
|
customClass?: string;
|
|
18
|
-
itemsAlign?: 'start' | 'center' | 'end';
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
export type { IGridCol, IGridRow };
|
package/lib/inputs/date/index.js
CHANGED
|
@@ -32,6 +32,7 @@ const DatePicker = props => {
|
|
|
32
32
|
required = false,
|
|
33
33
|
value = '',
|
|
34
34
|
name = '',
|
|
35
|
+
inputRef: inputRefProp,
|
|
35
36
|
dialogSize = {
|
|
36
37
|
width: '350px',
|
|
37
38
|
height: '350px'
|
|
@@ -233,6 +234,7 @@ const DatePicker = props => {
|
|
|
233
234
|
},
|
|
234
235
|
inputRef: el => {
|
|
235
236
|
inputRef.current = el;
|
|
237
|
+
if (inputRefProp) inputRefProp.current = el;
|
|
236
238
|
},
|
|
237
239
|
rightElements: getButtonOpen(),
|
|
238
240
|
required: required,
|