@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
|
@@ -1,198 +1,281 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
color: $calendar-text-color;
|
|
6
|
-
font-weight: $calendar-font-weight;
|
|
7
|
-
user-select: none;
|
|
8
|
-
|
|
9
|
-
.DayPicker-wrapper {
|
|
10
|
-
padding-bottom: 0;
|
|
11
|
-
}
|
|
12
|
-
.DayPicker-Months {
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-wrap: wrap;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
}
|
|
17
|
-
.DayPicker-Month {
|
|
18
|
-
display: table;
|
|
19
|
-
border-collapse: separate;
|
|
20
|
-
border-spacing: 10px;
|
|
21
|
-
margin: 0;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// Body
|
|
25
|
-
|
|
26
|
-
.DayPicker-Weekdays {
|
|
27
|
-
display: table-header-group;
|
|
28
|
-
margin-top: 1em;
|
|
29
|
-
}
|
|
30
|
-
.DayPicker-WeekdaysRow {
|
|
31
|
-
display: table-row;
|
|
32
|
-
}
|
|
33
|
-
.DayPicker-Weekday {
|
|
34
|
-
display: table-cell;
|
|
35
|
-
width: 30px;
|
|
36
|
-
height: 30px;
|
|
37
|
-
padding: 0;
|
|
38
|
-
color: inherit;
|
|
39
|
-
text-align: center;
|
|
40
|
-
font-size: 0.875em;
|
|
41
|
-
}
|
|
42
|
-
.DayPicker-Weekday abbr[title] {
|
|
43
|
-
border-bottom: none;
|
|
44
|
-
text-decoration: none;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.DayPicker-Body {
|
|
48
|
-
display: table-row-group;
|
|
49
|
-
}
|
|
50
|
-
.DayPicker-Week {
|
|
51
|
-
display: table-row;
|
|
52
|
-
|
|
53
|
-
&--disabled {
|
|
54
|
-
pointer-events: none;
|
|
55
|
-
opacity: .5;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
.DayPicker-Day {
|
|
59
|
-
position: relative;
|
|
60
|
-
display: table-cell;
|
|
1
|
+
:root {
|
|
2
|
+
--day-background-color-hover: rgba(0, 0, 0, 0.1);
|
|
3
|
+
--calendar-border-color: var(--light-gray);
|
|
4
|
+
}
|
|
61
5
|
|
|
62
|
-
|
|
63
|
-
|
|
6
|
+
html[data-theme="dark"] {
|
|
7
|
+
--day-background-color-hover: rgba(255, 255, 255, 0.1);
|
|
8
|
+
--calendar-border-color: var(--gray);
|
|
9
|
+
}
|
|
64
10
|
|
|
65
|
-
|
|
66
|
-
|
|
11
|
+
$day-background-color-hover: var(--day-background-color-hover);
|
|
12
|
+
$calendar-border-color: var(--calendar-border-color);
|
|
13
|
+
|
|
14
|
+
@mixin calendar-button () {
|
|
15
|
+
padding: 5px 12.5px;
|
|
16
|
+
border-radius: $radius-small;
|
|
17
|
+
border: 1px solid $gray;
|
|
18
|
+
background-color: transparent;
|
|
19
|
+
background-image: none;
|
|
20
|
+
box-shadow: none;
|
|
67
21
|
cursor: pointer;
|
|
22
|
+
color: $text-color;
|
|
23
|
+
font-size: $font-size-sm;
|
|
24
|
+
line-height: $line-height-lg;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.CalendarView {
|
|
28
|
+
$root: &;
|
|
29
|
+
|
|
30
|
+
background-color: $element-background-color;
|
|
31
|
+
border-radius: $radius-large;
|
|
32
|
+
border: 4px solid $calendar-border-color;
|
|
33
|
+
position: relative;
|
|
34
|
+
color: $text-color;
|
|
35
|
+
font-weight: $font-weight-md;
|
|
36
|
+
user-select: none;
|
|
37
|
+
padding: 12px;
|
|
68
38
|
|
|
69
|
-
|
|
70
|
-
|
|
39
|
+
.DayPicker-wrapper {
|
|
40
|
+
padding-bottom: 0;
|
|
41
|
+
}
|
|
71
42
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
right: 0;
|
|
78
|
-
top: 50%;
|
|
79
|
-
transform: translate(-5px, -50%);
|
|
80
|
-
width: 40px;
|
|
81
|
-
z-index: 1;
|
|
43
|
+
.DayPicker-Months {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-wrap: wrap;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
row-gap: 12px;
|
|
82
48
|
}
|
|
83
49
|
|
|
84
|
-
|
|
85
|
-
|
|
50
|
+
.DayPicker-Month {
|
|
51
|
+
margin: 0;
|
|
86
52
|
}
|
|
87
53
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
54
|
+
// Body
|
|
55
|
+
.DayPicker-Weekdays {
|
|
56
|
+
margin-top: 0;
|
|
92
57
|
}
|
|
93
58
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
59
|
+
.DayPicker-WeekdaysRow {
|
|
60
|
+
display: inline-flex;
|
|
61
|
+
column-gap: 16px;
|
|
97
62
|
}
|
|
98
|
-
}
|
|
99
63
|
|
|
100
|
-
|
|
64
|
+
.DayPicker-Weekday {
|
|
65
|
+
display: inline-flex;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
align-items: center;
|
|
68
|
+
width: 34px;
|
|
69
|
+
height: 34px;
|
|
70
|
+
padding: 0;
|
|
71
|
+
color: inherit;
|
|
72
|
+
text-align: center;
|
|
73
|
+
vertical-align: middle;
|
|
74
|
+
font-size: $font-size-base;
|
|
75
|
+
line-height: $line-height-base;
|
|
76
|
+
font-weight: $font-weight-lg;
|
|
77
|
+
text-transform: capitalize;
|
|
78
|
+
}
|
|
101
79
|
|
|
102
|
-
|
|
103
|
-
|
|
80
|
+
.DayPicker-Weekday abbr[title] {
|
|
81
|
+
border-bottom: none;
|
|
82
|
+
text-decoration: none;
|
|
83
|
+
}
|
|
104
84
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
85
|
+
.DayPicker-Body {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-flow: column nowrap;
|
|
88
|
+
row-gap: 12px;
|
|
89
|
+
}
|
|
110
90
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
background-color: transparent;
|
|
116
|
-
background-image: none;
|
|
117
|
-
box-shadow: none;
|
|
118
|
-
font-size: 0.875em;
|
|
119
|
-
cursor: pointer;
|
|
120
|
-
color: $calendar-primary-color;
|
|
121
|
-
font-weight: $calendar-font-weight;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// Days selection
|
|
125
|
-
|
|
126
|
-
// Selected day
|
|
127
|
-
.DayPicker-Day--selected:not(.DayPicker-Day--inRange) {
|
|
128
|
-
color: $calendar-selected-text-color;
|
|
129
|
-
border-radius: $calendar-day-border-radius;
|
|
130
|
-
background-color: $calendar-primary-color;
|
|
131
|
-
box-shadow: $calendar-selected-shadow;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// Hover
|
|
135
|
-
.DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):hover {
|
|
136
|
-
background-color: $calendar-secondary-light-color !important;
|
|
137
|
-
box-shadow: $calendar-hover-shadow;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
&__day {
|
|
141
|
-
position: relative;
|
|
142
|
-
z-index: 1;
|
|
143
|
-
width: 30px;
|
|
144
|
-
height: 30px;
|
|
145
|
-
line-height: 30px;
|
|
146
|
-
border-radius: $calendar-day-border-radius;
|
|
147
|
-
}
|
|
91
|
+
.DayPicker-Week {
|
|
92
|
+
display: flex;
|
|
93
|
+
width: 100%;
|
|
94
|
+
column-gap: 16px;
|
|
148
95
|
|
|
149
|
-
|
|
96
|
+
&--disabled {
|
|
97
|
+
pointer-events: none;
|
|
98
|
+
opacity: 0.5;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
150
101
|
|
|
151
102
|
.DayPicker-Day {
|
|
152
|
-
|
|
153
|
-
|
|
103
|
+
position: relative;
|
|
104
|
+
padding: 0;
|
|
105
|
+
border-radius: $radius-large;
|
|
154
106
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
107
|
+
vertical-align: middle;
|
|
108
|
+
text-align: center;
|
|
109
|
+
cursor: pointer;
|
|
110
|
+
|
|
111
|
+
transition-property: background-color, box-shadow, color;
|
|
112
|
+
transition-duration: 0.1s;
|
|
159
113
|
|
|
160
114
|
&::before {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
115
|
+
content: "";
|
|
116
|
+
height: 30px;
|
|
117
|
+
left: 0;
|
|
118
|
+
position: absolute;
|
|
119
|
+
right: 0;
|
|
120
|
+
top: 50%;
|
|
121
|
+
transform: translate(-5px, -50%);
|
|
122
|
+
width: 40px;
|
|
123
|
+
z-index: 1;
|
|
164
124
|
}
|
|
165
|
-
}
|
|
166
125
|
|
|
167
|
-
|
|
168
|
-
|
|
126
|
+
&::after {
|
|
127
|
+
position: absolute;
|
|
128
|
+
content: "";
|
|
129
|
+
display: block;
|
|
130
|
+
width: 100%;
|
|
131
|
+
height: 100%;
|
|
132
|
+
top: 0;
|
|
133
|
+
left: 0;
|
|
134
|
+
right: 0;
|
|
135
|
+
bottom: 0;
|
|
136
|
+
border-width: 4px;
|
|
137
|
+
border-style: solid;
|
|
138
|
+
border-radius: 16px;
|
|
139
|
+
border-color: $day-background-color-hover;
|
|
140
|
+
transform: translate(-4px, -4px);
|
|
141
|
+
opacity: 0;
|
|
142
|
+
transition: opacity 150ms ease-in-out;
|
|
143
|
+
z-index: 9;
|
|
144
|
+
}
|
|
169
145
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
146
|
+
&:focus {
|
|
147
|
+
outline: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&:focus:not(:active)::after {
|
|
151
|
+
opacity: 1;
|
|
173
152
|
}
|
|
174
153
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
154
|
+
&--outside {
|
|
155
|
+
color: $element-placeholder-color;
|
|
156
|
+
|
|
178
157
|
}
|
|
179
|
-
}
|
|
180
158
|
|
|
159
|
+
&--today {
|
|
160
|
+
#{$root}__day {
|
|
161
|
+
border: 1px solid $primary;
|
|
162
|
+
color: $primary;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
181
165
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
166
|
+
&--disabled {
|
|
167
|
+
pointer-events: none;
|
|
168
|
+
opacity: 0.5;
|
|
185
169
|
}
|
|
186
|
-
|
|
170
|
+
}
|
|
187
171
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
172
|
+
// Footer
|
|
173
|
+
.DayPicker-Footer {
|
|
174
|
+
margin-top: 8px;
|
|
175
|
+
display: flex;
|
|
176
|
+
flex-flow: row nowrap;
|
|
177
|
+
align-items: center;
|
|
178
|
+
justify-content: flex-start;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.DayPicker-TodayButton {
|
|
182
|
+
@include calendar-button();
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// Days selection
|
|
186
|
+
// Selected day
|
|
187
|
+
.DayPicker-Day--selected:not(.DayPicker-Day--inRange) {
|
|
188
|
+
color: $white;
|
|
189
|
+
background-color: $primary;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.DayPicker-Day--selected.DayPicker-Day--today .CalendarView__day {
|
|
193
|
+
color: $white;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// Hover
|
|
197
|
+
.DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):not(
|
|
198
|
+
.DayPicker-Day--today
|
|
199
|
+
):hover {
|
|
200
|
+
background-color: $day-background-color-hover;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.DayPicker-Day--today:hover {
|
|
204
|
+
background-color: transparent;
|
|
205
|
+
|
|
206
|
+
.CalendarView__day {
|
|
207
|
+
transition: background-color 150ms ease-in-out;
|
|
192
208
|
}
|
|
193
|
-
|
|
209
|
+
}
|
|
194
210
|
|
|
211
|
+
&__day {
|
|
212
|
+
position: relative;
|
|
213
|
+
z-index: 1;
|
|
214
|
+
width: 34px;
|
|
215
|
+
height: 34px;
|
|
216
|
+
line-height: 30px;
|
|
217
|
+
border-radius: $radius-large;
|
|
218
|
+
display: flex;
|
|
219
|
+
justify-content: center;
|
|
220
|
+
align-items: center;
|
|
195
221
|
}
|
|
196
222
|
|
|
197
|
-
|
|
223
|
+
&_ranged {
|
|
224
|
+
.DayPicker-Day {
|
|
225
|
+
&--start {
|
|
226
|
+
color: $white;
|
|
227
|
+
|
|
228
|
+
#{$root}__day {
|
|
229
|
+
background-color: $primary;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
&::before {
|
|
233
|
+
width: 50px;
|
|
234
|
+
height: 42px;
|
|
235
|
+
background-color: $primary-light;
|
|
236
|
+
border-radius: 16px 0px 0px 16px;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&--end {
|
|
241
|
+
color: #fff;
|
|
242
|
+
|
|
243
|
+
#{$root}__day {
|
|
244
|
+
background-color: $calendar-primary-color;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
&::before {
|
|
248
|
+
width: 46px;
|
|
249
|
+
height: 42px;
|
|
250
|
+
background-color: $primary-light;
|
|
251
|
+
border-radius: 0px 16px 16px 0px;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
&--inRange {
|
|
256
|
+
&::before {
|
|
257
|
+
background-color: $primary-light;
|
|
258
|
+
width: 50px;
|
|
259
|
+
height: 42px;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
//Today in range
|
|
264
|
+
&--inRange.DayPicker-Day--selected.DayPicker-Day--today .CalendarView__day {
|
|
265
|
+
color: $primary;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
&--inRange:hover .CalendarView__day {
|
|
269
|
+
transition: background-color 150ms ease-in-out;
|
|
270
|
+
background-color: $day-background-color-hover;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
&--outRange {
|
|
274
|
+
pointer-events: none;
|
|
275
|
+
&::before {
|
|
276
|
+
background-color: $calendar-primary-light-color;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
198
281
|
}
|
|
@@ -57,16 +57,28 @@ function CaptionElement(props) {
|
|
|
57
57
|
}
|
|
58
58
|
return result;
|
|
59
59
|
}, [fromYear, toYear]);
|
|
60
|
+
var icons = (0, react_1.useMemo)(function () { return [
|
|
61
|
+
{
|
|
62
|
+
name: 'double_arrow_left',
|
|
63
|
+
onClick: function () { return handleYearChange(currentYear - 1); }
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'arrow_left_24x24',
|
|
67
|
+
externalClass: 'one-arrow',
|
|
68
|
+
onClick: function () { return handleMonthChange(currentMonth - 1); }
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'arrow_right_24x24',
|
|
72
|
+
externalClass: 'one-arrow',
|
|
73
|
+
onClick: function () { return handleMonthChange(currentMonth + 1); }
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'double_arrow_right',
|
|
77
|
+
onClick: function () { return handleYearChange(currentYear + 1); }
|
|
78
|
+
},
|
|
79
|
+
]; }, [currentYear, handleYearChange, currentMonth, handleMonthChange]);
|
|
60
80
|
return (React.createElement("div", { className: bem(bem.block()) },
|
|
61
81
|
React.createElement("div", { className: bem.element('container') },
|
|
62
|
-
React.createElement(Icon_1["default"], { className: bem.element('button'), onClick: function (e) {
|
|
63
|
-
e.preventDefault();
|
|
64
|
-
handleYearChange(currentYear - 1);
|
|
65
|
-
}, name: 'angle-double-left' }),
|
|
66
|
-
React.createElement(Icon_1["default"], { className: bem.element('button', 'one-arrow'), onClick: function (e) {
|
|
67
|
-
e.preventDefault();
|
|
68
|
-
handleMonthChange(currentMonth - 1);
|
|
69
|
-
}, name: 'angle-left' }),
|
|
70
82
|
React.createElement("div", { className: bem.element('content-container'), onKeyPress: function (e) {
|
|
71
83
|
e.preventDefault();
|
|
72
84
|
toggleCaptionPanel();
|
|
@@ -76,14 +88,10 @@ function CaptionElement(props) {
|
|
|
76
88
|
}, role: 'button', tabIndex: 0 },
|
|
77
89
|
React.createElement("span", { className: bem.element('selected-month') }, months.find(function (month) { return month.id === currentMonth; }).label),
|
|
78
90
|
React.createElement("span", { className: bem.element('selected-year') }, years.find(function (year) { return year === currentYear; }))),
|
|
79
|
-
React.createElement(
|
|
80
|
-
e.preventDefault();
|
|
81
|
-
handleMonthChange(currentMonth + 1);
|
|
82
|
-
}, name: 'angle-right' }),
|
|
83
|
-
React.createElement(Icon_1["default"], { className: bem.element('button'), onClick: function (e) {
|
|
91
|
+
React.createElement("div", { className: bem.element('container-icons') }, icons.map(function (icon, iconIndex) { return (React.createElement(Icon_1["default"], { key: iconIndex, name: icon.name, onClick: function (e) {
|
|
84
92
|
e.preventDefault();
|
|
85
|
-
|
|
86
|
-
},
|
|
93
|
+
icon.onClick();
|
|
94
|
+
}, className: bem.element('button', icon.externalClass) })); }))),
|
|
87
95
|
isCaptionPanelVisible && (React.createElement("div", { className: bem.element('panel', { 'full-height': !props.showCalendarFooter }) },
|
|
88
96
|
React.createElement("div", { className: bem.element('panel-header', 'months') }, __('Месяц')),
|
|
89
97
|
React.createElement("div", { className: bem.element('panel-header', 'years') }, __('Год')),
|