@steroidsjs/bootstrap 3.0.0-beta.9 → 3.0.0-beta.90
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 +262 -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 +72 -24
- package/content/Avatar/AvatarView.js +2 -3
- package/content/Avatar/AvatarView.scss +43 -48
- package/content/Badge/BadgeView.d.ts +0 -1
- package/content/Badge/BadgeView.js +8 -7
- package/content/Badge/BadgeView.scss +141 -0
- package/content/Calendar/CalendarView.js +1 -1
- package/content/Calendar/CalendarView.scss +248 -175
- package/content/Calendar/CaptionElement.js +23 -15
- package/content/Calendar/CaptionElement.scss +167 -106
- package/content/Card/CardView.js +37 -14
- package/content/Card/CardView.scss +139 -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 +79 -57
- package/content/DropDown/DropDownView.d.ts +0 -1
- package/content/DropDown/DropDownView.js +7 -4
- package/content/DropDown/DropDownView.scss +208 -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 +67 -0
- package/content/Menu/MenuView.d.ts +2 -0
- package/content/Menu/MenuView.js +33 -0
- package/content/Menu/MenuView.scss +46 -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 +199 -142
- package/form/Button/ButtonView.d.ts +1 -2
- package/form/Button/ButtonView.js +13 -9
- package/form/Button/ButtonView.scss +176 -68
- package/form/CheckboxField/CheckboxFieldView.d.ts +1 -2
- package/form/CheckboxField/CheckboxFieldView.js +6 -4
- package/form/CheckboxField/CheckboxFieldView.scss +198 -37
- 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 +15 -70
- package/form/DateRangeField/DateRangeFieldView.js +10 -13
- package/form/DateRangeField/DateRangeFieldView.scss +42 -73
- package/form/DateTimeField/DateTimeFieldView.d.ts +1 -2
- package/form/DateTimeField/DateTimeFieldView.js +6 -6
- package/form/DateTimeField/DateTimeFieldView.scss +13 -107
- package/form/DateTimeRangeField/DateTimeRangeFieldView.js +10 -8
- package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +32 -87
- package/form/DropDownField/DropDownFieldView.js +35 -47
- package/form/DropDownField/DropDownFieldView.scss +382 -181
- 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 +220 -0
- package/form/FieldLayout/FieldLayoutView.d.ts +1 -2
- package/form/FieldLayout/FieldLayoutView.js +13 -9
- package/form/FieldLayout/FieldLayoutView.scss +116 -19
- package/form/FieldList/FieldListItemView.js +6 -4
- package/form/FieldList/FieldListItemView.scss +18 -38
- package/form/FieldList/FieldListView.js +9 -8
- package/form/FieldList/FieldListView.scss +75 -24
- package/form/FieldSet/FieldSetView.js +4 -2
- package/form/FieldSet/FieldSetView.scss +42 -0
- package/form/FileField/FileFieldItemView.d.ts +1 -2
- package/form/FileField/FileFieldItemView.js +31 -6
- package/form/FileField/FileFieldItemView.scss +259 -14
- package/form/FileField/FileFieldView.d.ts +1 -2
- package/form/FileField/FileFieldView.js +6 -8
- package/form/FileField/FileFieldView.scss +45 -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 +267 -99
- package/form/NumberField/NumberFieldView.d.ts +1 -2
- package/form/NumberField/NumberFieldView.js +19 -13
- package/form/NumberField/NumberFieldView.scss +197 -89
- package/form/PasswordField/PasswordFieldView.d.ts +1 -2
- package/form/PasswordField/PasswordFieldView.js +11 -9
- package/form/PasswordField/PasswordFieldView.scss +238 -63
- package/form/RadioField/RadioFieldView.d.ts +2 -0
- package/form/RadioField/RadioFieldView.js +57 -0
- package/form/RadioField/RadioFieldView.scss +228 -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 +118 -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 +338 -299
- package/form/SwitcherField/SwitcherFieldView.d.ts +1 -2
- package/form/SwitcherField/SwitcherFieldView.js +12 -7
- package/form/SwitcherField/SwitcherFieldView.scss +192 -1
- package/form/TextField/TextFieldView.d.ts +1 -2
- package/form/TextField/TextFieldView.js +10 -2
- package/form/TextField/TextFieldView.scss +147 -2
- package/form/TimeField/TimeFieldView.d.ts +1 -2
- package/form/TimeField/TimeFieldView.js +16 -14
- package/form/TimeField/TimeFieldView.scss +22 -68
- package/form/TimeField/TimePanelView.scss +65 -68
- package/form/TimeRangeField/TimeRangeFieldView.d.ts +2 -0
- package/form/TimeRangeField/TimeRangeFieldView.js +67 -0
- package/form/TimeRangeField/TimeRangeFieldView.scss +81 -0
- package/icons/index.d.ts +2 -0
- package/icons/index.js +110 -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 +5 -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/burger.svg +5 -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/facebook.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/instagram.svg +5 -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/sort.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/telegram.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/vk.svg +3 -0
- package/icons/svgs/warning_16x16.svg +5 -0
- package/icons/svgs/warning_24x24.svg +12 -0
- package/icons/svgs/whatsapp.svg +7 -0
- package/index.d.ts +41 -2
- package/index.js +43 -4
- package/index.scss +91 -68
- package/layout/Header/HeaderView.js +43 -6
- package/layout/Header/HeaderView.scss +138 -23
- package/layout/Loader/LoaderView.d.ts +2 -2
- package/layout/Loader/LoaderView.js +6 -2
- package/layout/Loader/LoaderView.scss +70 -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/CircleProgressBarView.scss +9 -7
- package/layout/ProgressBar/LineProgressBarView.d.ts +1 -2
- package/layout/ProgressBar/LineProgressBarView.scss +10 -8
- package/layout/Sidebar/FooterIcons/FooterIcons.d.ts +10 -0
- package/layout/Sidebar/FooterIcons/FooterIcons.js +54 -0
- package/layout/Sidebar/FooterIcons/FooterIcons.scss +36 -0
- package/layout/Sidebar/FooterIcons/index.d.ts +2 -0
- package/layout/Sidebar/FooterIcons/index.js +7 -0
- package/layout/Sidebar/SidebarLogo/SidebarLogo.d.ts +10 -0
- package/layout/Sidebar/SidebarLogo/SidebarLogo.js +44 -0
- package/layout/Sidebar/SidebarLogo/SidebarLogo.scss +52 -0
- package/layout/Sidebar/SidebarLogo/index.d.ts +2 -0
- package/layout/Sidebar/SidebarLogo/index.js +7 -0
- package/layout/Sidebar/SidebarUser/SidebarUser.d.ts +11 -0
- package/layout/Sidebar/SidebarUser/SidebarUser.js +53 -0
- package/layout/Sidebar/SidebarUser/SidebarUser.scss +45 -0
- package/layout/Sidebar/SidebarUser/index.d.ts +2 -0
- package/layout/Sidebar/SidebarUser/index.js +7 -0
- package/layout/Sidebar/SidebarView.d.ts +2 -0
- package/layout/Sidebar/SidebarView.js +26 -0
- package/layout/Sidebar/SidebarView.scss +304 -0
- package/layout/Sidebar/index.d.ts +2 -0
- package/layout/Sidebar/index.js +7 -0
- package/layout/Skeleton/SkeletonView.scss +7 -5
- package/layout/Tooltip/TooltipView.d.ts +1 -2
- package/layout/Tooltip/TooltipView.js +6 -6
- package/layout/Tooltip/TooltipView.scss +46 -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 +5 -1
- package/list/FlexGrid/FlexGridView.d.ts +2 -0
- package/list/FlexGrid/FlexGridView.js +71 -0
- package/list/FlexGrid/FlexGridView.scss +60 -0
- package/list/Grid/GridView.js +10 -4
- package/list/Grid/GridView.scss +153 -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 +88 -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 +28 -1
- package/list/Pagination/PaginationButtonView.js +34 -5
- package/list/Pagination/PaginationButtonView.scss +265 -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/list/Steps/StepItemView.scss +13 -12
- package/list/Steps/StepsView.scss +3 -1
- package/modal/Modal/ModalView.d.ts +1 -2
- package/modal/Modal/ModalView.js +5 -8
- package/modal/Modal/ModalView.scss +140 -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 +84 -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 +35 -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 +21 -2
- package/nav/Nav/NavIconView.scss +33 -6
- package/nav/Nav/NavLinkView.d.ts +1 -2
- package/nav/Nav/NavLinkView.js +9 -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 +50 -1
- package/nav/Tree/TreeView.d.ts +1 -2
- package/nav/Tree/TreeView.scss +63 -54
- package/package.json +8 -6
- 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 +83 -24
- package/scss/mixins/customMixins.scss +6 -0
- package/scss/mixins/date.scss +436 -0
- package/scss/mixins/index.scss +6 -2
- package/scss/mixins/navs.scss +39 -0
- package/scss/mixins/scroll.scss +31 -0
- package/scss/mixins/typography.scss +29 -0
- package/scss/normalize.scss +25 -0
- package/scss/variables/common/colors.scss +199 -83
- package/scss/variables/common/media.scss +3 -0
- package/scss/variables/common/typography.scss +99 -28
- package/scss/variables/common/variables.scss +1 -0
- package/scss/variables/components/calendar.scss +8 -6
- package/scss/variables/components/input.scss +10 -7
- package/scss/variables/components/ratefield.scss +3 -1
- package/scss/variables/index.scss +10 -11
- package/typography/Text/TextView.d.ts +3 -0
- package/typography/Text/TextView.js +46 -0
- package/typography/Text/TextView.scss +19 -0
- package/typography/Title/TitleView.d.ts +3 -0
- package/typography/Title/TitleView.js +50 -0
- package/typography/Title/TitleView.scss +19 -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 -259
- 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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
1
2
|
|
|
2
3
|
.StepItemView{
|
|
3
4
|
$root: &;
|
|
@@ -14,31 +15,31 @@
|
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
&__icon{
|
|
17
|
-
background-color: rgba(
|
|
18
|
+
background-color: rgba(variables.$white, .2);
|
|
18
19
|
padding: 5px;
|
|
19
20
|
border-radius: 10px;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
&_wait{
|
|
23
24
|
#{$root}__icon{
|
|
24
|
-
background-color:
|
|
25
|
+
background-color: variables.$grey-darker;
|
|
25
26
|
svg{
|
|
26
|
-
fill:
|
|
27
|
+
fill:variables.$white;
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
#{$root}__title, #{$root}__subtitle, #{$root}__description{
|
|
31
|
-
color:
|
|
32
|
+
color: variables.$grey-darker;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
#{$root}__divider{
|
|
35
|
-
border-top-color:
|
|
36
|
+
border-top-color: variables.$grey-darker;
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
&_active{
|
|
40
41
|
#{$root}__body{
|
|
41
|
-
background-color:
|
|
42
|
+
background-color: variables.$primary;
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
#{$root}__icon svg{
|
|
@@ -50,13 +51,13 @@
|
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
#{$root}__divider{
|
|
53
|
-
border-top-color:
|
|
54
|
+
border-top-color: variables.$primary;
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
&_finish{
|
|
58
59
|
#{$root}__body{
|
|
59
|
-
background-color:
|
|
60
|
+
background-color: variables.$success;
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
#{$root}__icon svg{
|
|
@@ -68,13 +69,13 @@
|
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
#{$root}__divider{
|
|
71
|
-
border-top-color:
|
|
72
|
+
border-top-color: variables.$success;
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
&_error{
|
|
76
77
|
#{$root}__body{
|
|
77
|
-
background-color:
|
|
78
|
+
background-color: variables.$danger;
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
#{$root}__icon svg{
|
|
@@ -86,7 +87,7 @@
|
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
#{$root}__divider{
|
|
89
|
-
border-top-color:
|
|
90
|
+
border-top-color: variables.$danger;
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
|
|
@@ -115,7 +116,7 @@
|
|
|
115
116
|
&__icon{
|
|
116
117
|
margin-right: 5px;
|
|
117
118
|
|
|
118
|
-
color:
|
|
119
|
+
color: variables.$white;
|
|
119
120
|
font-size: 12px;
|
|
120
121
|
font-weight: 500;
|
|
121
122
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
|
|
1
3
|
.StepsView{
|
|
2
4
|
width: 100%;
|
|
3
5
|
min-height: 96px;
|
|
@@ -6,7 +8,7 @@
|
|
|
6
8
|
justify-content: center;
|
|
7
9
|
align-items: center;
|
|
8
10
|
flex-shrink: 1;
|
|
9
|
-
background:
|
|
11
|
+
background: variables.$secondary-light;
|
|
10
12
|
overflow: auto;
|
|
11
13
|
padding: 5px;
|
|
12
14
|
|
|
@@ -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;
|
|
@@ -1,108 +1,155 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--modal-background-color: #ffffff;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
html[data-theme="dark"] {
|
|
8
|
+
--modal-background-color: #272a37;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
$modal-background-color: var(--modal-background-color);
|
|
12
|
+
|
|
1
13
|
.ModalView {
|
|
14
|
+
$root: &;
|
|
15
|
+
min-width: 300px;
|
|
2
16
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
background-color: rgba(0,0,0,0.7);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&__body {
|
|
18
|
-
margin: auto;
|
|
19
|
-
background: #fff;
|
|
20
|
-
|
|
21
|
-
&_size {
|
|
22
|
-
&_small {
|
|
23
|
-
width: 400px;
|
|
24
|
-
}
|
|
25
|
-
&_middle {
|
|
26
|
-
width: 600px;
|
|
27
|
-
}
|
|
28
|
-
&_large {
|
|
29
|
-
width: 960px;
|
|
30
|
-
}
|
|
17
|
+
&_overlay {
|
|
18
|
+
position: fixed;
|
|
19
|
+
top: 0;
|
|
20
|
+
bottom: 0;
|
|
21
|
+
left: 0;
|
|
22
|
+
right: 0;
|
|
23
|
+
|
|
24
|
+
display: flex;
|
|
25
|
+
padding: 50px;
|
|
26
|
+
|
|
27
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
31
28
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
29
|
+
|
|
30
|
+
&__body {
|
|
31
|
+
margin: auto;
|
|
32
|
+
overflow: visible;
|
|
33
|
+
background-color: $modal-background-color;
|
|
34
|
+
color: variables.$text-color;
|
|
35
|
+
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
|
|
36
|
+
|
|
37
|
+
&_size {
|
|
38
|
+
&_lg {
|
|
39
|
+
border-radius: 16px;
|
|
40
|
+
|
|
41
|
+
font-size: variables.$font-size-lg;
|
|
42
|
+
line-height: variables.$line-height-lg;
|
|
43
|
+
|
|
44
|
+
#{$root}__header {
|
|
45
|
+
padding: 24px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
#{$root}__content {
|
|
49
|
+
padding: 24px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
#{$root}__footer {
|
|
53
|
+
padding: 24px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
&_md {
|
|
57
|
+
border-radius: variables.$radius-large;
|
|
58
|
+
|
|
59
|
+
font-size: variables.$font-size-base;
|
|
60
|
+
line-height: variables.$line-height-base;
|
|
61
|
+
|
|
62
|
+
#{$root}__header {
|
|
63
|
+
padding: 21px 20px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
#{$root}__content {
|
|
67
|
+
padding: 20px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
#{$root}__footer {
|
|
71
|
+
padding: 20px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
&_sm {
|
|
75
|
+
border-radius: variables.$radius-small;
|
|
76
|
+
|
|
77
|
+
font-size: variables.$font-size-sm;
|
|
78
|
+
line-height: variables.$line-height-sm;
|
|
79
|
+
|
|
80
|
+
#{$root}__header {
|
|
81
|
+
padding: 19px 16px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
#{$root}__content {
|
|
85
|
+
padding: 16px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
#{$root}__footer {
|
|
89
|
+
padding: 16px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&__header {
|
|
96
|
+
display: flex;
|
|
97
|
+
flex-flow: row nowrap;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: space-between;
|
|
100
|
+
|
|
101
|
+
> * {
|
|
102
|
+
display: inline-block;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&__title {
|
|
107
|
+
font-size: inherit;
|
|
108
|
+
line-height: inherit;
|
|
109
|
+
font-weight: variables.$font-weight-lg;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&__close {
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
width: 24px;
|
|
115
|
+
height: 24px;
|
|
116
|
+
|
|
117
|
+
svg {
|
|
118
|
+
path {
|
|
119
|
+
stroke: variables.$text-color;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&__content {
|
|
125
|
+
font-size: inherit;
|
|
126
|
+
line-height: inherit;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&__footer {
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-flow: row wrap;
|
|
132
|
+
justify-content: center;
|
|
133
|
+
align-items: center;
|
|
134
|
+
column-gap: 8px;
|
|
52
135
|
}
|
|
53
136
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
display: block;
|
|
59
|
-
position: absolute;
|
|
60
|
-
top: 50%;
|
|
61
|
-
margin-top: -8px;
|
|
62
|
-
left: 50%;
|
|
63
|
-
width: 1px;
|
|
64
|
-
height: 16px;
|
|
65
|
-
background-color: #888;
|
|
137
|
+
// Fade animation
|
|
138
|
+
&_overlay {
|
|
139
|
+
opacity: 0;
|
|
140
|
+
transition: opacity 0.3s ease-in-out;
|
|
66
141
|
}
|
|
67
142
|
|
|
68
|
-
|
|
69
|
-
|
|
143
|
+
&_overlay-after {
|
|
144
|
+
opacity: 1;
|
|
70
145
|
}
|
|
71
146
|
|
|
72
|
-
|
|
73
|
-
|
|
147
|
+
&_overlay-before {
|
|
148
|
+
opacity: 0;
|
|
74
149
|
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&__content {
|
|
78
|
-
padding: 15px;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&__footer {
|
|
82
|
-
padding: 15px;
|
|
83
|
-
border-top: 1px solid #f0f0f0;
|
|
84
|
-
}
|
|
85
|
-
&__controls.ControlsView {
|
|
86
|
-
flex-direction: row-reverse;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
// Fade animation
|
|
90
|
-
|
|
91
|
-
&_overlay {
|
|
92
|
-
opacity: 0;
|
|
93
|
-
transition: opacity .3s ease-in-out;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&_overlay-after {
|
|
97
|
-
opacity: 1;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&_overlay-before {
|
|
101
|
-
opacity: 0;
|
|
102
|
-
}
|
|
103
150
|
}
|
|
104
151
|
|
|
105
152
|
// Class to hide body scroll, when Modal is opened
|
|
106
153
|
.ModalView_body-hide-scroll {
|
|
107
|
-
|
|
154
|
+
overflow: hidden;
|
|
108
155
|
}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { ITwoFactorModalViewProps } from '@steroidsjs/core/ui/modal/TwoFactorModal/TwoFactorModal';
|
|
3
|
-
|
|
4
|
-
export default function TwoFactorModalView(props: ITwoFactorModalViewProps & IBemHocOutput): JSX.Element;
|
|
2
|
+
export default function TwoFactorModalView(props: ITwoFactorModalViewProps): JSX.Element;
|
|
@@ -17,7 +17,6 @@ exports.__esModule = true;
|
|
|
17
17
|
var react_1 = __importDefault(require("react"));
|
|
18
18
|
var Modal_1 = __importDefault(require("@steroidsjs/core/ui/modal/Modal"));
|
|
19
19
|
var form_1 = require("@steroidsjs/core/ui/form");
|
|
20
|
-
require("./TwoFactorModalView.scss");
|
|
21
20
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
22
21
|
function TwoFactorModalView(props) {
|
|
23
22
|
var bem = (0, hooks_1.useBem)('TwoFactorModalView');
|
|
@@ -29,14 +29,22 @@ exports.__esModule = true;
|
|
|
29
29
|
var React = __importStar(require("react"));
|
|
30
30
|
var Link_1 = __importDefault(require("@steroidsjs/core/ui/nav/Link"));
|
|
31
31
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
32
|
+
var content_1 = require("@steroidsjs/core/ui/content");
|
|
33
|
+
var renderIcon_1 = __importDefault(require("../../utils/renderIcon"));
|
|
32
34
|
function BreadcrumbsView(props) {
|
|
33
35
|
var bem = (0, hooks_1.useBem)('BreadcrumbsView');
|
|
34
36
|
var items = props.items || [];
|
|
37
|
+
var renderLink = React.useCallback(function (item, children) { return (React.createElement(Link_1["default"], { toRoute: item.id, toRouteParams: props.routeParams, href: item.id }, children)); }, [props.routeParams]);
|
|
38
|
+
var renderHomeIcon = React.useCallback(function () { return (props.customIcon
|
|
39
|
+
? (0, renderIcon_1["default"])(props.customIcon, { className: bem.element('custom-icon') })
|
|
40
|
+
: (React.createElement(content_1.Icon, { name: 'home', className: bem.element('icon') }))); }, [bem, props.customIcon]);
|
|
35
41
|
return (React.createElement("nav", { className: bem(bem.block(), props.className), "aria-label": 'breadcrumb' },
|
|
36
42
|
React.createElement("ol", { className: bem.element('list') }, items.map(function (item, index) {
|
|
37
43
|
var isLastItem = items.length === index + 1;
|
|
44
|
+
var isFirstItem = index === 0;
|
|
38
45
|
return (React.createElement("li", { key: item.id || index, className: bem.element('item') },
|
|
39
|
-
|
|
46
|
+
isFirstItem && item.id && renderLink(item, props.showIcon ? renderHomeIcon() : item.title),
|
|
47
|
+
!isFirstItem && !isLastItem && item.id && renderLink(item, item.title),
|
|
40
48
|
(isLastItem || !item.id) && (React.createElement("span", null, props.pageTitle || item.title))));
|
|
41
49
|
}))));
|
|
42
50
|
}
|
|
@@ -1,6 +1,36 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--last-link-color: rgba(0, 0, 0, 0.3);;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
html[data-theme="dark"] {
|
|
8
|
+
--last-link-color: rgba(255, 255, 255, 0.3);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
$last-link-color: var(--last-link-color);
|
|
12
|
+
|
|
1
13
|
.BreadcrumbsView {
|
|
2
14
|
$breadcrumb-item-separator: '/';
|
|
3
15
|
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
&__icon, &__custom-icon {
|
|
19
|
+
display: flex;
|
|
20
|
+
|
|
21
|
+
svg {
|
|
22
|
+
stroke: variables.$link-color;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
svg:hover {
|
|
26
|
+
stroke: variables.$link-color-hover;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
svg path, svg circle {
|
|
30
|
+
stroke:inherit;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
4
34
|
&__list {
|
|
5
35
|
display: flex;
|
|
6
36
|
flex-wrap: wrap;
|
|
@@ -8,11 +38,30 @@
|
|
|
8
38
|
padding: 0;
|
|
9
39
|
}
|
|
10
40
|
|
|
41
|
+
&__list {
|
|
42
|
+
li:last-child span{
|
|
43
|
+
color: $last-link-color;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
11
47
|
&__item {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
|
|
12
51
|
&:not(:first-child)::before {
|
|
13
52
|
content: $breadcrumb-item-separator;
|
|
14
53
|
display: inline-block;
|
|
15
54
|
margin: 0 8px;
|
|
55
|
+
color: variables.$link-color;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
span {
|
|
59
|
+
line-height: 24px;
|
|
60
|
+
font-size: 14px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
span:hover {
|
|
64
|
+
color: variables.$link-color-hover;
|
|
16
65
|
}
|
|
17
66
|
}
|
|
18
67
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
exports.__esModule = true;
|
|
17
|
+
var react_1 = __importDefault(require("react"));
|
|
18
|
+
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
19
|
+
var form_1 = require("@steroidsjs/core/ui/form");
|
|
20
|
+
function ButtonGroupView(props) {
|
|
21
|
+
var bem = (0, hooks_1.useBem)('ButtonGroupView');
|
|
22
|
+
return (react_1["default"].createElement("ul", { className: bem(bem.block({
|
|
23
|
+
size: props.size
|
|
24
|
+
}), props.className), style: props.style }, props.items.map(function (item, index) {
|
|
25
|
+
var isActive = props.activeButton === item.id;
|
|
26
|
+
return (react_1["default"].createElement("li", { key: index, className: item.className ? item.className : null },
|
|
27
|
+
react_1["default"].createElement(form_1.Button, __assign({ className: bem.element('button', {
|
|
28
|
+
"default": !isActive,
|
|
29
|
+
active: isActive
|
|
30
|
+
}), label: item.label, onClick: function () { return props.onClick(item.id); } }, props.buttonProps))));
|
|
31
|
+
})));
|
|
32
|
+
}
|
|
33
|
+
exports["default"] = ButtonGroupView;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../scss/variables";
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
--button-group-background: #DBE2E6;
|
|
6
|
+
--button-group-separator-color: #CBD5DB;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
html[data-theme="dark"] {
|
|
10
|
+
--button-group-background: #333646;
|
|
11
|
+
--button-group-separator-color: #ADAAB3;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
$button-group-background: var(--button-group-background);
|
|
15
|
+
$button-group-separator-color: var(--button-group-separator-color);
|
|
16
|
+
|
|
17
|
+
.ButtonGroupView {
|
|
18
|
+
display: flex;
|
|
19
|
+
padding: 4px;
|
|
20
|
+
width: fit-content;
|
|
21
|
+
background-color: $button-group-background;
|
|
22
|
+
|
|
23
|
+
$sizes: () !default;
|
|
24
|
+
$sizes: map.merge(
|
|
25
|
+
(
|
|
26
|
+
"lg": (
|
|
27
|
+
"border-radius": 16px,
|
|
28
|
+
),
|
|
29
|
+
"md": (
|
|
30
|
+
"border-radius": 16px,
|
|
31
|
+
),
|
|
32
|
+
"sm": (
|
|
33
|
+
"border-radius": 12px,
|
|
34
|
+
),
|
|
35
|
+
),
|
|
36
|
+
$sizes
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
&_size {
|
|
40
|
+
@each $size, $sizeMap in $sizes {
|
|
41
|
+
&_#{$size} {
|
|
42
|
+
border-radius: map.get($sizeMap, border-radius);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__button {
|
|
48
|
+
&_default {
|
|
49
|
+
background-color: transparent;
|
|
50
|
+
border-color: transparent;
|
|
51
|
+
color: variables.$text-color;
|
|
52
|
+
transition: opacity variables.$transition-duration ease-in-out;
|
|
53
|
+
|
|
54
|
+
&:hover {
|
|
55
|
+
background-color: transparent;
|
|
56
|
+
border-color: transparent;
|
|
57
|
+
color: variables.$text-color;
|
|
58
|
+
opacity: 0.7;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:active {
|
|
62
|
+
box-shadow: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:not(:first-child) {
|
|
66
|
+
&::after {
|
|
67
|
+
content: '';
|
|
68
|
+
display: block;
|
|
69
|
+
position: absolute;
|
|
70
|
+
top: 50%;
|
|
71
|
+
left: 0;
|
|
72
|
+
transform: translateY(-50%);
|
|
73
|
+
width: 1px;
|
|
74
|
+
height: 12px;
|
|
75
|
+
background-color: $button-group-separator-color;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&_active + &_default::after {
|
|
81
|
+
display: none;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { IControlsViewProps } from '@steroidsjs/core/ui/nav/Controls/Controls';
|
|
2
|
-
|
|
3
|
-
export default function ControlsView(props: IControlsViewProps & IBemHocOutput): JSX.Element;
|
|
2
|
+
export default function ControlsView(props: IControlsViewProps): JSX.Element;
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
.ControlsView {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
flex-flow: row;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
|
|
6
|
+
.ButtonView__icon {
|
|
7
|
+
svg {
|
|
8
|
+
path, circle, rect {
|
|
9
|
+
stroke: inherit;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
a {
|
|
15
|
+
display: inline-block;
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
}
|
|
5
19
|
}
|
package/nav/Nav/NavBarView.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { INavViewProps } from '@steroidsjs/core/ui/nav/Nav/Nav';
|
|
3
|
-
export default function NavBarView(props: INavViewProps
|
|
2
|
+
export default function NavBarView(props: INavViewProps): JSX.Element;
|
package/nav/Nav/NavBarView.js
CHANGED
|
@@ -42,9 +42,14 @@ var Button_1 = __importDefault(require("@steroidsjs/core/ui/form/Button"));
|
|
|
42
42
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
43
43
|
function NavBarView(props) {
|
|
44
44
|
var bem = (0, hooks_1.useBem)('NavBarView');
|
|
45
|
-
return (React.createElement("div", { className: bem(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
props.
|
|
45
|
+
return (React.createElement("div", { className: bem(bem.block({
|
|
46
|
+
size: props.size
|
|
47
|
+
}), props.className) },
|
|
48
|
+
React.createElement("ul", { className: bem.element('list') }, props.items.map(function (item, index) { return (React.createElement("li", { key: item.id || index, className: bem(bem.element('list-item', {
|
|
49
|
+
active: item.isActive,
|
|
50
|
+
disabled: item.disabled
|
|
51
|
+
}), props.navClassName) },
|
|
52
|
+
React.createElement(Button_1["default"], __assign({ size: props.size, link: !item.isActive, onClick: function () { return props.onClick(item, index); } }, item)))); })),
|
|
53
|
+
React.createElement("div", { className: bem.element('content') }, props.children)));
|
|
49
54
|
}
|
|
50
55
|
exports["default"] = NavBarView;
|