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