linear-react-components-ui 1.1.22-beta.6 → 1.1.22-beta.8
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/file.scss +7 -10
- package/lib/assets/styles/floatMenu.scss +1 -3
- package/lib/assets/styles/sidenav.scss +4 -3
- package/lib/assets/styles/tabs.scss +24 -3
- package/lib/buttons/DefaultButton.js +7 -11
- package/lib/buttons/DestroyButton.d.ts +1 -1
- package/lib/buttons/DestroyButton.js +2 -7
- 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/form/index.js +3 -2
- package/lib/dialog/types.d.ts +1 -0
- package/lib/drawer/Drawer.d.ts +1 -1
- package/lib/drawer/Drawer.js +6 -2
- package/lib/drawer/types.d.ts +1 -0
- package/lib/form/Field.js +30 -13
- package/lib/form/FieldArray.js +10 -13
- package/lib/form/FieldNumber.js +10 -1
- package/lib/form/FieldPeriod.js +15 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/form/index.js +30 -5
- package/lib/form/types.d.ts +13 -1
- package/lib/form/withFieldHOC.js +4 -2
- 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/date/helpers.d.ts +31 -1
- package/lib/inputs/date/helpers.js +32 -2
- package/lib/inputs/date/index.js +28 -20
- package/lib/inputs/date/types.d.ts +1 -0
- package/lib/inputs/mask/BaseMask.d.ts +1 -1
- package/lib/inputs/mask/BaseMask.js +6 -4
- package/lib/inputs/mask/helpers.d.ts +6 -53
- package/lib/inputs/mask/helpers.js +16 -35
- package/lib/inputs/mask/types.d.ts +1 -0
- package/lib/inputs/select/Dropdown.js +1 -1
- package/lib/inputs/select/multiple/index.js +5 -3
- package/lib/inputs/select/simple/index.js +8 -2
- 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 +10 -7
- package/lib/panel/Header.js +1 -3
- package/lib/radio/index.d.ts +4 -1
- package/lib/radio/index.js +1 -0
- package/lib/spinner/SpinnerLoading.js +1 -0
- package/lib/spinner/types.d.ts +2 -2
- package/lib/table/index.js +2 -8
- package/lib/tabs/Menu.d.ts +1 -1
- package/lib/tabs/Menu.js +4 -2
- package/lib/tabs/MenuTabs.js +16 -5
- package/lib/tabs/context.d.ts +1 -1
- package/lib/tabs/context.js +3 -1
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tabs/index.js +13 -7
- package/lib/tabs/tabHelpers.js +2 -7
- package/lib/tabs/types.d.ts +7 -1
- package/lib/textContent/index.js +1 -5
- package/lib/toolbar/types.d.ts +1 -1
- 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;
|
|
@@ -159,8 +159,14 @@
|
|
|
159
159
|
margin-top: 3px;
|
|
160
160
|
}
|
|
161
161
|
> .-skeletonized {
|
|
162
|
+
@extend %skeleton-component;
|
|
162
163
|
height: 180px !important;
|
|
163
|
-
|
|
164
|
+
color: transparent !important;
|
|
165
|
+
text-shadow: none;
|
|
166
|
+
box-shadow: none;
|
|
167
|
+
border-color: transparent !important;
|
|
168
|
+
transition: none;
|
|
169
|
+
}
|
|
164
170
|
}
|
|
165
171
|
|
|
166
172
|
.input-simple-file-container {
|
|
@@ -213,12 +219,3 @@
|
|
|
213
219
|
}
|
|
214
220
|
}
|
|
215
221
|
}
|
|
216
|
-
|
|
217
|
-
.-skeletonized {
|
|
218
|
-
@extend %skeleton-component;
|
|
219
|
-
color: transparent !important;
|
|
220
|
-
text-shadow: none;
|
|
221
|
-
box-shadow: none;
|
|
222
|
-
border-color: transparent !important;
|
|
223
|
-
transition: none;
|
|
224
|
-
}
|
|
@@ -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
|
}
|
|
@@ -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
|
|
|
@@ -49,12 +49,15 @@ $dropdown-width: 38px;
|
|
|
49
49
|
text-shadow: 0 1px $font-color-second;
|
|
50
50
|
cursor: pointer;
|
|
51
51
|
line-height: 20px;
|
|
52
|
-
margin-right:
|
|
52
|
+
margin-right: 2px;
|
|
53
53
|
padding: 0;
|
|
54
54
|
width: auto;
|
|
55
|
-
min-width:
|
|
55
|
+
min-width: 112px;
|
|
56
56
|
display: flex;
|
|
57
57
|
align-items: center;
|
|
58
|
+
border: 1px solid $font-color-second;
|
|
59
|
+
border-top: 2px solid $font-color-second;
|
|
60
|
+
border-bottom: 1px solid $component-border-color;
|
|
58
61
|
&.selected {
|
|
59
62
|
border: 1px solid $component-border-color;
|
|
60
63
|
background: $font-color-second;
|
|
@@ -63,6 +66,15 @@ $dropdown-width: 38px;
|
|
|
63
66
|
box-shadow: 0;
|
|
64
67
|
font-weight: bold;
|
|
65
68
|
}
|
|
69
|
+
&.witherrorcontent {
|
|
70
|
+
border: 1px solid $input-error-border-color;
|
|
71
|
+
border-top: 2px solid $input-error-border-color;
|
|
72
|
+
border-bottom: 1px solid transparent;
|
|
73
|
+
background-color: $input-error-bg-color;
|
|
74
|
+
&.selected {
|
|
75
|
+
border-top: 2px solid $component-selected-color;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
66
78
|
&.selected>.closepanel,
|
|
67
79
|
&:hover>.closepanel {
|
|
68
80
|
visibility: visible;
|
|
@@ -75,7 +87,16 @@ $dropdown-width: 38px;
|
|
|
75
87
|
background: transparent;
|
|
76
88
|
border: 0;
|
|
77
89
|
width: 100%;
|
|
78
|
-
text-align: left
|
|
90
|
+
text-align: left;
|
|
91
|
+
justify-content: flex-start;
|
|
92
|
+
box-shadow: none !important;
|
|
93
|
+
|
|
94
|
+
.button-container {
|
|
95
|
+
justify-content: flex-start;
|
|
96
|
+
> svg {
|
|
97
|
+
margin-right: 10px;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
79
100
|
}
|
|
80
101
|
|
|
81
102
|
.menu>.menuitem>.closepanel {
|
|
@@ -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; }
|
|
@@ -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,11 @@ 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
|
+
}, !dropdown && getIcon(), content || label && /*#__PURE__*/_react.default.createElement("div", {
|
|
167
|
+
className: "button-content"
|
|
168
|
+
}, content, label || ''), dropdown && getIcon()), isLoading && /*#__PURE__*/_react.default.createElement("div", {
|
|
173
169
|
className: "spinnercontainer"
|
|
174
170
|
}, /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
175
171
|
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",
|
|
@@ -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 };
|
|
@@ -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 InfoCalendar = _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: "-info"
|
|
21
16
|
}));
|
|
@@ -3,6 +3,6 @@ import 'react';
|
|
|
3
3
|
import 'moment';
|
|
4
4
|
import '../@types/ColorStyles.js';
|
|
5
5
|
|
|
6
|
-
declare const PrimaryCalendar: ({
|
|
6
|
+
declare const PrimaryCalendar: ({ ...props }: ICalendarProps) => JSX.Element;
|
|
7
7
|
|
|
8
8
|
export { PrimaryCalendar 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 PrimaryCalendar = _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: "-primary"
|
|
21
16
|
}));
|
|
@@ -3,6 +3,6 @@ import 'react';
|
|
|
3
3
|
import 'moment';
|
|
4
4
|
import '../@types/ColorStyles.js';
|
|
5
5
|
|
|
6
|
-
declare const SuccessCalendar: ({
|
|
6
|
+
declare const SuccessCalendar: ({ ...props }: ICalendarProps) => JSX.Element;
|
|
7
7
|
|
|
8
8
|
export { SuccessCalendar 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 SuccessCalendar = _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: "-success"
|
|
21
16
|
}));
|
|
@@ -3,6 +3,6 @@ import 'react';
|
|
|
3
3
|
import 'moment';
|
|
4
4
|
import '../@types/ColorStyles.js';
|
|
5
5
|
|
|
6
|
-
declare const WarningCalendar: ({
|
|
6
|
+
declare const WarningCalendar: ({ ...props }: ICalendarProps) => JSX.Element;
|
|
7
7
|
|
|
8
8
|
export { WarningCalendar 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 WarningCalendar = _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: "-warning"
|
|
21
16
|
}));
|
|
@@ -79,7 +79,7 @@ const Calendar = props => {
|
|
|
79
79
|
}, []);
|
|
80
80
|
(0, _react.useEffect)(() => {
|
|
81
81
|
const daysOfMonth = currentMonth.current?.getElementsByClassName('-selectedday')[0];
|
|
82
|
-
currentDateButton?.(daysOfMonth
|
|
82
|
+
currentDateButton?.(daysOfMonth.firstChild);
|
|
83
83
|
}, [currentDate]);
|
|
84
84
|
const component = /*#__PURE__*/_react.default.createElement("div", {
|
|
85
85
|
ref: currentCalendarRef,
|
package/lib/dialog/Question.js
CHANGED
package/lib/dialog/base/index.js
CHANGED
|
@@ -68,7 +68,7 @@ const BaseDialog = props => {
|
|
|
68
68
|
(0, _react.useEffect)(() => {
|
|
69
69
|
if (open && modalContainerRef.current) {
|
|
70
70
|
focusableElementsRef.current = Array.from(modalContainerRef.current.querySelectorAll("button, a, input, select, textarea, [tabindex]:not([tabindex='-1'])"));
|
|
71
|
-
focusableElementsRef.current[
|
|
71
|
+
focusableElementsRef.current[0]?.focus();
|
|
72
72
|
}
|
|
73
73
|
}, [open]);
|
|
74
74
|
const onDialogPositionChange = _ref => {
|
package/lib/dialog/form/index.js
CHANGED
|
@@ -32,7 +32,8 @@ const ModalForm = props => {
|
|
|
32
32
|
children,
|
|
33
33
|
className = '',
|
|
34
34
|
wrapperClassName = '',
|
|
35
|
-
contentClassName = ''
|
|
35
|
+
contentClassName = '',
|
|
36
|
+
headerClassName = ''
|
|
36
37
|
} = props;
|
|
37
38
|
const headerRef = (0, _react.useRef)(null);
|
|
38
39
|
const context = (0, _react.useContext)(_withFormSecurity.FormSecurityContext);
|
|
@@ -62,7 +63,7 @@ const ModalForm = props => {
|
|
|
62
63
|
className: className,
|
|
63
64
|
wrapperClassName: `dialog-form-wrapper ${wrapperClassName}`
|
|
64
65
|
}), props.title && /*#__PURE__*/_react.default.createElement("div", {
|
|
65
|
-
className:
|
|
66
|
+
className: `header-form ${headerClassName}`
|
|
66
67
|
}, /*#__PURE__*/_react.default.createElement(_Header.default, {
|
|
67
68
|
title: props.title,
|
|
68
69
|
handlerClose: props.handlerClose,
|
package/lib/dialog/types.d.ts
CHANGED
package/lib/drawer/Drawer.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ import '../@types/Position.js';
|
|
|
5
5
|
import '../@types/Icon.js';
|
|
6
6
|
import '../icons/helper.js';
|
|
7
7
|
|
|
8
|
-
declare const BaseDrawer: ({ position, customClass, children, style, customClassForContent, targetId, closeOnEsc, overlay, permissionAttr, skeletonize, handlerClose, customClassForDrawer, content, title, isWaiting, ...rest }: IDrawerProps) => React__default.ReactPortal;
|
|
8
|
+
declare const BaseDrawer: ({ position, customClass, children, style, customClassForContent, targetId, closeOnEsc, overlay, permissionAttr, skeletonize, handlerClose, customClassForDrawer, content, title, isWaiting, customClassElementDrawer, ...rest }: IDrawerProps) => React__default.ReactPortal;
|
|
9
9
|
|
|
10
10
|
export { BaseDrawer as default };
|