linear-react-components-ui 1.1.25-beta.2 → 1.1.25-beta.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.
@@ -106,14 +106,18 @@ input::-webkit-inner-spin-button {
106
106
  .input {
107
107
  @extend %input-placeholder;
108
108
  @extend %component-fonts;
109
- flex-grow: 1;
110
- max-width: 100%;
109
+ flex: 1;
110
+ height: 100%;
111
+ width: 100%;
111
112
  padding: 6px;
112
113
  font-size: 0.875rem;
113
114
  text-indent: 0.375rem;
114
115
  line-height: 0.875rem;
115
116
  border: none;
116
117
  background-color: transparent;
118
+ overflow: hidden;
119
+ text-overflow: ellipsis;
120
+ white-space: nowrap;
117
121
  &[data-state-text-align=left] {
118
122
  text-align: left;
119
123
  }
@@ -96,7 +96,7 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
96
96
  }
97
97
  }
98
98
  }
99
- .footer {
99
+ > .footer {
100
100
  bottom: 0px;
101
101
  background: #ffffff;
102
102
  padding: 10px 0 8px 8px;
@@ -3,7 +3,6 @@
3
3
  @import "effects.scss";
4
4
 
5
5
  .drawer-component {
6
- z-index: 1;
7
6
  position: fixed;
8
7
  overflow: auto;
9
8
  & .drawercontainer {
@@ -156,5 +155,4 @@
156
155
  width: 100%;
157
156
  top: 0;
158
157
  left: 0;
159
- z-index: 0;
160
158
  }
@@ -26,31 +26,32 @@ html {
26
26
  &.-withskeleton {
27
27
  margin-bottom: 10px;
28
28
  }
29
- }
30
29
 
31
- @media (min-width: 576px) {
32
- .container {
33
- max-width: 540px;
30
+ @media (min-width: 576px) {
31
+ >.container {
32
+ max-width: 540px;
33
+ }
34
34
  }
35
- }
36
-
37
- @media (min-width: 768px) {
38
- .container {
39
- max-width: 720px;
35
+
36
+ @media (min-width: 768px) {
37
+ >.container {
38
+ max-width: 720px;
39
+ }
40
40
  }
41
- }
42
-
43
- @media (min-width: 992px) {
44
- .container {
45
- max-width: 960px;
41
+
42
+ @media (min-width: 992px) {
43
+ >.container {
44
+ max-width: 960px;
45
+ }
46
46
  }
47
- }
48
-
49
- @media (min-width: 1200px) {
50
- .container {
51
- max-width: 1140px;
47
+
48
+ @media (min-width: 1200px) {
49
+ >.container {
50
+ max-width: 1140px;
51
+ }
52
52
  }
53
53
  }
54
+
54
55
  .container-fluid {
55
56
  width: 100%;
56
57
  padding-right: 15px;
@@ -116,14 +116,18 @@ input::-webkit-inner-spin-button {
116
116
  .input {
117
117
  @extend %input-placeholder;
118
118
  @extend %component-fonts;
119
- flex-grow: 1;
120
- max-width: 100%;
119
+ flex: 1;
120
+ width: 100%;
121
+ height: 100%;
121
122
  padding: 6px;
122
123
  font-size: 0.875rem;
123
124
  text-indent: 0.375rem;
124
125
  line-height: 0.875rem;
125
126
  border: none;
126
127
  background-color: transparent;
128
+ overflow: hidden;
129
+ text-overflow: ellipsis;
130
+ white-space: nowrap;
127
131
  &[data-state-text-align=left] {
128
132
  text-align: left;
129
133
  }
@@ -108,14 +108,18 @@ input[type="number"] {
108
108
  .input {
109
109
  @extend %input-placeholder;
110
110
  @extend %component-fonts;
111
- flex-grow: 1;
112
- max-width: 100%;
111
+ flex: 1;
112
+ height: 100%;
113
+ width: 100%;
113
114
  padding: 6px;
114
115
  font-size: 0.875rem;
115
116
  text-indent: 0.375rem;
116
117
  line-height: 0.875rem;
117
118
  border: none;
118
119
  background-color: transparent;
120
+ overflow: hidden;
121
+ text-overflow: ellipsis;
122
+ white-space: nowrap;
119
123
  &[data-state-text-align="left"] {
120
124
  text-align: left;
121
125
  }
@@ -82,6 +82,7 @@ const BaseDrawer = _ref => {
82
82
  const drawerOverlay = document.createElement('div');
83
83
  drawerOverlay.className = 'drawer-overlay';
84
84
  drawerOverlay.id = id;
85
+ drawerOverlay.inert = false;
85
86
  drawerOverlay.dataset.testid = 'drawer-overlay';
86
87
  body.appendChild(drawerOverlay);
87
88
  };
@@ -100,10 +101,8 @@ const BaseDrawer = _ref => {
100
101
  } else {
101
102
  body = document.getElementById(targetId);
102
103
  }
104
+ if (overlay && body) setDrawerOverlay(body, overlayId);
103
105
  if (body) setDrawerComponent(body, randomId);
104
- if (overlay && body) {
105
- setDrawerOverlay(body, overlayId);
106
- }
107
106
  return () => {
108
107
  const drawerOverlay = document.getElementById(overlayId);
109
108
  if (closeOnEsc) document.body.removeEventListener('keydown', closeDrawerOnEsc);
@@ -16,10 +16,10 @@ Object.defineProperty(exports, "DrawerHeader", {
16
16
  }
17
17
  });
18
18
  exports.default = void 0;
19
+ require("../assets/styles/drawers.scss");
19
20
  var _Drawer = _interopRequireDefault(require("./Drawer"));
20
21
  var _Header = _interopRequireDefault(require("./Header"));
21
22
  var _Content = _interopRequireDefault(require("./Content"));
22
- require("../assets/styles/drawers.scss");
23
23
  var _withFormSecurity = _interopRequireDefault(require("../form/withFormSecurity"));
24
24
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
25
25
  var _default = exports.default = (0, _withFormSecurity.default)(_Drawer.default);
@@ -651,6 +651,18 @@ declare const _default: {
651
651
  viewbox: string;
652
652
  paths: string[];
653
653
  };
654
+ perdaConsumoInterno: {
655
+ viewbox: string;
656
+ paths: string[];
657
+ };
658
+ inventario: {
659
+ viewbox: string;
660
+ paths: string[];
661
+ };
662
+ trocaFornecedor: {
663
+ viewbox: string;
664
+ paths: string[];
665
+ };
654
666
  };
655
667
 
656
668
  export { _default as default };
@@ -656,5 +656,17 @@ var _default = exports.default = {
656
656
  minus: {
657
657
  viewbox: '0 0 16 16',
658
658
  paths: ['M0 5h16v6h-16z']
659
+ },
660
+ perdaConsumoInterno: {
661
+ viewbox: '0 0 16 16',
662
+ paths: ['M6 7.25c0 0.412-0.338 0.75-0.75 0.75h-1.5c-0.413 0-0.75-0.338-0.75-0.75v-1.5c0-0.412 0.337-0.75 0.75-0.75h1.5c0.412 0 0.75 0.338 0.75 0.75v1.5z', 'M11 7.25c0 0.412-0.338 0.75-0.75 0.75h-1.5c-0.412 0-0.75-0.338-0.75-0.75v-1.5c0-0.412 0.338-0.75 0.75-0.75h1.5c0.412 0 0.75 0.338 0.75 0.75v1.5z', 'M6 12.25c0 0.412-0.338 0.75-0.75 0.75h-1.5c-0.413 0-0.75-0.338-0.75-0.75v-1.5c0-0.412 0.337-0.75 0.75-0.75h1.5c0.412 0 0.75 0.338 0.75 0.75v1.5z', 'M14.251 2.5l1.749-1.749v-0.751h-0.751l-1.749 1.749-1.749-1.749h-0.751v0.751l1.749 1.749-1.749 1.749v0.751h0.751l1.749-1.749 1.749 1.749h0.751v-0.751z', 'M0 12h1v2h-1v-2z', 'M0 9h1v2h-1v-2z', 'M13 7h1v2h-1v-2z', 'M13 13h1v2h-1v-2z', 'M13 10h1v2h-1v-2z', 'M0 6h1v2h-1v-2z', 'M0 3h1v2h-1v-2z', 'M8 2h2v1h-2v-1z', 'M5 2h2v1h-2v-1z', 'M2 2h2v1h-2v-1z', 'M7 15h2v1h-2v-1z', 'M10 15h2v1h-2v-1z', 'M4 15h2v1h-2v-1z', 'M1 15h2v1h-2v-1z']
663
+ },
664
+ inventario: {
665
+ viewbox: '0 0 16 16',
666
+ paths: ['M11 4v-4h-11v11h4v5h12v-12h-5zM10 6.125h-4v-0.125h4v0.125zM10 10h-4v-0.125h4v0.125zM10 9.625h-4v-0.25h4v0.25zM10 9.125h-4v-0.25h4v0.25zM10 8.625h-4v-0.25h4v0.25zM10 8.125h-4v-0.25h4v0.25zM10 7.625h-4v-0.25h4v0.25zM10 7.125h-4v-0.25h4v0.25zM10 6.625h-4v-0.25h4v0.25zM4 10h-3v-9h9v3h-6v6zM15 15h-10v-3h7v-7h3v10z']
667
+ },
668
+ trocaFornecedor: {
669
+ viewbox: '0 0 16 16',
670
+ paths: ['M11 8v6h1v-6h2.5l-3-3-3 3z', 'M1 3h1.5v1h-1.5v-1z', 'M3 3h1.5v1h-1.5v-1z', 'M5 3h1v1.5h-1v-1.5z', 'M1 6.5h1v1.5h-1v-1.5z', 'M2.5 7h1.5v1h-1.5v-1z', 'M4.5 7h1.5v1h-1.5v-1z', 'M1 4.5h1v1.5h-1v-1.5z', 'M5 5h1v1.5h-1v-1.5z', 'M5 11v3h-3v-3h3zM6 10h-5v5h5v-5z']
659
671
  }
660
672
  };
@@ -285,12 +285,9 @@ const DatePicker = props => {
285
285
  onInputFocus(e);
286
286
  },
287
287
  onChange: (e, date) => {
288
- onInputChange(e, date);
289
- },
290
- inputRef: el => {
291
- inputDateRef.current = el;
292
- if (inputRefProp) inputRefProp.current = el;
288
+ if (date) onInputChange(e, date);
293
289
  },
290
+ inputRef: inputRefProp,
294
291
  rightElements: getButtonOpen(),
295
292
  required: required,
296
293
  handlerSetOnDenied: () => setOnDenied(onDenied)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linear-react-components-ui",
3
- "version": "1.1.25-beta.2",
3
+ "version": "1.1.25-beta.3",
4
4
  "description": "Linear Sistemas ReactJs Components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.cjs",