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.
@@ -73,15 +73,6 @@ html {
73
73
  padding-right: 0;
74
74
  }
75
75
  }
76
- &.-items-start {
77
- align-items: start;
78
- }
79
- &.-items-center {
80
- align-items: center;
81
- }
82
- &.-items-end {
83
- align-items: end;
84
- }
85
76
  }
86
77
 
87
78
  .no-gutters {
@@ -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.itemsAlign ? "-items-".concat(props.itemsAlign) : '', "\n ").concat(props.withTrim && ' -withtrim', "\n ").concat(props.verticalAlign && " align-".concat(props.verticalAlign), "\n ").concat(props.horizontalAlign && " justify-content-".concat(props.horizontalAlign));
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
- itemsAlign = 'start',
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
- itemsAlign
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?: string;
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 };
@@ -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,
@@ -12,6 +12,7 @@ interface IDatePickerProps {
12
12
  setFocusOnSelect?: boolean;
13
13
  openOnFocus?: boolean;
14
14
  showCalendarInDialog?: boolean;
15
+ inputRef?: React.MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null>;
15
16
  dialogSize?: {
16
17
  width: string;
17
18
  height: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linear-react-components-ui",
3
- "version": "1.1.2-beta.20",
3
+ "version": "1.1.2-beta.22",
4
4
  "description": "Linear Sistemas ReactJs Components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.cjs",