linear-react-components-ui 1.1.13 → 1.1.14-beta.0
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/.eslintrc.json +77 -45
- package/.gitlab-ci.yml +5 -13
- package/.tool-versions +1 -0
- package/.vscode/settings.json +3 -12
- package/babel.config.json +4 -4
- package/lib/@types/SizePixels.d.ts +1 -1
- package/lib/alerts/AlertContainer.js +56 -47
- package/lib/alerts/AlertProvider.js +51 -33
- package/lib/alerts/BaseAlert.js +18 -11
- package/lib/alerts/Message.d.ts +1 -1
- package/lib/alerts/Message.js +44 -77
- package/lib/alerts/helpers.js +3 -2
- package/lib/alerts/index.js +3 -2
- package/lib/alerts/types.d.ts +0 -1
- package/lib/alerts/withAlert.js +9 -8
- package/lib/assets/styles/alerts.scss +7 -4
- package/lib/assets/styles/button.scss +9 -11
- package/lib/assets/styles/checkbox.scss +38 -45
- package/lib/assets/styles/colors.scss +1 -3
- package/lib/assets/styles/commons.scss +0 -1
- package/lib/assets/styles/dialog.scss +20 -37
- package/lib/assets/styles/drawers.scss +6 -9
- package/lib/assets/styles/fieldset.scss +0 -3
- package/lib/assets/styles/gridlayout.scss +2 -0
- package/lib/assets/styles/hint.scss +0 -21
- package/lib/assets/styles/icon.scss +4 -31
- package/lib/assets/styles/input.scss +7 -7
- package/lib/assets/styles/multiSelect.scss +1 -6
- package/lib/assets/styles/radio.scss +35 -37
- package/lib/assets/styles/select.scss +7 -13
- package/lib/assets/styles/table.scss +1 -9
- package/lib/assets/styles/tabs.scss +18 -28
- package/lib/avatar/index.js +39 -39
- package/lib/badge/index.js +13 -11
- package/lib/buttons/ActivateButton.js +7 -4
- package/lib/buttons/AddButton.js +10 -7
- package/lib/buttons/Button.js +9 -8
- package/lib/buttons/ButtonGroups.js +4 -5
- package/lib/buttons/CancelButton.js +5 -6
- package/lib/buttons/DangerButton.js +5 -6
- package/lib/buttons/DefaultButton.js +85 -85
- package/lib/buttons/DestroyButton.js +5 -6
- package/lib/buttons/EditButton.js +7 -4
- package/lib/buttons/InactivateButton.js +7 -4
- package/lib/buttons/InfoButton.js +5 -6
- package/lib/buttons/PrimaryButton.js +5 -6
- package/lib/buttons/RestoreButton.js +7 -4
- package/lib/buttons/SaveButton.js +5 -6
- package/lib/buttons/SuccessButton.js +5 -6
- package/lib/buttons/WarningButton.js +5 -6
- package/lib/buttons/button_container/index.js +19 -15
- package/lib/buttons/index.js +16 -15
- package/lib/buttons/split_button/index.js +23 -20
- package/lib/buttons/types.d.ts +0 -1
- package/lib/calendar/DangerCalendar.js +5 -6
- package/lib/calendar/InfoCalendar.js +5 -6
- package/lib/calendar/PrimaryCalendar.js +5 -6
- package/lib/calendar/SuccessCalendar.js +5 -6
- package/lib/calendar/WarningCalendar.js +5 -6
- package/lib/calendar/base/Day.js +11 -12
- package/lib/calendar/base/Month.js +17 -12
- package/lib/calendar/base/Week.js +17 -12
- package/lib/calendar/base/helpers.js +11 -11
- package/lib/calendar/base/index.js +43 -29
- package/lib/calendar/index.js +7 -6
- package/lib/checkbox/Label.js +9 -19
- package/lib/checkbox/index.d.ts +2 -2
- package/lib/checkbox/index.js +95 -81
- package/lib/checkbox/types.d.ts +1 -2
- package/lib/dialog/Alert.js +4 -3
- package/lib/dialog/Custom.js +16 -14
- package/lib/dialog/Error.js +4 -3
- package/lib/dialog/Information.js +4 -3
- package/lib/dialog/Question.js +12 -11
- package/lib/dialog/Warning.js +5 -5
- package/lib/dialog/base/Content.js +5 -7
- package/lib/dialog/base/Footer.js +7 -4
- package/lib/dialog/base/Header.js +28 -28
- package/lib/dialog/base/index.d.ts +2 -8
- package/lib/dialog/base/index.js +104 -108
- package/lib/dialog/base/style.js +10 -7
- package/lib/dialog/form/index.js +35 -36
- package/lib/dialog/index.js +8 -7
- package/lib/dialog/types.d.ts +13 -8
- package/lib/drawer/Content.js +10 -11
- package/lib/drawer/Drawer.js +83 -69
- package/lib/drawer/Header.js +36 -33
- package/lib/drawer/helpers.js +3 -2
- package/lib/drawer/index.js +4 -3
- package/lib/dropdown/Popup.d.ts +1 -1
- package/lib/dropdown/Popup.js +39 -38
- package/lib/dropdown/helper.js +5 -3
- package/lib/dropdown/types.d.ts +0 -1
- package/lib/dropdown/withDropdown.js +58 -37
- package/lib/fieldset/index.js +56 -50
- package/lib/fieldset/types.d.ts +0 -2
- package/lib/form/Field.d.ts +0 -2
- package/lib/form/Field.js +74 -68
- package/lib/form/FieldArray.d.ts +0 -2
- package/lib/form/FieldArray.js +90 -66
- package/lib/form/FieldNumber.d.ts +0 -2
- package/lib/form/FieldNumber.js +53 -33
- package/lib/form/FieldPeriod.d.ts +0 -2
- package/lib/form/FieldPeriod.js +52 -46
- package/lib/form/helpers.d.ts +0 -2
- package/lib/form/helpers.js +26 -21
- package/lib/form/index.d.ts +0 -2
- package/lib/form/index.js +143 -111
- package/lib/form/types.d.ts +4 -7
- package/lib/form/withFieldHOC.d.ts +0 -2
- package/lib/form/withFieldHOC.js +38 -31
- package/lib/form/withFormSecurity.d.ts +0 -2
- package/lib/form/withFormSecurity.js +34 -26
- package/lib/gridlayout/GridCol.js +13 -13
- package/lib/gridlayout/GridRow.js +11 -17
- package/lib/gridlayout/index.js +3 -2
- package/lib/gridlayout/types.d.ts +1 -1
- package/lib/hint/index.d.ts +1 -2
- package/lib/hint/index.js +28 -17
- package/lib/hint/types.d.ts +0 -3
- package/lib/icons/helper.d.ts +0 -4
- package/lib/icons/helper.js +4 -7
- package/lib/icons/index.d.ts +2 -3
- package/lib/icons/index.js +47 -42
- package/lib/icons/types.d.ts +9 -22
- package/lib/index.d.ts +1 -2
- package/lib/index.js +9 -9
- package/lib/inputs/base/InputTextBase.d.ts +0 -2
- package/lib/inputs/base/InputTextBase.js +111 -143
- package/lib/inputs/base/helpers.d.ts +2 -3
- package/lib/inputs/base/helpers.js +25 -20
- package/lib/inputs/base/types.d.ts +3 -17
- package/lib/inputs/color/index.js +38 -27
- package/lib/inputs/date/Dialog.d.ts +0 -2
- package/lib/inputs/date/Dialog.js +9 -8
- package/lib/inputs/date/Dropdown.d.ts +0 -2
- package/lib/inputs/date/Dropdown.js +10 -11
- package/lib/inputs/date/helpers.d.ts +0 -2
- package/lib/inputs/date/helpers.js +13 -13
- package/lib/inputs/date/index.d.ts +0 -2
- package/lib/inputs/date/index.js +150 -125
- package/lib/inputs/date/types.d.ts +1 -4
- package/lib/inputs/file/DefaultFile.d.ts +0 -2
- package/lib/inputs/file/DefaultFile.js +72 -45
- package/lib/inputs/file/DragDropFile.d.ts +0 -2
- package/lib/inputs/file/DragDropFile.js +147 -95
- package/lib/inputs/file/File.d.ts +1 -3
- package/lib/inputs/file/File.js +28 -22
- package/lib/inputs/file/FileButtonSettings.d.ts +0 -2
- package/lib/inputs/file/FileButtonSettings.js +12 -12
- package/lib/inputs/file/helpers.d.ts +0 -2
- package/lib/inputs/file/helpers.js +6 -4
- package/lib/inputs/file/index.d.ts +0 -2
- package/lib/inputs/file/index.js +4 -3
- package/lib/inputs/file/types.d.ts +0 -2
- package/lib/inputs/inputHOC.d.ts +1 -2
- package/lib/inputs/inputHOC.js +32 -19
- package/lib/inputs/mask/BaseMask.d.ts +5 -4
- package/lib/inputs/mask/BaseMask.js +34 -121
- package/lib/inputs/mask/Cnpj.d.ts +0 -2
- package/lib/inputs/mask/Cnpj.js +29 -16
- package/lib/inputs/mask/Cpf.d.ts +0 -2
- package/lib/inputs/mask/Cpf.js +35 -18
- package/lib/inputs/mask/Phone.d.ts +0 -2
- package/lib/inputs/mask/Phone.js +4 -5
- package/lib/inputs/mask/ZipCode.d.ts +0 -2
- package/lib/inputs/mask/ZipCode.js +7 -4
- package/lib/inputs/mask/helpers.d.ts +12 -53
- package/lib/inputs/mask/helpers.js +36 -90
- package/lib/inputs/{errorMessage/index.d.ts → mask/imaskHOC.d.ts} +7 -5
- package/lib/inputs/mask/imaskHOC.js +224 -0
- package/lib/inputs/mask/index.d.ts +2 -4
- package/lib/inputs/mask/index.js +6 -5
- package/lib/inputs/mask/types.d.ts +18 -22
- package/lib/inputs/multiSelect/ActionButtons.d.ts +0 -2
- package/lib/inputs/multiSelect/ActionButtons.js +21 -22
- package/lib/inputs/multiSelect/Dropdown.d.ts +0 -2
- package/lib/inputs/multiSelect/Dropdown.js +65 -48
- package/lib/inputs/multiSelect/helper.d.ts +0 -2
- package/lib/inputs/multiSelect/helper.js +7 -8
- package/lib/inputs/multiSelect/index.d.ts +0 -2
- package/lib/inputs/multiSelect/index.js +132 -80
- package/lib/inputs/multiSelect/types.d.ts +0 -2
- package/lib/inputs/number/BaseNumber.d.ts +2 -3
- package/lib/inputs/number/BaseNumber.js +21 -22
- package/lib/inputs/number/Currency.d.ts +2 -3
- package/lib/inputs/number/Currency.js +6 -6
- package/lib/inputs/number/Decimal.d.ts +2 -3
- package/lib/inputs/number/Decimal.js +5 -2
- package/lib/inputs/number/format_number.js +5 -5
- package/lib/inputs/number/index.d.ts +2 -3
- package/lib/inputs/number/index.js +49 -18
- package/lib/inputs/number/types.d.ts +14 -15
- package/lib/inputs/period/Dialog.d.ts +1 -3
- package/lib/inputs/period/Dialog.js +9 -8
- package/lib/inputs/period/Dropdown.d.ts +0 -2
- package/lib/inputs/period/Dropdown.js +8 -7
- package/lib/inputs/period/PeriodList.d.ts +0 -2
- package/lib/inputs/period/PeriodList.js +12 -13
- package/lib/inputs/period/helper.d.ts +0 -2
- package/lib/inputs/period/helper.js +36 -33
- package/lib/inputs/period/index.d.ts +0 -2
- package/lib/inputs/period/index.js +194 -160
- package/lib/inputs/period/types.d.ts +1 -3
- package/lib/inputs/search/index.d.ts +1 -2
- package/lib/inputs/search/index.js +63 -40
- package/lib/inputs/select/ActionButtons.d.ts +1 -2
- package/lib/inputs/select/ActionButtons.js +34 -24
- package/lib/inputs/select/Dropdown.d.ts +1 -2
- package/lib/inputs/select/Dropdown.js +58 -39
- package/lib/inputs/select/helper.d.ts +1 -2
- package/lib/inputs/select/helper.js +43 -49
- package/lib/inputs/select/index.d.ts +0 -2
- package/lib/inputs/select/index.js +8 -9
- package/lib/inputs/select/multiple/Selecteds.d.ts +1 -3
- package/lib/inputs/select/multiple/Selecteds.js +21 -16
- package/lib/inputs/select/multiple/index.d.ts +0 -2
- package/lib/inputs/select/multiple/index.js +176 -128
- package/lib/inputs/select/simple/index.d.ts +0 -2
- package/lib/inputs/select/simple/index.js +179 -151
- package/lib/inputs/select/types.d.ts +2 -5
- package/lib/inputs/text/index.js +5 -2
- package/lib/inputs/textarea/index.d.ts +0 -2
- package/lib/inputs/textarea/index.js +9 -9
- package/lib/inputs/textarea/types.d.ts +0 -2
- package/lib/inputs/types.d.ts +7 -12
- package/lib/internals/colorStyles.js +3 -2
- package/lib/internals/constants.js +4 -2
- package/lib/internals/types.d.ts +2 -5
- package/lib/internals/withTooltip.d.ts +2 -3
- package/lib/internals/withTooltip.js +74 -74
- package/lib/labelMessages/index.js +41 -21
- package/lib/labels/DangerLabel.js +5 -6
- package/lib/labels/DefaultLabel.js +39 -25
- package/lib/labels/InfoLabel.js +5 -6
- package/lib/labels/PrimaryLabel.js +5 -6
- package/lib/labels/SuccessLabel.js +5 -6
- package/lib/labels/WarningLabel.js +5 -6
- package/lib/labels/index.js +8 -7
- package/lib/labels/label_container/index.js +7 -7
- package/lib/list/Header.js +7 -8
- package/lib/list/Item.js +68 -72
- package/lib/list/Separator.js +7 -4
- package/lib/list/helpers.js +5 -3
- package/lib/list/index.js +100 -73
- package/lib/menus/float/MenuItem.js +19 -18
- package/lib/menus/float/SubMenuContainer.js +32 -26
- package/lib/menus/float/helpers.js +3 -2
- package/lib/menus/float/index.js +17 -16
- package/lib/menus/float/types.d.ts +1 -1
- package/lib/menus/index.js +2 -1
- package/lib/menus/sidenav/ExpandMenu.js +7 -8
- package/lib/menus/sidenav/MenuLink.js +8 -9
- package/lib/menus/sidenav/NavMenuGroup.js +11 -12
- package/lib/menus/sidenav/NavMenuItem.js +60 -46
- package/lib/menus/sidenav/NavSubMenuItem.js +24 -19
- package/lib/menus/sidenav/helpers.js +8 -5
- package/lib/menus/sidenav/index.js +111 -83
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +6 -6
- package/lib/menus/sidenav/popup_menu_search/index.js +83 -63
- package/lib/menus/sidenav/types.d.ts +1 -1
- package/lib/noPermission/index.js +16 -13
- package/lib/panel/Content.d.ts +1 -1
- package/lib/panel/Content.js +56 -43
- package/lib/panel/DangerPanel.d.ts +1 -1
- package/lib/panel/DangerPanel.js +7 -4
- package/lib/panel/Default.d.ts +1 -1
- package/lib/panel/Default.js +56 -41
- package/lib/panel/Header.d.ts +1 -1
- package/lib/panel/Header.js +26 -28
- package/lib/panel/InfoPanel.d.ts +1 -1
- package/lib/panel/InfoPanel.js +7 -4
- package/lib/panel/PrimaryPanel.d.ts +1 -1
- package/lib/panel/PrimaryPanel.js +7 -4
- package/lib/panel/SuccessPanel.d.ts +1 -1
- package/lib/panel/SuccessPanel.js +7 -4
- package/lib/panel/ToolBar.d.ts +1 -1
- package/lib/panel/ToolBar.js +4 -5
- package/lib/panel/WarningPanel.d.ts +1 -1
- package/lib/panel/WarningPanel.js +7 -4
- package/lib/panel/helpers.d.ts +2 -7
- package/lib/panel/helpers.js +23 -11
- package/lib/panel/index.d.ts +1 -1
- package/lib/panel/index.js +9 -8
- package/lib/panel/types.d.ts +5 -46
- package/lib/permissionValidations.js +29 -24
- package/lib/popover/PopoverText.js +4 -5
- package/lib/popover/PopoverTitle.js +4 -5
- package/lib/popover/index.js +18 -14
- package/lib/progress/Bar.js +36 -30
- package/lib/progress/index.js +18 -16
- package/lib/radio/index.js +55 -34
- package/lib/shortcuts/index.js +8 -9
- package/lib/skeleton/SkeletonContainer.js +10 -9
- package/lib/skeleton/index.js +32 -25
- package/lib/spinner/SpinnerLoading.js +7 -6
- package/lib/spinner/index.js +36 -22
- package/lib/split/Split.js +110 -93
- package/lib/split/SplitSide.js +18 -19
- package/lib/split/helpers.js +3 -2
- package/lib/split/index.js +3 -2
- package/lib/table/Body.js +44 -41
- package/lib/table/Header.js +31 -28
- package/lib/table/HeaderColumn.d.ts +1 -1
- package/lib/table/HeaderColumn.js +21 -34
- package/lib/table/Row.js +47 -44
- package/lib/table/RowColumn.js +37 -36
- package/lib/table/helpers.js +12 -6
- package/lib/table/index.js +98 -78
- package/lib/table/types.d.ts +0 -3
- package/lib/tabs/{MenuTabs.d.ts → DropdownItems.d.ts} +3 -3
- package/lib/tabs/DropdownItems.js +65 -0
- package/lib/tabs/Menu.d.ts +1 -1
- package/lib/tabs/Menu.js +20 -32
- package/lib/tabs/MenuItems.d.ts +11 -0
- package/lib/tabs/MenuItems.js +76 -0
- package/lib/tabs/Panel.d.ts +1 -1
- package/lib/tabs/Panel.js +65 -69
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tabs/index.js +221 -42
- package/lib/tabs/tabHelpers.d.ts +15 -4
- package/lib/tabs/tabHelpers.js +41 -36
- package/lib/tabs/types.d.ts +15 -48
- package/lib/toolbar/ButtonBar.js +39 -35
- package/lib/toolbar/LabelBar.js +36 -32
- package/lib/toolbar/Separator.js +7 -4
- package/lib/toolbar/ToolBarGroup.js +6 -6
- package/lib/toolbar/helpers.js +3 -2
- package/lib/toolbar/index.js +21 -19
- package/lib/toolbar/types.d.ts +0 -1
- package/lib/tooltip/index.js +32 -27
- package/lib/treetable/Body.js +32 -20
- package/lib/treetable/Header.js +14 -11
- package/lib/treetable/Row.js +137 -85
- package/lib/treetable/helpers.js +24 -15
- package/lib/treetable/index.js +10 -8
- package/lib/treeview/Header.js +6 -7
- package/lib/treeview/Node.js +132 -92
- package/lib/treeview/constants.js +2 -1
- package/lib/treeview/index.js +214 -148
- package/lib/treeview_old/Header.js +28 -0
- package/lib/treeview_old/Node.js +88 -0
- package/lib/treeview_old/index.js +42 -0
- package/lib/types-c2a0f035.d.ts +50 -0
- package/lib/uitour/helpers.js +7 -4
- package/lib/uitour/index.d.ts +1 -2
- package/lib/uitour/index.js +99 -112
- package/lib/uitour/types.d.ts +1 -9
- package/package.json +82 -77
- package/tsconfig.json +0 -1
- package/.eslintcache +0 -1
- package/.nvmrc +0 -1
- package/lib/assets/styles/error.scss +0 -9
- package/lib/assets/styles/textContent.scss +0 -9
- package/lib/hint/helpers.d.ts +0 -3
- package/lib/hint/helpers.js +0 -21
- package/lib/inputs/base/Label.d.ts +0 -14
- package/lib/inputs/base/Label.js +0 -35
- package/lib/inputs/errorMessage/index.js +0 -26
- package/lib/tabs/DropdownTabs.d.ts +0 -11
- package/lib/tabs/DropdownTabs.js +0 -71
- package/lib/tabs/MenuTabs.js +0 -82
- package/lib/tabs/context.d.ts +0 -12
- package/lib/tabs/context.js +0 -130
- package/lib/tabs/useTabs.d.ts +0 -11
- package/lib/tabs/useTabs.js +0 -11
- package/lib/textContent/index.d.ts +0 -8
- package/lib/textContent/index.js +0 -30
package/lib/alerts/Message.js
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.default = void 0;
|
|
7
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
9
|
var _icons = _interopRequireDefault(require("../icons"));
|
|
9
|
-
var _progress = _interopRequireDefault(require("../progress"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
function _getRequireWildcardCache(
|
|
12
|
-
function _interopRequireWildcard(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
className
|
|
17
|
-
} = _ref;
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
+
var getClass = function getClass(_ref) {
|
|
14
|
+
var customClass = _ref.customClass,
|
|
15
|
+
className = _ref.className;
|
|
18
16
|
return "".concat(className, " ").concat(customClass);
|
|
19
17
|
};
|
|
20
|
-
|
|
18
|
+
var getIcon = function getIcon(icon, iconName, color) {
|
|
21
19
|
if (icon !== null) {
|
|
22
20
|
return icon;
|
|
23
21
|
} else if (iconName !== null) {
|
|
@@ -29,86 +27,55 @@ const getIcon = (icon, iconName, color) => {
|
|
|
29
27
|
}
|
|
30
28
|
return null;
|
|
31
29
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
handleClose = ()
|
|
35
|
-
message,
|
|
36
|
-
id =
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const handleMouseLeave = () => {
|
|
58
|
-
if (pauseTimeoutOnMouseHover) {
|
|
59
|
-
setPauseTimeout(false);
|
|
60
|
-
setProgressBarTime(prevProgressBarTime => prevProgressBarTime >= 800 ? prevProgressBarTime - 600 : prevProgressBarTime - 500);
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
const getProgressBarType = () => customClass.replace('-', '');
|
|
64
|
-
(0, _react.useEffect)(() => {
|
|
65
|
-
if (!pauseTimeout && progressBarTime > 0) {
|
|
66
|
-
timeoutIdentifier.current = setTimeout(() => {
|
|
30
|
+
var Message = function Message(_ref2) {
|
|
31
|
+
var _ref2$handleClose = _ref2.handleClose,
|
|
32
|
+
handleClose = _ref2$handleClose === void 0 ? function () {} : _ref2$handleClose,
|
|
33
|
+
message = _ref2.message,
|
|
34
|
+
_ref2$id = _ref2.id,
|
|
35
|
+
id = _ref2$id === void 0 ? 0 : _ref2$id,
|
|
36
|
+
_ref2$color = _ref2.color,
|
|
37
|
+
color = _ref2$color === void 0 ? '' : _ref2$color,
|
|
38
|
+
_ref2$icon = _ref2.icon,
|
|
39
|
+
icon = _ref2$icon === void 0 ? null : _ref2$icon,
|
|
40
|
+
_ref2$iconName = _ref2.iconName,
|
|
41
|
+
iconName = _ref2$iconName === void 0 ? null : _ref2$iconName,
|
|
42
|
+
_ref2$timeout = _ref2.timeout,
|
|
43
|
+
timeout = _ref2$timeout === void 0 ? 3000 : _ref2$timeout,
|
|
44
|
+
_ref2$customClass = _ref2.customClass,
|
|
45
|
+
customClass = _ref2$customClass === void 0 ? '' : _ref2$customClass,
|
|
46
|
+
_ref2$closeButton = _ref2.closeButton,
|
|
47
|
+
closeButton = _ref2$closeButton === void 0 ? false : _ref2$closeButton,
|
|
48
|
+
_ref2$className = _ref2.className,
|
|
49
|
+
className = _ref2$className === void 0 ? 'message' : _ref2$className,
|
|
50
|
+
_ref2$position = _ref2.position,
|
|
51
|
+
position = _ref2$position === void 0 ? 'centerTop' : _ref2$position;
|
|
52
|
+
(0, _react.useEffect)(function () {
|
|
53
|
+
if (timeout > 0) {
|
|
54
|
+
setTimeout(function () {
|
|
67
55
|
handleClose(id, position);
|
|
68
|
-
},
|
|
69
|
-
intervalIdentifier.current = setInterval(() => progressBarTime > 0 ? setProgressBarTime(prevProgressBarTime => prevProgressBarTime > 0 ? prevProgressBarTime - 100 : 0) : null, 100);
|
|
70
|
-
} else {
|
|
71
|
-
if (timeoutIdentifier.current) clearInterval(timeoutIdentifier.current);
|
|
72
|
-
if (intervalIdentifier.current) clearInterval(intervalIdentifier.current);
|
|
56
|
+
}, timeout);
|
|
73
57
|
}
|
|
74
|
-
|
|
75
|
-
if (timeoutIdentifier.current) clearInterval(timeoutIdentifier.current);
|
|
76
|
-
if (intervalIdentifier.current) clearInterval(intervalIdentifier.current);
|
|
77
|
-
};
|
|
78
|
-
}, [pauseTimeout]);
|
|
58
|
+
}, []);
|
|
79
59
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
80
|
-
onMouseEnter: handleMouseEnter,
|
|
81
|
-
onMouseLeave: handleMouseLeave
|
|
82
|
-
}, timeout > 0 && /*#__PURE__*/_react.default.createElement(_progress.default, {
|
|
83
|
-
min: 300,
|
|
84
|
-
max: timeout,
|
|
85
|
-
value: progressBarTime,
|
|
86
|
-
showLabel: false,
|
|
87
|
-
style: {
|
|
88
|
-
animation: 'tinRightIn 1s forwards ease-in-out',
|
|
89
|
-
margin: '0px',
|
|
90
|
-
borderRadius: '0px',
|
|
91
|
-
backgroundColor: 'rgb(234 234 234)'
|
|
92
|
-
},
|
|
93
|
-
height: "6px",
|
|
94
|
-
type: getProgressBarType()
|
|
95
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
96
60
|
className: getClass({
|
|
97
|
-
className,
|
|
98
|
-
customClass
|
|
61
|
+
className: className,
|
|
62
|
+
customClass: customClass
|
|
99
63
|
})
|
|
100
64
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
101
65
|
className: "-icon"
|
|
102
66
|
}, (icon || iconName || color) && getIcon(icon, iconName, color)), /*#__PURE__*/_react.default.createElement("div", {
|
|
103
67
|
className: "-messagecontent"
|
|
104
|
-
},
|
|
68
|
+
}, message), /*#__PURE__*/_react.default.createElement("div", {
|
|
105
69
|
className: "close"
|
|
106
70
|
}, closeButton || timeout === 0 ? /*#__PURE__*/_react.default.createElement("span", {
|
|
107
71
|
className: "close-button",
|
|
108
72
|
role: "button",
|
|
109
|
-
onKeyPress: ()
|
|
73
|
+
onKeyPress: function onKeyPress() {},
|
|
110
74
|
tabIndex: -1,
|
|
111
|
-
onClick:
|
|
112
|
-
|
|
75
|
+
onClick: function onClick() {
|
|
76
|
+
return handleClose !== undefined ? handleClose(id, position) : null;
|
|
77
|
+
}
|
|
78
|
+
}, "x") : null));
|
|
113
79
|
};
|
|
114
|
-
var _default =
|
|
80
|
+
var _default = Message;
|
|
81
|
+
exports.default = _default;
|
package/lib/alerts/helpers.js
CHANGED
|
@@ -5,5 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
|
|
9
|
-
var _default =
|
|
8
|
+
var AlertProviderContext = /*#__PURE__*/(0, _react.createContext)({});
|
|
9
|
+
var _default = AlertProviderContext;
|
|
10
|
+
exports.default = _default;
|
package/lib/alerts/index.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "AlertProvider", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function () {
|
|
8
|
+
get: function get() {
|
|
9
9
|
return _AlertProvider.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
@@ -13,4 +13,5 @@ exports.default = void 0;
|
|
|
13
13
|
var _withAlert = _interopRequireDefault(require("./withAlert"));
|
|
14
14
|
var _AlertProvider = _interopRequireDefault(require("./AlertProvider"));
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
var _default =
|
|
16
|
+
var _default = _withAlert.default;
|
|
17
|
+
exports.default = _default;
|
package/lib/alerts/types.d.ts
CHANGED
package/lib/alerts/withAlert.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
@@ -7,18 +8,18 @@ exports.default = void 0;
|
|
|
7
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
9
|
var _helpers = _interopRequireDefault(require("./helpers"));
|
|
9
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
function _getRequireWildcardCache(
|
|
11
|
-
function _interopRequireWildcard(
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
13
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
alert
|
|
17
|
-
} = (0, _react.useContext)(_helpers.default);
|
|
14
|
+
var withAlert = function withAlert(WrapperComponent) {
|
|
15
|
+
var GetAlert = function GetAlert(props) {
|
|
16
|
+
var _useContext = (0, _react.useContext)(_helpers.default),
|
|
17
|
+
alert = _useContext.alert;
|
|
18
18
|
return /*#__PURE__*/_react.default.createElement(WrapperComponent, _extends({}, props, {
|
|
19
19
|
alert: alert
|
|
20
20
|
}));
|
|
21
21
|
};
|
|
22
22
|
return GetAlert;
|
|
23
23
|
};
|
|
24
|
-
var _default =
|
|
24
|
+
var _default = withAlert;
|
|
25
|
+
exports.default = _default;
|
|
@@ -8,13 +8,12 @@
|
|
|
8
8
|
.alert-component {
|
|
9
9
|
position: fixed;
|
|
10
10
|
z-index: 9999999;
|
|
11
|
+
pointer-events: none;
|
|
11
12
|
> .messagecontainer {
|
|
12
13
|
height: 100%;
|
|
13
14
|
> .lefttop, > .leftbottom, > .rightbottom, .righttop, .centertop, .centerbottom {
|
|
14
15
|
position: fixed;
|
|
15
|
-
width:
|
|
16
|
-
min-width: 20%;
|
|
17
|
-
max-width: 25%;
|
|
16
|
+
width: 370px;
|
|
18
17
|
}
|
|
19
18
|
> .lefttop {
|
|
20
19
|
left: 0;
|
|
@@ -54,11 +53,15 @@
|
|
|
54
53
|
> .rightbottom {
|
|
55
54
|
right: 0;
|
|
56
55
|
bottom: 0;
|
|
56
|
+
&:hover {
|
|
57
|
+
opacity: 0.3!important;
|
|
58
|
+
background-color: #E0CABB;
|
|
59
|
+
}
|
|
57
60
|
}
|
|
58
61
|
}
|
|
59
62
|
.message {
|
|
60
63
|
display: flex;
|
|
61
|
-
flex-wrap:
|
|
64
|
+
flex-wrap: nowrap;
|
|
62
65
|
width: 100%;
|
|
63
66
|
height: 100%;
|
|
64
67
|
min-height: 80px;
|
|
@@ -38,14 +38,13 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
38
38
|
@extend %component-splash-click;
|
|
39
39
|
content: "";
|
|
40
40
|
position: absolute;
|
|
41
|
-
top: 50
|
|
42
|
-
left: 50
|
|
41
|
+
top: 50%;
|
|
42
|
+
left: 50%;
|
|
43
43
|
display: block;
|
|
44
|
+
width: 0;
|
|
44
45
|
padding-top: 0;
|
|
45
46
|
border-radius: 100%;
|
|
46
47
|
background-color: rgba(236, 240, 241, 0.3);
|
|
47
|
-
width: 0;
|
|
48
|
-
height: 0 !important;
|
|
49
48
|
}
|
|
50
49
|
> .icon-component {
|
|
51
50
|
width: 15px;
|
|
@@ -70,7 +69,7 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
70
69
|
&:active:before {
|
|
71
70
|
@extend %component-effect-click;
|
|
72
71
|
}
|
|
73
|
-
&:hover
|
|
72
|
+
&:hover {
|
|
74
73
|
background-color: $default-hover-color;
|
|
75
74
|
}
|
|
76
75
|
&:focus {
|
|
@@ -103,7 +102,6 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
103
102
|
@extend %component-disabled;
|
|
104
103
|
opacity: 0.7;
|
|
105
104
|
border: solid 1px $font-color-disabled;
|
|
106
|
-
pointer-events: auto;
|
|
107
105
|
}
|
|
108
106
|
&.-shadowsdisabled {
|
|
109
107
|
box-shadow: none!important;
|
|
@@ -164,7 +162,7 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
164
162
|
border: 1px solid $primary-border-color;
|
|
165
163
|
text-shadow: $shadow-text-button;
|
|
166
164
|
@extend %color-effects;
|
|
167
|
-
&:hover
|
|
165
|
+
&:hover {
|
|
168
166
|
background-color: $primary-hover-color;
|
|
169
167
|
}
|
|
170
168
|
&:focus {
|
|
@@ -203,7 +201,7 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
203
201
|
border: 1px solid $warning-color;
|
|
204
202
|
text-shadow: $shadow-text-button;
|
|
205
203
|
@extend %color-effects;
|
|
206
|
-
&:hover
|
|
204
|
+
&:hover {
|
|
207
205
|
background-color: $warning-hover-color;
|
|
208
206
|
}
|
|
209
207
|
&:focus {
|
|
@@ -222,7 +220,7 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
222
220
|
text-shadow: $shadow-text-button;
|
|
223
221
|
@extend %color-effects;
|
|
224
222
|
color: $font-color-second;
|
|
225
|
-
&:hover
|
|
223
|
+
&:hover {
|
|
226
224
|
background-color: $danger-hover-color;
|
|
227
225
|
}
|
|
228
226
|
&:focus {
|
|
@@ -241,7 +239,7 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
241
239
|
text-shadow: $shadow-text-button;
|
|
242
240
|
@extend %color-effects;
|
|
243
241
|
color: $font-color-second;
|
|
244
|
-
&:hover
|
|
242
|
+
&:hover {
|
|
245
243
|
background-color: $success-hover-color;
|
|
246
244
|
color: $font-color-second;
|
|
247
245
|
}
|
|
@@ -261,7 +259,7 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
261
259
|
text-shadow: $shadow-text-button;
|
|
262
260
|
@extend %color-effects;
|
|
263
261
|
color: $font-color-second;
|
|
264
|
-
&:hover
|
|
262
|
+
&:hover {
|
|
265
263
|
background-color: $info-hover-color;
|
|
266
264
|
color: $font-color-second;
|
|
267
265
|
}
|
|
@@ -4,90 +4,83 @@
|
|
|
4
4
|
|
|
5
5
|
.checkbox-component {
|
|
6
6
|
> .inputcontent {
|
|
7
|
-
display: flex;
|
|
8
7
|
> .input {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
height: 0;
|
|
8
|
+
position: absolute;
|
|
9
|
+
z-index: 0;
|
|
10
|
+
left: -9999999999999px;
|
|
13
11
|
&:disabled + span {
|
|
14
12
|
@extend %component-disabled;
|
|
15
|
-
border: 1px solid $component-border-color;
|
|
16
|
-
}
|
|
17
|
-
&:checked:disabled + span {
|
|
18
|
-
border: 1px solid $component-border-color;
|
|
19
|
-
> svg {
|
|
20
|
-
@extend %component-menu-disabled
|
|
21
|
-
}
|
|
22
13
|
}
|
|
23
14
|
&:disabled + span + .description {
|
|
24
15
|
@extend %component-menu-disabled;
|
|
25
16
|
}
|
|
26
|
-
&:checked + span
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
17
|
+
&:checked + span:before {
|
|
18
|
+
content: "✓";
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
position: static;
|
|
23
|
+
margin-top: -5px;
|
|
24
|
+
font-weight: 600;
|
|
25
|
+
height: 28px;
|
|
30
26
|
}
|
|
31
27
|
+ span {
|
|
28
|
+
display: inline-block;
|
|
32
29
|
position: relative;
|
|
33
|
-
|
|
34
|
-
min-height: 18px;
|
|
30
|
+
top: -1px;
|
|
35
31
|
width: 18px;
|
|
36
32
|
height: 18px;
|
|
33
|
+
margin: -1px 0px 0 0;
|
|
34
|
+
margin-right: 4px;
|
|
37
35
|
vertical-align: middle;
|
|
38
36
|
background: $font-color-second left top no-repeat;
|
|
39
37
|
border: 1px solid $component-border-color;
|
|
40
38
|
cursor: pointer;
|
|
41
|
-
display: flex;
|
|
42
|
-
margin-right: 6px;
|
|
43
|
-
align-items: center;
|
|
44
|
-
justify-content: center;
|
|
45
39
|
&:hover {
|
|
46
40
|
animation-duration: .5s;
|
|
47
41
|
animation-name: blink-effect;
|
|
48
42
|
animation-iteration-count: infinite;
|
|
49
43
|
animation-direction: alternate;
|
|
50
44
|
}
|
|
51
|
-
& > svg {
|
|
52
|
-
display: none;
|
|
53
|
-
}
|
|
54
45
|
}
|
|
55
46
|
&:checked + span {
|
|
56
|
-
background-color: $
|
|
57
|
-
border-color: $checked;
|
|
47
|
+
background-color: $check-background;
|
|
58
48
|
color: $font-color-second;
|
|
59
49
|
animation-duration: .2s;
|
|
60
50
|
animation-name: select-checkbox;
|
|
61
51
|
animation-iteration-count: 1;
|
|
62
52
|
animation-direction: Normal;
|
|
53
|
+
box-shadow: inset 0 0 0 1px $checked,
|
|
54
|
+
inset 0 0 0 0 #FFFFFF,
|
|
55
|
+
inset 0 0 0 16px $checked-effect;
|
|
63
56
|
}
|
|
64
57
|
&:focus + span {
|
|
65
58
|
border: 2px solid $component-selected-color;
|
|
66
59
|
}
|
|
60
|
+
&:disabled:checked + span:before {
|
|
61
|
+
@extend %component-menu-disabled;
|
|
62
|
+
border: 1px solid;
|
|
63
|
+
margin-top: -1px;
|
|
64
|
+
width: 18px;
|
|
65
|
+
height: 18px;
|
|
66
|
+
background-color: rgb(229, 229, 229);
|
|
67
|
+
margin-left: -1px;
|
|
68
|
+
}
|
|
67
69
|
}
|
|
68
70
|
> .description {
|
|
69
71
|
@extend %input-label;
|
|
72
|
+
margin-left: 2px;
|
|
70
73
|
cursor: pointer ;
|
|
71
|
-
flex: 1;
|
|
72
|
-
line-height: 18px;
|
|
73
|
-
|
|
74
|
-
> .hint {
|
|
75
|
-
@extend %hint-text;
|
|
76
|
-
margin-top: 0;
|
|
77
|
-
}
|
|
78
74
|
}
|
|
79
75
|
}
|
|
80
76
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
font-size: 13px!important;
|
|
86
|
-
line-height: 13px;
|
|
87
|
-
margin-top: 0px;
|
|
77
|
+
> .hint {
|
|
78
|
+
@extend %hint-text;
|
|
79
|
+
margin-top: 0;
|
|
80
|
+
padding-left: 22px;
|
|
88
81
|
}
|
|
89
|
-
|
|
90
|
-
|
|
82
|
+
|
|
83
|
+
&.-skeletonized {
|
|
91
84
|
> .inputcontent {
|
|
92
85
|
.input {
|
|
93
86
|
+ span {
|
|
@@ -100,8 +93,8 @@
|
|
|
100
93
|
}
|
|
101
94
|
}
|
|
102
95
|
}
|
|
103
|
-
> .inputcontent > .description
|
|
104
|
-
> .
|
|
96
|
+
> .inputcontent > .description,
|
|
97
|
+
> .hint > span {
|
|
105
98
|
@extend %skeleton-component;
|
|
106
99
|
}
|
|
107
100
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
-ms-transform: translate(-50%, -50%);
|
|
5
5
|
-o-transform: translate(-50%, -50%);
|
|
6
6
|
transform: translate(-50%, -50%);
|
|
7
|
-
transition: all 0.
|
|
7
|
+
transition: all 0.5s ease-in-out;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
%component-effect-click {
|
|
@@ -89,8 +89,6 @@ $alert-warning: #fff3cd;
|
|
|
89
89
|
$alert-warning-text: #856404;
|
|
90
90
|
$alert-warning-border: #f2e3b5;
|
|
91
91
|
|
|
92
|
-
$error-color: #ff3030;
|
|
93
|
-
|
|
94
92
|
$danger-color: #e74c3c;
|
|
95
93
|
$danger-hover-color: #dd2d1b;
|
|
96
94
|
$danger-focus-color: #c0392b;
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
@import "commons.scss";
|
|
2
2
|
@import "colors.scss";
|
|
3
3
|
@import "effects.scss";
|
|
4
|
-
|
|
5
|
-
$shadow-button-default: 1px 1px 1px rgba(0, 0, 0, 0.2);
|
|
6
|
-
$shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-button-default;
|
|
7
4
|
.modalcontainer {
|
|
8
5
|
font-family: 'Roboto', sans-serif;
|
|
9
6
|
line-height: 22px;
|
|
10
7
|
font-size: 14px;
|
|
11
8
|
position: fixed;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
top: 0;
|
|
10
|
+
bottom: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
right: 0;
|
|
16
13
|
> .dialog {
|
|
17
|
-
|
|
14
|
+
position: absolute;
|
|
15
|
+
height: 100%;
|
|
16
|
+
width: 100%;
|
|
17
|
+
top: 0;
|
|
18
|
+
left: 0;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
18
22
|
> .dialog-form-wrapper {
|
|
19
23
|
@extend %component-box-shadow;
|
|
20
24
|
width: 100%;
|
|
@@ -62,38 +66,18 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
62
66
|
width: 100%;
|
|
63
67
|
margin-left: 2px;
|
|
64
68
|
display: flex;
|
|
65
|
-
justify-content: space-between;
|
|
66
69
|
align-items: center;
|
|
67
|
-
|
|
68
|
-
color:
|
|
69
|
-
font-weight:
|
|
70
|
+
&.modal-title {
|
|
71
|
+
color: #4e4c4c;
|
|
72
|
+
font-weight: 600;
|
|
70
73
|
}
|
|
71
74
|
}
|
|
72
75
|
.close-button {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
width: 28px;
|
|
79
|
-
height: 28px;
|
|
80
|
-
border: none;
|
|
81
|
-
background-color: $default-color;
|
|
82
|
-
color: $font-color-soft;
|
|
83
|
-
border-radius: 999999px;
|
|
84
|
-
cursor: pointer !important;
|
|
85
|
-
>svg {
|
|
86
|
-
fill: $font-color-soft;
|
|
87
|
-
pointer-events: fill;
|
|
88
|
-
transition: 0.2s fill;
|
|
89
|
-
}
|
|
90
|
-
&:hover {
|
|
91
|
-
background-color: $default-hover-color;
|
|
92
|
-
}
|
|
93
|
-
&:focus {
|
|
94
|
-
-webkit-box-shadow: $shadow-button-inset-default;
|
|
95
|
-
box-shadow: $shadow-button-inset-default;
|
|
96
|
-
}
|
|
76
|
+
color: #777;
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
font-size: 16px;
|
|
79
|
+
text-shadow: 0 1px 0 $default-color;
|
|
80
|
+
margin-left: auto;
|
|
97
81
|
}
|
|
98
82
|
}
|
|
99
83
|
.footer {
|
|
@@ -192,7 +176,6 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
192
176
|
background-color: #235a94;
|
|
193
177
|
opacity: .3;
|
|
194
178
|
position: fixed;
|
|
195
|
-
z-index: -1;
|
|
196
179
|
height: 100%;
|
|
197
180
|
width: 100%;
|
|
198
181
|
top: 0;
|
|
@@ -94,8 +94,6 @@
|
|
|
94
94
|
}
|
|
95
95
|
.right {
|
|
96
96
|
margin-left: 2px;
|
|
97
|
-
display: flex;
|
|
98
|
-
align-items: center;
|
|
99
97
|
&.modal-title {
|
|
100
98
|
color: #4e4c4c;
|
|
101
99
|
font-weight: 600;
|
|
@@ -103,13 +101,12 @@
|
|
|
103
101
|
}
|
|
104
102
|
.closebutton {
|
|
105
103
|
cursor: pointer;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
104
|
+
float: right;
|
|
105
|
+
font-size: 16px;
|
|
106
|
+
text-shadow: 0 1px 0 $default-color;
|
|
107
|
+
margin-right: 5px;
|
|
108
|
+
&:hover {
|
|
109
|
+
color: rgba(0, 0, 0, 0.164);
|
|
113
110
|
}
|
|
114
111
|
}
|
|
115
112
|
}
|