@steroidsjs/bootstrap 3.0.0-beta.98 → 3.0.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/content/Calendar/CalendarView.js +9 -4
- package/content/Calendar/CaptionElement.js +6 -3
- package/content/CalendarSystem/AsideCalendars/AsideCalendars.d.ts +12 -0
- package/content/CalendarSystem/AsideCalendars/AsideCalendars.js +43 -0
- package/content/CalendarSystem/AsideCalendars/AsideCalendars.scss +107 -0
- package/content/CalendarSystem/AsideCalendars/index.d.ts +2 -0
- package/content/CalendarSystem/AsideCalendars/index.js +7 -0
- package/content/CalendarSystem/AsideHeader/AsideHeader.d.ts +9 -0
- package/content/CalendarSystem/AsideHeader/AsideHeader.js +40 -0
- package/content/CalendarSystem/AsideHeader/AsideHeader.scss +41 -0
- package/content/CalendarSystem/AsideHeader/index.d.ts +2 -0
- package/content/CalendarSystem/AsideHeader/index.js +7 -0
- package/content/CalendarSystem/CalendarSystemEventGroupModalView.d.ts +2 -0
- package/content/CalendarSystem/CalendarSystemEventGroupModalView.js +25 -0
- package/content/CalendarSystem/CalendarSystemEventGroupModalView.scss +53 -0
- package/content/CalendarSystem/CalendarSystemModalView.d.ts +2 -0
- package/content/CalendarSystem/CalendarSystemModalView.js +54 -0
- package/content/CalendarSystem/CalendarSystemModalView.scss +84 -0
- package/content/CalendarSystem/CalendarSystemView.d.ts +2 -0
- package/content/CalendarSystem/CalendarSystemView.js +44 -0
- package/content/CalendarSystem/CalendarSystemView.scss +50 -0
- package/content/CalendarSystem/ContentHeader/ContentHeader.d.ts +10 -0
- package/content/CalendarSystem/ContentHeader/ContentHeader.js +26 -0
- package/content/CalendarSystem/ContentHeader/ContentHeader.scss +57 -0
- package/content/CalendarSystem/ContentHeader/index.d.ts +2 -0
- package/content/CalendarSystem/ContentHeader/index.js +7 -0
- package/content/CalendarSystem/MonthGrid/MonthGrid.d.ts +14 -0
- package/content/CalendarSystem/MonthGrid/MonthGrid.js +39 -0
- package/content/CalendarSystem/MonthGrid/MonthGrid.scss +41 -0
- package/content/CalendarSystem/MonthGrid/index.d.ts +2 -0
- package/content/CalendarSystem/MonthGrid/index.js +7 -0
- package/content/CalendarSystem/MonthGrid/views/MonthDay/MonthDay.d.ts +11 -0
- package/content/CalendarSystem/MonthGrid/views/MonthDay/MonthDay.js +73 -0
- package/content/CalendarSystem/MonthGrid/views/MonthDay/MonthDay.scss +126 -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.d.ts +14 -0
- package/content/CalendarSystem/WeekGrid/WeekGrid.js +25 -0
- package/content/CalendarSystem/WeekGrid/WeekGrid.scss +154 -0
- package/content/CalendarSystem/WeekGrid/index.d.ts +2 -0
- package/content/CalendarSystem/WeekGrid/index.js +7 -0
- package/content/CalendarSystem/WeekGrid/views/WeekHour/WeekHour.d.ts +12 -0
- package/content/CalendarSystem/WeekGrid/views/WeekHour/WeekHour.js +79 -0
- package/content/CalendarSystem/WeekGrid/views/WeekHour/WeekHour.scss +108 -0
- package/content/CalendarSystem/WeekGrid/views/WeekHour/index.d.ts +2 -0
- package/content/CalendarSystem/WeekGrid/views/WeekHour/index.js +7 -0
- package/content/Chart/ChartView.js +12 -2
- package/content/Chart/ChartView.scss +35 -4
- package/content/Chat/ChatView.d.ts +2 -0
- package/content/Chat/ChatView.js +62 -0
- package/content/Chat/ChatView.scss +59 -0
- package/content/Chat/index.d.ts +2 -0
- package/content/Chat/index.js +7 -0
- package/content/Chat/views/BubbleMessage/BubbleMessageView.d.ts +17 -0
- package/content/Chat/views/BubbleMessage/BubbleMessageView.js +72 -0
- package/content/Chat/views/BubbleMessage/BubbleMessageView.scss +195 -0
- package/content/Chat/views/BubbleMessage/index.d.ts +2 -0
- package/content/Chat/views/BubbleMessage/index.js +7 -0
- package/content/Chat/views/BubblesDateGroup/BubblesDateGroup.d.ts +12 -0
- package/content/Chat/views/BubblesDateGroup/BubblesDateGroup.js +48 -0
- package/content/Chat/views/BubblesDateGroup/BubblesDateGroup.scss +78 -0
- package/content/Chat/views/BubblesDateGroup/index.d.ts +2 -0
- package/content/Chat/views/BubblesDateGroup/index.js +7 -0
- package/content/Chat/views/ChatFileItem/ChatFileItemView.d.ts +9 -0
- package/content/Chat/views/ChatFileItem/ChatFileItemView.js +50 -0
- package/content/Chat/views/ChatFileItem/ChatFileItemView.scss +184 -0
- package/content/Chat/views/ChatFileItem/index.d.ts +2 -0
- package/content/Chat/views/ChatFileItem/index.js +7 -0
- package/content/Chat/views/ChatInput/ChatInputView.d.ts +3 -0
- package/content/Chat/views/ChatInput/ChatInputView.js +64 -0
- package/content/Chat/views/ChatInput/ChatInputView.scss +82 -0
- package/content/Chat/views/ChatInput/index.d.ts +2 -0
- package/content/Chat/views/ChatInput/index.js +7 -0
- package/content/Dashboard/DashboardItemView.d.ts +2 -0
- package/content/Dashboard/DashboardItemView.js +18 -0
- package/content/Dashboard/DashboardItemView.scss +47 -0
- package/content/DropDown/DropDownView.js +12 -12
- package/content/DropDown/DropDownView.scss +34 -175
- package/content/Icon/IconView.js +18 -2
- package/content/Kanban/KanbanView.d.ts +2 -0
- package/content/Kanban/KanbanView.js +29 -0
- package/content/Kanban/KanbanView.scss +12 -0
- package/content/Kanban/views/KanbanColumn/KanbanColumnView.d.ts +2 -0
- package/content/Kanban/views/KanbanColumn/KanbanColumnView.js +36 -0
- package/content/Kanban/views/KanbanColumn/KanbanColumnView.scss +75 -0
- package/content/Kanban/views/KanbanColumn/index.d.ts +2 -0
- package/content/Kanban/views/KanbanColumn/index.js +7 -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 +210 -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 +95 -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.d.ts +5 -0
- package/content/Kanban/views/KanbanTask/KanbanTaskView.js +66 -0
- package/content/Kanban/views/KanbanTask/KanbanTaskView.scss +110 -0
- package/content/Kanban/views/KanbanTask/index.d.ts +2 -0
- package/content/Kanban/views/KanbanTask/index.js +7 -0
- package/content/Kanban/views/TaskTags/TaskTags.d.ts +9 -0
- package/content/Kanban/views/TaskTags/TaskTags.js +14 -0
- package/content/Kanban/views/TaskTags/TaskTags.scss +7 -0
- package/content/Kanban/views/TaskTags/index.d.ts +2 -0
- package/content/Kanban/views/TaskTags/index.js +7 -0
- package/content/Menu/MenuItemView.js +4 -1
- package/content/Slider/SliderView.js +3 -1
- package/form/CheckboxField/CheckboxFieldView.js +5 -2
- package/form/CheckboxField/CheckboxFieldView.scss +27 -0
- package/form/CheckboxListField/CheckboxListFieldView.js +2 -1
- package/form/CheckboxTreeField/CheckboxTreeFieldView.d.ts +2 -0
- package/form/CheckboxTreeField/CheckboxTreeFieldView.js +30 -0
- package/form/CheckboxTreeField/CheckboxTreeFieldView.scss +5 -0
- package/form/CheckboxTreeField/index.d.ts +2 -0
- package/form/CheckboxTreeField/index.js +7 -0
- package/form/DateRangeField/DateRangeFieldView.js +2 -2
- package/form/DateTimeField/DateTimeFieldView.js +1 -1
- package/form/DateTimeRangeField/DateTimeRangeFieldView.js +2 -2
- package/form/DropDownField/DropDownFieldView.js +4 -3
- package/form/DropDownField/DropDownFieldView.scss +12 -2
- package/form/DropDownFieldItem/DropDownFieldItemView.js +1 -1
- package/form/Form/FormView.js +1 -0
- package/form/ImageField/ImageFieldModalView.js +3 -1
- package/form/InputField/InputFieldView.js +2 -2
- package/form/NumberField/NumberFieldView.js +5 -16
- package/form/PasswordField/PasswordFieldView.js +1 -1
- package/form/SliderField/SliderFieldView.js +3 -1
- package/form/WizardForm/WizardFormView.d.ts +2 -0
- package/form/WizardForm/WizardFormView.js +33 -0
- package/form/WizardForm/WizardFormView.scss +30 -0
- package/icons/index.js +3 -0
- package/icons/svgs/add_16x16.svg +4 -0
- package/icons/svgs/done-all.svg +4 -0
- package/icons/svgs/send.svg +3 -0
- package/icons/svgs/view.svg +1 -0
- package/icons/svgs/warning_16x16.svg +2 -0
- package/index.d.ts +36 -0
- package/index.js +36 -0
- package/index.scss +15 -0
- package/layout/ProgressBar/CircleProgressBarView.js +4 -1
- package/layout/ProgressBar/LineProgressBarView.js +4 -1
- package/layout/Skeleton/SkeletonView.js +4 -1
- package/layout/Tooltip/TooltipView.js +3 -3
- package/layout/Tooltip/TooltipView.scss +10 -77
- package/list/FlexGrid/FlexGridView.scss +6 -13
- package/list/Grid/GridView.scss +8 -10
- package/list/Grid/views/TreeColumnView/TreeColumnView.d.ts +2 -0
- package/list/Grid/views/TreeColumnView/TreeColumnView.js +27 -0
- package/list/Grid/views/TreeColumnView/TreeColumnView.scss +6 -0
- package/list/Steps/StepItemView.js +21 -10
- package/list/Steps/StepItemView.scss +113 -83
- package/list/Steps/StepsView.js +4 -24
- package/list/Steps/StepsView.scss +6 -15
- package/nav/Controls/ControlsView.scss +3 -3
- package/nav/Tree/TreeView.js +3 -9
- package/nav/Tree/TreeView.scss +10 -47
- package/nav/TreeItem/TreeItemView.d.ts +2 -0
- package/nav/TreeItem/TreeItemView.js +69 -0
- package/nav/TreeItem/TreeItemView.scss +60 -0
- package/package.json +3 -3
- package/scss/bootstrap-classes/flex.scss +42 -0
- package/scss/bootstrap-classes/index.scss +4 -0
- package/scss/bootstrap-classes/layout.scss +72 -0
- package/scss/bootstrap-classes/spacing.scss +181 -0
- package/scss/bootstrap-classes/typography.scss +25 -0
- package/scss/mixins/button.scss +24 -8
- package/scss/mixins/index.scss +1 -0
- package/scss/mixins/scroll.scss +6 -0
- package/scss/mixins/tooltip.scss +113 -0
- package/scss/variables/common/colors.scss +5 -2
- package/scss/variables/common/flex.scss +5 -0
- package/scss/variables/common/typography.scss +13 -0
- package/scss/variables/index.scss +1 -0
- package/utils/getFormattedExpandLabel.d.ts +1 -0
- package/utils/getFormattedExpandLabel.js +5 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--grid-icon-color: #323232;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
html[data-theme="dark"] {
|
|
8
|
+
--grid-icon-color: #ffffff;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
$grid-icon-color: var(--grid-icon-color);
|
|
12
|
+
|
|
13
|
+
.TreeItemView {
|
|
14
|
+
$root: &;
|
|
15
|
+
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-flow: row nowrap;
|
|
18
|
+
align-items: center;
|
|
19
|
+
margin: 0;
|
|
20
|
+
padding: 0;
|
|
21
|
+
|
|
22
|
+
&_has-items {
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&_disabled {
|
|
27
|
+
cursor: not-allowed;
|
|
28
|
+
|
|
29
|
+
#{$root}__icon {
|
|
30
|
+
pointer-events: none;
|
|
31
|
+
|
|
32
|
+
svg > * {
|
|
33
|
+
stroke: var(--disabled-text-color);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__item {
|
|
39
|
+
display: flex;
|
|
40
|
+
margin-left: 8px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__icon {
|
|
44
|
+
transform: rotate(0);
|
|
45
|
+
transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
46
|
+
|
|
47
|
+
&_opened {
|
|
48
|
+
transform: rotate(90deg);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
svg > * {
|
|
52
|
+
stroke: $grid-icon-color;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.IconView {
|
|
57
|
+
min-width: 24px;
|
|
58
|
+
min-height: 24px;
|
|
59
|
+
}
|
|
60
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steroidsjs/bootstrap",
|
|
3
|
-
"version": "3.0.0
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Vladimir Kozhin <hello@kozhindev.com>",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"react-use": "^17.4.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@steroidsjs/core": "^3.0
|
|
41
|
-
"@steroidsjs/eslint-config": "^2.1.
|
|
40
|
+
"@steroidsjs/core": "^3.0.0",
|
|
41
|
+
"@steroidsjs/eslint-config": "^2.1.6",
|
|
42
42
|
"@types/enzyme": "^3.10.8",
|
|
43
43
|
"@types/googlemaps": "^3.43.3",
|
|
44
44
|
"@types/jest": "^26.0.22",
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@use "../variables";
|
|
2
|
+
|
|
3
|
+
.flex {
|
|
4
|
+
display: flex;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.row {
|
|
8
|
+
display: flex;
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.col {
|
|
13
|
+
@each $colValue in variables.$colValues {
|
|
14
|
+
&-#{$colValue} {
|
|
15
|
+
flex-basis: calc((100% / variables.$colMaxValue) * $colValue);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.justify-content {
|
|
21
|
+
@each $justifyValue in variables.$justifyValues {
|
|
22
|
+
&-#{$justifyValue} {
|
|
23
|
+
justify-content: $justifyValue;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.align-items {
|
|
29
|
+
@each $alignValue in variables.$alignValues {
|
|
30
|
+
&-#{$alignValue} {
|
|
31
|
+
align-items: $alignValue;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.flex-direction {
|
|
37
|
+
@each $directionValue in variables.$directionValues {
|
|
38
|
+
&-#{$directionValue} {
|
|
39
|
+
flex-direction: $directionValue;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
@use "../variables/common/colors.scss";
|
|
2
|
+
|
|
3
|
+
$positions: absolute, sticky, relative, fixed, static;
|
|
4
|
+
$borders: right, left, top, bottom;
|
|
5
|
+
|
|
6
|
+
.border {
|
|
7
|
+
border: 1px solid colors.$element-border-color;
|
|
8
|
+
|
|
9
|
+
@each $border in $borders {
|
|
10
|
+
&-#{$border} {
|
|
11
|
+
border-#{$border}: 1px solid colors.$element-border-color;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// positions
|
|
17
|
+
.position {
|
|
18
|
+
@each $position in $positions {
|
|
19
|
+
&-#{$position} {
|
|
20
|
+
position: $position;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.top-0 {
|
|
26
|
+
top: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.bottom-0 {
|
|
30
|
+
bottom: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.left-0 {
|
|
34
|
+
left: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.right-0 {
|
|
38
|
+
right: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// width and height in percents
|
|
42
|
+
.w-25 {
|
|
43
|
+
width: 25%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.w-50 {
|
|
47
|
+
width: 50%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.w-75 {
|
|
51
|
+
width: 75%;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.w-100 {
|
|
55
|
+
width: 100%;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.h-25 {
|
|
59
|
+
height: 25%;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.h-50 {
|
|
63
|
+
height: 50%;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.h-75 {
|
|
67
|
+
height: 75%;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.h-100 {
|
|
71
|
+
height: 100%;
|
|
72
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
// margin
|
|
2
|
+
.m-1 {
|
|
3
|
+
margin: 0.25rem;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.m-2 {
|
|
7
|
+
margin: 0.5rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.m-3 {
|
|
11
|
+
margin: 1rem;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.m-horizontal-1 {
|
|
15
|
+
margin-left: 0.25rem;
|
|
16
|
+
margin-right: 0.25rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.m-horizontal-2 {
|
|
20
|
+
margin-left: 0.5rem;
|
|
21
|
+
margin-right: 0.5rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.m-horizontal-3 {
|
|
25
|
+
margin-left: 1rem;
|
|
26
|
+
margin-right: 1rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.m-vertical-1 {
|
|
30
|
+
margin-top: 0.25rem;
|
|
31
|
+
margin-bottom: 0.25rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.m-vertical-2 {
|
|
35
|
+
margin-top: 0.5rem;
|
|
36
|
+
margin-bottom: 0.5rem;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.m-vertical-3 {
|
|
40
|
+
margin-top: 1rem;
|
|
41
|
+
margin-bottom: 1rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.mb-1 {
|
|
45
|
+
margin-bottom: 0.25rem;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.mb-2 {
|
|
49
|
+
margin-bottom: 0.5rem;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.mb-3 {
|
|
53
|
+
margin-bottom: 1rem;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.mt-1 {
|
|
57
|
+
margin-top: 0.25rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.mt-2 {
|
|
61
|
+
margin-top: 0.5rem;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.mt-3 {
|
|
65
|
+
margin-top: 1rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.mr-1 {
|
|
69
|
+
margin-right: 0.25rem;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.mr-2 {
|
|
73
|
+
margin-right: 0.5rem;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.mr-3 {
|
|
77
|
+
margin-right: 1rem;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.ml-1 {
|
|
81
|
+
margin-left: 0.25rem;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.ml-2 {
|
|
85
|
+
margin-left: 0.5rem;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.ml-3 {
|
|
89
|
+
margin-left: 1rem;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// padding
|
|
93
|
+
.p-1 {
|
|
94
|
+
padding: 0.25rem;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.p-2 {
|
|
98
|
+
padding: 0.5rem;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.p-3 {
|
|
102
|
+
padding: 1rem;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.p-horizontal-1 {
|
|
106
|
+
padding-left: 0.25rem;
|
|
107
|
+
padding-right: 0.25rem;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.p-horizontal-2 {
|
|
111
|
+
padding-left: 0.5rem;
|
|
112
|
+
padding-right: 0.5rem;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.p-horizontal-3 {
|
|
116
|
+
padding-left: 1rem;
|
|
117
|
+
padding-right: 1rem;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.p-vertical-1 {
|
|
121
|
+
padding-top: 0.25rem;
|
|
122
|
+
padding-bottom: 0.25rem;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.p-vertical-2 {
|
|
126
|
+
padding-top: 0.5rem;
|
|
127
|
+
padding-bottom: 0.5rem;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.p-vertical-3 {
|
|
131
|
+
padding-top: 1rem;
|
|
132
|
+
padding-bottom: 1rem;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.pb-1 {
|
|
136
|
+
padding-bottom: 0.25rem;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.pb-2 {
|
|
140
|
+
padding-bottom: 0.5rem;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.pb-3 {
|
|
144
|
+
padding-bottom: 1rem;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.pt-1 {
|
|
148
|
+
padding-top: 0.25rem;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.pt-2 {
|
|
152
|
+
padding-top: 0.5rem;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.pt-3 {
|
|
156
|
+
padding-top: 1rem;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.pr-1 {
|
|
160
|
+
padding-right: 0.25rem;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.pr-2 {
|
|
164
|
+
padding-right: 0.5rem;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.pr-3 {
|
|
168
|
+
padding-right: 1rem;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.pl-1 {
|
|
172
|
+
padding-left: 0.25rem;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.pl-2 {
|
|
176
|
+
padding-left: 0.5rem;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.pl-3 {
|
|
180
|
+
padding-left: 1rem;
|
|
181
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
$text-aligns: center, left, right, end, justify, start;
|
|
2
|
+
|
|
3
|
+
.text {
|
|
4
|
+
@each $text-align in $text-aligns {
|
|
5
|
+
&-#{$text-align} {
|
|
6
|
+
text-align: $text-align;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.bold {
|
|
12
|
+
font-weight: 700;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.italic {
|
|
16
|
+
font-style: italic;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.underline {
|
|
20
|
+
text-decoration: underline;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.uppercase {
|
|
24
|
+
text-transform: uppercase;
|
|
25
|
+
}
|
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
package/scss/mixins/scroll.scss
CHANGED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use "../variables/index" as variables;
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
--tooltip-background-color: rgba(255, 255, 255, 0.4);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
html[data-theme="dark"] {
|
|
9
|
+
--tooltip-background-color: rgba(255, 255, 255, 0.4);
|
|
10
|
+
}
|
|
11
|
+
$tooltip-background-color: var(--tooltip-background-color);
|
|
12
|
+
|
|
13
|
+
@mixin calendar-tooltip() {
|
|
14
|
+
background-color: $tooltip-background-color;
|
|
15
|
+
border-radius: 4px;
|
|
16
|
+
|
|
17
|
+
.TooltipView__arrow {
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.TooltipView__content {
|
|
22
|
+
color: variables.$text-color;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin absolute-position($gap) {
|
|
27
|
+
&_position{
|
|
28
|
+
&_top, &_topLeft, &_topRight {
|
|
29
|
+
transform: translateY(-$gap);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&_bottom, &_bottomLeft, &_bottomRight {
|
|
33
|
+
transform: translateY($gap);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&_left, &_leftTop, &_leftBottom {
|
|
37
|
+
transform: translateX(-$gap);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&_right, &_rightTop, &_rightBottom {
|
|
41
|
+
transform: translateX($gap);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@mixin arrow-position(
|
|
47
|
+
$arrow-border,
|
|
48
|
+
$arrow-offset-horizontal,
|
|
49
|
+
$arrow-offset-vertical-top,
|
|
50
|
+
$arrow-offset-vertical-bottom
|
|
51
|
+
) {
|
|
52
|
+
&_position{
|
|
53
|
+
&_top, &_topLeft, &_topRight {
|
|
54
|
+
bottom: -$arrow-border;
|
|
55
|
+
left: 50%;
|
|
56
|
+
border-top-color: transparent;
|
|
57
|
+
border-left-color: transparent;
|
|
58
|
+
transform: translateX(-50%) rotate(45deg);
|
|
59
|
+
}
|
|
60
|
+
&_topLeft{
|
|
61
|
+
left: $arrow-offset-horizontal;
|
|
62
|
+
}
|
|
63
|
+
&_topRight{
|
|
64
|
+
left: unset;
|
|
65
|
+
right: $arrow-offset-horizontal;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&_bottom, &_bottomLeft, &_bottomRight {
|
|
69
|
+
top: -$arrow-border;
|
|
70
|
+
left: 50%;
|
|
71
|
+
border-right-color: transparent;
|
|
72
|
+
border-bottom-color: transparent;
|
|
73
|
+
transform: translateX(-50%) rotate(45deg);
|
|
74
|
+
}
|
|
75
|
+
&_bottomLeft{
|
|
76
|
+
left: $arrow-offset-horizontal;
|
|
77
|
+
}
|
|
78
|
+
&_bottomRight{
|
|
79
|
+
left: unset;
|
|
80
|
+
right: $arrow-offset-horizontal;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&_left, &_leftTop, &_leftBottom {
|
|
84
|
+
right: -$arrow-border;
|
|
85
|
+
top: 50%;
|
|
86
|
+
border-left-color: transparent;
|
|
87
|
+
border-bottom-color: transparent;
|
|
88
|
+
transform: translateY(-50%) rotate(45deg);
|
|
89
|
+
}
|
|
90
|
+
&_leftTop{
|
|
91
|
+
top: $arrow-offset-vertical-top;
|
|
92
|
+
}
|
|
93
|
+
&_leftBottom{
|
|
94
|
+
top: unset;
|
|
95
|
+
bottom: $arrow-offset-vertical-bottom;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&_right, &_rightTop, &_rightBottom {
|
|
99
|
+
left: -$arrow-border;
|
|
100
|
+
top: 50%;
|
|
101
|
+
border-top-color: transparent;
|
|
102
|
+
border-right-color: transparent;
|
|
103
|
+
transform: translateY(-50%) rotate(45deg);
|
|
104
|
+
}
|
|
105
|
+
&_rightTop{
|
|
106
|
+
top: $arrow-offset-vertical-top;
|
|
107
|
+
}
|
|
108
|
+
&_rightBottom{
|
|
109
|
+
top: unset;
|
|
110
|
+
bottom: $arrow-offset-vertical-bottom;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -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
|
+
);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
$justifyValues: center, end, start, stretch, flex-start, flex-end, left, right, space-between, space-around, space-evenly;
|
|
2
|
+
$alignValues: center, end, start, stretch, flex-start, flex-end;
|
|
3
|
+
$directionValues: column-reverse column row-reverse row;
|
|
4
|
+
$colValues: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12;
|
|
5
|
+
$colMaxValue: 12;
|
|
@@ -83,6 +83,18 @@ $text-types: map.merge(
|
|
|
83
83
|
"line-height": $line-height-base,
|
|
84
84
|
"color": colors.$text-color,
|
|
85
85
|
),
|
|
86
|
+
"body2": (
|
|
87
|
+
"font-size": $font-size-sm,
|
|
88
|
+
"font-weight": $font-weight-sm,
|
|
89
|
+
"line-height": $line-height-sm,
|
|
90
|
+
"color": colors.$text-color,
|
|
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
|
+
),
|
|
86
98
|
"span": (
|
|
87
99
|
"font-size": $font-size-base,
|
|
88
100
|
"font-weight": $font-weight-sm,
|
|
@@ -107,4 +119,5 @@ $typography-colors: (
|
|
|
107
119
|
"danger": colors.$danger,
|
|
108
120
|
"warning": colors.$warning,
|
|
109
121
|
"info": colors.$info,
|
|
122
|
+
"light-dark": colors.$element-light-label-color,
|
|
110
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;
|