linear-react-components-ui 1.1.22-beta.7 → 1.1.22-beta.9
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/lib/assets/styles/button.scss +56 -29
- package/lib/assets/styles/floatMenu.scss +1 -3
- package/lib/assets/styles/select.scss +15 -19
- package/lib/assets/styles/sidenav.scss +4 -3
- package/lib/assets/styles/tabs.scss +8 -0
- package/lib/assets/styles/wizard.scss +2 -2
- package/lib/buttons/Button.js +2 -2
- package/lib/buttons/CancelButton.js +2 -2
- package/lib/buttons/DangerButton.js +2 -2
- package/lib/buttons/DefaultButton.js +12 -13
- package/lib/buttons/DestroyButton.d.ts +1 -1
- package/lib/buttons/DestroyButton.js +2 -7
- package/lib/buttons/InfoButton.js +2 -2
- package/lib/buttons/PrimaryButton.js +2 -2
- package/lib/buttons/SaveButton.js +2 -2
- package/lib/buttons/SuccessButton.js +2 -2
- package/lib/buttons/WarningButton.js +2 -2
- package/lib/buttons/split_button/index.d.ts +2 -2
- package/lib/buttons/split_button/index.js +18 -12
- package/lib/buttons/types.d.ts +5 -2
- package/lib/calendar/DangerCalendar.d.ts +1 -1
- package/lib/calendar/DangerCalendar.js +2 -7
- package/lib/calendar/InfoCalendar.d.ts +1 -1
- package/lib/calendar/InfoCalendar.js +2 -7
- package/lib/calendar/PrimaryCalendar.d.ts +1 -1
- package/lib/calendar/PrimaryCalendar.js +2 -7
- package/lib/calendar/SuccessCalendar.d.ts +1 -1
- package/lib/calendar/SuccessCalendar.js +2 -7
- package/lib/calendar/WarningCalendar.d.ts +1 -1
- package/lib/calendar/WarningCalendar.js +2 -7
- package/lib/calendar/base/index.js +1 -1
- package/lib/dialog/Question.js +1 -1
- package/lib/dialog/base/index.js +1 -1
- package/lib/dialog/wizard/index.js +2 -2
- package/lib/drawer/Drawer.js +2 -2
- package/lib/dropdown/Popup.js +2 -2
- package/lib/form/Field.js +3 -9
- package/lib/form/FieldArray.js +3 -15
- package/lib/icons/index.js +23 -21
- package/lib/inputs/base/InputTextBase.js +0 -1
- package/lib/inputs/base/types.d.ts +1 -0
- package/lib/inputs/file/File.js +2 -2
- package/lib/inputs/mask/BaseMask.js +2 -2
- package/lib/inputs/mask/helpers.js +3 -2
- package/lib/inputs/multiSelect/index.js +0 -1
- package/lib/inputs/number/BaseNumber.js +2 -2
- package/lib/inputs/number/Currency.js +2 -2
- package/lib/inputs/search/index.js +2 -2
- package/lib/inputs/select/Dropdown.js +1 -1
- package/lib/inputs/select/index.js +2 -2
- package/lib/inputs/select/multiple/Selecteds.d.ts +1 -1
- package/lib/inputs/select/multiple/Selecteds.js +1 -3
- package/lib/inputs/select/multiple/index.js +7 -6
- package/lib/inputs/select/simple/index.js +5 -2
- package/lib/inputs/select/types.d.ts +0 -1
- package/lib/internals/constants.d.ts +4 -1
- package/lib/internals/constants.js +4 -1
- package/lib/labels/DangerLabel.d.ts +1 -1
- package/lib/labels/DangerLabel.js +2 -7
- package/lib/labels/InfoLabel.d.ts +1 -1
- package/lib/labels/InfoLabel.js +2 -7
- package/lib/labels/PrimaryLabel.d.ts +1 -1
- package/lib/labels/PrimaryLabel.js +2 -7
- package/lib/labels/SuccessLabel.d.ts +1 -1
- package/lib/labels/SuccessLabel.js +2 -7
- package/lib/labels/WarningLabel.d.ts +1 -1
- package/lib/labels/WarningLabel.js +2 -7
- package/lib/menus/sidenav/NavMenuItem.js +16 -20
- package/lib/panel/Content.js +2 -2
- package/lib/panel/Default.js +2 -2
- package/lib/panel/Header.js +3 -5
- package/lib/popover/index.js +2 -2
- package/lib/spinner/SpinnerLoading.js +1 -0
- package/lib/spinner/types.d.ts +2 -2
- package/lib/table/index.js +4 -10
- package/lib/tabs/Menu.js +2 -2
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tabs/index.js +3 -4
- package/lib/tabs/tabHelpers.js +2 -7
- package/lib/tabs/types.d.ts +1 -1
- package/lib/textContent/index.js +3 -7
- package/lib/toolbar/ButtonBar.js +2 -2
- package/lib/toolbar/LabelBar.js +2 -2
- package/lib/toolbar/index.js +2 -2
- package/lib/toolbar/types.d.ts +1 -1
- package/lib/treetable/Row.js +2 -2
- package/lib/treeview/Node.js +2 -2
- package/package.json +1 -1
- package/lib/checkbox/Label.js +0 -31
- package/lib/inputs/mask/imaskHOC.js +0 -205
- package/lib/menus/sidenav/popup_menu_help/index.js +0 -85
- package/lib/tabs/DropdownItems.js +0 -62
- package/lib/tabs/MenuItems.js +0 -70
- package/lib/treeview_old/Header.js +0 -29
- package/lib/treeview_old/Node.js +0 -68
- package/lib/treeview_old/index.js +0 -43
|
@@ -18,8 +18,12 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
18
18
|
font-family: 'Titillium Web';
|
|
19
19
|
position: relative;
|
|
20
20
|
cursor: pointer;
|
|
21
|
-
display:
|
|
22
|
-
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: 6px;
|
|
24
|
+
line-height: 1;
|
|
25
|
+
padding: 0.5rem 0.8rem;
|
|
26
|
+
box-sizing: border-box;
|
|
23
27
|
letter-spacing: normal;
|
|
24
28
|
border-width: 0;
|
|
25
29
|
border: 1px solid $default-border-color;
|
|
@@ -29,7 +33,6 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
29
33
|
background-color: $default-color;
|
|
30
34
|
color: $font-color-soft;
|
|
31
35
|
line-height: 1;
|
|
32
|
-
text-align: center;
|
|
33
36
|
transition: background-color .3s;
|
|
34
37
|
transition: all 0.2s ease-in-out;
|
|
35
38
|
box-shadow: $shadow-button-default;
|
|
@@ -47,21 +50,46 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
47
50
|
width: 0;
|
|
48
51
|
height: 0 !important;
|
|
49
52
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
&:has(.spinnercontainer) {
|
|
54
|
+
> .button-container:has(svg) {
|
|
55
|
+
> .button-content {
|
|
56
|
+
margin-right: auto;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
&.icon-left .button-container {
|
|
61
|
+
.icon-component {
|
|
62
|
+
margin-right: auto;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
> .button-container {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
flex: 1;
|
|
69
|
+
gap: 6px;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
font-family: inherit;
|
|
72
|
+
font-weight: inherit;
|
|
73
|
+
font-size: inherit;
|
|
74
|
+
> .button-content {
|
|
75
|
+
font-family: inherit;
|
|
76
|
+
font-weight: inherit;
|
|
77
|
+
font-size: inherit;
|
|
78
|
+
}
|
|
79
|
+
> .icon-component {
|
|
80
|
+
width: 15px;
|
|
81
|
+
height: 15px;
|
|
82
|
+
}
|
|
54
83
|
}
|
|
55
84
|
> .spinnercontainer {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
85
|
+
width: 15px;
|
|
86
|
+
height: 15px;
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
margin-left: auto;
|
|
59
91
|
> .spinnerloading {
|
|
60
|
-
|
|
61
|
-
float: right;
|
|
62
|
-
margin-top: -15px;
|
|
63
|
-
margin-bottom: -20px;
|
|
64
|
-
margin-right: -20px;
|
|
92
|
+
scale: 2.5;
|
|
65
93
|
}
|
|
66
94
|
}
|
|
67
95
|
&.-pointerEventsRemove {
|
|
@@ -281,37 +309,36 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
281
309
|
}
|
|
282
310
|
}
|
|
283
311
|
|
|
312
|
+
.split-button-component {
|
|
313
|
+
display: flex;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.btn-container {
|
|
317
|
+
gap: 10px;
|
|
318
|
+
}
|
|
319
|
+
|
|
284
320
|
.btn-container,
|
|
285
321
|
.toolbar-group {
|
|
286
|
-
|
|
322
|
+
display: flex;
|
|
323
|
+
flex-wrap: wrap;
|
|
287
324
|
> .button-component {
|
|
288
|
-
margin-right: 10px;
|
|
289
325
|
line-height: 15px;
|
|
290
326
|
}
|
|
291
|
-
> .button-component:last-child {
|
|
292
|
-
margin-right: 1px;
|
|
293
|
-
}
|
|
294
327
|
}
|
|
295
328
|
|
|
296
329
|
.button-component {
|
|
297
330
|
&.-primary .dropdown-icon,
|
|
298
331
|
&.-success .dropdown-icon,
|
|
299
332
|
&.-info .dropdown-icon,
|
|
300
|
-
&.-
|
|
333
|
+
&.-warning .dropdown-icon,
|
|
301
334
|
&.-danger .dropdown-icon {
|
|
302
335
|
fill: #FFF;
|
|
303
336
|
}
|
|
304
|
-
.dropdown-icon {
|
|
305
|
-
margin-left: 7px;
|
|
306
|
-
margin-right: -10px;
|
|
307
|
-
}
|
|
308
337
|
&.icon-right .icon-component {
|
|
309
|
-
|
|
310
|
-
margin: 1px 0 0 6px;
|
|
338
|
+
justify-self: right;
|
|
311
339
|
}
|
|
312
340
|
&.icon-left .icon-component {
|
|
313
|
-
|
|
314
|
-
margin: 1px 6px 0 0;
|
|
341
|
+
justify-self: left;
|
|
315
342
|
}
|
|
316
343
|
&.icon-top .icon-component {
|
|
317
344
|
margin-top: 0px;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
@import "commons.scss";
|
|
3
3
|
@import "effects.scss";
|
|
4
4
|
.floatmenu-component {
|
|
5
|
-
width: 100%;
|
|
6
5
|
display: flex;
|
|
7
6
|
justify-content: center;
|
|
8
7
|
>.buttonfloat {
|
|
@@ -10,8 +9,7 @@
|
|
|
10
9
|
width: 100%;
|
|
11
10
|
text-align: center;
|
|
12
11
|
>.icon-component {
|
|
13
|
-
|
|
14
|
-
margin-right: 2px;
|
|
12
|
+
margin: 0;
|
|
15
13
|
}
|
|
16
14
|
}
|
|
17
15
|
}
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.selectwrapper
|
|
26
|
+
.selectwrapper>.multiselect {
|
|
27
27
|
flex-wrap: wrap;
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
>.textinput {
|
|
30
30
|
order: 1;
|
|
31
31
|
display: inline-block;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
>.selecteditem {
|
|
35
35
|
background-color: #f2f9fc;
|
|
36
36
|
border: 1px solid #c9e6f2;
|
|
37
37
|
border-radius: 3px;
|
|
@@ -44,18 +44,14 @@
|
|
|
44
44
|
float: left;
|
|
45
45
|
margin: 2px;
|
|
46
46
|
padding: 0px 8px 0px 5px;
|
|
47
|
-
|
|
48
|
-
@extend %component-disabled;
|
|
49
|
-
opacity: 0.7;
|
|
50
|
-
border: solid 1px $font-color-disabled;
|
|
51
|
-
}
|
|
47
|
+
|
|
52
48
|
.close {
|
|
53
49
|
all: unset;
|
|
54
50
|
}
|
|
55
51
|
}
|
|
56
52
|
}
|
|
57
53
|
|
|
58
|
-
.selectwrapper
|
|
54
|
+
.selectwrapper>.multiselect>.selecteditem>.close {
|
|
59
55
|
cursor: pointer;
|
|
60
56
|
|
|
61
57
|
&:after {
|
|
@@ -67,9 +63,9 @@
|
|
|
67
63
|
}
|
|
68
64
|
}
|
|
69
65
|
|
|
70
|
-
.dropdown-component
|
|
66
|
+
.dropdown-component>.select-dropdown {
|
|
71
67
|
animation: 0.5s ease-in 0s 1 slideDown;
|
|
72
|
-
background-color: #
|
|
68
|
+
background-color: #FFF;
|
|
73
69
|
border: $component-border-color;
|
|
74
70
|
@extend %component-menu-dropdown;
|
|
75
71
|
display: grid;
|
|
@@ -79,7 +75,7 @@
|
|
|
79
75
|
overflow-x: hidden;
|
|
80
76
|
margin-top: 2px;
|
|
81
77
|
|
|
82
|
-
|
|
78
|
+
>.filtercontainer {
|
|
83
79
|
display: grid;
|
|
84
80
|
grid-template-columns: 1fr 20px;
|
|
85
81
|
align-items: center;
|
|
@@ -87,7 +83,7 @@
|
|
|
87
83
|
margin: 4px;
|
|
88
84
|
}
|
|
89
85
|
|
|
90
|
-
|
|
86
|
+
>.filtercontainer>.filterinput {
|
|
91
87
|
border: 0;
|
|
92
88
|
width: 100%;
|
|
93
89
|
font-size: 13px;
|
|
@@ -95,7 +91,7 @@
|
|
|
95
91
|
padding: 10px 5px;
|
|
96
92
|
}
|
|
97
93
|
|
|
98
|
-
|
|
94
|
+
>.item {
|
|
99
95
|
margin: 0;
|
|
100
96
|
padding: 6px 10px;
|
|
101
97
|
display: flex;
|
|
@@ -136,21 +132,21 @@
|
|
|
136
132
|
display: flex;
|
|
137
133
|
justify-content: space-between;
|
|
138
134
|
align-items: center;
|
|
139
|
-
width: 100
|
|
135
|
+
width: 100%
|
|
140
136
|
}
|
|
141
137
|
|
|
142
138
|
.menubutton {
|
|
143
|
-
|
|
139
|
+
>.label {
|
|
144
140
|
flex-grow: 1;
|
|
145
141
|
}
|
|
146
142
|
|
|
147
|
-
|
|
148
|
-
margin-right: 5px
|
|
143
|
+
>.menuicon {
|
|
144
|
+
margin-right: 5px
|
|
149
145
|
}
|
|
150
146
|
}
|
|
151
147
|
}
|
|
152
148
|
|
|
153
|
-
|
|
149
|
+
>.notfound {
|
|
154
150
|
text-indent: 10px;
|
|
155
151
|
color: graytext;
|
|
156
152
|
font-style: italic;
|
|
@@ -260,7 +260,7 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
260
260
|
background-color: #eee;
|
|
261
261
|
height: auto;
|
|
262
262
|
width: auto;
|
|
263
|
-
float: right;
|
|
263
|
+
// float: right;
|
|
264
264
|
padding: 10px 20px 20px;
|
|
265
265
|
position: absolute;
|
|
266
266
|
-webkit-box-shadow: 3px 1px 6px 0px rgba(50, 50, 50, 0.35);
|
|
@@ -349,8 +349,9 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
349
349
|
|
|
350
350
|
> .closebutton {
|
|
351
351
|
cursor: pointer;
|
|
352
|
-
|
|
353
|
-
|
|
352
|
+
position: absolute;
|
|
353
|
+
right: -13px;
|
|
354
|
+
top: -2px;
|
|
354
355
|
}
|
|
355
356
|
}
|
|
356
357
|
|
|
@@ -88,7 +88,15 @@ $dropdown-width: 38px;
|
|
|
88
88
|
border: 0;
|
|
89
89
|
width: 100%;
|
|
90
90
|
text-align: left;
|
|
91
|
+
justify-content: flex-start;
|
|
91
92
|
box-shadow: none !important;
|
|
93
|
+
|
|
94
|
+
.button-container {
|
|
95
|
+
justify-content: flex-start;
|
|
96
|
+
> svg {
|
|
97
|
+
margin-right: 10px;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
92
100
|
}
|
|
93
101
|
|
|
94
102
|
.menu>.menuitem>.closepanel {
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
> .step-title {
|
|
65
|
+
max-width: 150px;
|
|
65
66
|
overflow: hidden;
|
|
66
67
|
font-weight: 500;
|
|
67
68
|
color: $font-color-soft;
|
|
@@ -108,8 +109,7 @@
|
|
|
108
109
|
right: 45px;
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
|
-
&::after,
|
|
112
|
-
&::before {
|
|
112
|
+
&::after, &::before {
|
|
113
113
|
content: "";
|
|
114
114
|
position: absolute;
|
|
115
115
|
height: 2px;
|
package/lib/buttons/Button.js
CHANGED
|
@@ -11,8 +11,8 @@ const _excluded = ["split"];
|
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
15
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
14
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
15
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
16
16
|
const Button = _ref => {
|
|
17
17
|
let {
|
|
18
18
|
split = false
|
|
@@ -9,8 +9,8 @@ var _Button = _interopRequireDefault(require("./Button"));
|
|
|
9
9
|
const _excluded = ["customClass"];
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
12
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
13
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
12
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
13
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
14
14
|
const CancelButton = _ref => {
|
|
15
15
|
let {
|
|
16
16
|
customClass
|
|
@@ -9,8 +9,8 @@ var _Button = _interopRequireDefault(require("./Button"));
|
|
|
9
9
|
const _excluded = ["customClass"];
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
12
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
13
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
12
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
13
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
14
14
|
const DangerButton = _ref => {
|
|
15
15
|
let {
|
|
16
16
|
customClass
|
|
@@ -11,7 +11,7 @@ var _withTooltip = _interopRequireWildcard(require("../internals/withTooltip"));
|
|
|
11
11
|
var _spinner = _interopRequireDefault(require("../spinner"));
|
|
12
12
|
var _withDropdown = _interopRequireDefault(require("../dropdown/withDropdown"));
|
|
13
13
|
var _permissionValidations = require("../permissionValidations");
|
|
14
|
-
const _excluded = ["dropdown", "onClick", "disabled", "iconName", "icon", "targetRef", "tabIndex", "isLoading", "label", "showDropdown", "getDropdownPopup", "isDropdownOpened", "showIconDropdown", "content", "style", "toggleable", "activeIconColor", "iconStyle", "visible", "customClass", "className", "size", "iconAlign", "boxShadow", "transparent", "round", "permissionAttr", "skeletonize", "
|
|
14
|
+
const _excluded = ["dropdown", "onClick", "disabled", "iconName", "icon", "targetRef", "tabIndex", "isLoading", "label", "showDropdown", "getDropdownPopup", "isDropdownOpened", "showIconDropdown", "content", "style", "toggleable", "activeIconColor", "iconStyle", "visible", "customClass", "className", "size", "iconAlign", "boxShadow", "transparent", "round", "permissionAttr", "skeletonize", "buttonRef", "onDeniedText"];
|
|
15
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -21,8 +21,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
21
21
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
22
22
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
23
23
|
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); }
|
|
24
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
25
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
24
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
25
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
26
26
|
const DefaultButton = _ref => {
|
|
27
27
|
let {
|
|
28
28
|
dropdown,
|
|
@@ -53,16 +53,8 @@ const DefaultButton = _ref => {
|
|
|
53
53
|
round,
|
|
54
54
|
permissionAttr,
|
|
55
55
|
skeletonize,
|
|
56
|
-
errorMessage,
|
|
57
|
-
isFloatMenu,
|
|
58
|
-
dropdownAlign,
|
|
59
|
-
customClassForDropdown,
|
|
60
56
|
buttonRef,
|
|
61
|
-
|
|
62
|
-
onDeniedText = 'Permissão Negada! Consulte o Administrador do sistema.',
|
|
63
|
-
tooltip,
|
|
64
|
-
tooltipWidth,
|
|
65
|
-
tooltipPosition
|
|
57
|
+
onDeniedText = 'Permissão Negada! Consulte o Administrador do sistema.'
|
|
66
58
|
} = _ref,
|
|
67
59
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
68
60
|
const options = [_permissionValidations.OPTIONS_ON_DENIED.disabled, _permissionValidations.OPTIONS_ON_DENIED.unvisible];
|
|
@@ -169,7 +161,14 @@ const DefaultButton = _ref => {
|
|
|
169
161
|
refButton.current = r;
|
|
170
162
|
},
|
|
171
163
|
tabIndex: isDisabled ? -1 : tabIndex
|
|
172
|
-
}),
|
|
164
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
165
|
+
className: "button-container",
|
|
166
|
+
style: {
|
|
167
|
+
pointerEvents: 'none'
|
|
168
|
+
}
|
|
169
|
+
}, !dropdown && getIcon(), content || label && /*#__PURE__*/_react.default.createElement("div", {
|
|
170
|
+
className: "button-content"
|
|
171
|
+
}, content, label || ''), dropdown && getIcon()), isLoading && /*#__PURE__*/_react.default.createElement("div", {
|
|
173
172
|
className: "spinnercontainer"
|
|
174
173
|
}, /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
175
174
|
align: "none",
|
|
@@ -6,6 +6,6 @@ import '../@types/Size.js';
|
|
|
6
6
|
import '../@types/Icon.js';
|
|
7
7
|
import '../icons/helper.js';
|
|
8
8
|
|
|
9
|
-
declare const DestroyButton: ({
|
|
9
|
+
declare const DestroyButton: ({ ...rest }: IButtonProps) => JSX.Element;
|
|
10
10
|
|
|
11
11
|
export { DestroyButton as default };
|
|
@@ -7,16 +7,11 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _DangerButton = _interopRequireDefault(require("./DangerButton"));
|
|
9
9
|
var _icons = _interopRequireDefault(require("../icons"));
|
|
10
|
-
const _excluded = ["icon"];
|
|
11
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
11
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
13
|
-
function
|
|
14
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
12
|
+
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
15
13
|
const DestroyButton = _ref => {
|
|
16
|
-
let {
|
|
17
|
-
icon
|
|
18
|
-
} = _ref,
|
|
19
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
14
|
+
let rest = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
20
15
|
return /*#__PURE__*/_react.default.createElement(_DangerButton.default, _extends({}, rest, {
|
|
21
16
|
icon: /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
22
17
|
name: "bin",
|
|
@@ -9,8 +9,8 @@ var _Button = _interopRequireDefault(require("./Button"));
|
|
|
9
9
|
const _excluded = ["customClass"];
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
12
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
13
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
12
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
13
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
14
14
|
const InfoButton = _ref => {
|
|
15
15
|
let {
|
|
16
16
|
customClass
|
|
@@ -9,8 +9,8 @@ var _Button = _interopRequireDefault(require("./Button"));
|
|
|
9
9
|
const _excluded = ["customClass"];
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
12
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
13
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
12
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
13
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
14
14
|
const PrimaryButton = _ref => {
|
|
15
15
|
let {
|
|
16
16
|
customClass
|
|
@@ -9,8 +9,8 @@ var _PrimaryButton = _interopRequireDefault(require("./PrimaryButton"));
|
|
|
9
9
|
const _excluded = ["customClass"];
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
12
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
13
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
12
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
13
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
14
14
|
const SaveButton = _ref => {
|
|
15
15
|
let {
|
|
16
16
|
customClass
|
|
@@ -9,8 +9,8 @@ var _Button = _interopRequireDefault(require("./Button"));
|
|
|
9
9
|
const _excluded = ["customClass"];
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
12
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
13
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
12
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
13
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
14
14
|
const SuccessButton = _ref => {
|
|
15
15
|
let {
|
|
16
16
|
customClass
|
|
@@ -9,8 +9,8 @@ var _Button = _interopRequireDefault(require("./Button"));
|
|
|
9
9
|
const _excluded = ["customClass"];
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
12
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
13
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
12
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
13
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
14
14
|
const WarningButton = _ref => {
|
|
15
15
|
let {
|
|
16
16
|
customClass
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISplitButtonProps } from '../types.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../../@types/PermissionAttr.js';
|
|
4
4
|
import '../../@types/Position.js';
|
|
@@ -6,6 +6,6 @@ import '../../@types/Size.js';
|
|
|
6
6
|
import '../../@types/Icon.js';
|
|
7
7
|
import '../../icons/helper.js';
|
|
8
8
|
|
|
9
|
-
declare const SplitButton: (props:
|
|
9
|
+
declare const SplitButton: (props: ISplitButtonProps) => JSX.Element;
|
|
10
10
|
|
|
11
11
|
export { SplitButton as default };
|
|
@@ -6,12 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _DefaultButton = _interopRequireDefault(require("../DefaultButton"));
|
|
9
|
+
var _icons = _interopRequireDefault(require("../../icons"));
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
11
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
11
12
|
const SplitButton = props => {
|
|
12
13
|
const {
|
|
13
14
|
children,
|
|
14
|
-
customClass,
|
|
15
|
+
customClass = '',
|
|
16
|
+
customClassForContainer = '',
|
|
15
17
|
size = 'default',
|
|
16
18
|
boxShadow = true,
|
|
17
19
|
visible = true,
|
|
@@ -28,7 +30,9 @@ const SplitButton = props => {
|
|
|
28
30
|
skeletonize,
|
|
29
31
|
dropdownAlign
|
|
30
32
|
};
|
|
31
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
34
|
+
className: `split-button-component ${customClassForContainer}`
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement(_DefaultButton.default, _extends({}, props, {
|
|
32
36
|
dropdownAlign: dropdownAlign,
|
|
33
37
|
style: {
|
|
34
38
|
borderRadius: '5px 0px 0px 5px',
|
|
@@ -36,22 +40,24 @@ const SplitButton = props => {
|
|
|
36
40
|
marginRight: 0
|
|
37
41
|
}
|
|
38
42
|
})), /*#__PURE__*/_react.default.createElement(_DefaultButton.default, _extends({}, splitProps, {
|
|
39
|
-
iconName: "down",
|
|
40
43
|
customClass: `${customClass} -transparenttext`,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
icon: /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
45
|
+
name: "mini_down",
|
|
46
|
+
color: "#fff",
|
|
47
|
+
size: 12,
|
|
48
|
+
style: {
|
|
49
|
+
margin: 0
|
|
50
|
+
}
|
|
51
|
+
}),
|
|
52
|
+
showIconDropdown: false,
|
|
45
53
|
style: {
|
|
46
54
|
borderRadius: '0px 5px 5px 0px',
|
|
47
55
|
borderLeft: '1px solid #ccc',
|
|
48
|
-
width:
|
|
56
|
+
width: 'auto',
|
|
49
57
|
textShadow: 'none',
|
|
50
|
-
|
|
51
|
-
paddingLeft: 0
|
|
58
|
+
paddingInline: '2px'
|
|
52
59
|
},
|
|
53
|
-
dropdown: true
|
|
54
|
-
label: "."
|
|
60
|
+
dropdown: true
|
|
55
61
|
}), children));
|
|
56
62
|
};
|
|
57
63
|
var _default = exports.default = SplitButton;
|
package/lib/buttons/types.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ interface IButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
14
14
|
size?: Size;
|
|
15
15
|
iconName?: IconNames;
|
|
16
16
|
customClass?: string;
|
|
17
|
-
iconAlign?: Position
|
|
17
|
+
iconAlign?: Extract<Position, 'left' | 'center'>;
|
|
18
18
|
iconStyle?: CSSProperties;
|
|
19
19
|
boxShadow?: boolean;
|
|
20
20
|
icon?: ReactElement;
|
|
@@ -46,5 +46,8 @@ interface IButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
46
46
|
errorMessage?: string;
|
|
47
47
|
onDeniedText?: string;
|
|
48
48
|
}
|
|
49
|
+
interface ISplitButtonProps extends IButtonProps {
|
|
50
|
+
customClassForContainer?: string;
|
|
51
|
+
}
|
|
49
52
|
|
|
50
|
-
export { IButtonProps };
|
|
53
|
+
export { IButtonProps, ISplitButtonProps };
|
|
@@ -3,6 +3,6 @@ import 'react';
|
|
|
3
3
|
import 'moment';
|
|
4
4
|
import '../@types/ColorStyles.js';
|
|
5
5
|
|
|
6
|
-
declare const DangerCalendar: ({
|
|
6
|
+
declare const DangerCalendar: ({ ...props }: ICalendarProps) => JSX.Element;
|
|
7
7
|
|
|
8
8
|
export { DangerCalendar as default };
|
|
@@ -6,16 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _base = _interopRequireDefault(require("./base"));
|
|
9
|
-
const _excluded = ["customClass"];
|
|
10
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
10
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
12
|
-
function
|
|
13
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
11
|
+
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
14
12
|
const DangerCalendar = _ref => {
|
|
15
|
-
let {
|
|
16
|
-
customClass
|
|
17
|
-
} = _ref,
|
|
18
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
let props = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
19
14
|
return /*#__PURE__*/_react.default.createElement(_base.default, _extends({}, props, {
|
|
20
15
|
customClass: "-danger"
|
|
21
16
|
}));
|
|
@@ -3,6 +3,6 @@ import 'react';
|
|
|
3
3
|
import 'moment';
|
|
4
4
|
import '../@types/ColorStyles.js';
|
|
5
5
|
|
|
6
|
-
declare const InfoCalendar: ({
|
|
6
|
+
declare const InfoCalendar: ({ ...props }: ICalendarProps) => JSX.Element;
|
|
7
7
|
|
|
8
8
|
export { InfoCalendar as default };
|