@steroidsjs/bootstrap 3.0.0-beta.107 → 3.0.0-beta.109
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/content/CalendarSystem/MonthGrid/MonthGrid.js +2 -13
- package/content/CalendarSystem/MonthGrid/MonthGrid.scss +1 -91
- package/content/CalendarSystem/MonthGrid/views/MonthDay/MonthDay.d.ts +9 -0
- package/content/CalendarSystem/MonthGrid/views/MonthDay/MonthDay.js +57 -0
- package/content/CalendarSystem/MonthGrid/views/MonthDay/MonthDay.scss +125 -0
- package/content/CalendarSystem/MonthGrid/views/MonthDay/index.d.ts +2 -0
- package/content/CalendarSystem/MonthGrid/views/MonthDay/index.js +7 -0
- package/content/CalendarSystem/WeekGrid/WeekGrid.js +1 -1
- package/content/CalendarSystem/WeekGrid/WeekGrid.scss +5 -76
- package/content/CalendarSystem/WeekGrid/views/WeekHour/WeekHour.d.ts +0 -2
- package/content/CalendarSystem/WeekGrid/views/WeekHour/WeekHour.js +39 -15
- package/content/CalendarSystem/WeekGrid/views/WeekHour/WeekHour.scss +98 -8
- package/content/Kanban/KanbanView.scss +1 -0
- package/content/Kanban/views/KanbanColumn/KanbanColumnView.js +4 -4
- package/content/Kanban/views/KanbanColumn/KanbanColumnView.scss +16 -0
- package/content/Kanban/views/KanbanModal/KanbanModalView.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/KanbanModalView.js +57 -0
- package/content/Kanban/views/KanbanModal/KanbanModalView.scss +199 -0
- package/content/Kanban/views/KanbanModal/index.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/index.js +7 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/CreateOrEditTaskModalContentView.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/CreateOrEditTaskModalContentView.js +93 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/index.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/index.js +7 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/Label/Label.d.ts +6 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/Label/Label.js +11 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/Label/index.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/Label/index.js +7 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/TagsSelector/TagsSelector.d.ts +8 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/TagsSelector/TagsSelector.js +49 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/TagsSelector/TagsSelector.scss +30 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/TagsSelector/index.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/TagsSelector/index.js +7 -0
- package/content/Kanban/views/KanbanModal/views/TaskDetailsModalContent/TaskDetailsModalContentView.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/views/TaskDetailsModalContent/TaskDetailsModalContentView.js +53 -0
- package/content/Kanban/views/KanbanModal/views/TaskDetailsModalContent/index.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/views/TaskDetailsModalContent/index.js +7 -0
- package/content/Kanban/views/KanbanTask/KanbanTaskView.js +17 -14
- package/content/Kanban/views/KanbanTask/KanbanTaskView.scss +15 -5
- package/content/Kanban/views/TaskTags/TaskTags.d.ts +2 -0
- package/content/Kanban/views/TaskTags/TaskTags.js +1 -1
- package/content/Kanban/views/TaskTags/TaskTags.scss +5 -7
- package/form/DropDownField/DropDownFieldView.scss +3 -2
- package/form/InputField/InputFieldView.js +2 -2
- package/index.d.ts +3 -0
- package/index.js +3 -0
- package/index.scss +1 -0
- package/package.json +2 -2
- package/scss/mixins/button.scss +24 -8
- package/scss/mixins/index.scss +1 -0
- package/scss/mixins/tooltip.scss +23 -0
- package/scss/variables/common/colors.scss +5 -2
- package/scss/variables/common/typography.scss +7 -0
- package/utils/getFormattedExpandLabel.d.ts +1 -0
- package/utils/getFormattedExpandLabel.js +5 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@use "../../../../../../../../scss/variables";
|
|
2
|
+
|
|
3
|
+
.TagsSelector {
|
|
4
|
+
$root: &;
|
|
5
|
+
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 16px;
|
|
9
|
+
|
|
10
|
+
$tag-types: (
|
|
11
|
+
"primary": variables.$primary,
|
|
12
|
+
"secondary": variables.$secondary,
|
|
13
|
+
"success": variables.$success,
|
|
14
|
+
"danger": variables.$danger,
|
|
15
|
+
"warning": variables.$warning,
|
|
16
|
+
"info": variables.$info,
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
@each $type, $color in $tag-types {
|
|
20
|
+
&__tag-color_#{$type} {
|
|
21
|
+
background-color: $color;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__tag-color {
|
|
26
|
+
width: 12px;
|
|
27
|
+
height: 12px;
|
|
28
|
+
border-radius: 4px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
var TagsSelector_1 = __importDefault(require("./TagsSelector"));
|
|
7
|
+
exports["default"] = TagsSelector_1["default"];
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
exports.__esModule = true;
|
|
29
|
+
var react_1 = __importStar(require("react"));
|
|
30
|
+
var content_1 = require("@steroidsjs/core/ui/content");
|
|
31
|
+
var typography_1 = require("@steroidsjs/core/ui/typography");
|
|
32
|
+
var KanbanPrioritiesEnum_1 = __importDefault(require("@steroidsjs/core/ui/content/Kanban/enums/KanbanPrioritiesEnum"));
|
|
33
|
+
function TaskDetailsModalContentView(props) {
|
|
34
|
+
var _a;
|
|
35
|
+
var _b = props.task, tags = _b.tags, priority = _b.priority, description = _b.description, assigner = _b.assigner;
|
|
36
|
+
var toTags = (0, react_1.useCallback)(function (tag) { return (react_1["default"].createElement(content_1.Badge, { key: tag.id, size: "md", roundingStyle: "squarer", message: tag.message, type: tag.type })); }, []);
|
|
37
|
+
var priorityLabel = (0, react_1.useMemo)(function () { return KanbanPrioritiesEnum_1["default"].getLabel(priority === null || priority === void 0 ? void 0 : priority.type); }, [priority === null || priority === void 0 ? void 0 : priority.type]);
|
|
38
|
+
var priorityColor = (0, react_1.useMemo)(function () { return KanbanPrioritiesEnum_1["default"].getColorByType(priority === null || priority === void 0 ? void 0 : priority.type); }, [priority === null || priority === void 0 ? void 0 : priority.type]);
|
|
39
|
+
return (react_1["default"].createElement("div", { className: props.bem.element('content') },
|
|
40
|
+
description && (react_1["default"].createElement(typography_1.Text, { type: "body", content: description, tag: "p" })),
|
|
41
|
+
!!(tags === null || tags === void 0 ? void 0 : tags.length) && (react_1["default"].createElement("div", { className: props.bem.element('row', 'tags') }, tags.map(toTags))),
|
|
42
|
+
react_1["default"].createElement("div", { className: props.bem.element('row') },
|
|
43
|
+
react_1["default"].createElement(typography_1.Text, { className: props.bem.element('label'), type: 'body3', content: __('Приоритет'), color: "light-dark" }),
|
|
44
|
+
react_1["default"].createElement("div", { className: props.bem.element('data') },
|
|
45
|
+
react_1["default"].createElement(content_1.Badge, { size: "md", roundingStyle: "squarer", message: priorityLabel, type: priorityColor }))),
|
|
46
|
+
assigner && (react_1["default"].createElement("div", { className: props.bem.element('row') },
|
|
47
|
+
react_1["default"].createElement(typography_1.Text, { className: props.bem.element('label'), type: 'body3', content: __('Исполнитель'), color: "light-dark" }),
|
|
48
|
+
react_1["default"].createElement("div", { className: props.bem.element('data') },
|
|
49
|
+
react_1["default"].createElement("div", { className: props.bem.element('assigner') },
|
|
50
|
+
react_1["default"].createElement(content_1.Avatar, { src: (_a = assigner.avatar) === null || _a === void 0 ? void 0 : _a.src, title: assigner.firstName, size: 'sm' }),
|
|
51
|
+
react_1["default"].createElement(typography_1.Text, { type: "body", content: "".concat(assigner.firstName || '', " ").concat(assigner.lastName || '') })))))));
|
|
52
|
+
}
|
|
53
|
+
exports["default"] = TaskDetailsModalContentView;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
var TaskDetailsModalContentView_1 = __importDefault(require("./TaskDetailsModalContentView"));
|
|
7
|
+
exports["default"] = TaskDetailsModalContentView_1["default"];
|
|
@@ -44,20 +44,23 @@ var typography_1 = require("@steroidsjs/core/ui/typography");
|
|
|
44
44
|
var TaskTags_1 = __importDefault(require("../TaskTags"));
|
|
45
45
|
function KanbanTaskView(props) {
|
|
46
46
|
var bem = (0, hooks_1.useBem)('KanbanTaskView');
|
|
47
|
-
var _a = props.task, id = _a.id, title = _a.title, description = _a.description, tags = _a.tags, assigner = _a.assigner,
|
|
47
|
+
var _a = props.task, id = _a.id, title = _a.title, description = _a.description, tags = _a.tags, assigner = _a.assigner, priority = _a.priority;
|
|
48
48
|
var Draggable = props.draggableComponent;
|
|
49
|
-
return (react_1["default"].createElement(Draggable, { draggableId: id, index: props.index }, function (provided) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
title)),
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
react_1["default"].createElement(
|
|
61
|
-
|
|
49
|
+
return (react_1["default"].createElement(Draggable, { draggableId: id.toString(), index: props.index }, function (provided) {
|
|
50
|
+
var _a;
|
|
51
|
+
return (react_1["default"].createElement("div", __assign({ className: bem.block() }, provided.draggableProps, provided.dragHandleProps, { ref: provided.innerRef }),
|
|
52
|
+
react_1["default"].createElement("div", { className: bem.element('wrapper') },
|
|
53
|
+
react_1["default"].createElement("div", { className: bem.element('content') },
|
|
54
|
+
react_1["default"].createElement("div", { className: bem.element('header') },
|
|
55
|
+
react_1["default"].createElement("h4", { className: bem.element('title'), "aria-hidden": "true", onClick: function () { return props.onOpenTaskDetailsModal(props.task, props.columnId); } },
|
|
56
|
+
react_1["default"].createElement("span", { className: bem.element('task-id') }, __("#".concat(id, " "))),
|
|
57
|
+
title)),
|
|
58
|
+
description && (react_1["default"].createElement(typography_1.Text, { type: 'body2', content: description, className: bem.element('description') }))),
|
|
59
|
+
react_1["default"].createElement("div", { className: bem.element('footer') },
|
|
60
|
+
tags && (react_1["default"].createElement(TaskTags_1["default"], { tags: tags })),
|
|
61
|
+
assigner && (react_1["default"].createElement("div", { className: bem.element('assigner') },
|
|
62
|
+
react_1["default"].createElement(Avatar_1["default"], { src: (_a = assigner.avatar) === null || _a === void 0 ? void 0 : _a.src, title: "".concat(assigner.firstName, " ").concat(assigner.lastName), size: 'sm' }))))),
|
|
63
|
+
priority && (react_1["default"].createElement("span", { className: bem.element('priority', !!priority && "".concat(priority.type)) }))));
|
|
64
|
+
}));
|
|
62
65
|
}
|
|
63
66
|
exports["default"] = (0, react_1.memo)(KanbanTaskView);
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
@use "../../../../scss/variables";
|
|
2
2
|
|
|
3
|
+
:root {
|
|
4
|
+
--kanban-background-color: #fff;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
html[data-theme="dark"] {
|
|
8
|
+
--kanban-background-color: #333646;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
$kanban-background-color: var(--kanban-background-color);
|
|
12
|
+
|
|
3
13
|
.KanbanTaskView {
|
|
4
14
|
$root: &;
|
|
5
15
|
|
|
@@ -17,7 +27,7 @@
|
|
|
17
27
|
border: 1px solid variables.$element-border-color;
|
|
18
28
|
border-radius: variables.$radius-small;
|
|
19
29
|
color: variables.$text-color;
|
|
20
|
-
background-color:
|
|
30
|
+
background-color: $kanban-background-color;
|
|
21
31
|
|
|
22
32
|
position: relative;
|
|
23
33
|
display: flex;
|
|
@@ -25,18 +35,18 @@
|
|
|
25
35
|
padding: 16px;
|
|
26
36
|
}
|
|
27
37
|
|
|
28
|
-
$card-
|
|
38
|
+
$card-priorities: (
|
|
29
39
|
"high": variables.$danger,
|
|
30
40
|
"middle": variables.$warning,
|
|
31
41
|
);
|
|
32
42
|
|
|
33
|
-
@each $
|
|
34
|
-
&
|
|
43
|
+
@each $priority, $color in $card-priorities {
|
|
44
|
+
&__priority_#{$priority} {
|
|
35
45
|
background-color: $color;
|
|
36
46
|
}
|
|
37
47
|
}
|
|
38
48
|
|
|
39
|
-
&
|
|
49
|
+
&__priority {
|
|
40
50
|
position: absolute;
|
|
41
51
|
top: 0;
|
|
42
52
|
left: 0;
|
|
@@ -2,6 +2,8 @@ import { ITaskTag } from '@steroidsjs/core/ui/content/Kanban/Kanban';
|
|
|
2
2
|
import './TaskTags.scss';
|
|
3
3
|
interface ITaskTagsProps {
|
|
4
4
|
tags: ITaskTag[];
|
|
5
|
+
showClose?: boolean;
|
|
6
|
+
onClose?: (id: number) => void;
|
|
5
7
|
}
|
|
6
8
|
export default function TaskTags(props: ITaskTagsProps): JSX.Element;
|
|
7
9
|
export {};
|
|
@@ -9,6 +9,6 @@ var hooks_1 = require("@steroidsjs/core/hooks");
|
|
|
9
9
|
require("./TaskTags.scss");
|
|
10
10
|
function TaskTags(props) {
|
|
11
11
|
var bem = (0, hooks_1.useBem)('TaskTags');
|
|
12
|
-
return (react_1["default"].createElement("div", { className: bem.
|
|
12
|
+
return (react_1["default"].createElement("div", { className: bem.block() }, props.tags.map(function (tag) { return (react_1["default"].createElement(content_1.Badge, { key: tag.id, size: "md", roundingStyle: "squarer", message: tag.message, type: tag.type, showClose: props.showClose, onClose: function () { return props.onClose(tag.id); } })); })));
|
|
13
13
|
}
|
|
14
14
|
exports["default"] = TaskTags;
|
|
@@ -69,10 +69,10 @@ function InputFieldView(props) {
|
|
|
69
69
|
props.maskOptions
|
|
70
70
|
? (React.createElement("input", __assign({ onBlur: props.onBlur, onFocus: props.onFocus, onMouseDown: props.onMouseDown, className: bem(bem.element('input', {
|
|
71
71
|
size: props.size
|
|
72
|
-
})) }, props.inputProps, { type: props.type, placeholder: props.placeholder, disabled: props.disabled, required: props.required, id: props.id, ref: props.inputRef })))
|
|
72
|
+
})) }, props.inputProps, { type: props.inputProps.type, placeholder: props.placeholder, disabled: props.disabled, required: props.required, id: props.id, ref: props.inputRef })))
|
|
73
73
|
: (React.createElement("input", __assign({ className: bem(bem.element('input', {
|
|
74
74
|
size: props.size
|
|
75
|
-
})) }, props.inputProps, { type: props.type, placeholder: props.placeholder, disabled: props.disabled, required: props.required, id: props.id, ref: props.inputRef }))),
|
|
75
|
+
})) }, props.inputProps, { type: props.inputProps.type, placeholder: props.placeholder, disabled: props.disabled, required: props.required, id: props.id, ref: props.inputRef }))),
|
|
76
76
|
!props.disabled && props.showClear && !props.maskProps && (React.createElement(Icon_1["default"], { name: "cross_8x8", className: bem.element('icon-clear'), tabIndex: -1, onClick: props.onClear }))),
|
|
77
77
|
props.textAfter && (React.createElement("span", { className: bem.element('text-after') }, props.textAfter)),
|
|
78
78
|
props.addonAfter && (React.createElement("span", { className: bem.element('addon-after') }, props.addonAfter))));
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -53,6 +53,9 @@ exports["default"] = {
|
|
|
53
53
|
'content.KanbanTaskView': {
|
|
54
54
|
lazy: function () { return require('./content/Kanban/views/KanbanTask/KanbanTaskView')["default"]; }
|
|
55
55
|
},
|
|
56
|
+
'content.KanbanModalView': {
|
|
57
|
+
lazy: function () { return require('./content/Kanban/views/KanbanModal/KanbanModalView')["default"]; }
|
|
58
|
+
},
|
|
56
59
|
'content.CalendarSystemView': {
|
|
57
60
|
lazy: function () { return require('./content/CalendarSystem/CalendarSystemView')["default"]; }
|
|
58
61
|
},
|
package/index.scss
CHANGED
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
@include meta.load-css('content/Kanban/KanbanView');
|
|
28
28
|
@include meta.load-css('content/Kanban/views/KanbanColumn/KanbanColumnView');
|
|
29
29
|
@include meta.load-css('content/Kanban/views/KanbanTask/KanbanTaskView');
|
|
30
|
+
@include meta.load-css('content/Kanban/views/KanbanModal/KanbanModalView');
|
|
30
31
|
@include meta.load-css('crud/Crud/CrudView');
|
|
31
32
|
@include meta.load-css('form/AutoCompleteField/AutoCompleteFieldView');
|
|
32
33
|
@include meta.load-css('form/Button/ButtonView');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steroidsjs/bootstrap",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.109",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Vladimir Kozhin <hello@kozhindev.com>",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"react-use": "^17.4.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@steroidsjs/core": "^3.0 || >=3.0.0-beta.
|
|
40
|
+
"@steroidsjs/core": "^3.0 || >=3.0.0-beta.93",
|
|
41
41
|
"@steroidsjs/eslint-config": "^2.1.4",
|
|
42
42
|
"@types/enzyme": "^3.10.8",
|
|
43
43
|
"@types/googlemaps": "^3.43.3",
|
package/scss/mixins/button.scss
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
@use "../variables/common/colors";
|
|
3
|
+
@use "../variables/index" as variables;
|
|
3
4
|
|
|
4
5
|
@mixin svg-color($color) {
|
|
5
6
|
svg {
|
|
6
|
-
path {
|
|
7
|
+
path {
|
|
7
8
|
stroke: $color;
|
|
8
9
|
}
|
|
9
10
|
}
|
|
@@ -18,7 +19,9 @@
|
|
|
18
19
|
}
|
|
19
20
|
&:focus,
|
|
20
21
|
&:focus-visible {
|
|
21
|
-
box-shadow:
|
|
22
|
+
box-shadow:
|
|
23
|
+
0 0 0 4px map.get($colorMap, color-light),
|
|
24
|
+
0 0 0 4px map.get($colorMap, color-light);
|
|
22
25
|
}
|
|
23
26
|
&:active {
|
|
24
27
|
background-color: map.get($colorMap, color-light);
|
|
@@ -29,12 +32,12 @@
|
|
|
29
32
|
color: map.get($colorMap, text-color);
|
|
30
33
|
}
|
|
31
34
|
|
|
32
|
-
#{$root}__loader {
|
|
35
|
+
#{$root}__loader {
|
|
33
36
|
svg {
|
|
34
|
-
path {
|
|
37
|
+
path {
|
|
35
38
|
stroke: map.get($colorMap, color-light);
|
|
36
39
|
|
|
37
|
-
@if ($colorName ==
|
|
40
|
+
@if ($colorName == "basic") {
|
|
38
41
|
stroke: map.get($colorMap, color-dark);
|
|
39
42
|
}
|
|
40
43
|
}
|
|
@@ -64,7 +67,9 @@
|
|
|
64
67
|
border-color: map.get($colorMap, color-dark);
|
|
65
68
|
}
|
|
66
69
|
&:focus {
|
|
67
|
-
box-shadow:
|
|
70
|
+
box-shadow:
|
|
71
|
+
0 0 0 4px map.get($colorMap, color-light),
|
|
72
|
+
0 0 0 4px map.get($colorMap, color-light);
|
|
68
73
|
border: 1px solid transparent;
|
|
69
74
|
}
|
|
70
75
|
&:active {
|
|
@@ -84,9 +89,20 @@
|
|
|
84
89
|
|
|
85
90
|
@if ($colorName == "basic") {
|
|
86
91
|
color: colors.$text-color;
|
|
87
|
-
}
|
|
92
|
+
}
|
|
88
93
|
|
|
89
|
-
#{$root}__loader {
|
|
94
|
+
#{$root}__loader {
|
|
90
95
|
@include svg-color(map.get($colorMap, color));
|
|
91
96
|
}
|
|
92
97
|
}
|
|
98
|
+
|
|
99
|
+
@mixin expand-button() {
|
|
100
|
+
font-size: variables.$font-size-xs;
|
|
101
|
+
font-weight: variables.$font-weight-sm;
|
|
102
|
+
line-height: variables.$line-height-xs;
|
|
103
|
+
text-align: center;
|
|
104
|
+
|
|
105
|
+
.ButtonView__text {
|
|
106
|
+
color: variables.$text-color;
|
|
107
|
+
}
|
|
108
|
+
}
|
package/scss/mixins/index.scss
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use "../variables/index" as variables;
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--tooltip-background-color: rgba(255, 255, 255, 0.4);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
html[data-theme="dark"] {
|
|
8
|
+
--tooltip-background-color: rgba(255, 255, 255, 0.4);
|
|
9
|
+
}
|
|
10
|
+
$tooltip-background-color: var(--tooltip-background-color);
|
|
11
|
+
|
|
12
|
+
@mixin calendar-tooltip() {
|
|
13
|
+
background-color: $tooltip-background-color;
|
|
14
|
+
border-radius: 4px;
|
|
15
|
+
|
|
16
|
+
.TooltipView__arrow {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.TooltipView__content {
|
|
21
|
+
color: variables.$text-color;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
--element-background-color: #FFFFFF;
|
|
46
46
|
--element-background-color-disabled: #f1f5f7;
|
|
47
47
|
--element-field-background-color: #FFFFFF;
|
|
48
|
+
--element-light-label-color: rgba(0, 0, 0, 0.6);
|
|
48
49
|
|
|
49
50
|
--scroll-thumb-color: #cbd5db;
|
|
50
51
|
--scroll-track-color: #f1f5f7;
|
|
@@ -101,6 +102,7 @@ html[data-theme="dark"] {
|
|
|
101
102
|
--element-background-color: #191B1F;
|
|
102
103
|
--element-background-color-disabled: #333646;
|
|
103
104
|
--element-field-background-color: #101216;
|
|
105
|
+
--element-light-label-color: #fff;
|
|
104
106
|
|
|
105
107
|
--scroll-thumb-color: #333646;
|
|
106
108
|
--scroll-track-color: #26272f;
|
|
@@ -140,7 +142,7 @@ $gray: var(--gray);
|
|
|
140
142
|
$light-gray: var(--light-gray);
|
|
141
143
|
|
|
142
144
|
$additional-gray-dark: var(--additional-gray-dark);
|
|
143
|
-
$additional-light-gray: var(--additional-gray);
|
|
145
|
+
$additional-light-gray: var(--additional-light-gray);
|
|
144
146
|
$additional-light-blue: var(--additional-light-blue);
|
|
145
147
|
|
|
146
148
|
$text-color: var(--text-color);
|
|
@@ -156,6 +158,7 @@ $element-border-color-hover: var(--element-border-color-hover);
|
|
|
156
158
|
$element-background-color: var(--element-background-color);
|
|
157
159
|
$element-background-color-disabled: var(--element-background-color-disabled);
|
|
158
160
|
$element-field-background-color: var(--element-field-background-color);
|
|
161
|
+
$element-light-label-color: var(--element-light-label-color);
|
|
159
162
|
|
|
160
163
|
|
|
161
164
|
$scroll-thumb-color: var(--scroll-thumb-color);
|
|
@@ -266,4 +269,4 @@ $diagram-colors: map.merge(
|
|
|
266
269
|
),
|
|
267
270
|
),
|
|
268
271
|
$diagram-colors
|
|
269
|
-
);
|
|
272
|
+
);
|
|
@@ -89,6 +89,12 @@ $text-types: map.merge(
|
|
|
89
89
|
"line-height": $line-height-sm,
|
|
90
90
|
"color": colors.$text-color,
|
|
91
91
|
),
|
|
92
|
+
"body3": (
|
|
93
|
+
"font-size": $font-size-xs,
|
|
94
|
+
"font-weight": $font-weight-sm,
|
|
95
|
+
"line-height": $line-height-xs,
|
|
96
|
+
"color": colors.$text-color,
|
|
97
|
+
),
|
|
92
98
|
"span": (
|
|
93
99
|
"font-size": $font-size-base,
|
|
94
100
|
"font-weight": $font-weight-sm,
|
|
@@ -113,4 +119,5 @@ $typography-colors: (
|
|
|
113
119
|
"danger": colors.$danger,
|
|
114
120
|
"warning": colors.$warning,
|
|
115
121
|
"info": colors.$info,
|
|
122
|
+
"light-dark": colors.$element-light-label-color,
|
|
116
123
|
) !default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getFormattedExpandRestLabel: (rest: any[]) => string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.getFormattedExpandRestLabel = void 0;
|
|
4
|
+
var getFormattedExpandRestLabel = function (rest) { return "".concat(__('Показать ещё'), " +").concat(rest.length); };
|
|
5
|
+
exports.getFormattedExpandRestLabel = getFormattedExpandRestLabel;
|