@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,96 +1,202 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
$btn-font-weight-sm: 400;
|
|
2
|
+
$btn-font-weight-lg: 800;
|
|
3
|
+
$btn-line-height: 24px;
|
|
4
|
+
$btn-letter-spacing: 0.1em;
|
|
3
5
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
transition-timing-function: ease-in-out;
|
|
6
|
+
.ButtonView {
|
|
7
|
+
$root: &;
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
user-select: none;
|
|
12
|
-
border: $button-border;
|
|
9
|
+
transition-property: color, background-color, border-color, box-shadow;
|
|
10
|
+
transition-duration: $transition-duration;
|
|
11
|
+
transition-timing-function: ease-in-out;
|
|
13
12
|
|
|
14
|
-
padding: $button-padding-y $button-padding-x;
|
|
15
13
|
display: flex;
|
|
16
14
|
justify-content: center;
|
|
17
15
|
align-items: center;
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
|
|
19
|
+
&_button {
|
|
20
|
+
position: relative;
|
|
21
|
+
border-radius: $radius-small;
|
|
22
|
+
user-select: none;
|
|
23
|
+
border: 3px solid transparent;
|
|
24
|
+
|
|
25
|
+
padding: 0 20px;
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
align-items: center;
|
|
21
29
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
30
|
+
font-family: $font-family-nunito;
|
|
31
|
+
font-weight: $btn-font-weight-sm;
|
|
32
|
+
font-size: $font-size-sm;
|
|
33
|
+
line-height: $btn-line-height;
|
|
34
|
+
outline: none;
|
|
26
35
|
}
|
|
27
36
|
|
|
28
|
-
@each $
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
37
|
+
@each $colorName, $colorMap in $color-themes {
|
|
38
|
+
&_color_#{$colorName} {
|
|
39
|
+
@include button-theme($colorMap, $colorName, $root);
|
|
40
|
+
}
|
|
32
41
|
}
|
|
33
42
|
|
|
34
|
-
|
|
43
|
+
@each $colorName, $colorMap in $color-themes {
|
|
44
|
+
&_outline_#{$colorName} {
|
|
45
|
+
@include button-outline-theme($colorMap, $colorName, $root);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
35
48
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
input {
|
|
41
|
-
cursor: inherit;
|
|
49
|
+
&__label {
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
align-items: center;
|
|
42
53
|
}
|
|
43
|
-
}
|
|
44
54
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
55
|
+
&_block {
|
|
56
|
+
display: block;
|
|
57
|
+
width: 100%;
|
|
58
|
+
|
|
59
|
+
#{$root}__label {
|
|
60
|
+
justify-content: center;
|
|
61
|
+
}
|
|
49
62
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
63
|
+
|
|
64
|
+
&_tag {
|
|
65
|
+
&-a {
|
|
66
|
+
width: auto;
|
|
67
|
+
}
|
|
53
68
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
69
|
+
|
|
70
|
+
&_disabled {
|
|
71
|
+
opacity: 0.5;
|
|
72
|
+
color: rgba(0, 0, 0, 0.1);
|
|
73
|
+
cursor: not-allowed;
|
|
74
|
+
|
|
75
|
+
input {
|
|
76
|
+
cursor: inherit;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&_size {
|
|
81
|
+
&_sm {
|
|
82
|
+
height: 34px;
|
|
83
|
+
font-size: $font-size-sm;
|
|
84
|
+
border-radius: $radius-small;
|
|
85
|
+
}
|
|
86
|
+
&_md {
|
|
87
|
+
height: 46px;
|
|
88
|
+
font-size: $font-size-base;
|
|
89
|
+
border-radius: $radius-large;
|
|
90
|
+
}
|
|
91
|
+
&_lg {
|
|
92
|
+
height: 56px;
|
|
93
|
+
font-size: $font-size-lg;
|
|
94
|
+
border-radius: $radius-large;
|
|
95
|
+
}
|
|
57
96
|
}
|
|
58
|
-
}
|
|
59
97
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
98
|
+
&_link {
|
|
99
|
+
display: inline;
|
|
100
|
+
width: auto;
|
|
101
|
+
height: auto;
|
|
102
|
+
background-color: transparent;
|
|
64
103
|
|
|
65
|
-
|
|
66
|
-
|
|
104
|
+
&:focus-visible, &:focus {
|
|
105
|
+
box-shadow: none;
|
|
106
|
+
}
|
|
67
107
|
|
|
68
|
-
|
|
69
|
-
|
|
108
|
+
&:hover,&:active {
|
|
109
|
+
background-color: transparent;
|
|
110
|
+
}
|
|
111
|
+
|
|
70
112
|
}
|
|
71
|
-
}
|
|
72
113
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
114
|
+
&__link {
|
|
115
|
+
display: inline-flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
|
|
118
|
+
#{$root}__text {
|
|
119
|
+
color: $link-color;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:hover {
|
|
123
|
+
#{$root}__text {
|
|
124
|
+
color: $link-color-hover;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
77
127
|
}
|
|
78
|
-
}
|
|
79
128
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
129
|
+
&__icon {
|
|
130
|
+
margin-right: 10px;
|
|
131
|
+
width: fit-content;
|
|
132
|
+
height: fit-content;
|
|
133
|
+
&_without-label {
|
|
134
|
+
margin: 0;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&_failed {
|
|
139
|
+
&,
|
|
140
|
+
&:hover {
|
|
141
|
+
border-color: $danger;
|
|
142
|
+
box-shadow: 0 0 1rem rgba($danger, 0.2);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&_loading {
|
|
147
|
+
cursor: default;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&__preloader {
|
|
151
|
+
position: absolute;
|
|
152
|
+
top: 50%;
|
|
153
|
+
left: 50%;
|
|
154
|
+
transform: translate(-50%, -50%);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&__badge {
|
|
158
|
+
position: relative;
|
|
159
|
+
top: -1px;
|
|
160
|
+
margin-left: 4px;
|
|
161
|
+
border-radius: $radius-small;
|
|
162
|
+
font-size: $font-size-xs;
|
|
163
|
+
line-height: 16px;
|
|
164
|
+
padding: 3px 5px;
|
|
165
|
+
|
|
166
|
+
$badge-types: (
|
|
167
|
+
"primary": $primary,
|
|
168
|
+
"secondary": $secondary,
|
|
169
|
+
"success": $success,
|
|
170
|
+
"danger": $danger,
|
|
171
|
+
"warning": $warning,
|
|
172
|
+
"info": $info,
|
|
173
|
+
);
|
|
174
|
+
|
|
175
|
+
@each $type, $color in $badge-types {
|
|
176
|
+
&_#{$type} {
|
|
177
|
+
background-color: $color;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
83
181
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
182
|
+
&__loader {
|
|
183
|
+
width: 24px;
|
|
184
|
+
height: 24px;
|
|
185
|
+
display: flex;
|
|
186
|
+
justify-content: center;
|
|
187
|
+
align-items: center;
|
|
188
|
+
|
|
189
|
+
svg {
|
|
190
|
+
width: 14px;
|
|
191
|
+
height: 14px;
|
|
192
|
+
transform-origin: center;
|
|
193
|
+
animation: rotate 1.45s linear infinite;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
90
197
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
198
|
+
@keyframes rotate {
|
|
199
|
+
100% {
|
|
200
|
+
transform: rotate(360deg);
|
|
201
|
+
}
|
|
96
202
|
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { ICheckboxFieldViewProps } from '@steroidsjs/core/ui/form/CheckboxField/CheckboxField';
|
|
3
|
-
export default function CheckboxFieldView(props: ICheckboxFieldViewProps
|
|
2
|
+
export default function CheckboxFieldView(props: ICheckboxFieldViewProps): JSX.Element;
|
|
@@ -43,9 +43,11 @@ var useUniqueId_1 = __importDefault(require("@steroidsjs/core/hooks/useUniqueId"
|
|
|
43
43
|
function CheckboxFieldView(props) {
|
|
44
44
|
var bem = (0, hooks_1.useBem)('CheckboxFieldView');
|
|
45
45
|
var id = (0, useUniqueId_1["default"])('checkbox');
|
|
46
|
-
return (React.createElement("div", { className: bem(bem.block({
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
return (React.createElement("div", { className: bem(bem.block({
|
|
47
|
+
size: props.size,
|
|
48
|
+
hasErrors: !!props.errors
|
|
49
|
+
}), props.className), style: props.style, onClick: props.onChange },
|
|
50
|
+
React.createElement("input", __assign({ className: bem.element('input'), id: props.id || id }, props.inputProps, { disabled: props.disabled, required: props.required })),
|
|
51
|
+
React.createElement("label", { className: bem.element('label'), htmlFor: props.id || id }, props.label && (React.createElement("span", { className: bem.element('label-text', { required: props.required }) }, props.label)))));
|
|
50
52
|
}
|
|
51
53
|
exports["default"] = CheckboxFieldView;
|
|
@@ -1,46 +1,205 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--disabled-text-color: rgba(0, 0, 0, 0.3);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
html[data-theme="dark"] {
|
|
6
|
+
--disabled-text-color: rgba(255, 255, 255, 0.3);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
$disabled-text-color: var(--disabled-text-color);
|
|
10
|
+
|
|
1
11
|
.CheckboxFieldView {
|
|
2
|
-
|
|
12
|
+
$root: &;
|
|
3
13
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
.custom-control-label {
|
|
15
|
-
&::before, &::after {
|
|
16
|
-
top: 0;
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
|
|
16
|
+
font-family: $font-family-nunito;
|
|
17
|
+
|
|
18
|
+
&__input + &__label {
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
user-select: none;
|
|
17
22
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
background: $primary;
|
|
25
|
-
}
|
|
26
|
-
&:hover {
|
|
23
|
+
|
|
24
|
+
&__label {
|
|
25
|
+
position: relative;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
|
|
28
|
+
//Сам кастомный checkbox
|
|
27
29
|
&::before {
|
|
28
|
-
|
|
30
|
+
content: "";
|
|
31
|
+
display: inline-block;
|
|
32
|
+
width: 24px;
|
|
33
|
+
height: 24px;
|
|
34
|
+
flex-shrink: 0;
|
|
35
|
+
flex-grow: 0;
|
|
36
|
+
|
|
37
|
+
border: 1px solid $gray;
|
|
38
|
+
border-radius: $radius-small;
|
|
39
|
+
|
|
40
|
+
background-repeat: no-repeat;
|
|
41
|
+
background-position: center center;
|
|
42
|
+
background-size: 50% 50%;
|
|
29
43
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
&::
|
|
33
|
-
|
|
44
|
+
|
|
45
|
+
//Псевдоэлемент который служит для применения эффектов на чекбокс
|
|
46
|
+
&::after {
|
|
47
|
+
content: "";
|
|
48
|
+
display: inline-block;
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 0;
|
|
51
|
+
left: 0;
|
|
52
|
+
width: 26px;
|
|
53
|
+
height: 26px;
|
|
54
|
+
|
|
55
|
+
transform: translate(-12%, -11.5%);
|
|
56
|
+
transition: opacity 150ms ease-in-out;
|
|
57
|
+
opacity: 0;
|
|
58
|
+
|
|
59
|
+
border-radius: $radius-large;
|
|
60
|
+
border: 4px solid $primary-light;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&-text {
|
|
64
|
+
margin-left: 8px;
|
|
65
|
+
color: $text-color;
|
|
66
|
+
font-size: $font-size-sm;
|
|
67
|
+
font-weight: $font-weight-md;
|
|
68
|
+
transform: translateY(1px);
|
|
34
69
|
}
|
|
35
|
-
}
|
|
36
70
|
}
|
|
37
|
-
&:disabled ~ .custom-control-label {
|
|
38
|
-
color: $border-default;
|
|
39
71
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
72
|
+
&__input {
|
|
73
|
+
position: absolute;
|
|
74
|
+
z-index: -1;
|
|
75
|
+
opacity: 0;
|
|
76
|
+
|
|
77
|
+
//HOVER
|
|
78
|
+
&:not(:focus):not(:disabled):not(:checked):not(:active) + #{$root}__label:hover::before {
|
|
79
|
+
border-color: #d0d0d0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
//ACTIVE
|
|
83
|
+
&:not(:disabled):not(:checked):active + #{$root}__label::before {
|
|
84
|
+
border-color: $primary;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:active:checked + #{$root}__label::after {
|
|
88
|
+
opacity: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:checked:active + #{$root}__label::before {
|
|
92
|
+
background-color: $primary-light;
|
|
93
|
+
border-color: transparent;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
//FOCUS
|
|
97
|
+
&:focus + #{$root}__label::after {
|
|
98
|
+
opacity: 1;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
//CHECKED
|
|
102
|
+
&:checked + #{$root}__label::before {
|
|
103
|
+
border-color: $primary;
|
|
104
|
+
background-color: $primary;
|
|
105
|
+
background-image: url("data:image/svg+xml,%3Csvg width='11' height='8' viewBox='0 0 11 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.20898 1L3.70898 7L1.20898 4.27273' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
//DISABLED
|
|
109
|
+
&:disabled + #{$root}__label {
|
|
110
|
+
cursor: not-allowed;
|
|
111
|
+
span {
|
|
112
|
+
color: $disabled-text-color;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&::before {
|
|
116
|
+
background: $element-background-color-disabled;
|
|
117
|
+
border: none;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&:disabled:checked #{$root}__label::before {
|
|
122
|
+
background-color: $element-background-color-disabled;
|
|
123
|
+
border-color: none;
|
|
124
|
+
background-image: url("data:image/svg+xml,%3Csvg width='11' height='9' viewBox='0 0 11 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.8584 1.48401L4.3584 7.48401L1.8584 4.75674' stroke='black' stroke-opacity='0.1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&_size {
|
|
129
|
+
&_lg {
|
|
130
|
+
#{$root}__label {
|
|
131
|
+
&::before {
|
|
132
|
+
width: 24px;
|
|
133
|
+
height: 24px;
|
|
134
|
+
border-radius: $radius-small;
|
|
135
|
+
}
|
|
136
|
+
&::after {
|
|
137
|
+
width: 26px;
|
|
138
|
+
height: 26px;
|
|
139
|
+
border-radius: $radius-large;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&-text {
|
|
143
|
+
margin-left: 12px;
|
|
144
|
+
font-size: $font-size-lg;
|
|
145
|
+
line-height: 24px;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&_md {
|
|
151
|
+
#{$root}__label {
|
|
152
|
+
&::before {
|
|
153
|
+
width: 20px;
|
|
154
|
+
height: 20px;
|
|
155
|
+
border-radius: 6px;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&::after {
|
|
159
|
+
width: 22px;
|
|
160
|
+
height: 22px;
|
|
161
|
+
border-radius: $radius-medium;
|
|
162
|
+
transform: translate(-13.5%, -13.5%);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&-text {
|
|
166
|
+
margin-left: 8px;
|
|
167
|
+
font-size: $font-size-base;
|
|
168
|
+
line-height: 22px;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&_sm {
|
|
174
|
+
#{$root}__label {
|
|
175
|
+
&::before {
|
|
176
|
+
width: 16px;
|
|
177
|
+
height: 16px;
|
|
178
|
+
border-radius: 6px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&::after {
|
|
182
|
+
width: 18px;
|
|
183
|
+
height: 18px;
|
|
184
|
+
border-radius: $radius-medium;
|
|
185
|
+
transform: translate(-15.5%, -15.5%);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&-text {
|
|
189
|
+
margin-left: 8px;
|
|
190
|
+
font-size: $font-size-sm;
|
|
191
|
+
line-height: 18px;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
.has-errors label {
|
|
198
|
+
&::before {
|
|
199
|
+
border-color: $danger;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
span {
|
|
203
|
+
color: $danger;
|
|
44
204
|
}
|
|
45
|
-
}
|
|
46
205
|
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { ICheckboxListFieldViewProps } from '@steroidsjs/core/ui/form/CheckboxListField/CheckboxListField';
|
|
3
|
-
export default function CheckboxListFieldView(props: ICheckboxListFieldViewProps
|
|
2
|
+
export default function CheckboxListFieldView(props: ICheckboxListFieldViewProps): JSX.Element;
|
|
@@ -1,15 +1,4 @@
|
|
|
1
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
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
3
|
if (k2 === undefined) k2 = k;
|
|
15
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -41,11 +30,25 @@ var React = __importStar(require("react"));
|
|
|
41
30
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
42
31
|
var useUniqueId_1 = __importDefault(require("@steroidsjs/core/hooks/useUniqueId"));
|
|
43
32
|
function CheckboxListFieldView(props) {
|
|
33
|
+
var _a;
|
|
44
34
|
var bem = (0, hooks_1.useBem)('CheckboxListFieldView');
|
|
45
35
|
var prefix = (0, useUniqueId_1["default"])('checkbox');
|
|
46
|
-
return (React.createElement("div", { className: bem(bem.block(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
36
|
+
return (React.createElement("div", { className: bem(bem.block((_a = {},
|
|
37
|
+
_a["".concat(props.orientation)] = !!props.orientation,
|
|
38
|
+
_a))) }, props.items.map(function (checkbox, checkboxIndex) { return props.renderCheckbox({
|
|
39
|
+
inputProps: {
|
|
40
|
+
name: "".concat(prefix, "_").concat(checkbox.id),
|
|
41
|
+
checked: null,
|
|
42
|
+
type: 'checkbox',
|
|
43
|
+
disabled: false,
|
|
44
|
+
onChange: function () {
|
|
45
|
+
props.onItemSelect(checkbox.id);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
disabled: props.disabled,
|
|
49
|
+
label: checkbox.label,
|
|
50
|
+
id: "".concat(prefix, "_").concat(checkbox.id),
|
|
51
|
+
key: checkboxIndex
|
|
52
|
+
}); })));
|
|
50
53
|
}
|
|
51
54
|
exports["default"] = CheckboxListFieldView;
|
|
@@ -1,47 +1,13 @@
|
|
|
1
1
|
.CheckboxListFieldView {
|
|
2
|
-
|
|
3
|
-
&-text {
|
|
4
|
-
&_required:after {
|
|
5
|
-
display: inline-block;
|
|
6
|
-
content: '*';
|
|
7
|
-
color: $danger;
|
|
8
|
-
margin: 0 0 0 3px;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.custom-control-label {
|
|
14
|
-
&::before, &::after {
|
|
15
|
-
border-color: $border-default;
|
|
16
|
-
top: 0;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
2
|
+
display: flex;
|
|
19
3
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
border-color: $primary;
|
|
24
|
-
background: $primary;
|
|
25
|
-
}
|
|
26
|
-
&:hover {
|
|
27
|
-
&::before {
|
|
28
|
-
background: $primary-dark;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
&:active {
|
|
32
|
-
&::before {
|
|
33
|
-
background: $primary-light;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
4
|
+
&_vertical {
|
|
5
|
+
flex-flow: column wrap;
|
|
6
|
+
row-gap: 8px;
|
|
36
7
|
}
|
|
37
|
-
&:disabled ~ .custom-control-label {
|
|
38
|
-
color: $border-default;
|
|
39
8
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
9
|
+
&_horizontal {
|
|
10
|
+
flex-flow: row nowrap;
|
|
11
|
+
column-gap: 8px;
|
|
44
12
|
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
13
|
}
|
|
@@ -46,20 +46,21 @@ var Calendar_1 = __importDefault(require("@steroidsjs/core/ui/content/Calendar")
|
|
|
46
46
|
function DateFieldView(props) {
|
|
47
47
|
var bem = (0, hooks_1.useBem)('DateFieldView');
|
|
48
48
|
var renderCalendar = (0, react_1.useCallback)(function () { return (React.createElement(Calendar_1["default"], __assign({}, props.calendarProps))); }, [props.calendarProps]);
|
|
49
|
-
return (React.createElement(DropDown_1["default"], { content: renderCalendar, position: 'bottomLeft', visible: props.isOpened, onClose: props.onClose },
|
|
49
|
+
return (React.createElement(DropDown_1["default"], { content: renderCalendar, position: 'bottomLeft', visible: props.isOpened, onClose: props.onClose, className: bem.element('dropdown'), hasArrow: false },
|
|
50
50
|
React.createElement("div", { className: bem(bem.block({
|
|
51
51
|
size: props.size,
|
|
52
52
|
disabled: props.disabled,
|
|
53
|
-
'has-icon': !!props.icon,
|
|
54
53
|
'is-invalid': !!props.errors
|
|
55
54
|
}), props.className), style: props.style },
|
|
56
55
|
React.createElement("div", { className: bem.element('body') },
|
|
57
|
-
React.createElement("input", __assign({}, props.inputProps, {
|
|
56
|
+
React.createElement("input", __assign({}, props.inputProps, { ref: props.maskInputRef, onInput: function (e) {
|
|
57
|
+
props.inputProps.onChange(e.currentTarget.value);
|
|
58
|
+
}, className: bem(bem.element('input'), props.inputProps.className) })),
|
|
58
59
|
React.createElement("div", { className: bem.element('icon-container') },
|
|
59
|
-
props.icon && (React.createElement(Icon_1["default"], { className: bem.element('icon'), name: typeof props.icon === 'string' ? props.icon : '
|
|
60
|
-
props.showRemove && props.inputProps.value && (React.createElement(Icon_1["default"], { className: bem.element('icon'
|
|
60
|
+
!props.inputProps.value && props.icon && (React.createElement(Icon_1["default"], { className: bem.element('date-icon'), name: typeof props.icon === 'string' ? props.icon : 'calendar_range', tabIndex: -1 })),
|
|
61
|
+
props.showRemove && props.inputProps.value && (React.createElement(Icon_1["default"], { className: bem.element('close-icon'), onClick: function (e) {
|
|
61
62
|
e.preventDefault();
|
|
62
63
|
props.onClear();
|
|
63
|
-
}, name: '
|
|
64
|
+
}, name: 'cross_8x8' })))))));
|
|
64
65
|
}
|
|
65
66
|
exports["default"] = DateFieldView;
|