@steroidsjs/bootstrap 3.0.0-beta.99 → 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 +6 -3
- 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/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/InputField/InputFieldView.js +2 -2
- package/form/PasswordField/PasswordFieldView.js +1 -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
|
@@ -26,20 +26,31 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
exports.__esModule = true;
|
|
29
|
-
var
|
|
29
|
+
var react_1 = __importStar(require("react"));
|
|
30
|
+
var isString_1 = __importDefault(require("lodash-es/isString"));
|
|
30
31
|
var Icon_1 = __importDefault(require("@steroidsjs/core/ui/content/Icon"));
|
|
31
32
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
33
|
+
var Steps_1 = require("@steroidsjs/core/ui/list/Steps/Steps");
|
|
32
34
|
function StepItemView(props) {
|
|
33
35
|
var _a;
|
|
34
36
|
var bem = (0, hooks_1.useBem)('StepItemView');
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
var renderIcon = (0, react_1.useCallback)(function () { return ((0, isString_1["default"])(props.stepItem.icon)
|
|
38
|
+
? (react_1["default"].createElement(Icon_1["default"], { name: props.stepItem.icon }))
|
|
39
|
+
: (react_1["default"].createElement("span", { className: bem.element('icon') }, props.index))); }, [bem, props.index, props.stepItem.icon]);
|
|
40
|
+
var renderDivider = (0, react_1.useCallback)(function () { return (react_1["default"].createElement("div", { className: bem.element('divider') },
|
|
41
|
+
react_1["default"].createElement("div", { className: bem.element('divider-line') }))); }, [bem]);
|
|
42
|
+
return (react_1["default"].createElement("div", { key: props.index, className: bem(bem.block((_a = {},
|
|
43
|
+
_a[props.status] = true,
|
|
44
|
+
_a["".concat(props.stepTitleOrientation)] = !!props.stepTitleOrientation,
|
|
45
|
+
_a)), props.className) },
|
|
46
|
+
react_1["default"].createElement("div", { className: bem.element('body', { disabled: props.disabled }), onClick: function () { return props.onChange(props.index); } },
|
|
47
|
+
props.showDivider && props.stepTitleOrientation === Steps_1.VERTICAL_STEP_LAYOUT && renderDivider(),
|
|
48
|
+
react_1["default"].createElement("div", { className: bem.element('step') }, renderIcon()),
|
|
49
|
+
react_1["default"].createElement("div", { className: bem.element('content') },
|
|
50
|
+
react_1["default"].createElement("div", { className: bem.element('header') },
|
|
51
|
+
props.stepItem.title && (react_1["default"].createElement("div", { className: bem.element('title') }, props.stepItem.title)),
|
|
52
|
+
props.stepItem.subtitle && (react_1["default"].createElement("div", { className: bem.element('subtitle') }, props.stepItem.subtitle))),
|
|
53
|
+
props.stepItem.description && (react_1["default"].createElement("div", { className: bem.element('description') }, props.stepItem.description)))),
|
|
54
|
+
props.showDivider && props.stepTitleOrientation === Steps_1.HORIZONTAL_STEP_LAYOUT && renderDivider()));
|
|
44
55
|
}
|
|
45
56
|
exports["default"] = StepItemView;
|
|
@@ -1,145 +1,175 @@
|
|
|
1
1
|
@use "../../scss/variables";
|
|
2
2
|
|
|
3
|
+
:root {
|
|
4
|
+
--text-color: #312c3a;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
html[data-theme="dark"] {
|
|
8
|
+
--text-color: #fff;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
$text-color: var(--text-color);
|
|
12
|
+
|
|
3
13
|
.StepItemView{
|
|
4
14
|
$root: &;
|
|
5
15
|
|
|
6
|
-
|
|
16
|
+
position: relative;
|
|
7
17
|
align-items: center;
|
|
8
|
-
justify-content: space-between;
|
|
9
18
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
display: none;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
19
|
+
&_horizontal {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex: 2;
|
|
16
22
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
padding: 5px;
|
|
20
|
-
border-radius: 10px;
|
|
21
|
-
}
|
|
23
|
+
&:last-child{
|
|
24
|
+
flex: 1;
|
|
22
25
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
background-color: variables.$grey-darker;
|
|
26
|
-
svg{
|
|
27
|
-
fill:variables.$white;
|
|
26
|
+
#{$root}__divider {
|
|
27
|
+
display: none;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
#{$root}
|
|
32
|
-
|
|
31
|
+
#{$root}__body {
|
|
32
|
+
flex-flow: row nowrap;
|
|
33
|
+
align-items: center;
|
|
34
|
+
padding: 0 4px;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
|
-
#{$root}
|
|
36
|
-
|
|
37
|
+
#{$root}__step {
|
|
38
|
+
padding-right: 4px;
|
|
39
|
+
flex-grow: 1;
|
|
37
40
|
}
|
|
38
|
-
}
|
|
39
41
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
background-color: variables.$primary;
|
|
42
|
+
#{$root}__header {
|
|
43
|
+
margin-bottom: 0;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
#{$root}
|
|
46
|
-
|
|
46
|
+
#{$root}__divider {
|
|
47
|
+
flex: 1 1 auto;
|
|
47
48
|
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&_vertical {
|
|
52
|
+
flex: 1;
|
|
48
53
|
|
|
49
|
-
|
|
50
|
-
|
|
54
|
+
&:first-child{
|
|
55
|
+
#{$root}__divider-line {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
51
58
|
}
|
|
52
59
|
|
|
53
|
-
#{$root}
|
|
54
|
-
|
|
60
|
+
#{$root}__body {
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
align-items: center;
|
|
55
63
|
}
|
|
56
|
-
}
|
|
57
64
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
background-color: variables.$success;
|
|
65
|
+
#{$root}__step {
|
|
66
|
+
margin-bottom: 4px;
|
|
61
67
|
}
|
|
62
68
|
|
|
63
|
-
#{$root}
|
|
64
|
-
|
|
69
|
+
#{$root}__header {
|
|
70
|
+
margin-bottom: 8px;
|
|
65
71
|
}
|
|
66
72
|
|
|
67
|
-
#{$root}
|
|
68
|
-
|
|
73
|
+
#{$root}__divider {
|
|
74
|
+
position: absolute;
|
|
75
|
+
top: 12px;
|
|
76
|
+
left: calc(-50% + 20px);
|
|
77
|
+
right: calc(50% + 20px);
|
|
69
78
|
}
|
|
79
|
+
}
|
|
70
80
|
|
|
71
|
-
|
|
72
|
-
|
|
81
|
+
&_wait {
|
|
82
|
+
#{$root}__icon {
|
|
83
|
+
background-color: var(--gray);
|
|
84
|
+
|
|
85
|
+
svg {
|
|
86
|
+
fill: variables.$white;
|
|
87
|
+
}
|
|
73
88
|
}
|
|
74
89
|
}
|
|
75
90
|
|
|
76
|
-
&
|
|
77
|
-
#{$root}
|
|
78
|
-
background-color: variables.$
|
|
91
|
+
&_active {
|
|
92
|
+
#{$root}__icon {
|
|
93
|
+
background-color: variables.$primary;
|
|
94
|
+
|
|
95
|
+
svg {
|
|
96
|
+
fill: #fff;
|
|
97
|
+
}
|
|
79
98
|
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&_edit {
|
|
102
|
+
#{$root}__icon {
|
|
103
|
+
background-color: variables.$secondary;
|
|
80
104
|
|
|
81
|
-
|
|
105
|
+
svg {
|
|
82
106
|
fill: #fff;
|
|
107
|
+
}
|
|
83
108
|
}
|
|
109
|
+
}
|
|
84
110
|
|
|
85
|
-
|
|
86
|
-
|
|
111
|
+
&_finish {
|
|
112
|
+
#{$root}__icon {
|
|
113
|
+
background-color: variables.$success;
|
|
87
114
|
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&_error {
|
|
118
|
+
#{$root}__icon {
|
|
119
|
+
background-color: variables.$danger;
|
|
88
120
|
|
|
89
|
-
|
|
90
|
-
|
|
121
|
+
svg {
|
|
122
|
+
fill: #fff;
|
|
123
|
+
}
|
|
91
124
|
}
|
|
92
125
|
}
|
|
93
126
|
|
|
94
|
-
&__body{
|
|
127
|
+
&__body {
|
|
95
128
|
display: flex;
|
|
96
|
-
flex-direction: column;
|
|
97
|
-
padding: 8px;
|
|
98
|
-
cursor: pointer;
|
|
99
|
-
min-width: 100px;
|
|
100
129
|
|
|
101
|
-
|
|
102
|
-
background-color: transparent;
|
|
103
|
-
transition: background-color .15s ease-in;
|
|
104
|
-
|
|
105
|
-
&_disabled{
|
|
130
|
+
&_disabled {
|
|
106
131
|
cursor: default;
|
|
107
132
|
}
|
|
108
133
|
}
|
|
109
134
|
|
|
110
|
-
&
|
|
135
|
+
&__step {
|
|
111
136
|
display: flex;
|
|
112
|
-
|
|
113
|
-
line-height: 1.1;
|
|
137
|
+
flex-shrink: 0;
|
|
114
138
|
}
|
|
115
139
|
|
|
116
|
-
&__icon{
|
|
117
|
-
|
|
140
|
+
&__icon {
|
|
141
|
+
display: flex;
|
|
142
|
+
padding: 3px;
|
|
143
|
+
flex-direction: column;
|
|
144
|
+
justify-content: center;
|
|
145
|
+
align-items: center;
|
|
146
|
+
border-radius: 100%;
|
|
147
|
+
width: 24px;
|
|
148
|
+
height: 24px;
|
|
149
|
+
}
|
|
118
150
|
|
|
119
|
-
|
|
151
|
+
&__content {
|
|
152
|
+
text-align: center;
|
|
153
|
+
width: 100%;
|
|
154
|
+
color: var(--text-color);
|
|
120
155
|
font-size: 12px;
|
|
156
|
+
font-style: normal;
|
|
121
157
|
font-weight: 500;
|
|
122
|
-
|
|
123
|
-
transition: background-color .15s ease-in, color .15s ease-in;
|
|
158
|
+
line-height: 16px;
|
|
124
159
|
}
|
|
125
160
|
|
|
126
|
-
&
|
|
161
|
+
&__icon {
|
|
162
|
+
color: variables.$white;
|
|
127
163
|
font-size: 12px;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
&__subtitle, &__description{
|
|
132
|
-
font-size: 9px;
|
|
133
|
-
transition: color .15s ease-in;
|
|
164
|
+
font-weight: 500;
|
|
165
|
+
transition: background-color .15s ease-in, color .15s ease-in;
|
|
134
166
|
}
|
|
135
167
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
margin: 0 5px;
|
|
142
|
-
border-top: 2px dotted transparent;
|
|
168
|
+
&__divider-line {
|
|
169
|
+
display: block;
|
|
170
|
+
border-top-color: var(--gray);
|
|
171
|
+
border-top-style: solid;
|
|
172
|
+
border-top-width: 1px;
|
|
143
173
|
transition: border-top-color .15s ease-in;
|
|
144
174
|
}
|
|
145
|
-
}
|
|
175
|
+
}
|
package/list/Steps/StepsView.js
CHANGED
|
@@ -1,32 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
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;
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
4
|
};
|
|
25
5
|
exports.__esModule = true;
|
|
26
|
-
var
|
|
6
|
+
var react_1 = __importDefault(require("react"));
|
|
27
7
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
28
8
|
function StepsView(props) {
|
|
29
9
|
var bem = (0, hooks_1.useBem)('StepsView');
|
|
30
|
-
return (
|
|
10
|
+
return (react_1["default"].createElement("div", { className: bem(props.className, bem.block()) }, props.children));
|
|
31
11
|
}
|
|
32
12
|
exports["default"] = StepsView;
|
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
@use "../../scss/variables";
|
|
2
2
|
|
|
3
|
-
.StepsView{
|
|
4
|
-
width: 100%;
|
|
5
|
-
min-height: 96px;
|
|
6
|
-
|
|
3
|
+
.StepsView {
|
|
7
4
|
display: flex;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
padding: 5px;
|
|
14
|
-
|
|
15
|
-
& > *{
|
|
16
|
-
flex-grow: 1;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
5
|
+
flex-flow: row nowrap;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
align-items: flex-start;
|
|
8
|
+
flex-grow: 1;
|
|
9
|
+
}
|
package/nav/Tree/TreeView.js
CHANGED
|
@@ -40,16 +40,10 @@ exports.__esModule = true;
|
|
|
40
40
|
var React = __importStar(require("react"));
|
|
41
41
|
var Link_1 = __importDefault(require("@steroidsjs/core/ui/nav/Link"));
|
|
42
42
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
43
|
+
var TreeItemView_1 = __importDefault(require("../TreeItem/TreeItemView"));
|
|
43
44
|
function TreeView(props) {
|
|
44
|
-
var levelPadding = props.levelPadding || 20;
|
|
45
45
|
var bem = (0, hooks_1.useBem)('TreeView');
|
|
46
|
-
return (React.createElement("div", { className: bem(bem.block(), props.className) }, props.items.map(function (item) { return (React.createElement("
|
|
47
|
-
|
|
48
|
-
opened: item.isOpened,
|
|
49
|
-
'has-items': item.hasItems
|
|
50
|
-
}), item.className), role: 'button', tabIndex: 0 },
|
|
51
|
-
React.createElement(Link_1["default"], __assign({ className: bem.element('item-label'), style: {
|
|
52
|
-
paddingLeft: String(item.level * levelPadding) + 'px'
|
|
53
|
-
} }, item)))); })));
|
|
46
|
+
return (React.createElement("div", { className: bem(bem.block(), props.className) }, props.items.map(function (item) { return (React.createElement(TreeItemView_1["default"], { key: item.uniqueId, item: item, levelPadding: props.levelPadding },
|
|
47
|
+
React.createElement(Link_1["default"], __assign({ className: bem.element('item-label') }, item)))); })));
|
|
54
48
|
}
|
|
55
49
|
exports["default"] = TreeView;
|
package/nav/Tree/TreeView.scss
CHANGED
|
@@ -5,67 +5,30 @@
|
|
|
5
5
|
margin: 0;
|
|
6
6
|
padding: 0;
|
|
7
7
|
|
|
8
|
-
&__item {
|
|
9
|
-
padding: 0;
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
|
|
12
|
-
> .ButtonView {
|
|
13
|
-
margin: 2px 0;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
8
|
&__item-label {
|
|
18
|
-
position: relative;
|
|
19
|
-
padding: 5px 10px;
|
|
20
9
|
display: flex;
|
|
21
|
-
flex-
|
|
10
|
+
flex-flow: row nowrap;
|
|
22
11
|
justify-content: flex-start;
|
|
23
12
|
background-color: variables.$background-color;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
.ButtonView__text {
|
|
27
|
-
color: variables.$text-color;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// &:hover {
|
|
32
|
-
// color: $list-group-action-hover-color;
|
|
33
|
-
// background-color: $list-group-hover-bg;
|
|
34
|
-
// }
|
|
13
|
+
border-radius: 16px;
|
|
14
|
+
padding: 5px 10px;
|
|
35
15
|
|
|
36
16
|
&,
|
|
37
17
|
&:hover {
|
|
38
18
|
text-decoration: none !important;
|
|
39
19
|
}
|
|
20
|
+
|
|
21
|
+
.ButtonView__link > .ButtonView__text {
|
|
22
|
+
color: variables.$text-color;
|
|
23
|
+
}
|
|
40
24
|
}
|
|
41
|
-
|
|
25
|
+
|
|
26
|
+
.TreeItemView_selected &__item-label {
|
|
42
27
|
background-color: variables.$secondary;
|
|
28
|
+
|
|
43
29
|
&,
|
|
44
30
|
&::before {
|
|
45
31
|
color: variables.$text-color;
|
|
46
32
|
}
|
|
47
33
|
}
|
|
48
|
-
&__item-label::before {
|
|
49
|
-
display: inline-block;
|
|
50
|
-
content: "";
|
|
51
|
-
transform: rotate(0);
|
|
52
|
-
width: 21px;
|
|
53
|
-
height: 20px;
|
|
54
|
-
font-size: 12px;
|
|
55
|
-
font-weight: bold;
|
|
56
|
-
margin-left: 10px;
|
|
57
|
-
color: variables.$text-color;
|
|
58
|
-
position: relative;
|
|
59
|
-
top: 1px;
|
|
60
|
-
left: 3px;
|
|
61
|
-
}
|
|
62
|
-
&__item_has-items &__item-label::before {
|
|
63
|
-
content: ">";
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&__item_opened &__item-label::before {
|
|
67
|
-
top: 7px;
|
|
68
|
-
left: -4px;
|
|
69
|
-
transform: rotate(90deg);
|
|
70
|
-
}
|
|
71
34
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
exports.__esModule = true;
|
|
40
|
+
var React = __importStar(require("react"));
|
|
41
|
+
var useBem_1 = __importDefault(require("@steroidsjs/core/hooks/useBem"));
|
|
42
|
+
var content_1 = require("@steroidsjs/core/ui/content");
|
|
43
|
+
var react_1 = require("react");
|
|
44
|
+
var PADDING_WITH_ICON = 0;
|
|
45
|
+
var PADDING_WITHOUT_ICON = 24;
|
|
46
|
+
function TreeItemView(props) {
|
|
47
|
+
var bem = (0, useBem_1["default"])('TreeItemView');
|
|
48
|
+
var paddingBasedOnIcon = props.item.hasItems ? PADDING_WITH_ICON : PADDING_WITHOUT_ICON;
|
|
49
|
+
var onExpandProps = (0, react_1.useMemo)(function () { return ({
|
|
50
|
+
onClick: props.item.onClick,
|
|
51
|
+
onKeyDown: function (e) { return e.key === 'Enter' && props.item.onClick(e); },
|
|
52
|
+
role: 'button',
|
|
53
|
+
tabIndex: 0
|
|
54
|
+
}); }, [props.item]);
|
|
55
|
+
return (React.createElement("div", __assign({ key: props.item.uniqueId, className: bem(bem.block({
|
|
56
|
+
selected: props.item.isSelected,
|
|
57
|
+
opened: props.item.isOpened,
|
|
58
|
+
'has-items': props.item.hasItems,
|
|
59
|
+
level: props.item.level,
|
|
60
|
+
disabled: props.item.disabled
|
|
61
|
+
}), props.className), style: {
|
|
62
|
+
paddingLeft: "".concat(props.item.level * props.levelPadding + paddingBasedOnIcon, "px")
|
|
63
|
+
} }, (!props.hasIconExpandOnly && onExpandProps)),
|
|
64
|
+
props.item.hasItems && (React.createElement(content_1.Icon, __assign({ name: 'expand_right', className: bem.element('icon', {
|
|
65
|
+
opened: props.item.isOpened
|
|
66
|
+
}) }, (props.hasIconExpandOnly && onExpandProps)))),
|
|
67
|
+
React.createElement("div", { className: bem.element('item') }, props.children)));
|
|
68
|
+
}
|
|
69
|
+
exports["default"] = TreeItemView;
|
|
@@ -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
|
+
}
|