linear-react-components-ui 1.1.2-beta.16 → 1.1.2-beta.18

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.
@@ -5,7 +5,6 @@
5
5
  .checkbox-component {
6
6
  > .inputcontent {
7
7
  display: flex;
8
- align-items: center;
9
8
  > .input {
10
9
  pointer-events: none;
11
10
  opacity: 0;
@@ -67,14 +66,16 @@
67
66
  > .description {
68
67
  @extend %input-label;
69
68
  cursor: pointer ;
69
+ flex: 1;
70
+ line-height: 18px;
71
+
72
+ > .hint {
73
+ @extend %hint-text;
74
+ margin-top: 0;
75
+ }
70
76
  }
71
77
  }
72
78
 
73
- > .hint {
74
- @extend %hint-text;
75
- margin-top: 0;
76
- padding-left: 22px;
77
- }
78
79
 
79
80
  > .errormessages {
80
81
  width: 100%;
@@ -65,8 +65,6 @@ html {
65
65
  display: flex;
66
66
  -ms-flex-wrap: wrap;
67
67
  flex-wrap: wrap;
68
- // margin-right: -15px;
69
- // margin-left: -15px;
70
68
  &.-withtrim {
71
69
  .grid-container:first-child {
72
70
  padding-left: 0;
@@ -75,6 +73,15 @@ html {
75
73
  padding-right: 0;
76
74
  }
77
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
+ }
78
85
  }
79
86
 
80
87
  .no-gutters {
@@ -5,6 +5,7 @@
5
5
  .input-base-component > .labelcontainer {
6
6
  margin: 0;
7
7
  padding: 0;
8
+ line-height: 14px;
8
9
  > .label {
9
10
  @extend %input-label;
10
11
  }
@@ -6,17 +6,25 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _withTooltip = _interopRequireDefault(require("../internals/withTooltip"));
9
+ var _hint = _interopRequireDefault(require("../hint"));
9
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
11
  const Label = _ref => {
11
12
  let {
12
13
  label,
13
- targetSpanRef
14
+ targetSpanRef,
15
+ disabled,
16
+ hint
14
17
  } = _ref;
15
18
  return /*#__PURE__*/_react.default.createElement("span", {
16
19
  className: "description",
17
20
  ref: r => {
18
21
  if (targetSpanRef) targetSpanRef(r);
19
22
  }
20
- }, label);
23
+ }, label, /*#__PURE__*/_react.default.createElement(_hint.default, {
24
+ disabled: disabled,
25
+ visible: !!hint,
26
+ description: hint,
27
+ customClass: "hint"
28
+ }));
21
29
  };
22
30
  var _default = exports.default = (0, _withTooltip.default)(Label);
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _Label = _interopRequireDefault(require("./Label"));
9
- var _hint = _interopRequireDefault(require("../hint"));
10
9
  var _gridlayout = _interopRequireDefault(require("../gridlayout"));
11
10
  var _permissionValidations = require("../permissionValidations");
12
11
  require("../assets/styles/checkbox.scss");
@@ -102,13 +101,10 @@ const CheckBox = _ref => {
102
101
  label: label,
103
102
  tooltip: tooltip,
104
103
  tooltipWidth: tooltipWidth,
105
- tooltipPosition: tooltipPosition
106
- })), /*#__PURE__*/_react.default.createElement(_hint.default, {
104
+ tooltipPosition: tooltipPosition,
107
105
  disabled: disabled,
108
- visible: !!hint,
109
- description: hint,
110
- customClass: "hint"
111
- }), /*#__PURE__*/_react.default.createElement(_errorMessage.ErrorMessage, {
106
+ hint: hint
107
+ })), /*#__PURE__*/_react.default.createElement(_errorMessage.ErrorMessage, {
112
108
  messages: errorMessages
113
109
  }));
114
110
  if (onDenied.unvisible) return null;
@@ -7,17 +7,25 @@ exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  require("../assets/styles/gridlayout.scss");
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- 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));
10
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
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
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
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));
11
16
  const GridRow = props => {
12
17
  const {
13
18
  style,
14
19
  children,
20
+ itemsAlign = 'start',
15
21
  visible = true
16
22
  } = props;
17
23
  if (!visible) return null;
18
24
  return /*#__PURE__*/_react.default.createElement("div", {
19
25
  style: style,
20
- className: getClass(props)
26
+ className: getClass(_objectSpread(_objectSpread({}, props), {}, {
27
+ itemsAlign
28
+ }))
21
29
  }, children);
22
30
  };
23
31
  var _default = exports.default = GridRow;
@@ -15,6 +15,7 @@ interface IGridRow {
15
15
  withTrim?: boolean;
16
16
  visible?: boolean;
17
17
  customClass?: string;
18
+ itemsAlign?: 'start' | 'center' | 'end';
18
19
  }
19
20
 
20
21
  export type { IGridCol, IGridRow };
@@ -1,5 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import { ErrorProps } from '../types.js';
3
+ import 'imask';
3
4
  import '../../@types/PermissionAttr.js';
4
5
  import '../../@types/DataCombo.js';
5
6
  import '../base/types.js';
@@ -1,5 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import { IInputHOCProps } from './types.js';
3
+ import 'imask';
3
4
  import '../@types/PermissionAttr.js';
4
5
  import '../@types/DataCombo.js';
5
6
  import './base/types.js';
@@ -1,5 +1,6 @@
1
1
  import { IBaseMaskProps } from './types.js';
2
2
  import 'react';
3
+ import 'imask';
3
4
  import '../../@types/Align.js';
4
5
  import '../../@types/PermissionAttr.js';
5
6
  import '../base/types.js';
@@ -1,5 +1,6 @@
1
1
  import { ICnpjFieldProps } from './types.js';
2
2
  import 'react';
3
+ import 'imask';
3
4
  import '../../@types/Align.js';
4
5
  import '../../@types/PermissionAttr.js';
5
6
  import '../base/types.js';
@@ -1,5 +1,6 @@
1
1
  import { ICpfProps } from './types.js';
2
2
  import 'react';
3
+ import 'imask';
3
4
  import '../../@types/Align.js';
4
5
  import '../../@types/PermissionAttr.js';
5
6
  import '../base/types.js';
@@ -1,5 +1,6 @@
1
1
  import { IPhoneFieldProps } from './types.js';
2
2
  import 'react';
3
+ import 'imask';
3
4
  import '../../@types/Align.js';
4
5
  import '../../@types/PermissionAttr.js';
5
6
  import '../base/types.js';
@@ -1,5 +1,6 @@
1
1
  import { IZipCode } from './types.js';
2
2
  import 'react';
3
+ import 'imask';
3
4
  import '../../@types/Align.js';
4
5
  import '../../@types/PermissionAttr.js';
5
6
  import '../base/types.js';
@@ -1,5 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import { IMaskHOCProps } from '../types.js';
3
+ import 'imask';
3
4
  import '../../@types/PermissionAttr.js';
4
5
  import '../../@types/DataCombo.js';
5
6
  import '../base/types.js';
@@ -5,6 +5,7 @@ export { default as PhoneField } from './Phone.js';
5
5
  export { default as ZipCodeField } from './ZipCode.js';
6
6
  import './types.js';
7
7
  import 'react';
8
+ import 'imask';
8
9
  import '../../@types/Align.js';
9
10
  import '../../@types/PermissionAttr.js';
10
11
  import '../base/types.js';
@@ -1,4 +1,5 @@
1
1
  import { KeyboardEvent, MutableRefObject } from 'react';
2
+ import IMask from 'imask';
2
3
  import { TextAlign } from '../../@types/Align.js';
3
4
  import { OnDenied, PermissionAttr } from '../../@types/PermissionAttr.js';
4
5
  import { CustomInputEvent } from '../base/types.js';
@@ -9,7 +10,7 @@ interface IBaseMaskProps {
9
10
  onBlur?: (e: CustomInputEvent) => void;
10
11
  onKeyDown?: (e: CustomInputEvent | KeyboardEvent<Element>) => void;
11
12
  defaultValue?: string;
12
- mask?: string | NumberConstructor;
13
+ mask?: IMask.AnyMask;
13
14
  isNumeric?: boolean;
14
15
  scale?: number;
15
16
  radix?: string;
@@ -47,6 +48,7 @@ interface IBaseMaskProps {
47
48
  returnFormattedValueOnKeyDown?: boolean;
48
49
  isDateField?: boolean;
49
50
  autoCompleteMask?: 'left' | 'right';
51
+ definitions?: IMask.AllMaskedOptions['definitions'];
50
52
  }
51
53
  interface ICnpjFieldProps extends IBaseMaskProps {
52
54
  value?: string;
@@ -5,6 +5,7 @@ import 'react';
5
5
  import '../../@types/Align.js';
6
6
  import '../../@types/Period.js';
7
7
  import '../types.js';
8
+ import 'imask';
8
9
  import '../../@types/DataCombo.js';
9
10
  import '../../drawer/types.js';
10
11
  import '../../@types/Position.js';
@@ -5,6 +5,7 @@ import 'react';
5
5
  import '../../@types/Align.js';
6
6
  import '../../@types/Period.js';
7
7
  import '../types.js';
8
+ import 'imask';
8
9
  import '../../@types/DataCombo.js';
9
10
  import '../../drawer/types.js';
10
11
  import '../../@types/Position.js';
@@ -5,6 +5,7 @@ import 'react';
5
5
  import '../../@types/Align.js';
6
6
  import '../../@types/Period.js';
7
7
  import '../types.js';
8
+ import 'imask';
8
9
  import '../../@types/DataCombo.js';
9
10
  import '../../drawer/types.js';
10
11
  import '../../@types/Position.js';
@@ -7,6 +7,7 @@ import 'react';
7
7
  import '../../@types/Align.js';
8
8
  import '../../@types/Period.js';
9
9
  import '../types.js';
10
+ import 'imask';
10
11
  import '../../@types/DataCombo.js';
11
12
  import '../../drawer/types.js';
12
13
  import '../../@types/Position.js';
@@ -4,6 +4,7 @@ import { IMaskHOCProps } from '../types.js';
4
4
  import 'react';
5
5
  import '../../@types/Align.js';
6
6
  import '../../@types/Period.js';
7
+ import 'imask';
7
8
  import '../../@types/DataCombo.js';
8
9
  import '../../drawer/types.js';
9
10
  import '../../@types/Position.js';
@@ -1,5 +1,6 @@
1
1
  import { ISearchProps } from '../types.js';
2
2
  import 'react';
3
+ import 'imask';
3
4
  import '../../@types/PermissionAttr.js';
4
5
  import '../../@types/DataCombo.js';
5
6
  import '../base/types.js';
@@ -1,5 +1,6 @@
1
1
  import { IActionButtonsSelectProps } from '../types.js';
2
2
  import 'react';
3
+ import 'imask';
3
4
  import '../../@types/PermissionAttr.js';
4
5
  import '../../@types/DataCombo.js';
5
6
  import '../base/types.js';
@@ -1,5 +1,6 @@
1
1
  import { IDropdownSelectProps } from '../types.js';
2
2
  import 'react';
3
+ import 'imask';
3
4
  import '../../@types/PermissionAttr.js';
4
5
  import '../../@types/DataCombo.js';
5
6
  import '../base/types.js';
@@ -1,6 +1,7 @@
1
1
  import { IDropdownSelectProps } from '../types.js';
2
2
  import { GetSimpleFilteredParams, GetMultipleFilteredParams } from './types.js';
3
3
  import 'react';
4
+ import 'imask';
4
5
  import '../../@types/PermissionAttr.js';
5
6
  import '../../@types/DataCombo.js';
6
7
  import '../base/types.js';
@@ -1,4 +1,5 @@
1
1
  import { ReactNode, MouseEvent, MutableRefObject, CSSProperties, KeyboardEvent, ReactElement } from 'react';
2
+ import IMask from 'imask';
2
3
  import { PermissionAttr, OnDenied } from '../@types/PermissionAttr.js';
3
4
  import { DataCombo } from '../@types/DataCombo.js';
4
5
  import { IBaseProps, CustomInputEvent } from './base/types.js';
@@ -62,7 +63,7 @@ interface IMaskHOCProps {
62
63
  inputRef?: MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
63
64
  placeholderChar?: string;
64
65
  lazy?: boolean;
65
- definitions?: object;
66
+ definitions?: IMask.AllMaskedOptions['definitions'];
66
67
  groups?: object;
67
68
  pattern?: string;
68
69
  format?: () => void;
@@ -97,7 +98,7 @@ interface IMaskHOCProps {
97
98
  rounded?: boolean;
98
99
  errorMessages?: string[];
99
100
  skeletonize?: boolean;
100
- mask?: string | NumberConstructor;
101
+ mask?: IMask.AnyMask;
101
102
  isDateField?: boolean;
102
103
  autoCompleteMask?: 'left' | 'right';
103
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linear-react-components-ui",
3
- "version": "1.1.2-beta.16",
3
+ "version": "1.1.2-beta.18",
4
4
  "description": "Linear Sistemas ReactJs Components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.cjs",