@steroidsjs/bootstrap 3.0.0-beta.8 → 3.0.0-beta.81
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/README.md +1 -2
- package/content/Accordion/AccordionItemView.d.ts +2 -0
- package/content/{Collapse/CollapseItemView.js → Accordion/AccordionItemView.js} +47 -22
- package/content/Accordion/AccordionItemView.scss +252 -0
- package/content/Accordion/AccordionView.d.ts +2 -0
- package/content/{Collapse/CollapseView.js → Accordion/AccordionView.js} +3 -3
- package/content/Accordion/AccordionView.scss +28 -0
- package/content/Alert/AlertView.js +3 -2
- package/content/Alert/AlertView.scss +65 -20
- package/content/Avatar/AvatarView.js +2 -3
- package/content/Avatar/AvatarView.scss +32 -39
- package/content/Badge/BadgeView.d.ts +2 -0
- package/content/Badge/BadgeView.js +24 -0
- package/content/Badge/BadgeView.scss +139 -0
- package/content/Calendar/CalendarView.js +1 -1
- package/content/Calendar/CalendarView.scss +244 -161
- package/content/Calendar/CaptionElement.js +23 -15
- package/content/Calendar/CaptionElement.scss +164 -106
- package/content/Card/CardView.js +37 -14
- package/content/Card/CardView.scss +137 -108
- package/content/CopyToClipboard/CopyToClipboardView.d.ts +3 -0
- package/content/CopyToClipboard/CopyToClipboardView.js +19 -0
- package/content/CopyToClipboard/CopyToClipboardView.scss +41 -0
- package/content/Detail/DetailView.scss +72 -52
- package/content/DropDown/DropDownView.d.ts +0 -1
- package/content/DropDown/DropDownView.js +7 -4
- package/content/DropDown/DropDownView.scss +206 -27
- package/content/Icon/IconView.d.ts +1 -2
- package/content/Icon/IconView.js +2 -2
- package/content/Icon/IconView.scss +1 -23
- package/content/Menu/MenuItemView.d.ts +2 -0
- package/content/Menu/MenuItemView.js +15 -0
- package/content/Menu/MenuItemView.scss +63 -0
- package/content/Menu/MenuView.d.ts +2 -0
- package/content/Menu/MenuView.js +30 -0
- package/content/Menu/MenuView.scss +43 -0
- package/content/Slider/SliderView.d.ts +2 -0
- package/content/Slider/SliderView.js +18 -0
- package/content/Slider/SliderView.scss +5 -0
- package/form/AutoCompleteField/AutoCompleteFieldView.d.ts +1 -3
- package/form/AutoCompleteField/AutoCompleteFieldView.js +62 -9
- package/form/AutoCompleteField/AutoCompleteFieldView.scss +196 -142
- package/form/Button/ButtonView.d.ts +1 -2
- package/form/Button/ButtonView.js +13 -9
- package/form/Button/ButtonView.scss +174 -68
- package/form/CheckboxField/CheckboxFieldView.d.ts +1 -2
- package/form/CheckboxField/CheckboxFieldView.js +6 -4
- package/form/CheckboxField/CheckboxFieldView.scss +195 -36
- package/form/CheckboxListField/CheckboxListFieldView.d.ts +1 -2
- package/form/CheckboxListField/CheckboxListFieldView.js +18 -15
- package/form/CheckboxListField/CheckboxListFieldView.scss +7 -41
- package/form/DateField/DateFieldView.js +7 -6
- package/form/DateField/DateFieldView.scss +12 -71
- package/form/DateRangeField/DateRangeFieldView.js +10 -13
- package/form/DateRangeField/DateRangeFieldView.scss +32 -77
- package/form/DateTimeField/DateTimeFieldView.d.ts +1 -2
- package/form/DateTimeField/DateTimeFieldView.js +6 -6
- package/form/DateTimeField/DateTimeFieldView.scss +10 -107
- package/form/DateTimeRangeField/DateTimeRangeFieldView.js +10 -8
- package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +28 -88
- package/form/DropDownField/DropDownFieldView.js +35 -47
- package/form/DropDownField/DropDownFieldView.scss +381 -182
- package/form/DropDownField/utils.d.ts +2 -0
- package/form/DropDownField/utils.js +15 -0
- package/form/DropDownFieldItem/DropDownFieldItemView.d.ts +2 -0
- package/form/DropDownFieldItem/DropDownFieldItemView.js +81 -0
- package/form/DropDownFieldItem/DropDownFieldItemView.scss +218 -0
- package/form/FieldLayout/FieldLayoutView.d.ts +1 -2
- package/form/FieldLayout/FieldLayoutView.js +13 -9
- package/form/FieldLayout/FieldLayoutView.scss +114 -19
- package/form/FieldList/FieldListItemView.js +6 -4
- package/form/FieldList/FieldListItemView.scss +17 -39
- package/form/FieldList/FieldListView.js +9 -8
- package/form/FieldList/FieldListView.scss +72 -24
- package/form/FieldSet/FieldSetView.js +4 -2
- package/form/FieldSet/FieldSetView.scss +39 -0
- package/form/FileField/FileFieldItemView.d.ts +1 -2
- package/form/FileField/FileFieldItemView.js +31 -6
- package/form/FileField/FileFieldItemView.scss +254 -13
- package/form/FileField/FileFieldView.d.ts +1 -2
- package/form/FileField/FileFieldView.js +6 -8
- package/form/FileField/FileFieldView.scss +43 -13
- package/form/Form/FormView.js +1 -4
- package/form/Form/FormView.scss +1 -14
- package/form/HtmlField/HtmlFieldView.d.ts +1 -2
- package/form/HtmlField/HtmlFieldView.scss +6 -3
- package/form/ImageField/ImageFieldView.js +15 -3
- package/form/ImageField/ImageFieldView.scss +7 -24
- package/form/InputField/InputFieldView.d.ts +1 -2
- package/form/InputField/InputFieldView.js +33 -14
- package/form/InputField/InputFieldView.scss +265 -99
- package/form/NumberField/NumberFieldView.d.ts +1 -2
- package/form/NumberField/NumberFieldView.js +19 -13
- package/form/NumberField/NumberFieldView.scss +195 -89
- package/form/PasswordField/PasswordFieldView.d.ts +1 -2
- package/form/PasswordField/PasswordFieldView.js +11 -9
- package/form/PasswordField/PasswordFieldView.scss +236 -63
- package/form/RadioField/RadioFieldView.d.ts +2 -0
- package/form/RadioField/RadioFieldView.js +57 -0
- package/form/RadioField/RadioFieldView.scss +226 -0
- package/form/RadioListField/RadioListFieldView.d.ts +1 -2
- package/form/RadioListField/RadioListFieldView.js +20 -16
- package/form/RadioListField/RadioListFieldView.scss +11 -1
- package/form/RateField/RateFieldView.js +17 -10
- package/form/RateField/RateFieldView.scss +115 -40
- package/form/ReCaptchaField/ReCaptchaFieldView.d.ts +1 -2
- package/form/ReCaptchaField/ReCaptchaFieldView.js +18 -9
- package/form/ReCaptchaField/ReCaptchaFieldView.scss +1 -5
- package/form/SliderField/SliderFieldView.d.ts +1 -2
- package/form/SliderField/SliderFieldView.js +1 -1
- package/form/SliderField/SliderFieldView.scss +336 -299
- package/form/SwitcherField/SwitcherFieldView.d.ts +1 -2
- package/form/SwitcherField/SwitcherFieldView.js +12 -7
- package/form/SwitcherField/SwitcherFieldView.scss +188 -1
- package/form/TextField/TextFieldView.d.ts +1 -2
- package/form/TextField/TextFieldView.js +10 -2
- package/form/TextField/TextFieldView.scss +144 -2
- package/form/TimeField/TimeFieldView.d.ts +1 -2
- package/form/TimeField/TimeFieldView.js +16 -14
- package/form/TimeField/TimeFieldView.scss +19 -68
- package/form/TimeField/TimePanelView.scss +62 -68
- package/form/TimeRangeField/TimeRangeFieldView.d.ts +2 -0
- package/form/TimeRangeField/TimeRangeFieldView.js +67 -0
- package/form/TimeRangeField/TimeRangeFieldView.scss +77 -0
- package/icons/index.d.ts +2 -0
- package/icons/index.js +103 -0
- package/icons/svgs/add.svg +4 -0
- package/icons/svgs/add_square.svg +5 -0
- package/icons/svgs/arrow_down_18x18.svg +4 -0
- package/icons/svgs/arrow_down_24x24.svg +4 -0
- package/icons/svgs/arrow_drop_down_10x10.svg +3 -0
- package/icons/svgs/arrow_left_18x18.svg +4 -0
- package/icons/svgs/arrow_left_24x24.svg +4 -0
- package/icons/svgs/arrow_right_18x18.svg +4 -0
- package/icons/svgs/arrow_right_24x24.svg +4 -0
- package/icons/svgs/arrow_up_18x18.svg +4 -0
- package/icons/svgs/arrow_up_24x24.svg +4 -0
- package/icons/svgs/blank.svg +4 -0
- package/icons/svgs/calendar_check.svg +5 -0
- package/icons/svgs/calendar_range.svg +8 -0
- package/icons/svgs/cancel_ellips.svg +4 -0
- package/icons/svgs/chart.svg +6 -0
- package/icons/svgs/checkmark_12x12.svg +4 -0
- package/icons/svgs/checkmark_8x8.svg +4 -0
- package/icons/svgs/circle_cross_12x12.svg +4 -0
- package/icons/svgs/circle_cross_16x16.svg +4 -0
- package/icons/svgs/circle_cross_18x18.svg +4 -0
- package/icons/svgs/clip.svg +3 -0
- package/icons/svgs/copy.svg +5 -0
- package/icons/svgs/cross_12x12.svg +4 -0
- package/icons/svgs/cross_4x4.svg +3 -0
- package/icons/svgs/cross_8x8.svg +4 -0
- package/icons/svgs/cut.svg +3 -0
- package/icons/svgs/date_range.svg +8 -0
- package/icons/svgs/default_16x16.svg +4 -0
- package/icons/svgs/default_24x24.svg +11 -0
- package/icons/svgs/double_arrow_down.svg +5 -0
- package/icons/svgs/double_arrow_left.svg +5 -0
- package/icons/svgs/double_arrow_right.svg +5 -0
- package/icons/svgs/double_arrow_up.svg +5 -0
- package/icons/svgs/doughnut_chart.svg +5 -0
- package/icons/svgs/edit.svg +4 -0
- package/icons/svgs/error_16x16.svg +5 -0
- package/icons/svgs/error_24x24.svg +12 -0
- package/icons/svgs/expand_down.svg +3 -0
- package/icons/svgs/expand_left.svg +3 -0
- package/icons/svgs/expand_left_double.svg +4 -0
- package/icons/svgs/expand_right.svg +3 -0
- package/icons/svgs/expand_right_double.svg +4 -0
- package/icons/svgs/expand_up.svg +3 -0
- package/icons/svgs/file_dock.svg +6 -0
- package/icons/svgs/filter.svg +3 -0
- package/icons/svgs/fluid.svg +4 -0
- package/icons/svgs/folder.svg +3 -0
- package/icons/svgs/group.svg +8 -0
- package/icons/svgs/home.svg +4 -0
- package/icons/svgs/img_box.svg +5 -0
- package/icons/svgs/import.svg +4 -0
- package/icons/svgs/info_16x16.svg +5 -0
- package/icons/svgs/info_24x24.svg +12 -0
- package/icons/svgs/left_12x12.svg +3 -0
- package/icons/svgs/loading_default.svg +3 -0
- package/icons/svgs/loading_icon_thick.svg +3 -0
- package/icons/svgs/loading_purple.svg +9 -0
- package/icons/svgs/map.svg +7 -0
- package/icons/svgs/menu_dots.svg +5 -0
- package/icons/svgs/menu_left.svg +5 -0
- package/icons/svgs/minis_sq.svg +4 -0
- package/icons/svgs/paste.svg +8 -0
- package/icons/svgs/pie_chart.svg +5 -0
- package/icons/svgs/pin.svg +4 -0
- package/icons/svgs/sad.svg +6 -0
- package/icons/svgs/search.svg +4 -0
- package/icons/svgs/setting_line.svg +3 -0
- package/icons/svgs/share.svg +7 -0
- package/icons/svgs/star.svg +3 -0
- package/icons/svgs/success_16x16.svg +4 -0
- package/icons/svgs/success_24x24.svg +11 -0
- package/icons/svgs/support.svg +3 -0
- package/icons/svgs/trash.svg +6 -0
- package/icons/svgs/upload.svg +4 -0
- package/icons/svgs/user.svg +4 -0
- package/icons/svgs/view.svg +4 -0
- package/icons/svgs/view_hide.svg +5 -0
- package/icons/svgs/warning_16x16.svg +5 -0
- package/icons/svgs/warning_24x24.svg +12 -0
- package/index.d.ts +38 -2
- package/index.js +40 -4
- package/index.scss +24 -3
- package/layout/Header/HeaderView.js +1 -1
- package/layout/Header/HeaderView.scss +10 -5
- package/layout/Loader/LoaderView.d.ts +2 -2
- package/layout/Loader/LoaderView.js +6 -2
- package/layout/Loader/LoaderView.scss +67 -22
- package/layout/Notifications/NotificationsItemView.d.ts +1 -2
- package/layout/Notifications/NotificationsItemView.js +9 -8
- package/layout/Notifications/NotificationsItemView.scss +1 -39
- package/layout/Notifications/NotificationsView.d.ts +1 -2
- package/layout/Notifications/NotificationsView.scss +3 -0
- package/layout/ProgressBar/CircleProgressBarView.d.ts +1 -2
- package/layout/ProgressBar/LineProgressBarView.d.ts +1 -2
- package/layout/ProgressBar/LineProgressBarView.scss +1 -1
- package/layout/Tooltip/TooltipView.d.ts +1 -2
- package/layout/Tooltip/TooltipView.js +6 -6
- package/layout/Tooltip/TooltipView.scss +45 -37
- package/list/CheckboxColumn/CheckboxColumnView.d.ts +1 -2
- package/list/CheckboxColumn/CheckboxColumnView.js +2 -1
- package/list/ControlsColumnView/ControlsColumnView.d.ts +1 -2
- package/list/ControlsColumnView/ControlsColumnView.scss +7 -1
- package/list/Empty/EmptyView.js +1 -1
- package/list/Empty/EmptyView.scss +4 -1
- package/list/FlexGrid/FlexGridView.d.ts +2 -0
- package/list/FlexGrid/FlexGridView.js +71 -0
- package/list/FlexGrid/FlexGridView.scss +57 -0
- package/list/Grid/GridView.js +10 -4
- package/list/Grid/GridView.scss +151 -37
- package/list/Grid/views/ContentColumnView/ContentColumnView.d.ts +2 -0
- package/list/Grid/views/ContentColumnView/ContentColumnView.js +50 -0
- package/list/Grid/views/ContentColumnView/ContentColumnView.scss +86 -0
- package/list/Grid/views/ContentColumnView/index.d.ts +2 -0
- package/list/Grid/views/ContentColumnView/index.js +7 -0
- package/list/Grid/views/DiagramColumnView/DiagramColumnView.d.ts +3 -0
- package/list/Grid/views/DiagramColumnView/DiagramColumnView.js +60 -0
- package/list/Grid/views/DiagramColumnView/DiagramColumnView.scss +170 -0
- package/list/Grid/views/DiagramColumnView/index.d.ts +2 -0
- package/list/Grid/views/DiagramColumnView/index.js +7 -0
- package/list/List/ListItemView.d.ts +1 -2
- package/list/List/ListView.js +5 -7
- package/list/List/ListView.scss +26 -1
- package/list/Pagination/PaginationButtonView.js +34 -5
- package/list/Pagination/PaginationButtonView.scss +263 -1
- package/list/Pagination/PaginationMoreView.js +1 -1
- package/list/Pagination/PaginationMoreView.scss +4 -1
- package/list/PaginationSize/PaginationSizeView.js +5 -5
- package/list/PaginationSize/PaginationSizeView.scss +0 -8
- package/modal/Modal/ModalView.d.ts +1 -2
- package/modal/Modal/ModalView.js +5 -8
- package/modal/Modal/ModalView.scss +138 -93
- package/modal/TwoFactorModal/TwoFactorModalView.d.ts +1 -3
- package/modal/TwoFactorModal/TwoFactorModalView.js +0 -1
- package/modal/TwoFactorModal/TwoFactorModalView.scss +0 -2
- package/nav/Breadcrubms/BreadcrumbsView.js +9 -1
- package/nav/Breadcrubms/BreadcrumbsView.scss +49 -0
- package/nav/ButtonGroup/ButtonGroupView.d.ts +2 -0
- package/nav/ButtonGroup/ButtonGroupView.js +33 -0
- package/nav/ButtonGroup/ButtonGroupView.scss +81 -0
- package/nav/Controls/ControlsView.d.ts +1 -2
- package/nav/Controls/ControlsView.scss +17 -3
- package/nav/Nav/NavBarView.d.ts +1 -2
- package/nav/Nav/NavBarView.js +9 -4
- package/nav/Nav/NavBarView.scss +32 -1
- package/nav/Nav/NavButtonView.d.ts +1 -2
- package/nav/Nav/NavButtonView.js +8 -2
- package/nav/Nav/NavButtonView.scss +6 -5
- package/nav/Nav/NavIconView.d.ts +1 -2
- package/nav/Nav/NavIconView.js +7 -2
- package/nav/Nav/NavIconView.scss +25 -6
- package/nav/Nav/NavLinkView.d.ts +1 -2
- package/nav/Nav/NavLinkView.js +8 -2
- package/nav/Nav/NavLinkView.scss +14 -5
- package/nav/Nav/NavListView.d.ts +1 -2
- package/nav/Nav/NavListView.js +11 -7
- package/nav/Nav/NavListView.scss +11 -10
- package/nav/Nav/NavTabsView.d.ts +1 -2
- package/nav/Nav/NavTabsView.js +9 -4
- package/nav/Nav/NavTabsView.scss +47 -1
- package/nav/Tree/TreeView.d.ts +1 -2
- package/nav/Tree/TreeView.scss +58 -51
- package/package.json +58 -56
- package/scss/animations/index.scss +1 -0
- package/scss/animations/loading.scss +13 -0
- package/scss/fonts.scss +6 -0
- package/scss/mixins/button.scss +80 -24
- package/scss/mixins/customMixins.scss +5 -0
- package/scss/mixins/date.scss +422 -0
- package/scss/mixins/index.scss +5 -1
- package/scss/mixins/navs.scss +39 -0
- package/scss/mixins/scroll.scss +31 -0
- package/scss/mixins/typography.scss +26 -0
- package/scss/normalize.scss +25 -0
- package/scss/variables/common/colors.scss +189 -82
- package/scss/variables/common/media.scss +3 -0
- package/scss/variables/common/typography.scss +96 -28
- package/scss/variables/common/variables.scss +1 -0
- package/scss/variables/components/calendar.scss +0 -1
- package/scss/variables/components/input.scss +7 -6
- package/scss/variables/index.scss +2 -2
- package/typography/Text/TextView.d.ts +3 -0
- package/typography/Text/TextView.js +46 -0
- package/typography/Text/TextView.scss +16 -0
- package/typography/Title/TitleView.d.ts +3 -0
- package/typography/Title/TitleView.js +50 -0
- package/typography/Title/TitleView.scss +16 -0
- package/utils/renderIcon.d.ts +9 -0
- package/utils/renderIcon.js +27 -0
- package/content/Collapse/CollapseItemView.d.ts +0 -2
- package/content/Collapse/CollapseItemView.scss +0 -88
- package/content/Collapse/CollapseView.d.ts +0 -2
- package/content/Collapse/CollapseView.scss +0 -15
- package/icons/close.svg +0 -3
- package/icons/default.svg +0 -11
- package/icons/error.svg +0 -12
- package/icons/fontawesome.d.ts +0 -2
- package/icons/fontawesome.js +0 -254
- package/icons/info.svg +0 -12
- package/icons/success.svg +0 -4
- package/icons/warning.svg +0 -12
- package/list/List/ListItemView.scss +0 -3
- package/scss/mixins/card.scss +0 -26
- package/scss/variables/components/card.scss +0 -20
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
@import "style/variables";
|
|
2
|
+
|
|
3
|
+
.DiagramColumnView {
|
|
4
|
+
$root: &;
|
|
5
|
+
|
|
6
|
+
&_size {
|
|
7
|
+
&_sm {
|
|
8
|
+
#{$root}__diagram_type_horizontal,
|
|
9
|
+
#{$root}__diagram_type_vertical {
|
|
10
|
+
min-height: 51px !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
#{$root}__diagram_type_circle {
|
|
14
|
+
width: 30px;
|
|
15
|
+
height: 30px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
&_md {
|
|
19
|
+
#{$root}__diagram_type_horizontal,
|
|
20
|
+
#{$root}__diagram_type_vertical {
|
|
21
|
+
min-height: 65px !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
#{$root}__diagram_type_circle {
|
|
25
|
+
width: 36px;
|
|
26
|
+
height: 36px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
&_lg {
|
|
30
|
+
#{$root}__diagram_type_horizontal,
|
|
31
|
+
#{$root}__diagram_type_vertical {
|
|
32
|
+
min-height: 73px !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
#{$root}__diagram_type_circle {
|
|
36
|
+
width: 40px;
|
|
37
|
+
height: 40px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&__diagram {
|
|
43
|
+
font-weight: $font-weight-lg;
|
|
44
|
+
font-size: $font-size-xs;
|
|
45
|
+
line-height: $line-height-xs;
|
|
46
|
+
color: $text-color;
|
|
47
|
+
width: 100%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&_type_horizontal {
|
|
51
|
+
#{$root}__diagram {
|
|
52
|
+
position: relative;
|
|
53
|
+
|
|
54
|
+
&-percentage {
|
|
55
|
+
position: absolute;
|
|
56
|
+
z-index: 2;
|
|
57
|
+
left: 50%;
|
|
58
|
+
top: 50%;
|
|
59
|
+
transform: translateX(-50%) translateY(-50%);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&-filling {
|
|
63
|
+
height: 100%;
|
|
64
|
+
position: absolute;
|
|
65
|
+
left: 0;
|
|
66
|
+
top: 0;
|
|
67
|
+
|
|
68
|
+
&_color {
|
|
69
|
+
@each $color, $color-map in $diagram-colors {
|
|
70
|
+
&_#{$color} {
|
|
71
|
+
background-color: map-get($color-map, color-themed);
|
|
72
|
+
border-right: 1px solid map-get($color-map, color);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&_type_vertical {
|
|
81
|
+
#{$root}__wrapper-diagrams {
|
|
82
|
+
display: flex;
|
|
83
|
+
flex-flow: row nowrap;
|
|
84
|
+
height: 100%;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
#{$root}__diagram {
|
|
88
|
+
position: relative;
|
|
89
|
+
|
|
90
|
+
&-percentage {
|
|
91
|
+
position: absolute;
|
|
92
|
+
white-space: nowrap;
|
|
93
|
+
width: 100%;
|
|
94
|
+
text-align: center;
|
|
95
|
+
z-index: 2;
|
|
96
|
+
left: 50%;
|
|
97
|
+
top: 50%;
|
|
98
|
+
transform: translateX(-50%) translateY(-50%);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&-filling {
|
|
102
|
+
width: 100%;
|
|
103
|
+
position: absolute;
|
|
104
|
+
left: 0;
|
|
105
|
+
bottom: 0;
|
|
106
|
+
|
|
107
|
+
&_color {
|
|
108
|
+
@each $color, $color-map in $diagram-colors {
|
|
109
|
+
&_#{$color} {
|
|
110
|
+
background-color: map-get($color-map, color-themed);
|
|
111
|
+
border-top: 1px solid map-get($color-map, color);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&_type_circle {
|
|
120
|
+
display: flex;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
|
|
123
|
+
#{$root}__wrapper {
|
|
124
|
+
display: flex;
|
|
125
|
+
flex-flow: column nowrap;
|
|
126
|
+
|
|
127
|
+
&-diagrams {
|
|
128
|
+
display: flex;
|
|
129
|
+
flex-flow: row nowrap;
|
|
130
|
+
justify-content: center;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
#{$root}__subtitle {
|
|
134
|
+
margin: 0 auto;
|
|
135
|
+
|
|
136
|
+
font-weight: $font-weight-sm;
|
|
137
|
+
font-size: $font-size-base;
|
|
138
|
+
line-height: $line-height-base;
|
|
139
|
+
color: $element-placeholder-color;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
#{$root}__diagram {
|
|
144
|
+
position: relative;
|
|
145
|
+
margin: -1px;
|
|
146
|
+
|
|
147
|
+
&-filling {
|
|
148
|
+
width: 100%;
|
|
149
|
+
height: 100%;
|
|
150
|
+
border-radius: 100%;
|
|
151
|
+
|
|
152
|
+
&_color {
|
|
153
|
+
@each $color, $color-map in $diagram-colors {
|
|
154
|
+
&_#{$color} {
|
|
155
|
+
border: 2px solid map-get($color-map, color);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&-percentage {
|
|
162
|
+
position: absolute;
|
|
163
|
+
z-index: 2;
|
|
164
|
+
left: 50%;
|
|
165
|
+
top: 50%;
|
|
166
|
+
transform: translateX(-50%) translateY(-50%);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
@@ -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 DiagramColumnView_1 = __importDefault(require("./DiagramColumnView"));
|
|
7
|
+
exports["default"] = DiagramColumnView_1["default"];
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { IListItemViewProps } from '@steroidsjs/core/ui/list/List/List';
|
|
2
|
-
|
|
3
|
-
export default function ListItemView(props: IListItemViewProps & IBemHocOutput): JSX.Element;
|
|
2
|
+
export default function ListItemView(props: IListItemViewProps): JSX.Element;
|
package/list/List/ListView.js
CHANGED
|
@@ -34,17 +34,15 @@ function ListView(props) {
|
|
|
34
34
|
if (!pagination && !paginationSize && !layout) {
|
|
35
35
|
return null;
|
|
36
36
|
}
|
|
37
|
-
return (React.createElement("div", { className: bem
|
|
38
|
-
React.createElement("div", { className: '
|
|
39
|
-
React.createElement("div", { className: '
|
|
40
|
-
React.createElement("div", { className: '
|
|
41
|
-
layout,
|
|
42
|
-
paginationSize)));
|
|
37
|
+
return (React.createElement("div", { className: bem.element('pagination') },
|
|
38
|
+
pagination && (React.createElement("div", { className: bem.element('pagination-button') }, pagination)),
|
|
39
|
+
paginationSize && (React.createElement("div", { className: bem.element('pagination-sizes') }, paginationSize)),
|
|
40
|
+
layout && (React.createElement("div", { className: bem.element('pagination-layout') }, layout))));
|
|
43
41
|
};
|
|
44
42
|
return props.renderList(React.createElement("div", { className: bem(bem.block({ loading: props.isLoading || props.list.isLoading }), props.className) },
|
|
45
43
|
props.renderSearchForm(),
|
|
46
44
|
renderPagination(['top', 'both'].includes(props.paginationPosition) && props.renderPagination(), ['top', 'both'].includes(props.paginationSizePosition) && props.renderPaginationSize(), ['top', 'both'].includes(props.layoutNamesPosition) && props.renderLayoutNames()),
|
|
47
|
-
React.createElement("div", { className: bem(
|
|
45
|
+
React.createElement("div", { className: bem(bem.element('content'), props.contentClassName) }, props.content),
|
|
48
46
|
renderPagination(['bottom', 'both'].includes(props.paginationPosition) && props.renderPagination(), ['bottom', 'both'].includes(props.paginationSizePosition) && props.renderPaginationSize(), ['bottom', 'both'].includes(props.layoutNamesPosition) && props.renderLayoutNames()),
|
|
49
47
|
props.renderEmpty()));
|
|
50
48
|
}
|
package/list/List/ListView.scss
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
1
|
.ListView {
|
|
2
|
+
color: $text-color;
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
.FormView {
|
|
5
|
+
margin-bottom: 10px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&__pagination {
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
align-items: center;
|
|
12
|
+
flex-flow: row nowrap;
|
|
13
|
+
margin-bottom: 3px;
|
|
14
|
+
|
|
15
|
+
&-sizes {
|
|
16
|
+
margin-bottom: 10px;
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-button {
|
|
21
|
+
margin: 16px auto 0;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__content {
|
|
26
|
+
margin-bottom: 3px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -25,12 +25,41 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
exports.__esModule = true;
|
|
26
26
|
var React = __importStar(require("react"));
|
|
27
27
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
28
|
+
var content_1 = require("@steroidsjs/core/ui/content");
|
|
29
|
+
var renderArrowStep = function (bem, onClick, iconName, rotate, rounding, disabled) {
|
|
30
|
+
if (rotate === void 0) { rotate = false; }
|
|
31
|
+
return (React.createElement("li", { className: bem.element('page', {
|
|
32
|
+
'rounding-left': rounding.left,
|
|
33
|
+
'rounding-right': rounding.right,
|
|
34
|
+
hasIcon: true,
|
|
35
|
+
disabled: disabled
|
|
36
|
+
}) },
|
|
37
|
+
React.createElement("button", { className: bem.element('page-button', {
|
|
38
|
+
hasIcon: true
|
|
39
|
+
}), onClick: function () { return onClick(); }, disabled: disabled },
|
|
40
|
+
React.createElement(content_1.Icon, { tabIndex: -1, className: bem.element('page-icon', {
|
|
41
|
+
rotate: rotate
|
|
42
|
+
}), name: iconName }))));
|
|
43
|
+
};
|
|
28
44
|
function PaginationButtonView(props) {
|
|
29
45
|
var bem = (0, hooks_1.useBem)('PaginationButtonView');
|
|
30
|
-
return (React.createElement("ul", { className: bem(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
46
|
+
return (React.createElement("ul", { className: bem(bem.block({
|
|
47
|
+
size: props.size
|
|
48
|
+
}), props.className) },
|
|
49
|
+
props.showEdgeSteps
|
|
50
|
+
&& renderArrowStep(bem, props.onSelectFirst, 'double_arrow_left', false, { left: true }, props.isFirstPage),
|
|
51
|
+
props.showSteps
|
|
52
|
+
&& renderArrowStep(bem, props.onSelectPrev, 'arrow_left_24x24', false, {}, props.isFirstPage),
|
|
53
|
+
props.pages.map(function (item, index) { return (React.createElement("li", { key: index, className: bem.element('page', {
|
|
54
|
+
hidden: !item.page,
|
|
55
|
+
active: item.isActive
|
|
56
|
+
}) },
|
|
57
|
+
React.createElement("button", { className: bem.element('page-button', {
|
|
58
|
+
hidden: !item.page
|
|
59
|
+
}), onClick: function () { return props.onSelect(item.page); } }, item.label))); }),
|
|
60
|
+
props.showSteps
|
|
61
|
+
&& renderArrowStep(bem, props.onSelectNext, 'arrow_left_24x24', true, {}, props.isLastPage),
|
|
62
|
+
props.showEdgeSteps
|
|
63
|
+
&& renderArrowStep(bem, props.onSelectLast, 'double_arrow_left', true, { right: true }, props.isLastPage)));
|
|
35
64
|
}
|
|
36
65
|
exports["default"] = PaginationButtonView;
|
|
@@ -1,2 +1,264 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--pagination-border-color: var(--gray);
|
|
3
|
+
--pagination-hover-background-color: $white;
|
|
4
|
+
|
|
5
|
+
--pagination-arrow-color: #323232;
|
|
6
|
+
--pagination-background-color-disabled: #F1F5F7;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
html[data-theme="dark"] {
|
|
10
|
+
--pagination-border-color: var(--background-color);
|
|
11
|
+
--pagination-hover-background-color: var(--gray-dark);
|
|
12
|
+
|
|
13
|
+
--pagination-arrow-color: #ffffff;
|
|
14
|
+
--pagination-background-color-disabled: #333646;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
$pagination-border-color: var(--pagination-border-color);
|
|
18
|
+
$pagination-hover-background-color: var(--pagination-hover-background-color);
|
|
19
|
+
|
|
20
|
+
$pagination-arrow-color: var(--pagination-arrow-color);
|
|
21
|
+
$pagination-background-color-disabled: var(--pagination-background-color-disabled);
|
|
22
|
+
|
|
1
23
|
.PaginationButtonView {
|
|
2
|
-
|
|
24
|
+
$root: &;
|
|
25
|
+
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-flow: row nowrap;
|
|
28
|
+
color: $text-color;
|
|
29
|
+
|
|
30
|
+
&_size {
|
|
31
|
+
&_lg {
|
|
32
|
+
height: 48px;
|
|
33
|
+
#{$root}__page {
|
|
34
|
+
&-button {
|
|
35
|
+
padding: 12px 18px;
|
|
36
|
+
font-size: $font-size-lg;
|
|
37
|
+
line-height: 24px;
|
|
38
|
+
|
|
39
|
+
&_hasIcon {
|
|
40
|
+
padding: 12px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&_rounding-left {
|
|
45
|
+
border-top-left-radius: 12px;
|
|
46
|
+
border-bottom-left-radius: 12px;
|
|
47
|
+
|
|
48
|
+
&::before {
|
|
49
|
+
border-top-left-radius: 14px;
|
|
50
|
+
border-bottom-left-radius: 14px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&_rounding-right {
|
|
55
|
+
border-top-right-radius: 12px;
|
|
56
|
+
border-bottom-right-radius: 12px;
|
|
57
|
+
|
|
58
|
+
&::before {
|
|
59
|
+
border-top-right-radius: 14px;
|
|
60
|
+
border-bottom-right-radius: 14px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&::before {
|
|
65
|
+
transform: translate(-4px, -4px);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
&_md {
|
|
70
|
+
height: 40px;
|
|
71
|
+
#{$root}__page {
|
|
72
|
+
&-button {
|
|
73
|
+
padding: 8px 14px;
|
|
74
|
+
font-size: $font-size-base;
|
|
75
|
+
line-height: 24px;
|
|
76
|
+
|
|
77
|
+
&_hasIcon {
|
|
78
|
+
padding: 8px 11px;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&_rounding-left {
|
|
83
|
+
border-top-left-radius: 12px;
|
|
84
|
+
border-bottom-left-radius: 12px;
|
|
85
|
+
|
|
86
|
+
&::before {
|
|
87
|
+
border-top-left-radius: 14px;
|
|
88
|
+
border-bottom-left-radius: 14px;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&_rounding-right {
|
|
93
|
+
border-top-right-radius: 12px;
|
|
94
|
+
border-bottom-right-radius: 12px;
|
|
95
|
+
|
|
96
|
+
&::before {
|
|
97
|
+
border-top-right-radius: 14px;
|
|
98
|
+
border-bottom-right-radius: 14px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&::before {
|
|
103
|
+
transform: translate(-4px, -4px);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
&_sm {
|
|
108
|
+
height: 32px;
|
|
109
|
+
#{$root}__page {
|
|
110
|
+
&-button {
|
|
111
|
+
padding: 4px 12px;
|
|
112
|
+
font-size: $font-size-sm;
|
|
113
|
+
line-height: 25px;
|
|
114
|
+
|
|
115
|
+
&_hasIcon {
|
|
116
|
+
padding: 4px 7px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&_rounding-left {
|
|
121
|
+
border-top-left-radius: 8px;
|
|
122
|
+
border-bottom-left-radius: 8px;
|
|
123
|
+
|
|
124
|
+
&::before {
|
|
125
|
+
border-top-left-radius: 10px;
|
|
126
|
+
border-bottom-left-radius: 10px;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&_rounding-right {
|
|
131
|
+
border-top-right-radius: 8px;
|
|
132
|
+
border-bottom-right-radius: 8px;
|
|
133
|
+
|
|
134
|
+
&::before {
|
|
135
|
+
border-top-right-radius: 10px;
|
|
136
|
+
border-bottom-right-radius: 10px;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&::before {
|
|
141
|
+
transform: translate(-4px, -4px);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&__page {
|
|
148
|
+
position: relative;
|
|
149
|
+
$pageRoot: &;
|
|
150
|
+
|
|
151
|
+
display: inline-block;
|
|
152
|
+
cursor: pointer;
|
|
153
|
+
|
|
154
|
+
background-color: $element-background-color;
|
|
155
|
+
border: 1px solid $pagination-border-color;
|
|
156
|
+
border-right: none;
|
|
157
|
+
|
|
158
|
+
&::before {
|
|
159
|
+
position: absolute;
|
|
160
|
+
z-index: 2;
|
|
161
|
+
content: "";
|
|
162
|
+
top: 0;
|
|
163
|
+
left: 0;
|
|
164
|
+
width: 100%;
|
|
165
|
+
height: 100%;
|
|
166
|
+
pointer-events: none;
|
|
167
|
+
border-radius: inherit;
|
|
168
|
+
border: 4px solid $light-gray;
|
|
169
|
+
opacity: 0;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&:last-child {
|
|
173
|
+
border: 1px solid $pagination-border-color;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&_active {
|
|
177
|
+
background-color: $primary;
|
|
178
|
+
color: $white;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&_hasIcon:not(#{$pageRoot}_disabled):active {
|
|
182
|
+
background-color: $primary;
|
|
183
|
+
|
|
184
|
+
#{$pageRoot}-icon {
|
|
185
|
+
path {
|
|
186
|
+
stroke: #ffffff;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&:not(#{$pageRoot}_disabled):not(#{$pageRoot}_active):hover {
|
|
192
|
+
border-color: $element-border-color-hover;
|
|
193
|
+
background-color: $pagination-hover-background-color;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&:not(#{$pageRoot}_disabled):focus-within::before {
|
|
197
|
+
opacity: 1;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&_rounding {
|
|
201
|
+
&-left {
|
|
202
|
+
border-top-left-radius: 10px;
|
|
203
|
+
border-bottom-left-radius: 10px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&-right {
|
|
207
|
+
border-top-right-radius: 10px;
|
|
208
|
+
border-bottom-right-radius: 10px;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&-button {
|
|
213
|
+
cursor: pointer;
|
|
214
|
+
width: 100%;
|
|
215
|
+
height: 100%;
|
|
216
|
+
border: none;
|
|
217
|
+
background: none;
|
|
218
|
+
color: inherit;
|
|
219
|
+
user-select: none;
|
|
220
|
+
outline: none;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
&-icon {
|
|
224
|
+
display: inline-block;
|
|
225
|
+
width: 24px;
|
|
226
|
+
height: 24px;
|
|
227
|
+
pointer-events: none;
|
|
228
|
+
|
|
229
|
+
display: flex;
|
|
230
|
+
justify-content: center;
|
|
231
|
+
align-items: center;
|
|
232
|
+
|
|
233
|
+
rect {
|
|
234
|
+
fill: transparent;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
path {
|
|
238
|
+
stroke: $pagination-arrow-color;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
&_rotate {
|
|
242
|
+
transform: rotate(180deg);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&_disabled {
|
|
247
|
+
background-color: $element-background-color-disabled;
|
|
248
|
+
color: $element-placeholder-color-disabled;
|
|
249
|
+
|
|
250
|
+
cursor: not-allowed;
|
|
251
|
+
|
|
252
|
+
button {
|
|
253
|
+
cursor: not-allowed;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
#{$pageRoot}-icon {
|
|
257
|
+
pointer-events: none;
|
|
258
|
+
path {
|
|
259
|
+
stroke: $element-placeholder-color-disabled;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
@@ -42,7 +42,7 @@ var Button_1 = __importDefault(require("@steroidsjs/core/ui/form/Button"));
|
|
|
42
42
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
43
43
|
function PaginationMoreView(props) {
|
|
44
44
|
var bem = (0, hooks_1.useBem)('PaginationMoreView');
|
|
45
|
-
return (React.createElement("div", { className: bem(
|
|
45
|
+
return (React.createElement("div", { className: bem(bem.block(), props.className) },
|
|
46
46
|
React.createElement(Button_1["default"], __assign({ color: 'secondary', outline: true, label: __('Загрузить еще...') }, props.buttonProps, { onClick: props.onSelectNext }))));
|
|
47
47
|
}
|
|
48
48
|
exports["default"] = PaginationMoreView;
|
|
@@ -22,16 +22,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
25
28
|
exports.__esModule = true;
|
|
26
29
|
var React = __importStar(require("react"));
|
|
27
30
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
31
|
+
var ButtonGroup_1 = __importDefault(require("@steroidsjs/core/ui/nav/ButtonGroup"));
|
|
28
32
|
function PaginationSizeView(props) {
|
|
29
33
|
var bem = (0, hooks_1.useBem)('PaginationSizeView');
|
|
30
34
|
return (React.createElement("div", { className: bem(props.className, bem.block()) },
|
|
31
|
-
React.createElement("
|
|
32
|
-
React.createElement("button", { className: bem(bem.element('link'), 'page-link'), onClick: function (e) {
|
|
33
|
-
e.preventDefault();
|
|
34
|
-
props.onSelect(item.size);
|
|
35
|
-
} }, item.label))); }))));
|
|
35
|
+
React.createElement(ButtonGroup_1["default"], { items: props.items, onClick: props.onSelect, activeButton: props.defaultValue, buttonProps: props.buttonProps })));
|
|
36
36
|
}
|
|
37
37
|
exports["default"] = PaginationSizeView;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { IModalViewProps } from '@steroidsjs/core/ui/modal/Modal/Modal';
|
|
3
|
-
export default function ModalView(props: IModalViewProps
|
|
2
|
+
export default function ModalView(props: IModalViewProps): JSX.Element;
|
package/modal/Modal/ModalView.js
CHANGED
|
@@ -40,7 +40,8 @@ exports.__esModule = true;
|
|
|
40
40
|
var React = __importStar(require("react"));
|
|
41
41
|
var react_modal_1 = __importDefault(require("react-modal"));
|
|
42
42
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
43
|
-
var
|
|
43
|
+
var content_1 = require("@steroidsjs/core/ui/content");
|
|
44
|
+
var form_1 = require("@steroidsjs/core/ui/form");
|
|
44
45
|
function ModalView(props) {
|
|
45
46
|
var bem = (0, hooks_1.useBem)('ModalView');
|
|
46
47
|
var overrideDefaultClasses = {
|
|
@@ -48,15 +49,11 @@ function ModalView(props) {
|
|
|
48
49
|
afterOpen: 'ModalView_overlay-after',
|
|
49
50
|
beforeClose: 'ModalView_overlay-before'
|
|
50
51
|
};
|
|
51
|
-
return (React.createElement(react_modal_1["default"], __assign({}, props, { ariaHideApp: false, bodyOpenClassName: 'ModalView_body-hide-scroll', className: bem.element('body', { size: props.size }), closeTimeoutMS: props.closeTimeoutMs, isOpen: !props.isClosing, onRequestClose: props.onClose, overlayClassName: overrideDefaultClasses, shouldCloseOnEsc: props.shouldCloseOnEsc, shouldCloseOnOverlayClick: props.shouldCloseOnOverlayClick }),
|
|
52
|
+
return (React.createElement(react_modal_1["default"], __assign({}, props, { ariaHideApp: false, bodyOpenClassName: 'ModalView_body-hide-scroll', className: bem(bem.element('body', { size: props.size }), props.className), closeTimeoutMS: props.closeTimeoutMs, isOpen: !props.isClosing, onRequestClose: props.onClose, overlayClassName: overrideDefaultClasses, shouldCloseOnEsc: props.shouldCloseOnEsc, shouldCloseOnOverlayClick: props.shouldCloseOnOverlayClick }),
|
|
52
53
|
React.createElement("div", { className: bem.element('header') },
|
|
53
54
|
React.createElement("span", { className: bem.element('title') }, props.title),
|
|
54
|
-
React.createElement(
|
|
55
|
-
e.preventDefault();
|
|
56
|
-
props.onClose();
|
|
57
|
-
}, "aria-label": __('Закрыть') })),
|
|
55
|
+
React.createElement(content_1.Icon, { name: 'cross_12x12', className: bem.element('close'), onClick: props.onClose })),
|
|
58
56
|
React.createElement("div", { className: bem.element('content') }, props.children),
|
|
59
|
-
props.
|
|
60
|
-
React.createElement(Controls_1["default"], { className: bem.element('controls'), items: props.controls })))));
|
|
57
|
+
props.buttons && (React.createElement("div", { className: bem.element('footer') }, props.buttons.map(function (button, buttonIndex) { return (React.createElement(form_1.Button, __assign({ key: buttonIndex, size: props.size }, button))); })))));
|
|
61
58
|
}
|
|
62
59
|
exports["default"] = ModalView;
|