@steroidsjs/bootstrap 3.0.0-beta.6 → 3.0.0-beta.60
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 +209 -0
- package/content/Accordion/AccordionView.d.ts +2 -0
- package/content/{Collapse/CollapseView.js → Accordion/AccordionView.js} +3 -3
- package/content/{Collapse/CollapseView.scss → Accordion/AccordionView.scss} +3 -4
- package/content/Alert/AlertView.js +3 -2
- package/content/Alert/AlertView.scss +19 -4
- package/content/Avatar/AvatarView.js +2 -3
- package/content/Avatar/AvatarView.scss +32 -39
- package/content/Badge/BadgeView.d.ts +3 -0
- package/content/Badge/BadgeView.js +25 -0
- package/content/Badge/BadgeView.scss +135 -0
- package/content/Calendar/CalendarView.js +1 -1
- package/content/Calendar/CalendarView.scss +240 -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 +139 -107
- 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 +75 -52
- package/content/DropDown/DropDownView.d.ts +0 -1
- package/content/DropDown/DropDownView.js +6 -4
- package/content/DropDown/DropDownView.scss +196 -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/form/AutoCompleteField/AutoCompleteFieldView.d.ts +1 -2
- package/form/AutoCompleteField/AutoCompleteFieldView.js +62 -8
- 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 +168 -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 +7 -74
- package/form/DateRangeField/DateRangeFieldView.js +10 -13
- package/form/DateRangeField/DateRangeFieldView.scss +29 -78
- package/form/DateTimeField/DateTimeFieldView.d.ts +1 -2
- package/form/DateTimeField/DateTimeFieldView.js +5 -5
- package/form/DateTimeField/DateTimeFieldView.scss +7 -109
- package/form/DateTimeRangeField/DateTimeRangeFieldView.js +9 -7
- package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +25 -90
- package/form/DropDownField/DropDownFieldView.js +31 -47
- package/form/DropDownField/DropDownFieldView.scss +388 -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 +78 -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 +58 -18
- 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 +34 -4
- 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 +1 -1
- package/form/InputField/InputFieldView.d.ts +1 -2
- package/form/InputField/InputFieldView.js +30 -13
- 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 +231 -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/ReCaptchaField/ReCaptchaFieldView.d.ts +1 -2
- package/form/ReCaptchaField/ReCaptchaFieldView.js +2 -2
- package/form/SliderField/SliderFieldView.d.ts +1 -2
- 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/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 +26 -2
- package/index.js +28 -4
- package/index.scss +16 -3
- package/layout/Header/HeaderView.scss +3 -3
- 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/NotificationsView.d.ts +1 -2
- package/layout/ProgressBar/CircleProgressBarView.d.ts +1 -2
- package/layout/ProgressBar/LineProgressBarView.d.ts +1 -2
- 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/Grid/GridView.js +8 -4
- package/list/Grid/GridView.scss +148 -37
- package/list/Grid/views/ContentColumnView/ContentColumnView.d.ts +3 -0
- package/list/Grid/views/ContentColumnView/ContentColumnView.js +51 -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/List/ListItemView.d.ts +1 -2
- package/list/List/ListView.js +5 -7
- package/list/List/ListView.scss +32 -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/modal/Modal/ModalView.d.ts +1 -2
- package/modal/Modal/ModalView.js +4 -7
- package/modal/Modal/ModalView.scss +129 -93
- package/modal/TwoFactorModal/TwoFactorModalView.d.ts +1 -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 +32 -0
- package/nav/ButtonGroup/ButtonGroupView.scss +83 -0
- package/nav/Controls/ControlsView.d.ts +1 -2
- package/nav/Controls/ControlsView.scss +9 -3
- package/nav/Nav/NavBarView.d.ts +1 -2
- package/nav/Nav/NavButtonView.d.ts +1 -2
- package/nav/Nav/NavIconView.d.ts +1 -2
- package/nav/Nav/NavIconView.js +1 -1
- package/nav/Nav/NavLinkView.d.ts +1 -2
- package/nav/Nav/NavListView.d.ts +1 -2
- package/nav/Nav/NavListView.js +1 -1
- package/nav/Nav/NavTabsView.d.ts +1 -2
- package/nav/Nav/NavTabsView.js +1 -1
- package/nav/Tree/TreeView.d.ts +1 -2
- package/nav/Tree/TreeView.scss +14 -11
- package/package.json +56 -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 +397 -0
- package/scss/mixins/index.scss +4 -1
- package/scss/mixins/scroll.scss +31 -0
- package/scss/mixins/typography.scss +26 -0
- package/scss/variables/common/colors.scss +119 -69
- package/scss/variables/common/media.scss +2 -0
- package/scss/variables/common/typography.scss +96 -28
- package/scss/variables/common/variables.scss +1 -0
- package/scss/variables/components/input.scss +7 -6
- package/scss/variables/index.scss +3 -2
- package/scss/variables/normalize.scss +25 -0
- 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/icons/fontawesome.d.ts +0 -2
- package/icons/fontawesome.js +0 -254
- package/list/List/ListItemView.scss +0 -3
- package/scss/mixins/card.scss +0 -26
- package/scss/variables/components/card.scss +0 -20
|
@@ -1,108 +1,144 @@
|
|
|
1
1
|
.ModalView {
|
|
2
|
+
$root: &;
|
|
3
|
+
min-width: 300px;
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
5
|
+
&_overlay {
|
|
6
|
+
z-index: 100;
|
|
7
|
+
position: fixed;
|
|
8
|
+
top: 0;
|
|
9
|
+
bottom: 0;
|
|
10
|
+
left: 0;
|
|
11
|
+
right: 0;
|
|
12
|
+
|
|
13
|
+
display: flex;
|
|
14
|
+
padding: 50px;
|
|
15
|
+
|
|
16
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__body {
|
|
20
|
+
margin: auto;
|
|
21
|
+
overflow: visible;
|
|
22
|
+
background-color: $element-background-color;
|
|
23
|
+
color: $text-color;
|
|
24
|
+
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
|
|
25
|
+
|
|
26
|
+
&_size {
|
|
27
|
+
&_lg {
|
|
28
|
+
border-radius: 16px;
|
|
29
|
+
|
|
30
|
+
font-size: $font-size-lg;
|
|
31
|
+
line-height: $line-height-lg;
|
|
32
|
+
|
|
33
|
+
#{$root}__header {
|
|
34
|
+
padding: 24px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
#{$root}__content {
|
|
38
|
+
padding: 24px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
#{$root}__footer {
|
|
42
|
+
padding: 24px;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
&_md {
|
|
46
|
+
border-radius: $radius-large;
|
|
47
|
+
|
|
48
|
+
font-size: $font-size-base;
|
|
49
|
+
line-height: $line-height-base;
|
|
50
|
+
|
|
51
|
+
#{$root}__header {
|
|
52
|
+
padding: 21px 20px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
#{$root}__content {
|
|
56
|
+
padding: 20px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
#{$root}__footer {
|
|
60
|
+
padding: 20px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
&_sm {
|
|
64
|
+
border-radius: $radius-small;
|
|
65
|
+
|
|
66
|
+
font-size: $font-size-sm;
|
|
67
|
+
line-height: $line-height-sm;
|
|
68
|
+
|
|
69
|
+
#{$root}__header {
|
|
70
|
+
padding: 19px 16px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
#{$root}__content {
|
|
74
|
+
padding: 16px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
#{$root}__footer {
|
|
78
|
+
padding: 16px;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
31
82
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
83
|
+
|
|
84
|
+
&__header {
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-flow: row nowrap;
|
|
87
|
+
align-items: center;
|
|
88
|
+
justify-content: space-between;
|
|
89
|
+
|
|
90
|
+
> * {
|
|
91
|
+
display: inline-block;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&__title {
|
|
96
|
+
font-size: inherit;
|
|
97
|
+
line-height: inherit;
|
|
98
|
+
font-weight: $font-weight-lg;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&__close {
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
width: 24px;
|
|
104
|
+
height: 24px;
|
|
105
|
+
|
|
106
|
+
svg {
|
|
107
|
+
path {
|
|
108
|
+
stroke: $text-color;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&__content {
|
|
114
|
+
font-size: inherit;
|
|
115
|
+
line-height: inherit;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&__footer {
|
|
119
|
+
display: flex;
|
|
120
|
+
flex-flow: row wrap;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
align-items: center;
|
|
123
|
+
column-gap: 8px;
|
|
52
124
|
}
|
|
53
125
|
|
|
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;
|
|
126
|
+
// Fade animation
|
|
127
|
+
&_overlay {
|
|
128
|
+
opacity: 0;
|
|
129
|
+
transition: opacity 0.3s ease-in-out;
|
|
66
130
|
}
|
|
67
131
|
|
|
68
|
-
|
|
69
|
-
|
|
132
|
+
&_overlay-after {
|
|
133
|
+
opacity: 1;
|
|
70
134
|
}
|
|
71
135
|
|
|
72
|
-
|
|
73
|
-
|
|
136
|
+
&_overlay-before {
|
|
137
|
+
opacity: 0;
|
|
74
138
|
}
|
|
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
139
|
}
|
|
104
140
|
|
|
105
141
|
// Class to hide body scroll, when Modal is opened
|
|
106
142
|
.ModalView_body-hide-scroll {
|
|
107
|
-
|
|
143
|
+
overflow: hidden;
|
|
108
144
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { ITwoFactorModalViewProps } from '@steroidsjs/core/ui/modal/TwoFactorModal/TwoFactorModal';
|
|
3
2
|
import './TwoFactorModalView.scss';
|
|
4
|
-
export default function TwoFactorModalView(props: ITwoFactorModalViewProps
|
|
3
|
+
export default function TwoFactorModalView(props: ITwoFactorModalViewProps): JSX.Element;
|
|
@@ -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
|
+
|
|
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: $link-color;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
svg:hover {
|
|
26
|
+
stroke: $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: $link-color;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
span {
|
|
59
|
+
line-height: 24px;
|
|
60
|
+
font-size: 14px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
span:hover {
|
|
64
|
+
color: $link-color-hover;
|
|
16
65
|
}
|
|
17
66
|
}
|
|
18
67
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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("div", { 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(form_1.Button, __assign({ key: index, className: bem.element('button', {
|
|
27
|
+
"default": !isActive,
|
|
28
|
+
active: isActive
|
|
29
|
+
}), label: item.label, onClick: function () { return props.onClick(item.id); } }, props.buttonProps)));
|
|
30
|
+
})));
|
|
31
|
+
}
|
|
32
|
+
exports["default"] = ButtonGroupView;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@import "../../scss/variables/";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--button-group-background: #DBE2E6;
|
|
5
|
+
--button-group-separator-color: #CBD5DB;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
html[data-theme="dark"] {
|
|
9
|
+
--button-group-background: #333646;
|
|
10
|
+
--button-group-separator-color: #ADAAB3;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
$button-group-background: var(--button-group-background);
|
|
14
|
+
$button-group-separator-color: var(--button-group-separator-color);
|
|
15
|
+
|
|
16
|
+
.ButtonGroupView {
|
|
17
|
+
display: flex;
|
|
18
|
+
padding: 4px;
|
|
19
|
+
width: fit-content;
|
|
20
|
+
background-color: $button-group-background;
|
|
21
|
+
|
|
22
|
+
$sizes: () !default;
|
|
23
|
+
$sizes: map-merge(
|
|
24
|
+
(
|
|
25
|
+
"lg": (
|
|
26
|
+
"border-radius": 16px,
|
|
27
|
+
),
|
|
28
|
+
"md": (
|
|
29
|
+
"border-radius": 16px,
|
|
30
|
+
),
|
|
31
|
+
"sm": (
|
|
32
|
+
"border-radius": 12px,
|
|
33
|
+
),
|
|
34
|
+
),
|
|
35
|
+
$sizes
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
&_size {
|
|
39
|
+
@each $size, $sizeMap in $sizes {
|
|
40
|
+
&_#{$size} {
|
|
41
|
+
border-radius: map-get($sizeMap, border-radius);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__button {
|
|
47
|
+
&_default {
|
|
48
|
+
background-color: transparent;
|
|
49
|
+
border-color: transparent;
|
|
50
|
+
color: $text-color;
|
|
51
|
+
transition: opacity $transition-duration ease-in-out;
|
|
52
|
+
|
|
53
|
+
&:hover {
|
|
54
|
+
background-color: transparent;
|
|
55
|
+
border-color: transparent;
|
|
56
|
+
color: $text-color;
|
|
57
|
+
opacity: 0.7;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:active {
|
|
61
|
+
box-shadow: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:not(:first-child) {
|
|
65
|
+
&::after {
|
|
66
|
+
content: '';
|
|
67
|
+
display: block;
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: 50%;
|
|
70
|
+
left: 0;
|
|
71
|
+
transform: translateY(-50%);
|
|
72
|
+
width: 1px;
|
|
73
|
+
height: 12px;
|
|
74
|
+
background-color: $button-group-separator-color;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&_active + &_default::after {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -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;
|
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;
|
|
@@ -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 NavButtonView(props: INavViewProps
|
|
2
|
+
export default function NavButtonView(props: INavViewProps): JSX.Element;
|
package/nav/Nav/NavIconView.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 NavIconView(props: INavViewProps
|
|
2
|
+
export default function NavIconView(props: INavViewProps): JSX.Element;
|
package/nav/Nav/NavIconView.js
CHANGED
|
@@ -43,7 +43,7 @@ var hooks_1 = require("@steroidsjs/core/hooks");
|
|
|
43
43
|
function NavIconView(props) {
|
|
44
44
|
var bem = (0, hooks_1.useBem)('NavIconView');
|
|
45
45
|
return (React.createElement("div", { className: bem(bem.block(), props.className) },
|
|
46
|
-
props.items.map(function (item, index) { return (React.createElement(Button_1["default"], __assign({ icon: props.icon ? props.icon : '
|
|
46
|
+
props.items.map(function (item, index) { return (React.createElement(Button_1["default"], __assign({ icon: props.icon ? props.icon : 'add', key: item.id || index, link: true, onClick: function () { return props.onClick(item, index); } }, item, { label: null, hint: item.hint || item.label || null }))); }),
|
|
47
47
|
props.children));
|
|
48
48
|
}
|
|
49
49
|
exports["default"] = NavIconView;
|
package/nav/Nav/NavLinkView.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 NavLinkView(props: INavViewProps
|
|
2
|
+
export default function NavLinkView(props: INavViewProps): JSX.Element;
|
package/nav/Nav/NavListView.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 NavListView(props: INavViewProps
|
|
2
|
+
export default function NavListView(props: INavViewProps): JSX.Element;
|
package/nav/Nav/NavListView.js
CHANGED
|
@@ -47,7 +47,7 @@ function NavListView(props) {
|
|
|
47
47
|
return null;
|
|
48
48
|
}
|
|
49
49
|
return items.map(function (item, index) { return (React.createElement("li", { key: index, className: bem('nav-item', bem.element('item'), props.navClassName) },
|
|
50
|
-
React.createElement(Link_1["default"], __assign({ onClick: function () { return props.onClick(item, index); }
|
|
50
|
+
React.createElement(Link_1["default"], __assign({ onClick: function () { return props.onClick(item, index); } }, item, { key: item.id || index, className: bem(item.isActive && 'active', bem.element('item-link'), item.className) })),
|
|
51
51
|
item.items && item.items.length > 0 && (React.createElement("ul", { className: bem('nav flex-column', bem.element('sub-list')) }, renderItems(item.items))))); });
|
|
52
52
|
};
|
|
53
53
|
return (React.createElement("ul", { className: bem('nav flex-column', bem.block(), props.className) },
|
package/nav/Nav/NavTabsView.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 NavTabsView(props: INavViewProps
|
|
2
|
+
export default function NavTabsView(props: INavViewProps): JSX.Element;
|
package/nav/Nav/NavTabsView.js
CHANGED
|
@@ -44,7 +44,7 @@ function NavTabsView(props) {
|
|
|
44
44
|
var bem = (0, hooks_1.useBem)('NavTabsView');
|
|
45
45
|
return (React.createElement("div", { className: bem(bem.block(), props.className) },
|
|
46
46
|
React.createElement("div", { className: bem('nav nav-tabs', !props.children && 'mb-3') }, props.items.map(function (item, index) { return (React.createElement("li", { key: item.id || index, className: 'nav-item' },
|
|
47
|
-
React.createElement(Button_1["default"], __assign({ link: true, onClick: function () { return props.onClick(item, index); }
|
|
47
|
+
React.createElement(Button_1["default"], __assign({ link: true, onClick: function () { return props.onClick(item, index); } }, item, { className: bem('nav-link', item.isActive && 'active', item.className) })))); })),
|
|
48
48
|
props.children));
|
|
49
49
|
}
|
|
50
50
|
exports["default"] = NavTabsView;
|
package/nav/Tree/TreeView.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { ITreeViewProps } from '@steroidsjs/core/ui/nav/Tree/Tree';
|
|
3
|
-
export default function TreeView(props: ITreeViewProps
|
|
2
|
+
export default function TreeView(props: ITreeViewProps): JSX.Element;
|
package/nav/Tree/TreeView.scss
CHANGED
|
@@ -17,22 +17,26 @@
|
|
|
17
17
|
padding: 5px 10px;
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: row;
|
|
20
|
-
|
|
21
|
-
background-color: $
|
|
20
|
+
justify-content: flex-start;
|
|
21
|
+
background-color: $background-color;
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
color: $
|
|
25
|
-
background-color: $list-group-hover-bg;
|
|
23
|
+
.ButtonView__link {
|
|
24
|
+
color: $text-color;
|
|
26
25
|
}
|
|
27
26
|
|
|
27
|
+
// &:hover {
|
|
28
|
+
// color: $list-group-action-hover-color;
|
|
29
|
+
// background-color: $list-group-hover-bg;
|
|
30
|
+
// }
|
|
31
|
+
|
|
28
32
|
&, &:hover {
|
|
29
33
|
text-decoration: none !important;
|
|
30
34
|
}
|
|
31
35
|
}
|
|
32
36
|
&__item_selected &__item-label {
|
|
33
|
-
background-color: $
|
|
37
|
+
background-color: $secondary;
|
|
34
38
|
&, &::before {
|
|
35
|
-
color: $
|
|
39
|
+
color: $text-color;
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
42
|
&__item-label::before {
|
|
@@ -43,11 +47,10 @@
|
|
|
43
47
|
height: 20px;
|
|
44
48
|
font-size: 12px;
|
|
45
49
|
font-weight: bold;
|
|
46
|
-
font-family: $font-family-monospace;
|
|
47
50
|
margin-left: 10px;
|
|
48
|
-
color: $
|
|
51
|
+
color: $text-color;
|
|
49
52
|
position: relative;
|
|
50
|
-
top:
|
|
53
|
+
top: 1px;
|
|
51
54
|
left: 3px;
|
|
52
55
|
}
|
|
53
56
|
&__item_has-items &__item-label::before {
|
|
@@ -55,7 +58,7 @@
|
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
&__item_opened &__item-label::before {
|
|
58
|
-
top:
|
|
61
|
+
top: 7px;
|
|
59
62
|
left: -4px;
|
|
60
63
|
transform: rotate(90deg);
|
|
61
64
|
}
|